Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Treat empty group list is an error response from Keycloak #150

Open
smlx opened this issue Dec 22, 2024 · 0 comments
Open

Treat empty group list is an error response from Keycloak #150

smlx opened this issue Dec 22, 2024 · 0 comments
Labels
bug Something isn't working

Comments

@smlx
Copy link
Member

smlx commented Dec 22, 2024

If you request a list of realm groups from Keycloak via the API with insufficient permissions (required permissions are undocumented) it will sometimes (exact circumstances also undocumented) return an empty groups list with a 200 OK rather than an error response.

Currently, lagoon-opensearch-sync will assume the empty groups list is valid and proceed to remove all tenants from Opensearch Dashboards. Instead, an empty groups list should be treated as an error response, and the error message from lagoon-opensearch-sync should suggest possible solutions.

Related: #149

@smlx smlx added the bug Something isn't working label Dec 22, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant