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

Add fix for api-gateway when using system-wide trusted CAs for external servers #1743

Merged
merged 3 commits into from Nov 18, 2022

Conversation

andrewstucki
Copy link
Member

@andrewstucki andrewstucki commented Nov 18, 2022

Changes proposed in this PR:

This adds some logic that was forgotten around leveraging externalServers.useSystemRoots. Without it, attempting to use something like HCP as an external server without agents causes the gateway controller to fail validating the Consul server connection since it's using the wrong certificate authority.

How I've tested this PR:

Validated against HCP with the api-gateway changes in hashicorp/consul-api-gateway#459

Checklist:

  • Tests added
  • CHANGELOG entry added

    HashiCorp engineers only, community PRs should not add a changelog entry.
    Entries should use present tense (e.g. Add support for...)

@andrewstucki andrewstucki requested review from a team, curtbushko and wilkermichael and removed request for a team November 18, 2022 19:28
Copy link
Contributor

@curtbushko curtbushko left a comment

Choose a reason for hiding this comment

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

Looks good!

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

Successfully merging this pull request may close these issues.

None yet

3 participants