Skip to content

Commit 59d541f

Browse files
authored
fix: add missing Authorization Delegator role to s2s auth policy(#480)
1 parent 15d0f85 commit 59d541f

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:39:36Z",
6+
"generated_at": "2025-10-05T04:39:36Z",
77
"plugins_used": [
88
{
99
"name": "AWSKeyDetector"

main.tf

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ resource "ibm_iam_authorization_policy" "kms_policy" {
6565
count = local.create_kms_auth_policy
6666
source_service_name = "messages-for-rabbitmq"
6767
source_resource_group_id = var.resource_group_id
68-
roles = ["Reader"]
68+
roles = ["Reader", "Authorization Delegator"] # Authorization Delegator role required for backup encryption key
6969
description = "Allow all RabbitMQ 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}"
7070
resource_attributes {
7171
name = "serviceName"
@@ -110,7 +110,7 @@ resource "ibm_iam_authorization_policy" "backup_kms_policy" {
110110
count = local.create_backup_kms_auth_policy
111111
source_service_name = "messages-for-rabbitmq"
112112
source_resource_group_id = var.resource_group_id
113-
roles = ["Reader"]
113+
roles = ["Reader", "Authorization Delegator"] # Authorization Delegator role required for backup encryption key
114114
description = "Allow all RabbitMQ 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}"
115115
resource_attributes {
116116
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 = "messages-for-rabbitmq"
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 RabbitMQ 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 = "messages-for-rabbitmq"
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 RabbitMQ 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)