Skip to content

Conversation

Brianwithay21
Copy link
Member

For HOOK types, credentials are encrypted service side before invoking the hook. Credentials are decrypted while setting up the runtime before calling the authored handler code.

Sometimes decryption of the credentials fails when customer is missing permissions for decrypting the credentials. This usually happens when customer specifies their own hook execution role.

To avoid this being marked as an InternalFailure service side, having the Hook wrapper return an AccessDenied error code instead back to CFN whenever decryption of credentials fails

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

@Brianwithay21 Brianwithay21 requested review from JeremySB, akshayrane, a user and wkexiang March 22, 2022 22:08
@Brianwithay21 Brianwithay21 marked this pull request as ready for review March 22, 2022 22:41
@Brianwithay21 Brianwithay21 merged commit 78d1071 into aws-cloudformation:master Mar 23, 2022
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