-
Notifications
You must be signed in to change notification settings - Fork 11
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
Mutations/tony/decrypt encrypt strat #1043
Draft
texastony
wants to merge
8
commits into
mutations/mutations
Choose a base branch
from
mutations/tony/decrypt-encrypt-strat
base: mutations/mutations
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Draft
Changes from all commits
Commits
Show all changes
8 commits
Select commit
Hold shift + click to select a range
899d028
chore: add decrypt/encrypt to key store admin model
josecorella b7b335a
regenerate code with model updates
josecorella cfb9be1
work on initialize mutation
josecorella 76f5dea
finish initialize mutation
josecorella 7b4c39f
start decrypt/encrypt initialize test
josecorella d49000f
work on apply
josecorella 8576003
more progress on apply
josecorella 9a63fe5
finish refactoring apply mutation to handle both reencrypt and decryp…
josecorella File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
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
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
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
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -140,16 +140,14 @@ union SystemKey { | |
trustStorage: TrustStorage | ||
} | ||
|
||
// TODO-Mutations-FF : | ||
// For GA of Mutations, of Mutations, only ReEncrypt is allowed | ||
// structure AwsKmsDecryptEncrypt { | ||
// @documentation("The KMS Client (and Grant Tokens) used to Decrypt Branch Key Store Items.") | ||
// decrypt: aws.cryptography.keyStore#AwsKms | ||
// @documentation( | ||
// "The KMS Client (and Grant Tokens) used to Encrypt Branch Key Store Items | ||
// and to Generate new Cryptographic Material.") | ||
// encrypt: aws.cryptography.keyStore#AwsKms | ||
// } | ||
structure AwsKmsDecryptEncrypt { | ||
@documentation("The KMS Client (and Grant Tokens) used to Decrypt Branch Key Store Items.") | ||
decrypt: aws.cryptography.keyStore#AwsKms | ||
@documentation( | ||
"The KMS Client (and Grant Tokens) used to Encrypt Branch Key Store Items | ||
and to Generate new Cryptographic Material.") | ||
encrypt: aws.cryptography.keyStore#AwsKms | ||
} | ||
|
||
@documentation( | ||
"This configures which Key Management Operations will be used | ||
|
@@ -160,20 +158,18 @@ union KeyManagementStrategy { | |
executed with the provided Grant Tokens and KMS Client. | ||
This is one request to Key Management, as compared to two. | ||
But only one set of credentials can be used.") | ||
AwsKmsReEncrypt: aws.cryptography.keyStore#AwsKms | ||
// TODO-Mutations-FF : | ||
// For GA of Mutations, only ReEncrypt is allowed | ||
// @documentation( | ||
// "Key Store Items are authenticated and re-wrapped via a Decrypt and then Encrypt request. | ||
// This is two separate requests to Key Management, as compared to one. | ||
// But the Decrypt requests will use the Decrypt KMS Client (and Grant Tokens), | ||
// while the Encrypt requests will use the Encrypt KMS Client (and Grant Tokens). | ||
// This option affords for different credentials to be utilized, | ||
// based on the operation. | ||
// When Generating new material, | ||
// KMS GenerateDataKeyWithoutPlaintext will be executed against | ||
// the Encrypt option.") | ||
// AwsKmsDecryptEncrypt: AwsKmsDecryptEncrypt | ||
AwsKmsReEncrypt: aws.cryptography.keyStore#AwsKms, | ||
@documentation( | ||
"Key Store Items are authenticated and re-wrapped via a Decrypt and then Encrypt request. | ||
This is two separate requests to Key Management, as compared to one. | ||
But the Decrypt requests will use the Decrypt KMS Client (and Grant Tokens), | ||
while the Encrypt requests will use the Encrypt KMS Client (and Grant Tokens). | ||
This option affords for different credentials to be utilized, | ||
based on the operation. | ||
When Generating new material, | ||
KMS GenerateDataKeyWithoutPlaintext will be executed against | ||
the Encrypt option.") | ||
Comment on lines
+163
to
+171
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. We need to revise this documentation to detail how Verify works. |
||
AwsKmsDecryptEncrypt: AwsKmsDecryptEncrypt | ||
} | ||
|
||
|
||
|
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
Oops, something went wrong.
Oops, something went wrong.
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Praise: this is great.
Having a KMS Configuration means we can use it for VersionKey in the future.
You have raised the bar.