In the below Istio authentication policy, under "when", the token (617D8667CPPP3B3F0EA05814B7D9) is hard-coded which cannot be rotated. Is there any way we can map the value of a kubesecret instead. So that we can rotate the token?
kind: AuthorizationPolicy
metadata:
name: allow-requests
spec:
selector:
matchLabels:
run: test
action: ALLOW
rules:
- to:
- operation:
methods: ["GET","POST"]
when:
- key: request.headers[x-token]
values: ["617D8667CPPP3B3F0EA05814B7D9"]