Skip to content

[SETU-2677] Add USM cluster-level RBAC role-binding scopes to CLI - #3376

Open
Varun PV (varunpv) wants to merge 3 commits into
mainfrom
vpv/SETU-2677-cluster-level-rbac-usm
Open

[SETU-2677] Add USM cluster-level RBAC role-binding scopes to CLI#3376
Varun PV (varunpv) wants to merge 3 commits into
mainfrom
vpv/SETU-2677-cluster-level-rbac-usm

[SETU-2677] update the roles names with correct display name

1f50024
Select commit
Loading
Failed to load commit list.
SonarQube-Confluent / SonarQube Code Analysis succeeded Jul 7, 2026 in 38s

Annotations

Check failure on line 183 in internal/iam/command_rbac_role_binding.go

See this annotation in the file changed.

@sonarqube-confluent sonarqube-confluent / SonarQube Code Analysis

Define a constant instead of duplicating this literal "current-environment" 4 times.

[S1192] String literals should not be duplicated
 See more on https://sonarqube.confluent.io/project/issues?id=cli&pullRequest=3376&issues=899f1e7b-9e02-4674-9223-d813d49e97f7&open=899f1e7b-9e02-4674-9223-d813d49e97f7

Check failure on line 30 in test/test-server/iam_handlers.go

See this annotation in the file changed.

@sonarqube-confluent sonarqube-confluent / SonarQube Code Analysis

Define a constant instead of duplicating this literal "u-11aaa" 8 times.

[S1192] String literals should not be duplicated
 See more on https://sonarqube.confluent.io/project/issues?id=cli&pullRequest=3376&issues=0f9a2194-dc9c-426a-ad63-06ab610baeff&open=0f9a2194-dc9c-426a-ad63-06ab610baeff

Check failure on line 189 in internal/iam/command_rbac_role_binding.go

See this annotation in the file changed.

@sonarqube-confluent sonarqube-confluent / SonarQube Code Analysis

Define a constant instead of duplicating this literal "usm-kafka-cluster" 4 times.

[S1192] String literals should not be duplicated
 See more on https://sonarqube.confluent.io/project/issues?id=cli&pullRequest=3376&issues=b5677d04-4ac7-4bb6-a76e-d3df9a622e3a&open=b5677d04-4ac7-4bb6-a76e-d3df9a622e3a

Check failure on line 184 in internal/iam/command_rbac_role_binding.go

See this annotation in the file changed.

@sonarqube-confluent sonarqube-confluent / SonarQube Code Analysis

Define a constant instead of duplicating this literal "cloud-cluster" 5 times.

[S1192] String literals should not be duplicated
 See more on https://sonarqube.confluent.io/project/issues?id=cli&pullRequest=3376&issues=cf194a7e-e437-4cc8-adac-a7903cb914ee&open=cf194a7e-e437-4cc8-adac-a7903cb914ee

Check failure on line 190 in internal/iam/command_rbac_role_binding.go

See this annotation in the file changed.

@sonarqube-confluent sonarqube-confluent / SonarQube Code Analysis

Define a constant instead of duplicating this literal "usm-connect-cluster" 4 times.

[S1192] String literals should not be duplicated
 See more on https://sonarqube.confluent.io/project/issues?id=cli&pullRequest=3376&issues=e1a42474-071f-4121-be29-4df5d03f3780&open=e1a42474-071f-4121-be29-4df5d03f3780

Check failure on line 574 in internal/iam/command_rbac_role_binding.go

See this annotation in the file changed.

@sonarqube-confluent sonarqube-confluent / SonarQube Code Analysis

Refactor this method to reduce its Cognitive Complexity from 40 to the 15 allowed.

[S3776] Cognitive Complexity of functions should not be too high
 See more on https://sonarqube.confluent.io/project/issues?id=cli&pullRequest=3376&issues=f291992f-a27f-4cad-a26e-abc59dfc06c2&open=f291992f-a27f-4cad-a26e-abc59dfc06c2