Skip to content

test(e2e): OIDC E2E coverage gaps after removing e2e/python #6136

Backlog

Description

@pimlock

Problem

#5624 deletes e2e/python/oidc, which held 30 OIDC and workspace-authorization tests. #5787 ports 10 of them to tests/suites/features/oidc-auth and partly covers 3 more. The other 17 have no E2E coverage.

The gateway's unit tests run with an empty admin_role, so every caller is a platform admin. They can't show that a configured admin role is honored.

Cases without any targeted test

Cases covered only by unit tests (crates/openshell-server)

  • A request without a bearer token is rejected; Health needs no token.
  • Scopes: a sandbox:* token can list sandboxes but not providers, openshell:all grants both, and a token with no openshell scope is denied.
  • A non-member's UpdateConfig returns NOT_FOUND.
  • GetSandboxLogs authorizes on the sandbox's stored workspace, not the request's selector.
  • A default workspace admin can't make a global UpdateConfig.
  • all_workspaces list calls are denied to a workspace admin.
  • Platform-scope profile RPCs and global policy reads are denied to non-admins.
  • A platform admin can call ListServices and GetDraftHistory in a workspace it isn't a member of (generic bypass test only).

Cases #5787 covers in part

  • Non-member denial: 6 of the 40 RPCs, with no check that sandbox-name RPCs return NOT_FOUND.
  • Member reads: no GetProvider or ListServices.
  • Member denials: no check that ApproveDraftChunk is hidden.

Proposed work

Add these cases to tests/suites/features/oidc-auth on the ubuntu-docker-rootful-oidc row. For the client-credentials case, add a Keycloak client-credentials helper to tests/support/keycloak.

Activity

  1. added
    topic:testing
    topic:authnz
    on Dec 1, 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

    topic:authnztopic:testing

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions