fix(homepage): use service-to-service auth for catalog entity lookup - #4467
fix(homepage): use service-to-service auth for catalog entity lookup#4467christoph-jerolimov wants to merge 2 commits into
Conversation
…(RHDHBUGS-3339) The group-based widget visibility check used the caller's credentials to fetch their own user entity. When RBAC prevented catalog access, getEntityByRef returned nothing and group widgets were hidden. Switch to AuthService.getOwnServiceCredentials() for the catalog call so the backend always resolves the user entity. Permission checks still use the original user credentials. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com> Signed-off-by: Christoph Jerolimov <jerolimov+git@redhat.com>
Changed Packages
|
PR Summary by QodoFix catalog lookup authentication for homepage widget visibility
AI Description
Diagram
High-Level Assessment
Files changed (3)
|
❌ 1 Tests Failed:
View the top 1 failed test(s) by shortest run time
To view more test analytics, go to the Test Analytics Dashboard |
Code Review by Qodo
1. Router test expects old argument
|
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com> Signed-off-by: Christoph Jerolimov <jerolimov+git@redhat.com>
367c8fc to
f979736
Compare
|



Summary
AuthService.getOwnServiceCredentials()for thegetEntityByRefcall so the backend always resolves the user entity, regardless of the caller's catalog permissionsauthorizeConditional) still use the original user credentials to correctly evaluate RBAC policiesTest plan
if.groups)Fixes: RHDHBUGS-3339
🤖 Generated with Claude Code