-
Bug
-
Resolution: Done
-
Blocker
-
1.2
-
None
-
1
-
False
-
-
False
-
-
Bug Fix
-
Done
-
-
-
RHDH F&UI plugins 3256
There seems to be an issue with accessing ManagedClusters using a newly created ServiceAccount. Despite correctly configuring a ClusterRole with the necessary permissions and binding it to the ServiceAccount using a ClusterRoleBinding, attempts to access ManagedClusters result in a "forbidden" error.
Steps to Reproduce:
Apply the ClusterRole YAML to create the ClusterRole with permissions to access ManagedClusters.
Apply the ClusterRoleBinding YAML to bind the ClusterRole to the ServiceAccount
Verify that the ClusterRoleBinding is correctly applied and associated with the desired ServiceAccount and ClusterRole.
Configurations
- package: ./dynamic-plugins/dist/janus-idp-backstage-plugin-ocm-backend-dynamic disabled: false pluginConfig: catalog: providers: ocm: default: name: testCluster # Can be any arbitrary name supported by kubernetes url: ${OCM_CLUSTER_URL} serviceAccountToken: ${OCM_CLUSTER_TOKEN} skipTLSVerify: true owner: janus-authorsUSTER_TOKEN} skipTLSVerify: true owner: janus-authors
Server error:
2024-05-02T17:11:50.938Z rootHttpRouter info ::ffff:172.17.10.58 - - [02/May/2024:17:11:50 +0000] "GET /api/catalog/entities?filter=kind%3DResource%2Cspec.type%3Dkubernetes-cluster HTTP/1.1" 304 - "-" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/124.0.0.0 Safari/537.36" type=incomingRequest 3602024-05-02T17:11:51.131Z backstage error Request failed with status 404 404 page not found 361type=errorHandler statusCode=404 name=404 page not found 362stack=404 page not found 363: 404 page not found
Build details:
OC version: 4.14.20_1558 on IBM Cloud
Installation method: Helm Chart
RHDH Version: 1.2.0
Backstage Version: 1.25.2