Skip to content

[Cherry-pick to branch-1.3] [#12588] improvement(web2-ui): Expose UI session timeout settings through server configuration (#12621) - #12780

Merged
jerryshao merged 1 commit into
branch-1.3from
cherry-pick-cc5f05ee-to-branch-1.3
Sep 1, 2026
Merged

[Cherry-pick to branch-1.3] [#12588] improvement(web2-ui): Expose UI session timeout settings through server configuration (#12621)#12780
jerryshao merged 1 commit into
branch-1.3from
cherry-pick-cc5f05ee-to-branch-1.3

Conversation

@github-actions

@github-actions github-actions Bot commented Sep 1, 2026

Copy link
Copy Markdown

Cherry-pick Information:

  • Original commit: cc5f05e
  • Target branch: branch-1.3
  • Status: ✅ Clean cherry-pick (no conflicts)

…ough server configuration (#12621)

### What changes were proposed in this pull request?

  - Added three optional server-side UI session timeout configurations:
      - gravitino.ui.sessionIdleTimeoutMs
      - gravitino.ui.sessionMaxDurationMs
      - gravitino.ui.sessionIdleWarningLeadMs

- Added the configurations to conf/gravitino.conf.template with
commented defaults and descriptions.
  - Updated the UI to resolve values in this order:
      1. /configs API
      2. Corresponding NEXT_PUBLIC_* environment variable
      3. Built-in default value

- Removed gravitino.authorization.serviceAdmins from visibleConfigs; it
is already exposed automatically by
    the /configs API when authorization is enabled.

  ### Why are the changes needed?

Session timeout behavior previously depended only on UI environment
variables and hardcoded defaults. This
made deployment-specific configuration inconvenient and required
rebuilding or separately configuring the UI.

The server configuration now provides a centralized way to configure
idle timeout, maximum session duration,
  and warning lead time.

  Fix: #12588

  ### Does this PR introduce any user-facing change?

  Yes.

- Adds three optional server configuration keys for UI session
management.
- Existing UI environment variables and defaults remain supported as
fallbacks.
- gravitino.authorization.serviceAdmins remains available through
/configs when authorization is enabled; it
    no longer needs to be listed in gravitino.server.visibleConfigs.

- No public REST API shape or authentication API changes are introduced.

  ### How was this patch tested?

  From web-v2/web:

  pnpm test
  pnpm lint
@github-actions github-actions Bot added the cherry-pick Automatically opened cherry-pick PR label Sep 1, 2026
@github-actions
github-actions Bot requested a review from jerryshao September 1, 2026 08:36
@jerryshao
jerryshao merged commit 60ad152 into branch-1.3 Sep 1, 2026
36 of 37 checks passed
@jerryshao
jerryshao deleted the cherry-pick-cc5f05ee-to-branch-1.3 branch September 1, 2026 12:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

cherry-pick Automatically opened cherry-pick PR

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants