Support reading auth token from file #20747
Labels
source: http_client
Anything `http_client` source related
type: feature
A value-adding code addition that introduce new functionality.
A note for the community
Use Cases
I am deploying vector in k8s and I am trying to scrape metrics from cadvisor. For that vector would need to be configured to using the content in mounted serviceaccount token file
/var/run/secrets/kubernetes.io/serviceaccount/token
equivalent curl command:
curl -k -H "Authorization: Bearer $(cat /var/run/secrets/kubernetes.io/serviceaccount/token)" https://kubernetes.default.svc/api/v1/nodes/ns1/proxy/metrics/cadvisor
Vector only supports specifying the token value under auth.token
Attempted Solutions
No response
Proposal
Proposing vector to add an option to read auth.token from a file.
References
No response
Version
No response
The text was updated successfully, but these errors were encountered: