Repository navigation
docs: document Okta group-to-role mapping - #3063
Merged
Merged
Conversation
Signed-off-by: Lei, HUANG <ratuthomm@gmail.com>
Signed-off-by: Lei, HUANG <ratuthomm@gmail.com>
Signed-off-by: Lei, HUANG <ratuthomm@gmail.com>
fengjiachun
reviewed
Dec 1, 2026
fengjiachun
reviewed
Dec 1, 2026
The group-mapping guide now explains that the Okta Org Authorization Server issues access tokens for Okta's own resources with a fixed audience, and that remote OIDC verification binds tokens to the configured issuer and client ID without checking an audience. Readers who need tokens minted for a dedicated API audience are pointed to Okta's custom authorization server guidance. Applied to both locales. Signed-off-by: Lei, HUANG <ratuthomm@gmail.com>
The account-based Okta SSO example relied on the default introspection_client_id_location of "form". Okta's org authorization server requires public clients to send client_id as a query parameter, so sign-in could fail at introspection. The TOML example in both locales now sets "query", and the optional settings table documents the option with its default. Applied to both locales. Signed-off-by: Lei, HUANG <ratuthomm@gmail.com>
The User Object table listed only local and ldap auth sources, typed both timestamps as integers, and always showed acl_map, so a client built against it could reject the /v1/users/current response for a group-mapped SSO identity. The table now lists principal, display_name, role_ids, and authorization_mode, adds sso to auth_source, marks the timestamps as nullable, and notes the omitted acl_map. A new table lists the fields returned for stored accounts and for group-mapped SSO identities. Applied to both locales. Signed-off-by: Lei, HUANG <ratuthomm@gmail.com>
Remove the sentences about Frontend replicas applying different authorization policies while group mapping is enabled or disabled. The guide leaves rollout traffic isolation to the operator and keeps the startup check and mapping reload behavior. Applied to both locales. Signed-off-by: Lei, HUANG <ratuthomm@gmail.com>
The Dashboard fetches <issuer>/.well-known/openid-configuration in the browser before it redirects to Okta. A proxy that allows only the authorization and token endpoints stops sign-in before the redirect. The network prerequisites in both locales now name the discovery document as well. Signed-off-by: Lei, HUANG <ratuthomm@gmail.com>
Contributor
There was a problem hiding this comment.
🔵 Needs a closer look
The security-sensitive SSO authorization claims require confirmation by an Enterprise maintainer because the referenced implementation is unavailable for review.
No open issues 🎉
What changed in this PR
Adds English and Chinese Nightly documentation for mapping Okta groups to GreptimeDB Enterprise roles, alongside the existing account-based SSO guides.
Changes:
- Documents group claims, scoped roles, deployment configuration, and access verification.
- Clarifies account-based versus group-mapped SSO and their API response fields.
- Adds navigation links and embeds the Role Management screenshot in both guides.
| File | Description |
|---|---|
sidebars.ts |
Adds the group-mapping guide to navigation. |
i18n/zh/docusaurus-plugin-content-docs/current/enterprise/user/api.md |
Documents SSO identity response fields in Chinese. |
i18n/zh/docusaurus-plugin-content-docs/current/enterprise/user.md |
Distinguishes the two SSO approaches in Chinese. |
i18n/zh/docusaurus-plugin-content-docs/current/enterprise/deployments-administration/sso.md |
Clarifies account-based SSO and Okta introspection configuration. |
i18n/zh/docusaurus-plugin-content-docs/current/enterprise/deployments-administration/overview.md |
Links the Chinese group-mapping guide. |
i18n/zh/docusaurus-plugin-content-docs/current/enterprise/deployments-administration/okta-role-mapping.md |
Adds the Chinese setup and troubleshooting guide. |
docs/enterprise/user/api.md |
Documents SSO identity response fields. |
docs/enterprise/user.md |
Distinguishes the two SSO approaches. |
docs/enterprise/deployments-administration/sso.md |
Clarifies account-based SSO and Okta introspection configuration. |
docs/enterprise/deployments-administration/overview.md |
Links the English group-mapping guide. |
docs/enterprise/deployments-administration/okta-role-mapping.md |
Adds the English setup and troubleshooting guide. |
Review effort: Balanced
Contributor
Author
|
@fengjiachun The review round is addressed in
All changes apply to the English and Chinese pages. |
fengjiachun
reviewed
Dec 2, 2026
fengjiachun
approved these changes
Dec 2, 2026
The User Object table described display_name of a group-mapped SSO identity as the UserInfo claim with a preferred_username default, which only holds for remote OIDC. With JWKS verification GreptimeDB reads the verified access token and defaults to sub. The row now names jwt_auth.username_claim as the selector and gives both defaults. Applied to both locales. Signed-off-by: Lei, HUANG <ratuthomm@gmail.com>
The stored-account JSON example omitted authorization_mode, although the user object serializer emits legacy_direct for records with direct grants and the field table lists the field. The example in both locales now includes it. Applied to both locales. Signed-off-by: Lei, HUANG <ratuthomm@gmail.com>
The sentence that points readers to Okta's custom authorization servers linked to the Org authorization server section, so readers landed on the issuer this guide already uses. The link in both locales now targets the Custom authorization server section. Signed-off-by: Lei, HUANG <ratuthomm@gmail.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What changed
Add a deployment guide for Okta Org Authorization Server and remote OIDC group mapping. It covers Group Claims for native and imported groups, scoped role creation, Frontend and Helm configuration, and access checks. Link it from the sidebar and distinguish group mapping from account-based SSO in the existing guides. Include the Enterprise Dashboard Role Management screenshot (
static/ent_user/role-management.png) in both languages.Scope
Verification
GreptimeDBClusterwith the expected read-only ConfigMap mount.pnpm test: 59 passed.git diff --check, spelling, and front matter checks passed.pnpm typecheck --noEmitreports missing@docusaurus/theme-classicand Node type definitions on both this branch andmain.Merge Danger
Door: Two-way; documentation and Nightly navigation only.
Blast Radius: Nightly.
Checklist