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

feat(BKS & BKSA): Smithy Model for HV-2 #1350

Merged
merged 25 commits into from
Mar 25, 2025

Conversation

texastony
Copy link
Contributor

@texastony texastony commented Mar 23, 2025

Issue #, if available:

Smithy Model for HV-2

Description of changes:

Smithy (link to only Smithy Changes):

  • new KeyManageStrat AwsKmsSimple that will, eventually, support everything; we need this for customers to have an "idempotent" code path that works for HV-1 or HV-2; neither of the current strategies "always" work for HV-1 & HV-2
  • Various documentation fix ups

Dafny/Behavior changes (link to only Dafny Changes)

These changes prevent the execution of behaviors that have not been implemented yet;
as #1349 and #1342 land, some of these behaviors will become enabled.

  • on VersionKey, if an HV-2 is encountered, fail
  • on ApplyMutation, if an HV-2 is encountered, fail
  • on BKSA CreateKey, if HV-2 is requested, fail
  • on BKSA Initialize Mutation, if TerminalHV is 2, fail
  • on BKSA Initialize Mutation, if KeyManageStrat is AwsKmsSimple, fail
  • on BKSA Apply Mutation, if KeyManageStrat is AwsKmsSimple, fail

Dafny proof changes (link to only Dafny Changes)

  • refactored KmsUtils.dfy#keyManagerStrat to consolidate Modify expressions
  • ^ let me quickly wire up the new AwsKmsSimple
  • AND reject it for various places

Squash/merge commit message, if applicable:

feat(BKS & BKSA): Smithy Model for HV-2

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.

@texastony texastony force-pushed the hv-2/smithy-model-fixes branch from 887f4ef to dc4c03f Compare March 25, 2025 00:26
@texastony texastony changed the base branch from hv-2/smithy-model to hv-2/hv-2 March 25, 2025 00:42
@texastony texastony marked this pull request as ready for review March 25, 2025 00:54
@texastony texastony requested a review from a team as a code owner March 25, 2025 00:54
Copy link

@texastony and @imabhichow, I noticed you are updating the smithy model files.
Does this update need new or updated user documentation?
Are you adding constraints inside list, map or union? Do you know about this issue: smithy-lang/smithy-dafny#491?

Copy link

@texastony and @texastony, I noticed you are updating the smithy model files.
Does this update need new or updated user documentation?
Are you adding constraints inside list, map or union? Do you know about this issue: smithy-lang/smithy-dafny#491?

2 similar comments
Copy link

@texastony and @texastony, I noticed you are updating the smithy model files.
Does this update need new or updated user documentation?
Are you adding constraints inside list, map or union? Do you know about this issue: smithy-lang/smithy-dafny#491?

Copy link

@texastony and @texastony, I noticed you are updating the smithy model files.
Does this update need new or updated user documentation?
Are you adding constraints inside list, map or union? Do you know about this issue: smithy-lang/smithy-dafny#491?

Copy link

@texastony and @imabhichow, I noticed you are updating the smithy model files.
Does this update need new or updated user documentation?
Are you adding constraints inside list, map or union? Do you know about this issue: smithy-lang/smithy-dafny#491?

@texastony texastony changed the title fix(BKS): revise KeyMangStrat for HV-2 as well as some docs feat(BKS & BKSA): Smithy Model for HV-2 Mar 25, 2025
@@ -56,8 +57,7 @@ service KeyStoreAdmin {
aws.cryptography.keyStore#KeyStorageException,
aws.cryptography.keyStore#VersionRaceException,
aws.cryptography.keyStore#BranchKeyCiphertextException,
aws.cryptography.keyStore#AlreadyExistsConditionFailed,
aws.cryptography.keyStore#NoLongerExistsConditionFailed,
Copy link
Member

Choose a reason for hiding this comment

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

Is AlreadyExistsConditionFailed and NoLongerExistsConditionFailed not in use anywhere?

Copy link
Member

Choose a reason for hiding this comment

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

My code search in hv-2/hv-2 tells me: "No its not used"

Copy link

@texastony and @rishav-karanjit, I noticed you are updating the smithy model files.
Does this update need new or updated user documentation?
Are you adding constraints inside list, map or union? Do you know about this issue: smithy-lang/smithy-dafny#491?

@rishav-karanjit rishav-karanjit merged commit 23bf9cd into hv-2/hv-2 Mar 25, 2025
137 checks passed
@rishav-karanjit rishav-karanjit deleted the hv-2/smithy-model-fixes branch March 25, 2025 23:06
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.

3 participants