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.7.x] #12957

Merged

Conversation

cipherboy
Copy link
Contributor

@cipherboy cipherboy commented Oct 28, 2021

Backport of #12934 and #12952 to 1.7.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 and a go mod vendor (for 1.7.x).


Note, per discussion between myself, Jeff Mitchell, Scott Miller, and Rachel Culpepper, we've decided updating from v0.5.16 to v0.6.8 (in g-k-w) to be fairly safe.

I've tested this locally with the KeyVault HSM and it functions as expected with the updated g-k-w.

cipherboy and others added 3 commits October 28, 2021 15:53
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 19:53 Inactive
@vercel vercel bot temporarily deployed to Preview – vault October 28, 2021 19:53 Inactive
@cipherboy
Copy link
Contributor Author

Thanks Scott!

@cipherboy cipherboy merged commit fe735a9 into hashicorp:release/1.7.x Oct 29, 2021
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