-
Notifications
You must be signed in to change notification settings - Fork 889
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
azkv: update Azure SDK to v0.10.0 #1092
Merged
Merged
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Tested this with an |
hiddeco
changed the title
azkv: update Azure SDK to v0.6.0
azkv: update Azure SDK to v0.9.0
Nov 21, 2022
This should be the last major change in their SDK with regard to changing method signatures and/or the way the client is constructed. I manually ran the integration test suite which passes without any issues. Signed-off-by: Hidde Beydals <hello@hidde.co>
The generated password from `az` does no longer appear to be a UUID, but returns a random generated string instead. Given there is also a UUID attached to Secret object that holds this value, it is better to be explict to guide users. In addition, the tenant is always a UUID (and not _any_ ID). Signed-off-by: Hidde Beydals <hello@hidde.co>
Besides some signature changes, really nothing special. ``` $ go test --tags integration ./... -v === RUN TestMasterKey_Encrypt --- PASS: TestMasterKey_Encrypt (1.34s) === RUN TestMasterKey_Decrypt --- PASS: TestMasterKey_Decrypt (0.68s) === RUN TestMasterKey_EncryptDecrypt_RoundTrip --- PASS: TestMasterKey_EncryptDecrypt_RoundTrip (0.40s) === RUN TestNewMasterKeyFromURL === RUN TestNewMasterKeyFromURL/URL === RUN TestNewMasterKeyFromURL/malformed_URL --- PASS: TestNewMasterKeyFromURL (0.00s) --- PASS: TestNewMasterKeyFromURL/URL (0.00s) --- PASS: TestNewMasterKeyFromURL/malformed_URL (0.00s) === RUN TestMasterKeysFromURLs === RUN TestMasterKeysFromURLs/single_URL === RUN TestMasterKeysFromURLs/multiple_URLs === RUN TestMasterKeysFromURLs/multiple_URLs,_one_malformed === RUN TestMasterKeysFromURLs/empty --- PASS: TestMasterKeysFromURLs (0.00s) --- PASS: TestMasterKeysFromURLs/single_URL (0.00s) --- PASS: TestMasterKeysFromURLs/multiple_URLs (0.00s) --- PASS: TestMasterKeysFromURLs/multiple_URLs,_one_malformed (0.00s) --- PASS: TestMasterKeysFromURLs/empty (0.00s) === RUN TestTokenCredential_ApplyToMasterKey --- PASS: TestTokenCredential_ApplyToMasterKey (0.00s) === RUN TestMasterKey_EncryptedDataKey --- PASS: TestMasterKey_EncryptedDataKey (0.00s) === RUN TestMasterKey_SetEncryptedDataKey --- PASS: TestMasterKey_SetEncryptedDataKey (0.00s) === RUN TestMasterKey_EncryptIfNeeded === RUN TestMasterKey_EncryptIfNeeded/not_encrypted [AZKV] time="2022-11-21T20:41:58Z" level=error msg="Encryption failed" key=test-key version=a2a690a4fcc04166b739da342a912c90 === RUN TestMasterKey_EncryptIfNeeded/already_encrypted --- PASS: TestMasterKey_EncryptIfNeeded (2.12s) --- PASS: TestMasterKey_EncryptIfNeeded/not_encrypted (2.12s) --- PASS: TestMasterKey_EncryptIfNeeded/already_encrypted (0.00s) === RUN TestMasterKey_NeedsRotation --- PASS: TestMasterKey_NeedsRotation (0.00s) === RUN TestMasterKey_ToString --- PASS: TestMasterKey_ToString (0.00s) === RUN TestMasterKey_ToMap --- PASS: TestMasterKey_ToMap (0.00s) === RUN TestMasterKey_getTokenCredential === RUN TestMasterKey_getTokenCredential/with_TokenCredential === RUN TestMasterKey_getTokenCredential/default --- PASS: TestMasterKey_getTokenCredential (0.00s) --- PASS: TestMasterKey_getTokenCredential/with_TokenCredential (0.00s) --- PASS: TestMasterKey_getTokenCredential/default (0.00s) PASS ok go.mozilla.org/sops/v3/azkv 4.551s ``` Signed-off-by: Hidde Beydals <hello@hidde.co>
Signed-off-by: Hidde Beydals <hidde@hhh.computer>
- github.com/Azure/azure-sdk-for-go/sdk/azcore v1.3.1 -> v1.6.1 - github.com/Azure/azure-sdk-for-go/sdk/azidentity v1.2.1 -> v1.3.0 - github.com/Azure/azure-sdk-for-go/sdk/keyvault/azkeys v0.9.0 -> v0.10.0 Signed-off-by: Hidde Beydals <hidde@hhh.computer>
hiddeco
changed the title
azkv: update Azure SDK to v0.9.0
azkv: update Azure SDK to v0.10.0
Jul 3, 2023
onedr0p
approved these changes
Jul 4, 2023
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This depends on #1091 being merged into
develop
first, as I took thego.mod
file state from there as a base.Other than that, this PR does nothing more than dealing with the method (signature) and client construction changes from the
v0.6.0
release of theazkeys
module. This should be the last major change in their SDK.I manually ran the integration test suite which passes without any issues: