A workspace role applies only to that workspace. For example, access to
ws-alice comes from resource_access.ws-alice.roles in the caller’s token.
A role for another workspace does not grant access to ws-alice.
| Role | Access |
|---|---|
ws_access |
View workspace resources and read the service credentials listed below. |
ws_api |
List accessible workspaces, read connection metadata, and request permitted service credentials. No resource management or member, bucket, store, volume, or vcluster management views. |
ws_admin |
View and manage workspace resources, read service credentials, and request workspace tokens. |
workspace-api:admin |
Create, delete, and manage workspaces globally. Extra workspace and profile grants are still required where listed below. |
The first three roles belong to the workspace client. Global administration
is the admin role under resource_access.workspace-api.roles. Workspace
roles alone cannot create or delete a whole workspace.
Checks use the roles in the current token. A role change takes effect when the caller uses a token that contains the new grants.
| Credential | Required grant |
|---|---|
| Backend S3 keys | ws_access, ws_admin, or global administration, subject to the S3 restriction below. |
| PostgreSQL, Valkey, registry, or custom connection | Any workspace role above, or global administration. |
| Additional vcluster profile | Workspace access and vclusters_<instance>_<profile>. |
Built-in vcluster cluster-admin profile |
Workspace ws_admin and vclusters_<instance>_cluster-admin. |
| S3 export | Workspace ws_api and s3_<export>. |
| OAuth2 client secret | Not returned to callers, including admins. The token broker uses it on the server. |
Global administration does not supply the workspace or profile roles needed for vclusters, S3 exports, or token requests. Authorized callers can read OAuth2 client IDs and issuer URLs.
Vcluster profiles must still be configured, match the provider’s published status, and be ready. A removed or hibernated profile cannot return credentials, even if the token still has its role.
GET /workspaces/<workspace> returns metadata and resolves s3:primary by
default. For a caller with ws_api and neither ws_access nor ws_admin,
the default also selects S3 exports. Use resolve_connections to choose what
to resolve:
| Query value | Selection |
|---|---|
postgres:pg0 |
Named PostgreSQL connection. |
valkey:cache |
Named Valkey connection. |
s3-export:project-a |
Named S3 export. |
* or *:* |
All connections. |
type:* or *:name |
Connections matching that type or name. |
none |
Metadata only. |
Repeat the parameter to select several connections. Unknown selectors resolve
nothing. Selection does not grant access: the API checks permission and
readiness before reading a Secret. The same checks apply to aliases that
reference the Secret and to storage.credentials.
An unresolved entry has no credentials and can include a resolution_error:
| Error | Meaning |
|---|---|
not_ready |
The provider has not marked the connection ready. |
secret_not_found |
The Secret reference, Secret, or its data is missing. |
secret_unavailable |
The API could not read the Secret. |
invalid_secret |
The Secret data could not be decoded. |
not_permitted |
The caller cannot read connection credentials. |
profile_not_permitted |
The vcluster profile is not granted or no longer matches its configuration. |
oauth2_server_only |
The entry references an OAuth2 client Secret. |
s3_export_required |
Use an S3 export instead of backend S3 keys. |
s3_proxy_unavailable |
The S3 proxy or export status is missing, stale, or unready. |
s3_export_not_permitted |
The caller lacks ws_api or the export’s role. |
Workspace responses use Cache-Control: no-store.
Callers with ws_api and neither ws_access nor ws_admin must use an export,
even if they are global admins. The API does not return backend keys to these
callers or populate storage.credentials for them.
An export gives read access to a declared bucket or prefix through one virtual
bucket. There is no automatic full-backend export. For project-a, the caller
needs ws_api and s3_project-a, then requests
resolve_connections=s3-export:project-a.
| Connection field | Value for ws-alice, export project-a |
|---|---|
type |
s3-export |
name and bucket |
project-a, the virtual bucket. |
scope |
ws-alice:s3_project-a |
credentials.AWS_ACCESS_KEY_ID |
ws-alice.s3.project-a |
credentials.AWS_SECRET_ACCESS_KEY |
The same public signing identifier. |
credentials.AWS_SESSION_TOKEN |
The caller’s signed, unexpired workspace Keycloak access token. |
endpoint |
Ready proxy endpoint from provider status. |
region |
us-east-1, as used by the provider’s S3 clients. |
expiration |
Access token expiry as a UTC timestamp. |
The endpoint and region also appear as AWS_ENDPOINT_URL and AWS_REGION
in the credentials. The token needs both the workspace and workspace-r API
audiences. Export connections have no Secret reference: their signing values
are public identifiers, and access depends on the token and export role.
A workspace read does not issue or renew a token. Use the token endpoint when it expires, then request the connection again. Platform admins can find the required provider settings in Security.