-
Bug
-
Resolution: Done
-
Major
-
None
-
None
-
False
-
-
False
-
-
Bug Fix
-
-
-
RHDH Core Team 3256
Description of problem:
With RBAC and local builder settings enabled, the TechDocs do get generated but give 404 when trying to access them.
Deloitte also faced the same issue in their environment and they are using the Operator config.
Prerequisites (if any, like setup, operators/versions):
I tested it with Helm charts but will also try it in the Operator version and update this Jira once I have the results from the Operator config.
Steps to Reproduce
- Enable RBAC dynamic plugin
- Create a config map for the RBAC policy using the rbac-policy.yml configMap
- Create another config map using the rbac.yml configMap (this configMap references the rbac policy)
- Configure RBAC using the steps given in the RHDH documentation
- Use the yml files mentioned above for policy (rbac-policy.yml) and reference (rbac.yml)
- Add the following to the global config for enabling RBAC dynamic plugin:
global: dynamic: includes: - dynamic-plugins.default.yaml plugins: - disabled: false package: ./dynamic-plugins/dist/janus-idp-backstage-plugin-rbac
- Add GitHub authentication
- Upgrade the Helm release to use the new config with RBAC
- Login to Backstage using the GitHub auth
- Go to Catalog and click on Backstage Showcase entry
- Goto Docs tab
Actual results:
The TechDocs should be visible
Expected results:
Bring up Developer Tools to see the 404 error. The TechDocs never show up as shown in the attached TechDocs-404.mp4 clip.
Reproducibility (Always/Intermittent/Only Once):
I've only tried it once and then disabled RBAC to see if it works or not. It does work without any errors when RBAC is disabled. I'll try again to enable RBAC and comment here if the issue is still there.
Build Details:
Tested using Helm Chart config. The Chart version is provided in the attached Chart-version.png screenshot
Additional info (Such as Logs, Screenshots, etc):
If the RBAC is disabled then the TechDocs do show up without any errors.{}
The following attachments are added to this Jira:
- TechDocs-404.mp4: video recording showing the error. I tried to log off and sign back in case the error is due to some permission issue from backstage auth but got the same error result
- RHDH-TechDocs-error-404.png: screenshot showing the error
- RHDH-rbac-policies.png: screenshot showing the RBAC policies configMap
- RHDH-TechDocs-success.png: screenshot showing success in retrieving TechDocs when RBAC is disabled
- rbac-policy.yml: rbac policy configMap
- rbac-yml: rbac configMap that references the policy file
- main-config.yml: configMap for GitHub auth
- Chart-version.png: Chart version
- depends on
-
RHDHBUGS-1645 [janus-idp/backstage-plugins] RBAC: Could not fetch catalog entities. Request failed with 403 Forbidden.
-
- Closed
-
- links to