Skip to content

Conversation

shuyec
Copy link
Contributor

@shuyec shuyec commented Oct 13, 2025

Issue

Context / Why

This PR adds a check to the GET /backend-for-frontend/tenants/{tenants-id}/users. If a requester tries to get the users list of another tenant, then it gets an error 403.

Impacted services

  • backend-for-frontend

Checklist

  • Add check to the BFF

Comment on lines +252 to +253
throw unauthorizedError(
`Requester ${requesterId} cannot retrieve users for tenant ${tenantId}`
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

unauthorizedError is already mapped to HTTP_STATUS_FORBIDDEN by default, so there is no need to update the error mappers

@shuyec shuyec marked this pull request as ready for review October 13, 2025 11:00
Copy link
Contributor

@galales galales left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🚀

@shuyec shuyec changed the title hotfix: add error to /backend-for-frontend/tenants/{tenants-id}/users (PIN-7759) hotfix: add error to GET /backend-for-frontend/tenants/{tenants-id}/users (PIN-7759) Oct 14, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants