Skip to content

Backport of Fix bug with Vault CA provider into release/1.16.x#18161

Merged
hc-github-team-consul-core merged 3 commits into
release/1.16.xfrom
backport/kisunji/NET-4766-vault-ca-bug-fix/precisely-trusted-bat
Jul 17, 2023
Merged

Backport of Fix bug with Vault CA provider into release/1.16.x#18161
hc-github-team-consul-core merged 3 commits into
release/1.16.xfrom
backport/kisunji/NET-4766-vault-ca-bug-fix/precisely-trusted-bat

Conversation

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

Backport

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

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


Background for reviewers

Vault can be used as a CA for Consul service mesh (docs). Typically an organization's root trust CA is stored as a root mount (configured by RootPKIPath) in Vault. Consul uses an intermediate CA (stored in IntermediatePKIPath) signed by the root to issue leaf certificates to agents and services in the mesh.

Description

Updating RootPKIPath but not IntermediatePKIPath would not update leaf signing certs with the new root. Unsure if this happens in practice but manual testing showed it is a bug that would break mesh and agent connections once the old root is pruned.

Testing & Reproduction steps

Added a unit test case updating RootPKIPath and not IntermediatePKIPath

Manually tested with a local cluster to ensure updating RootPKIPath did not break mesh communication.

PR Checklist

  • updated test coverage
  • external facing docs updated
  • appropriate backport labels added
  • not a security concern

Overview of commits

@hc-github-team-consul-core hc-github-team-consul-core force-pushed the backport/kisunji/NET-4766-vault-ca-bug-fix/precisely-trusted-bat branch 2 times, most recently from 008d297 to cb6612a Compare July 17, 2023 18:25
@hc-github-team-consul-core hc-github-team-consul-core force-pushed the backport/kisunji/NET-4766-vault-ca-bug-fix/precisely-trusted-bat branch from 8b0e9d8 to f4a1a78 Compare July 17, 2023 18:25
@hc-github-team-consul-core hc-github-team-consul-core enabled auto-merge (squash) July 17, 2023 18:25
Copy link
Copy Markdown
Collaborator

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

@github-actions github-actions Bot added the theme/connect Anything related to Consul Connect, Service Mesh, Side Car Proxies label Jul 17, 2023
@hc-github-team-consul-core hc-github-team-consul-core merged commit 96bbb78 into release/1.16.x Jul 17, 2023
@hc-github-team-consul-core hc-github-team-consul-core deleted the backport/kisunji/NET-4766-vault-ca-bug-fix/precisely-trusted-bat branch July 17, 2023 18:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

theme/connect Anything related to Consul Connect, Service Mesh, Side Car Proxies

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants