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

Disallow * as service-defaults name #10069

Merged
merged 2 commits into from
Apr 19, 2021
Merged

Disallow * as service-defaults name #10069

merged 2 commits into from
Apr 19, 2021

Conversation

freddygv
Copy link
Contributor

This PR disallows wildcards as the name for a service-defaults config entry. Using wildcards as service names clashes with how they're used by intentions.

Note that the wildcard specifier is already disallowed as the destination name of connect proxies.

@freddygv freddygv requested a review from a team April 19, 2021 18:57
@vercel vercel bot temporarily deployed to Preview – consul April 19, 2021 19:01 Inactive
@vercel vercel bot temporarily deployed to Preview – consul-ui-staging April 19, 2021 19:01 Inactive
@rboyer
Copy link
Member

rboyer commented Apr 19, 2021

Can someone that already has a service-defaults/* config entry persisted still delete it after this change?

@freddygv
Copy link
Contributor Author

@rboyer Yep, just tried that out in a single server setup. Delete is allowed and re-writing it is disallowed.

Copy link
Member

@rboyer rboyer left a comment

Choose a reason for hiding this comment

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

LGTM

@freddygv freddygv merged commit f265dd6 into master Apr 19, 2021
@freddygv freddygv deleted the disallow-wc branch April 19, 2021 20:23
@hashicorp-ci
Copy link
Contributor

🍒 If backport labels were added before merging, cherry-picking will start automatically.

To retroactively trigger a backport after merging, add backport labels and re-run https://circleci.com/gh/hashicorp/consul/353831.

@hashicorp-ci
Copy link
Contributor

🍒✅ Cherry pick of commit f265dd6 onto release/1.10.x succeeded!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants