-
Notifications
You must be signed in to change notification settings - Fork 4k
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(kms): add sign and verify related grant methods #32681
Conversation
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.
The pull request linter has failed. See the aws-cdk-automation comment below for failure reasons. If you believe this pull request should receive an exemption, please comment and provide a justification.
A comment requesting an exemption should contain the text Exemption Request
. Additionally, if clarification is needed add Clarification Request
to a comment.
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #32681 +/- ##
==========================================
- Coverage 66.96% 66.91% -0.06%
==========================================
Files 329 329
Lines 18667 18684 +17
Branches 3260 3260
==========================================
+ Hits 12501 12503 +2
- Misses 5839 5854 +15
Partials 327 327
Flags with carried forward coverage won't be shown. Click here to find out more.
|
✅ Updated pull request passes all PRLinter validations. Dismissing previous PRLinter review.
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.
Looks good to me! Thanks 👍
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.
LGTM! Thank you for your contribution.
Thank you for contributing! Your pull request will be updated from main and then merged automatically (do not update manually, and be sure to allow changes to be pushed to your fork). |
This pull request has been removed from the queue for the following reason: The pull request can't be updated You should look at the reason for the failure and decide if the pull request needs to be fixed or if you want to requeue it. If you want to requeue this pull request, you need to post a comment with the text: |
Thank you for contributing! Your pull request will be updated from main and then merged automatically (do not update manually, and be sure to allow changes to be pushed to your fork). |
e3af838
to
aa66fe0
Compare
Pull request has been modified.
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.
The pull request linter has failed. See the aws-cdk-automation comment below for failure reasons. If you believe this pull request should receive an exemption, please comment and provide a justification.
A comment requesting an exemption should contain the text Exemption Request
. Additionally, if clarification is needed add Clarification Request
to a comment.
aa66fe0
to
0ff6f6a
Compare
Thank you @samson-keung, there seemed to be some issue rebasing automatically so I've just done it manually |
✅ Updated pull request passes all PRLinter validations. Dismissing previous PRLinter review.
@clementallen I checked the logs. Looks like the PR had to be rebased again to get the year change in the license files. I have updated the PR branch so it should be good to go. I will check through out the day to make sure this gets merged 👍 |
Thank you for contributing! Your pull request will be updated from main and then merged automatically (do not update manually, and be sure to allow changes to be pushed to your fork). |
Pull request has been modified.
Codecov is complaining about missing coverage on the Codecov also complains about missing coverage for the |
Thanks for checking in on this again @samson-keung, I've added tests for all three methods against the |
@samson-keung I took a further look into the unit test reporting and it still doesn't make sense. Codecov reports missing lines in the There doesn't see much point adding tests to for the grant methods against |
AWS CodeBuild CI Report
Powered by github-codebuild-logs, available on the AWS Serverless Application Repository |
Thank you for contributing! Your pull request will be updated from main and then merged automatically (do not update manually, and be sure to allow changes to be pushed to your fork). |
Thank you for contributing! Your pull request will be updated from main and then merged automatically (do not update manually, and be sure to allow changes to be pushed to your fork). |
Comments on closed issues and PRs are hard for our team to see. |
@clementallen One of the Codecov jobs were not intended to run in this PR. The configuration has been updated, hence, the PR is now merged. Thanks for waiting while I was resolving the issue. |
Issue
Closes #23185
Reason for this change
Adds
grant
methods for signing and verifying signatures with KMSDescription of changes
Three new
grant
methods have been added:grantSign()
: Adds'kms:Sign'
to the principalgrantVerify()
: Adds'kms:Verify'
to the principalgrantSignVerify()
: Adds['kms:Sign', 'kms:Verify']
to the principalDescription of how you validated changes
grant
methodsgrantSignVerify()
Checklist
By submitting this pull request, I confirm that my contribution is made under the terms of the Apache-2.0 license