[FEATURE] Add condition to restrict source account on Encryption Stack

Open
#74 0 comments 0 reactions 0 assignees View on GitHub

Maintainers usually reply within 1 day

Nobody has claimed this yet.

Assessment

Difficulty
4/5
Estimated time
3-5 days
Newbie friendliness
35/100
Issue type
Feature
Clarity
Needs clarification
Activity status
Stale
Tech stack
aws, typescript

Research direction

Start by locating the Encryption Stack in the CDK project and inspect the logs role policy shown in the issue. Determine how the policy can restrict its source account, then verify the synthesized CDK output shows the intended least-privilege condition.

Written by the indexing model from the issue text.

Description

enhancement
Describe the feature

When building the Encryption Stack, there is an overly permissive role for the logs:

{
"Action": [
"kms:Decrypt",
"kms:Encrypt",
"kms:GenerateDataKey*",
"kms:ReEncrypt*"
],
"Effect": "Allow",
"Principal": {
"Service": "logs.eu-west-1.amazonaws.com"
},
"Resource": "*"
}

Use Case

Detail for security least priviledge.

Proposed Solution

No response

Other Information

No response

Acknowledgements
  • I may be able to implement this feature request
  • This feature might incur a breaking change
Environment details (OS name and version, etc.)

CDK

Dominant language
TypeScript
Stars
33
Forks
9
Avg merge
14h 32m
Merged PRs (30d)
25

Getting set up

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from cdklabs/cdk-cicd-wrapper

All issues in cdklabs/cdk-cicd-wrapper

Similar issues

More TypeScript issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.