Skip to content

Commit

Permalink
remove jbid stuff
Browse files Browse the repository at this point in the history
  • Loading branch information
morga471 committed Mar 24, 2026
1 parent b2068fe commit 7ece04c
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 17 deletions.
25 changes: 25 additions & 0 deletions policies/sc-dbuser/.terraform.lock.hcl

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

18 changes: 1 addition & 17 deletions policies/sc-dbuser/policy.tf
Original file line number Diff line number Diff line change
Expand Up @@ -76,29 +76,13 @@ data "aws_iam_policy_document" "inline" {
]
}
statement {
sid = "AllowSecretsManagerReadByJBID"
sid = "AllowSecretsManagerRead"
effect = "Allow"
resources = ["*"]
actions = [
"secretsmanager:BatchGetSecretValue",
"secretsmanager:DescribeSecret",
"secretsmanager:GetSecretValue",
]
# Secret must be tagged to the same JBID as the caller.
condition {
test = "StringEquals"
variable = "secretsmanager:ResourceTag/jbid"
values = [
"$${aws:PrincipalTag/jbid}"
]
}
# Name tag pattern includes the caller identifier.
condition {
test = "StringLike"
variable = "secretsmanager:ResourceTag/Name"
values = [
"*$${aws:PrincipalTag/jbid}*"
]
}
}
}

0 comments on commit 7ece04c

Please sign in to comment.