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
feat: The COS KMS auth policy created by the DA is now scoped to the exact KMS key. NOTE: When upgrading from an old version, the auth policy will be re-created, however it will be non disruptive as it will create the new policy before removing the old one (#206)
description="Allow the COS instance with GUID ${local.cos_instance_guid} reader access to the kms_service instance GUID ${local.existing_kms_guid}"
373
+
description="Allow the COS instance ${local.cos_instance_guid} to read the ${local.kms_service} key ${local.cos_kms_key_id} from the instance ${local.existing_kms_guid}"
374
+
resource_attributes {
375
+
name="serviceName"
376
+
operator="stringEquals"
377
+
value=local.kms_service
378
+
}
379
+
resource_attributes {
380
+
name="accountId"
381
+
operator="stringEquals"
382
+
value=local.kms_account_id
383
+
}
384
+
resource_attributes {
385
+
name="serviceInstance"
386
+
operator="stringEquals"
387
+
value=local.existing_kms_guid
388
+
}
389
+
resource_attributes {
390
+
name="resourceType"
391
+
operator="stringEquals"
392
+
value="key"
393
+
}
394
+
resource_attributes {
395
+
name="resource"
396
+
operator="stringEquals"
397
+
value=local.cos_kms_key_id
398
+
}
399
+
# Scope of policy now includes the key, so ensure to create new policy before
400
+
# destroying old one to prevent any disruption to every day services.
401
+
lifecycle {
402
+
create_before_destroy=true
403
+
}
372
404
}
373
405
374
406
module"cos_instance" {
@@ -377,7 +409,7 @@ module "cos_instance" {
377
409
}
378
410
count=var.existing_cos_instance_crn==null&&length(coalesce(local.buckets_config, [])) !=0?1:0# no need to call COS module if consumer is using existing COS instance
0 commit comments