Opus finding
Misleading comment: env var section claims secrets are absent but other sensitive risk-config is committed
- infra/stack.py:26-35
- infra/stack.py:95-100
The docstring promises a clear separation (secrets via console), but the comment near the environment dict reveals that `update-function-configuration` is run post-deploy with a local file — meaning each `cdk deploy` will overwrite production secrets with whatever CDK thinks the environment should be, since CDK considers env vars desired-state. This is an operational footgun that the docstring obscures.
Recommendation
Either source secrets from Secrets Manager / SSM Parameter Store directly in the stack, or document explicitly that every `cdk deploy` requires re-running the env-restore step. Better: stop drift by managing secrets in IaC.