-
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
Fixes Consul token checking when policies exist within namespaces #18516
Fixes Consul token checking when policies exist within namespaces #18516
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hey @t-davies, thanks for the bugfix, the code looks good to me!
FYI in Nomad 1.7 we will be introducing support for Workload Identity tokens, so that jobs will be able to login into Consul via JWT https://www.hashicorp.com/blog/nomad-1-7-improves-vault-and-consul-integrations-adds-numa-support
The actual fix LGTM but I think the e2e test needs to account for the namespace'd token on deletion
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
.
Thanks, good spot. I'm passing Once the tests run and are happy, I'll rebase the |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM; thanks @t-davies!
Re: support case #122732
Fixes a bug where Nomad fails to fetch Consul policies whilst checking a Consul token presented when submitting a job, if the policies attached to that token exist within a namespace.