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

go-kms-wrapping update for Azure Key Vault's Managed HSM offering [backport 1.8.x] #12952

Merged

Conversation

cipherboy
Copy link
Contributor

Backport of #12934 to 1.8.x


The recently released update of go-kms-wrapping@v0.6.8 includes support for Azure KeyVault's Managed HSM offering. While the non-HSM-backed KeyVault offering was initially supported, support for the Managed HSM offering was broken because required customization wasn't exposed from the underlying library (namely, environment.KeyVaultDNSSuffix).

Respecting Azure SDK's AZURE_AD_RESOURCE variable (and mirroring it as a resource field in the KeyVault seal config struct) allows us to use this type of KeyVault.

Update to go.mod/go.sum was created via go get -u github.com/hashicorp/go-kms-wrapping@v0.6.8 followed by a go mod tidy.

cipherboy and others added 2 commits October 27, 2021 09:48
Co-authored-by: Rachel Culpepper <84159930+rculpepper@users.noreply.github.com>
Signed-off-by: Alexander Scheel <alex.scheel@hashicorp.com>
This introduces the "resource" config parameter and the
AZURE_AD_RESOURCE environment variable from the updated go-kms-wrapping
dependency.

Co-authored-by: Rachel Culpepper <84159930+rculpepper@users.noreply.github.com>
Signed-off-by: Alexander Scheel <alex.scheel@hashicorp.com>
Includes changes from @stevendpclark.

Co-authored-by: Rachel Culpepper <84159930+rculpepper@users.noreply.github.com>
Signed-off-by: Alexander Scheel <alex.scheel@hashicorp.com>
@vercel vercel bot temporarily deployed to Preview – vault-storybook October 28, 2021 15:53 Inactive
@vercel vercel bot temporarily deployed to Preview – vault October 28, 2021 15:55 Inactive
@cipherboy cipherboy changed the title go-kms-wrapping update for Azure Key Vault's Managed HSM offering go-kms-wrapping update for Azure Key Vault's Managed HSM offering [backport 1.8.5] Oct 28, 2021
@cipherboy cipherboy changed the title go-kms-wrapping update for Azure Key Vault's Managed HSM offering [backport 1.8.5] go-kms-wrapping update for Azure Key Vault's Managed HSM offering [backport 1.8.x] Oct 28, 2021
@cipherboy cipherboy merged commit 94f2ef9 into hashicorp:release/1.8.x Oct 28, 2021
cipherboy added a commit to cipherboy/vault that referenced this pull request Oct 28, 2021
In hashicorp#12952, merged as 94f2ef9, I
incorrectly ran `go get -u ...` instead of `go get ...`, causing
unnecessary updates to be pulled.

Revert go.mod, go.sum to their earlier versions.

Signed-off-by: Alexander Scheel <alex.scheel@hashicorp.com>
cipherboy added a commit that referenced this pull request Oct 28, 2021
* Revert to earlier go.mod, go.sum

In #12952, merged as 94f2ef9, I
incorrectly ran `go get -u ...` instead of `go get ...`, causing
unnecessary updates to be pulled.

Revert go.mod, go.sum to their earlier versions.

Signed-off-by: Alexander Scheel <alex.scheel@hashicorp.com>

* Update to hashicorp/go-kms-wrapping@v0.6.8 (fixed)

Signed-off-by: Alexander Scheel <alex.scheel@hashicorp.com>
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

2 participants