aws-samples / aws-samples/sample-autonomous-cloud-coding-agents

(infra-cdk): Compliance mode CDK preset for regulated deployments

未关闭
#413 0 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看
enhancement governance infra-cdk security
主要语言
TypeScript
星标
143
派生
46
平均合并
3 天 10 小时
30 天内合并 PR
24

描述

## Component

CDK / infrastructure

## Describe the feature

Add a single stack-level **`complianceMode`** (or similarly named) prop that enables a documented bundle of stricter defaults for regulated environments: VPC-only egress posture, DNS firewall enforcement path, immutable audit export hooks, org budget alarms, and conservative Blueprint defaults—without operators hand-toggling a dozen props.

## Use case

Regulated operators need a **governed internal deployment** that satisfies security review quickly. Without a controlled internal path, teams adopt unsanctioned desktop agents (**shadow IT**). Default-deny egress and VPC-resident deployment are common requirements. Piecemeal configuration is error-prone; reviewers want a named preset with an attached threat model and delta from standard deploy.

## Proposed solution

1. `complianceMode: boolean` on root stack props (default `false`).
2. When `true`, wire documented overrides: e.g. DNS firewall not observation-only, enable **Immutable audit export** scaffolding, stricter WAF defaults, require private subnets documentation check.
3. Publish `docs/guides/COMPLIANCE_DEPLOYMENT.md` (source; sync Starlight) listing what the preset changes and what remains operator responsibility.
4. `cdk diff` banner when mode enabled summarizing enforced controls.

## Other information

- Does not certify SOC2/PCI by itself; documents alignment with roadmap **Org and team budgets**, **Immutable audit export**, **Zero Trust control review**.
- Pairs with existing VPC deployment guide.

## Acknowledgements

- [ ] I may be able to implement this feature
- [ ] This might be a breaking change

## Acceptance criteria

- [ ] `complianceMode` prop exists and is covered by synth test.
- [ ] Compliance guide lists every prop side-effect.
- [ ] Standard deploy behavior unchanged when flag is false.
- [ ] cdk-nag / security suppressions documented where preset requires them.

贡献指南

打开贡献指南

调研方向

首先定位 root stack props、现有的 VPC 部署指南、synth 测试以及 cdk diff 的处理方式。在定义 compliance preset 及其已记录的副作用之前,先检查当前的部署控制和 Blueprint 默认值是如何接入的。prop、synth 覆盖、compliance 指南、false 时不变的行为以及所需的 suppression 文档满足验收标准后,即视为完成。

由索引模型根据 Issue 内容生成。

评估

技术栈
aws, typescript
领域
cloud, infrastructure, security
Issue 类型
功能
难度
5/5
预计耗时
一周以上
活跃度
冷清
描述清晰度
基本清楚
新手友好度
42/100

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。