Skip to content

Commit c5c2d29

Browse files
authored
fix: add missing Authorization Delegator role to s2s auth policy (#746)
1 parent e3f076b commit c5c2d29

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

.secrets.baseline

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
"files": "go.sum|^.secrets.baseline$",
44
"lines": null
55
},
6-
"generated_at": "2025-10-04T04:36:16Z",
6+
"generated_at": "2025-10-05T04:36:16Z",
77
"plugins_used": [
88
{
99
"name": "AWSKeyDetector"

main.tf

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ resource "ibm_iam_authorization_policy" "kms_policy" {
7070
count = local.create_kms_auth_policy
7171
source_service_name = "databases-for-postgresql"
7272
source_resource_group_id = var.resource_group_id
73-
roles = ["Reader"]
73+
roles = ["Reader", "Authorization Delegator"] # Authorization Delegator role required for backup encryption key
7474
description = "Allow all PostgreSQL instances in the resource group ${var.resource_group_id} to read the ${local.kms_service} key ${local.kms_key_id} from the instance GUID ${local.kms_key_instance_guid}"
7575
resource_attributes {
7676
name = "serviceName"
@@ -116,7 +116,7 @@ resource "ibm_iam_authorization_policy" "backup_kms_policy" {
116116
count = local.create_backup_kms_auth_policy
117117
source_service_name = "databases-for-postgresql"
118118
source_resource_group_id = var.resource_group_id
119-
roles = ["Reader"]
119+
roles = ["Reader", "Authorization Delegator"] # Authorization Delegator role required for backup encryption key
120120
description = "Allow all PostgreSQL instances in the Resource Group ${var.resource_group_id} to read the ${local.backup_kms_service} key ${local.backup_kms_key_id} from the instance GUID ${local.backup_kms_key_instance_guid}"
121121
resource_attributes {
122122
name = "serviceName"

solutions/fully-configurable/main.tf

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -120,7 +120,7 @@ resource "ibm_iam_authorization_policy" "kms_policy" {
120120
source_service_account = local.account_id
121121
source_service_name = "databases-for-postgresql"
122122
source_resource_group_id = module.resource_group.resource_group_id
123-
roles = ["Reader"]
123+
roles = ["Reader", "Authorization Delegator"] # Authorization Delegator role required for backup encryption key
124124
description = "Allow all PostgreSQL instances in the resource group ${module.resource_group.resource_group_id} in the account ${local.account_id} to read the ${local.kms_service} key ${local.kms_key_id} from the instance GUID ${local.kms_instance_guid}"
125125
resource_attributes {
126126
name = "serviceName"
@@ -168,7 +168,7 @@ resource "ibm_iam_authorization_policy" "backup_kms_policy" {
168168
source_service_account = local.account_id
169169
source_service_name = "databases-for-postgresql"
170170
source_resource_group_id = module.resource_group.resource_group_id
171-
roles = ["Reader"]
171+
roles = ["Reader", "Authorization Delegator"] # Authorization Delegator role required for backup encryption key
172172
description = "Allow all PostgreSQL instances in the resource group ${module.resource_group.resource_group_id} in the account ${local.account_id} to read the ${local.backup_kms_service} key ${local.backup_kms_key_id} from the instance GUID ${local.backup_kms_instance_guid}"
173173
resource_attributes {
174174
name = "serviceName"

0 commit comments

Comments
 (0)