Repository navigation
Backlog
Labels
topic:authnzAuthentication, authorization, identity, sessions, credential protection, and policy integrity.topic:testingUnit, integration, regression, conformance, E2E tests, coverage, flakes, and test infrastructure.
Description
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
- A client-credentials (
openshell-ci) token lists sandboxes as a workspace member. test(oidc-auth): port the OIDC authorization tests to testkit #5787 leavesclient_credentials_grantto test(e2e): migrate the Python E2E suites to Rust #5624, and test(e2e): migrate the Python E2E suites to Rust #5624 leaves it here. - An OIDC platform admin can call the platform-scope provider-profile RPCs (list, get, import, update, lint, delete).
- An OIDC platform admin can read global policy (
GetSandboxPolicyStatusandListSandboxPolicieswithglobal).
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:allgrants both, and a token with no openshell scope is denied. - A non-member's
UpdateConfigreturnsNOT_FOUND. GetSandboxLogsauthorizes on the sandbox's stored workspace, not the request's selector.- A
defaultworkspace admin can't make a globalUpdateConfig. all_workspaceslist 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
ListServicesandGetDraftHistoryin 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
GetProviderorListServices. - Member denials: no check that
ApproveDraftChunkis 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.
Metadata
Metadata
Assignees
Labels
topic:authnzAuthentication, authorization, identity, sessions, credential protection, and policy integrity.topic:testingUnit, integration, regression, conformance, E2E tests, coverage, flakes, and test infrastructure.
Activity