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

Rotate cloud secrets provider #11554

Merged
merged 1 commit into from Dec 15, 2022
Merged

Rotate cloud secrets provider #11554

merged 1 commit into from Dec 15, 2022

Conversation

Frassle
Copy link
Member

@Frassle Frassle commented Dec 6, 2022

Description

Little thing I noticed while looking at secrets. We support the idea of rotating the passphrase secret provider (that is changing the key and assigning a new passphrase). Turns out this makes sense for the cloud secret provider as well where we generate a new symmetric key.

Checklist

  • I have added tests that prove my fix is effective or that my feature works
  • I have run make changelog and committed the changelog/pending/<file> documenting my change
  • Yes, there are changes in this PR that warrants bumping the Pulumi Service API version

@@ -190,14 +190,15 @@ func createSecretsManager(
}

if secretsProvider == passphrase.Type {
if _, pharseErr := filestate.NewPassphraseSecretsManager(stack.Ref().Name(), configFile,
rotatePassphraseSecretsProvider); pharseErr != nil {
if _, pharseErr := filestate.NewPassphraseSecretsManager(stack.Ref().Name(),
Copy link
Contributor

Choose a reason for hiding this comment

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

Did you mean phraseErr here?

Copy link
Member Author

Choose a reason for hiding this comment

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

Hah I mean I didn't change that text, but yes I'm sure that's what the original author intended. I'll fix it up.

Copy link
Contributor

@Zaid-Ajaj Zaid-Ajaj left a comment

Choose a reason for hiding this comment

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

LGTM, minor comment about a typo

@pulumi-bot
Copy link
Contributor

Changelog

[uncommitted] (2022-12-15)

Features

  • [cli] Allow rotating the encrpytion key for cloud secrets.
    #11554

@Frassle
Copy link
Member Author

Frassle commented Dec 15, 2022

bors merge

@bors
Copy link
Contributor

bors bot commented Dec 15, 2022

Build succeeded:

@bors bors bot merged commit 40f9287 into master Dec 15, 2022
@bors bors bot deleted the fraser/rotateCloudSecrets branch December 15, 2022 23:39
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