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

Relax validation for expose.paths config #10394

Merged
merged 3 commits into from Jun 14, 2021
Merged

Conversation

freddygv
Copy link
Contributor

Previously we would return an error if duplicate paths were specified.
This could lead to problems in cases where a user has the same path,
say /healthz, on two different ports.

This validation was added to signal a potential misconfiguration.
Instead we will only check for duplicate listener ports, since that is
what would lead to ambiguity issues when generating xDS config.

In the future we could look into using a single listener and creating
distinct filter chains for each path/port.

Previously we would return an error if duplicate paths were specified.
This could lead to problems in cases where a user has the same path, say
/healthz, on two different ports.

This validation was added to signal a potential misconfiguration.
Instead we will only check for duplicate listener ports, since that is
what would lead to ambiguity issues when generating xDS config.

In the future we could look into using a single listener and creating
distinct filter chains for each path/port.
@freddygv freddygv requested a review from a team June 14, 2021 19:33
@vercel vercel bot temporarily deployed to Preview – consul June 14, 2021 19:39 Inactive
@vercel vercel bot temporarily deployed to Preview – consul-ui-staging June 14, 2021 19:39 Inactive
@vercel vercel bot temporarily deployed to Preview – consul-ui-staging June 14, 2021 19:43 Inactive
@vercel vercel bot temporarily deployed to Preview – consul June 14, 2021 19:43 Inactive
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 added this to the 1.10.0 milestone Jun 14, 2021
@freddygv freddygv merged commit 33bd9b5 into master Jun 14, 2021
@freddygv freddygv deleted the relax-expose-validation branch June 14, 2021 20:04
@hc-github-team-consul-core
Copy link
Collaborator

🍒 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/385952.

@hc-github-team-consul-core
Copy link
Collaborator

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

hc-github-team-consul-core pushed a commit that referenced this pull request Jun 14, 2021
Previously we would return an error if duplicate paths were specified.
This could lead to problems in cases where a user has the same path,
say /healthz, on two different ports.

This validation was added to signal a potential misconfiguration.
Instead we will only check for duplicate listener ports, since that is
what would lead to ambiguity issues when generating xDS config.

In the future we could look into using a single listener and creating
distinct filter chains for each path/port.
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