Skip to content

feat!: make auth and group config generic #166

Closed

Description

@uniqueg

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) and security.access_control.claim_groups (eduperson_entitlement), plus LS Login wording in the comments (e.g., how LS Login sets aud).
  • 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 on group_mapping in cloud_registry/config.yaml ("E.g., for ELIXIR: …"), deployment/values.yaml, deployment/README.md, the entitlement parameter and other descriptions in cloud_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: issuers is 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 an audience (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, or urn:example:group:registry-admins where 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_mapping and 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

  1. added
    priority: medium
    status: blocked
    type: docs
    workload: hours
    on Oct 22, 2026
  2. changed the title [-]docs: use generic group examples[/-] [+]feat!: make auth and group config generic[/+] on Oct 22, 2026
  3. added
    type: auth
    type flag: breaking change
    on Oct 22, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    priority: mediumstatus: blockedtype flag: breaking changetype: authtype: docsworkload: hours

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions