-
Notifications
You must be signed in to change notification settings - Fork 2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
nomad: vault integration > nomad doesnt set user-agent header when making requests to vault #15629
Comments
Adding a note here that we should probably verify whether this bug exists for consul-template as well, as we use that for |
We have https://github.com/hashicorp/nomad/blob/v1.4.3/helper/useragent/useragent.go but it doesn't get used in a lot places it probably should. Sometimes I wonder if we shouldn't substitute go-cleanhttp with our own Nomad specific http client factory. |
Took a quick skim over what would be involved - we might run into trouble with the embedded Vault client in consul-template - AFAICT there isn't (yet) a way to configure UA/custom headers. In other cases where Nomad creates the Vault client and we can call |
Looks like Consul Template just added the missing piece to get user agent threaded through https://github.com/hashicorp/consul-template/blob/main/CHANGELOG.md |
I'm going to lock this issue because it has been closed for 120 days ⏳. This helps our maintainers find and focus on the active issues. |
Nomad version
Output from
nomad version
Operating system and Environment details
Issue
Reproduction steps
Expected Result
http-request deny if { req.hdr(user-agent) -m len le 32 }
Actual Result
Job file (if appropriate)
Nomad Server logs (if appropriate)
The text was updated successfully, but these errors were encountered: