Skip to content

Docs say auth.groups restricts access, but the operator doesn't enforce it #36

Open

Description

@dcmcand

The docs present auth.groups as access control:

Operator v0.1.1 uses groups only to fill status.serviceDiscovery.requiredGroups (internal/controller/nebariapp_controller.go:279), as part of the config hash, and to create the groups in Keycloak (internal/controller/reconcilers/auth/providers/keycloak.go:961). The SecurityPolicy it builds has OIDC and target refs only, with no authorization rules (internal/controller/reconcilers/auth/reconciler.go:524-529). Any user in the realm who can log in reaches the app.

Upstream: nebari-dev/nebari-operator#153.

Fix

Until #153 lands, the docs need to say plainly that groups is not enforced at the gateway, and drop "restricted to groups" from the kustomize production overlay. Apps that need group restrictions must check the groups claim themselves against a verified token (see #37). When the operator enforces it, restore the wording and note the minimum operator version.

Verified against this repo at 4e50cd0, nebari-operator v0.1.1 (same commit as operator main), and NIC v0.14.0.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Fields

    Priority

    None yet

    Start date

    None yet

    Target date

    None yet

    Size

    None yet

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions