Skip to content

docs: document Okta group-to-role mapping - #3063

Merged
v0y4g3r merged 11 commits into
mainfrom
docs/rbac-role-mapping
Dec 2, 2026
Merged

v0y4g3r merged 11 commits into
mainfrom
docs/rbac-role-mapping

Conversation

@v0y4g3r

@v0y4g3r v0y4g3r commented Nov 29, 2026 •

Copy link
Copy Markdown
Contributor

What changed

Okta UserInfo.groups → group-roles.json → GreptimeDB roles → SQL privileges and table ACLs

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

  • Documentation versions: Nightly only.
  • Languages: English and Chinese.

Verification

  • Before: Nightly documented Okta SSO with database accounts, without a group-mapping deployment path.
  • After: Both locale builds and strict link/anchor checks passed. Verified the rendered sidebar and SSO links, parsed the bilingual examples, and rendered the Helm values into a GreptimeDBCluster with the expected read-only ConfigMap mount.
  • pnpm test: 59 passed. git diff --check, spelling, and front matter checks passed.
  • Both locale builds embed the screenshot once in step 3 and ship the asset unchanged.
  • Compared behavior with the merged Enterprise implementation and public Okta documentation. This PR did not change an Okta tenant or rerun live sign-in.
  • Optional pnpm typecheck --noEmit reports missing @docusaurus/theme-classic and Node type definitions on both this branch and main.

Merge Danger

Door: Two-way; documentation and Nightly navigation only.

Blast Radius: Nightly.

Checklist

  • Verified the content against the applicable GreptimeDB implementation.
  • Updated the relevant documentation versions and languages.
  • Checked changed links and anchors.
  • Updated navigation for the new page.
  • Release review not applicable: no version cut, stable promotion, or backport.

Signed-off-by: Lei, HUANG <ratuthomm@gmail.com>
@cloudflare-workers-and-pages

cloudflare-workers-and-pages Bot commented Nov 29, 2026 •

Copy link
Copy Markdown

Deploying greptime-docs with  Cloudflare Pages  Cloudflare Pages

Latest commit: d9c994d
Status:⚡️  Build in progress...

View logs

Signed-off-by: Lei, HUANG <ratuthomm@gmail.com>
Signed-off-by: Lei, HUANG <ratuthomm@gmail.com>
@v0y4g3r
v0y4g3r requested a review from a team as a code owner November 30, 2026 12:11
Comment thread docs/enterprise/user/api.md Resolved
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>
Copilot AI balanced review requested due to automatic review settings December 2, 2026 03:47

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🔵 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

@v0y4g3r

v0y4g3r commented Dec 2, 2026

Copy link
Copy Markdown
Contributor Author

@fengjiachun The review round is addressed in 39415a49..544a5123, with a reply on each thread:

  • 39415a49: step 1 states that the Org Authorization Server issues tokens for Okta's own resources with a fixed audience, that remote OIDC verification binds tokens to the issuer and client ID without checking an audience, and links to Okta's custom authorization server guidance.
  • 321089f3: the account-based SSO example sets introspection_client_id_location = "query", and the optional settings table documents the option with its default.
  • 3ad914b8: the User Object table lists the fields returned for stored accounts and for group-mapped SSO identities.
  • c86929ac: the maintainers decided to leave rollout traffic isolation to the operator, so the note about replicas applying different policies was removed instead of adding a procedure.
  • 544a5123: step 5 lists <issuer>/.well-known/openid-configuration among the endpoints the browser must reach.

All changes apply to the English and Chinese pages.

@v0y4g3r
v0y4g3r requested a review from fengjiachun December 2, 2026 03:53
Comment thread docs/enterprise/user/api.md Resolved
Comment thread docs/enterprise/user/api.md Resolved
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>
@v0y4g3r
v0y4g3r merged commit ec489f3 into main Dec 2, 2026
6 of 7 checks passed
@v0y4g3r
v0y4g3r deleted the docs/rbac-role-mapping branch December 2, 2026 07:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants