Skip to content
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

consul: set partition for gateway config entries #22228

Merged
merged 1 commit into from
May 29, 2024

Conversation

tgross
Copy link
Member

@tgross tgross commented May 23, 2024

When we write Connect gateway configuation entries from the server, we're not passing in the intended partition. This means we're using the server's own partition to submit the configuration entries and this may not match. Note this requires the Nomad server's token has permission to that partition.

Also, move the config entry write after we check Sentinel policies. This allows us to return early if we hit a Sentinel error without making Consul RPCs first.

Ref: https://hashicorp.atlassian.net/browse/NET-9529

When we write Connect gateway configuation entries from the server, we're not
passing in the intended partition. This means we're using the server's own
partition to submit the configuration entries and this may not match. Note this
requires the Nomad server's token has permission to that partition.

Also, move the config entry write after we check Sentinel policies. This allows
us to return early if we hit a Sentinel error without making Consul RPCs first.
@tgross tgross force-pushed the consul-partition-for-gateway-config-entries branch from d8f9ded to c03dd9b Compare May 23, 2024 17:55
@tgross tgross added the backport/ent/1.8.x+ent Changes are backported to 1.8.x+ent label May 23, 2024
@tgross tgross marked this pull request as ready for review May 23, 2024 18:15
Copy link
Contributor

@pkazmierczak pkazmierczak left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

@tgross tgross added this to the 1.8.1 milestone May 28, 2024
@tgross tgross merged commit de38ff4 into main May 29, 2024
22 checks passed
@tgross tgross deleted the consul-partition-for-gateway-config-entries branch May 29, 2024 20:31
@tgross tgross added the backport/1.8.x backport to 1.8.x release line label May 29, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backport/ent/1.7.x+ent Changes are backported to 1.7.x+ent backport/ent/1.8.x+ent Changes are backported to 1.8.x+ent backport/1.8.x backport to 1.8.x release line theme/consul theme/enterprise Issues related to Enterprise features type/bug
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants