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 Optional automatic default issuer selection into release/1.11.x #17853

Conversation

hc-github-team-secure-vault-core
Copy link
Collaborator

Backport

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

WARNING automatic cherry-pick of commits failed. Commits will require human attention.

merge conflict error: POST https://api.github.com/repos/hashicorp/vault/merges: 409 Merge conflict []

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


When attempting compatibility against multiple versions of Vault, one major breaking change in Vault 1.11 was the multiple issuer's functionality and behavior changes around importing issuers (wherein /config/ca required a deletion first) and generation of new issuers (where both root/intermediate generation silently removed old keys!).

While we don't wish to remove key material any more, thus becoming more safe, the net was a breaking change across APIs: because the default issuer was not updated on these operations, the issuer would appear "lost" to any callers. Only when an operator updated the default issuer would non-multi-issuer aware applications see this new CA.

However, not everyone will want to automatically change the default issuer: for applications and operators aware of multi-issuer functionality, who wish to proactively prime new isseurs prior to enabling them (perhaps for distribution purposes), this change shouldn't be automatic and retroactive.

Thus, make this an opt-in change on /config/issuers.


This obviously needs:

  • Tests
  • Changelog
  • Docs

Like #17823, I'm curious to get people's thoughts.


Overview of commits

@hc-github-team-secure-vault-core hc-github-team-secure-vault-core force-pushed the backport/cipherboy-automatic-default-issuer/positively-shining-piranha branch from 19d2a91 to e250a9a Compare November 8, 2022 19:40
@hashicorp-cla
Copy link

hashicorp-cla commented Nov 8, 2022

CLA assistant check
All committers have signed the CLA.

@cipherboy cipherboy force-pushed the backport/cipherboy-automatic-default-issuer/positively-shining-piranha branch from ecd3e01 to 255c063 Compare November 9, 2022 15:46
@cipherboy cipherboy marked this pull request as ready for review November 9, 2022 15:46
@cipherboy cipherboy enabled auto-merge (squash) November 9, 2022 15:46
Co-authored-by: Alexander Scheel <alex.scheel@hashicorp.com>
Signed-off-by: Alexander Scheel <alex.scheel@hashicorp.com>
@cipherboy cipherboy force-pushed the backport/cipherboy-automatic-default-issuer/positively-shining-piranha branch from 255c063 to 64299fc Compare November 9, 2022 15:49
@cipherboy cipherboy merged commit 3a39f98 into release/1.11.x Nov 9, 2022
@cipherboy cipherboy deleted the backport/cipherboy-automatic-default-issuer/positively-shining-piranha branch December 1, 2022 14:56
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