-
Notifications
You must be signed in to change notification settings - Fork 330
Document Strict UI Session Mode #5309
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Open
LutaoX
wants to merge
3
commits into
main
Choose a base branch
from
docs/strict-ui-session-mode
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
+61
−4
Open
Changes from all commits
Commits
Show all changes
3 commits
Select commit
Hold shift + click to select a range
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
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
| Original file line number | Diff line number | Diff line change | ||||
|---|---|---|---|---|---|---|
|
|
@@ -43,6 +43,59 @@ When applicable, use [SCIM](/cloud/manage-access/scim) or the Temporal Cloud use | |||||
|
|
||||||
| For non-human access (CI/CD pipelines, backend services), use [Temporal Cloud Service Accounts](/cloud/manage-access/service-accounts) instead of shared user logins. Service Accounts are machine identities that can be granted specific permissions without ties to an individual. Create separate Service Accounts with unique API keys for different applications or microservices, and apply least privilege to each (for example, a service account that only has access to one Namespace). | ||||||
|
|
||||||
| ### Restrict Cloud UI session lifetimes | ||||||
|
|
||||||
| Strict UI Session Mode is an optional account-level setting for organizations that require shorter sessions for users | ||||||
| authenticated through [SAML single sign-on (SSO)](/cloud/manage-access/saml). | ||||||
|
|
||||||
| When enabled, Strict UI Session Mode: | ||||||
|
|
||||||
| - Signs users out after 15 minutes of inactivity, instead of 12 hours. | ||||||
| - Limits the maximum session duration to 12 hours, instead of 7 days, even if the user remains active. | ||||||
|
|
||||||
| When either limit is reached, the user must start a new Cloud UI session through the account's SAML identity provider. | ||||||
| Whether the identity provider prompts the user to enter credentials or complete MFA depends on the identity provider's | ||||||
| own session policy. | ||||||
|
|
||||||
| These predictable session limits can help organizations enforce internal security policies and complete security and | ||||||
| compliance reviews. Enabling Strict UI Session Mode does not by itself guarantee compliance with a particular standard | ||||||
| or regulation. | ||||||
|
|
||||||
| #### Prerequisites | ||||||
|
|
||||||
| Before enabling Strict UI Session Mode, [SAML SSO](/cloud/manage-access/saml) must be configured and active for the | ||||||
| account. | ||||||
|
|
||||||
| Strict UI Session Mode applies only to Cloud UI sessions authenticated through SAML. It does not affect other | ||||||
| authenticated interactions with Temporal, including: | ||||||
|
|
||||||
| - Users who sign in through Google, Microsoft, or email and password | ||||||
| - Workers or SDK clients | ||||||
| - API Keys or Service Accounts | ||||||
| - Temporal CLI sessions | ||||||
| - mTLS connections | ||||||
|
|
||||||
| #### Enable strict UI session mode | ||||||
|
|
||||||
| [Create a support ticket](/cloud/support#support-ticket) and provide your | ||||||
| [Temporal Cloud Account Id](/cloud/namespaces#temporal-cloud-account-id). Ask Dev Success to enable Strict UI Session | ||||||
| Mode for the account. | ||||||
|
|
||||||
| Strict UI Session Mode applies to the entire account. It cannot be configured for individual users, groups, or roles. | ||||||
| The 15-minute inactivity limit and 12-hour maximum session duration are fixed. | ||||||
|
|
||||||
| The setting applies when a user starts a new session. Users with an active session must sign out and start a new session | ||||||
| before the shorter limits take effect. | ||||||
|
|
||||||
| #### Understand how inactivity is measured | ||||||
|
|
||||||
| Only Cloud UI activity that sends a request to Temporal Cloud resets the inactivity timer (e.g. create a Namespace). Mouse movement, scrolling, or reading information that has already loaded does not reset the timer. | ||||||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 📝 [vale] <Std.Abbreviations.Latin> reported by reviewdog 🐶
Suggested change
|
||||||
|
|
||||||
| The Cloud UI does not display a warning or countdown before the session expires. The 12-hour maximum applies regardless of activity. | ||||||
|
|
||||||
| To disable Strict UI Session Mode, [create a support ticket](/cloud/support#support-ticket). Active sessions retain the | ||||||
| shorter limits until users sign out and start new sessions. | ||||||
|
|
||||||
| ## Secure application authentication and API access | ||||||
|
|
||||||
| Clients interact with the Temporal Service to initiate and manage Workflows, while Workers execute the business logic defined in Workflows and Activities in your own environment. | ||||||
|
|
||||||
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
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Keep a brief best-practice recommendation here, but move the prerequisites, support-ticket procedure, scope, and timer behavior to a page under
docs/cloud/manage-access/. The architecture guide assigns SAML and Cloud-specific operations to the Temporal Cloud section, while this 55-line addition adds four headings and takes the security-controls page from 16 to 20 headings, beyond the repository's target of fewer than 15 total.AGENTS.md reference: AGENTS.md:L247-L253
Useful? React with 👍 / 👎.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Note the key reason for having this feature here is because the feature itself is for security control use cases and best practices rather than access management.
The target persona or market sector is governance sector, financial services that have stricter compliance and security policies and requirements to fulfill.