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

Backport of Fix nil-pointer panics from proxycfg package. into release/1.15.x #16279

Conversation

hc-github-team-consul-core
Copy link
Contributor

Backport

This PR is auto-generated from #16277 to be assessed for backporting due to the inclusion of the label backport/1.15.

The below text is copied from the body of the original PR.


Prior to this PR, servers / agents would panic and crash if an ingress or api gateway were configured to use a discovery chain that both:

  1. Referenced a peered service
  2. Had a mesh gateway mode of local

This could occur, because code for handling upstream watches was shared between both connect-proxy and the gateways. As a short-term fix, this PR ensures that the maps are always initialized for these gateway services.

To help prevent this, the PR also wraps the proxycfg execution and service registration calls with recover statements to ensure that future issues like this do not put the server into an unrecoverable state.

Closes #16238


Overview of commits

@hc-github-team-consul-core hc-github-team-consul-core force-pushed the backport/derekm/NET-2485/nil-pointer/barely-popular-mink branch 2 times, most recently from 84eb2ea to 560e22d Compare February 15, 2023 17:55
Copy link

Choose a reason for hiding this comment

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

Auto approved Consul Bot automated PR

@hc-github-team-consul-core hc-github-team-consul-core merged commit 9aa85df into release/1.15.x Feb 15, 2023
@hc-github-team-consul-core hc-github-team-consul-core deleted the backport/derekm/NET-2485/nil-pointer/barely-popular-mink branch February 15, 2023 18:17
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.

3 participants