Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
MGMT-19297: Handle user_name, org_id correctly when AUTH_TYPE RHSSO used
Presently there is a bug in the way we handle AUTH_TYPE RHSSO while fetching the events list. A join is performed between infra_envs and either hosts or clusters, this leads to some ambiguity around column names in WHERE clauses. Specifically the fields `user_name` and `org_id`, combinations of which appear in hosts, clusters and infra_envs. This change applies the authorization check by turning the final database query into a subquery and then filtering on the returned user_name, org_id columns in the subquery.
- Loading branch information