VMUser introduce an option for backend authorization.
It would be great to have an option to define Bearer token or Basic Auth configuration for targets.
For instance:
kind: VMUser
spec
targetRefs:
paths:
- static:
- ursl: [http://host1:8429,http://host2:8429,http://host3:8429]
basicAuth:
password:
key: password
name: secretname
username:
key: username
name: secretname
Must produce following vmauth config with Authorization header:
users:
- username: "user"
password: "***"
headers:
- Authorization: Basic BASE64_ENCODED_VALUE
url_prefix:
- "http://host1:8429/"
- "http://host2:8429/"
- "http://host3:8429/"
It's safe to store headers at configuration file, since it uses secure kubernetes secret.
For multiple, url_map headers should be used.
Related issue https://github.com/VictoriaMetrics/VictoriaMetrics/issues/4361
Can I send a pull request for this feature?
Can I send a pull request for this feature?
Feel free)
@Haleygo @f41gh7 I see this FR was implemented in operator repo. Should we close this ticket as done or follow-up in vmauth is required?