Skip to content

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

Merged
andrewstucki merged 3 commits intomainfrom
as/system-ca-fix
Nov 18, 2022
Merged

Add fix for api-gateway when using system-wide trusted CAs for external servers#1743
andrewstucki merged 3 commits intomainfrom
as/system-ca-fix

Conversation

@andrewstucki
Copy link
Copy Markdown
Contributor

@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
Copy Markdown
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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants