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

Allow ARN to be provided for pipeline signing KMS key #1424

Open
wants to merge 5 commits into
base: main
Choose a base branch
from

Conversation

MathewBoyles
Copy link

@MathewBoyles MathewBoyles commented Dec 31, 2024

Alterative approach to #1422 to ensure backwards-compatibility with existing stacks.

Description

Our setup is not compatible with the current stack configuration. We have a KMS key in one AWS account which is shared across multiple accounts to sign and verify pipelines. This approach allows the user to specify an ARN of the KMS key so they may use a key cross-account or even cross-region. Existing behaviour is maintained as the Key ID may be provided using PipelineSigningKMSKeyId and the ARN is constructed using the current account and region. Key creation in the stack is also maintained.

CHANGELOG

  • Added PipelineSigningKMSKeyArn parameter to allow KMS key ARN to be provided.
  • Updated "HasPipelineSigningKMSKey" rule to enforce only one of key ID, ARN, or automatically generated key in stack.
  • Updated references to PipelineSigningKMSKeyId to instead use PipelineSigningKMSKeyArn if provided, and construct ARN only if one is not provided and PipelineSigningKMSKeyId is
  • Updated JSON object to YAML for readability

Co-authored-by: paul [email protected]

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.

1 participant