GoogleCloudPlatform / GoogleCloudPlatform/deploymentmanager-samples

Unable to provide conditional access to a service account on a project using DM

Open
#684 1 comment 0 reactions 0 assignees View on GitHub
Dominant language
Jinja
Stars
951
Forks
700
PR merge metrics
No merged PRs in 30d

Description

I have the following yaml :

```
resources:
- name: bind-iam-policy-secret-accessor
type: gcp-types/cloudresourcemanager-v1:virtual.projects.iamMemberBinding
properties:
resource: myprojectA
role: roles/secretmanager.secretAccessor
member: "serviceAccount:sandeep@myproject.iam.gserviceaccount.com"
```

The above works out but the one below with a conditional access fails :

```
resources:
- name: bind-iam-policy-secret-accessor
type: gcp-types/cloudresourcemanager-v1:virtual.projects.iamMemberBinding
properties:
resource: myprojectA
role: roles/secretmanager.secretAccessor
member: "serviceAccount:sandeep@myproject.iam.gserviceaccount.com"
condition: "resource.name.extract('/secrets/{name}').startsWith('sandeep-')"
```

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.