Repository navigation
Description
Problem
Which identity provider is trusted, and which groups or users get which role, is deployment configuration. The registry treats the group mapping that way already: security.access_control.group_mapping is empty in the default config, and the app (and the Helm chart) refuse to start until a deployment maps a group to admin (or sets custom.access_control.require_admin: false).
But the defaults and examples are specific to LS Login and ELIXIR:
- Defaults in
cloud_registry/config.yaml:security.auth.issuers(LS Login),security.auth.userinfo_claims(eduperson_entitlement,name) andsecurity.access_control.claim_groups(eduperson_entitlement), plus LS Login wording in the comments (e.g., how LS Login setsaud). - Examples using the ELIXIR admin group (
urn:geant:lifescience-ri.eu:group:elixir:ECP_CLN:ADMIN#aai.lifescience-ri.eu) or other LS Login values: the comment ongroup_mappingincloud_registry/config.yaml("E.g., for ELIXIR: …"),deployment/values.yaml,deployment/README.md, theentitlementparameter and other descriptions incloud_registry/api/additions.openapi.yaml,README.md, the docs (docs/), and the test config and fixtures (tests/config_overlay.yaml,tests/conftest.py).
This suggests that LS Login and the ELIXIR groups are part of the product, and operators of other deployments may copy them.
Expected
- No identity-provider-specific defaults:
issuersis empty by default, and the group and user info claims are generic or unset (choose what FOCA's defaults and the docs make clearest). Like the admin mapping, the app (and the chart) refuse to start without trusted issuers and anaudience(or the explicit opt-outs FOCA provides), with a clear message. - All examples of issuers, groups, users and group-to-role mappings use generic, clearly fictitious values (e.g.,
https://login.example.org/oidc/,registry-admins, orurn:example:group:registry-adminswhere a URN-style value helps to show that colons, slashes and#work), in config comments, chart values, chart README, API descriptions, README, docs and tests. - The docs state in one place that issuers, claims,
group_mappingand any user-to-role assignment are deployment configuration with no default, and how operators can change roles and their permissions (policies) via a config overlay. - No identity-provider-specific values anywhere in the repository: guides for specific identity providers or deployments (e.g., LS Login) live in separate, deployment-specific documentation.
- Generic upgrade notes for operators of earlier versions (< 0.3.0) in the existing upgrade docs and release notes: fresh install with an empty database recommended (earlier versions accepted tokens of any issuer and had no ownership checks), how to export old entries for reference only, and that issuers, claims, audience and the admin mapping must now be set.
- Tests keep covering group values with special characters using generic values.
This changes the defaults, so deployments that relied on the LS Login defaults must set them (release notes, migration section of the tutorial).
Blocked by #157 (it rewrites the access-control code and tests).
Activity
[-]docs: use generic group examples[/-][+]feat!: make auth and group config generic[/+]