cloud-native-toolkit / cloud-native-toolkit/planning

Bug in access-group-policy-create CLI command

Open
#85 1 comment 0 reactions 0 assignees View on GitHub
bug cli
Dominant language
No language data
Stars
4
Forks
1
PR merge metrics
No merged PRs in 30d

Description

This is a bug in the IBM Cloud CLI, not in the IGC CLI.

This IBM Cloud CLI command doesn't work correctly:

```
$ ibmcloud iam access-group-policy-create GROUP_NAME --roles Viewer --resource-group-name RESOURCE_GROUP_NAME --attributes "resourceType=resource-group,resource=RESOURCE_GROUP_NAME"
```

It creates a policy with Viewer role and these details:

```
All service in RESOURCE_GROUP_NAME resource group
resourceType string equals resource-group, resource string equals RESOURCE_GROUP_NAME
```

When created through the GUI, the resulting policy has these details:

```
RESOURCE_GROUP_NAME resource group
resourceType string equals resource-group, resource string equals RESOURCE_GROUP_NAME
```

Notice the lack of the **All service in** clause. The policy without the clause allows users to crate a new service instance in the resource group; the policy with the clause does not.

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.