You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
sec(iac): secretsmanager:ListSecrets in SecretsManager block is non-functional (must use Resource="*") #1267
The SecretsManager block in terraform/environments/aws/ci-cd-permissions/policy_data.tf includes secretsmanager:ListSecrets scoped to Resource = "arn:aws:secretsmanager:*:*:secret:cudly-*":
Per the AWS Service Authorization Reference for Secrets Manager, secretsmanager:ListSecrets does NOT support resource-level permissions — it only works with Resource = "*". When granted on a specific ARN, IAM will never match the request (which is an account-level call with no resource target), so the permission is effectively a no-op.
Impact
No security regression: the permission doesn't accidentally grant anything
However, the ListSecrets entry in the SecretsManager block is dead code that misleads readers into thinking the deploy role can enumerate secrets
Resolution options
Remove secretsmanager:ListSecrets from the SecretsManager block — if Terraform deploy never actually calls ListSecrets (it uses DescribeSecret for all known-ARN lookups). This would be the cleanest outcome.
Verified resolved at 3c0f8ac: secretsmanager:ListSecrets is gone from the ARN-scoped SecretsManager statement, taking resolution option 1; an in-place comment records that the action has no resource type and that Terraform deploy uses DescribeSecret for all known-ARN lookups. Evidence: terraform/environments/aws/ci-cd-permissions/policy_data.tf:337 (802b4b1, PR #1699). Residual axes checked: grepped all of terraform/ for ListSecrets - the only remaining occurrence is the explanatory comment, so no second wildcard statement re-adds the grant; ListSecretVersionIds and UpdateSecretVersionStage remain correctly scoped to cudly-* ARNs. Closing as completed; reopen if the behaviour recurs.
Activity
cristim commentedon Sep 2, 2026
Verified resolved at 3c0f8ac: secretsmanager:ListSecrets is gone from the ARN-scoped SecretsManager statement, taking resolution option 1; an in-place comment records that the action has no resource type and that Terraform deploy uses DescribeSecret for all known-ARN lookups. Evidence: terraform/environments/aws/ci-cd-permissions/policy_data.tf:337 (802b4b1, PR #1699). Residual axes checked: grepped all of terraform/ for ListSecrets - the only remaining occurrence is the explanatory comment, so no second wildcard statement re-adds the grant; ListSecretVersionIds and UpdateSecretVersionStage remain correctly scoped to cudly-* ARNs. Closing as completed; reopen if the behaviour recurs.