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

Implement subgroup support #476

Merged
merged 7 commits into from
Oct 15, 2024
Merged

Implement subgroup support #476

merged 7 commits into from
Oct 15, 2024

Conversation

smlx
Copy link
Member

@smlx smlx commented Oct 10, 2024

This PR implements subgroup support as described in the Lagoon docs.

Closes: #467

Slightly improve safety by making the zero value invalid.
@smlx smlx changed the title subgroups Implement subgroup support Oct 10, 2024
@smlx smlx force-pushed the subgroups branch 2 times, most recently from 8e7e48a to 343e6fd Compare October 10, 2024 06:21
Add new methods to the Keycloak client to:

* look up user group permissions with support for subgroups.
* look up ancestor groups of a given group.

In addition, refactor the keycloak client to support paging through
results from the Keycloak API.

In support of the headline change, also add a "cache map" type which
implements an in-memory cache map with individual value lifetimes.
Refactor permission engine to use the new keycloak client functionality
which adds support for subgroups, and refactor session logic to use the
new permission engine.
@smlx smlx marked this pull request as ready for review October 11, 2024 01:37
@smlx smlx merged commit 833f450 into main Oct 15, 2024
12 checks passed
@smlx smlx deleted the subgroups branch October 15, 2024 03:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Lagoon group hierarchy not taken into account
1 participant