You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
docs: document the Windows limits of the OAuth token cache - #439
Before: The README did not say that the OAuth token disk cache is only restricted by POSIX permission modes, and that those do not become access-control lists on Windows. A Windows user who pointed CAMUNDA_TOKEN_CACHE_DIR at a shared location had no way to know the cached token was readable by anyone with access to that directory.
After: A new "OAuth Token Cache" README section states that the cache is off unless CAMUNDA_TOKEN_CACHE_DIR is set, that the files are owner-only on POSIX, that on Windows the SDK sets no ACL so protection comes from the location, and what to do about it: use a per-user directory such as one under %LOCALAPPDATA%, never a shared location, or disable the disk cache.
How: Documentation only; no code, generated or config-reference changes. This records the decision on #436 to document the limitation and rely on a per-user location rather than add a Windows-specific ACL call or dependency. One correction to the premise: in this SDK the cache has no default location (it is opt-in), so the guidance is "choose a per-user location" rather than "rely on the default"; adding a default would be a behaviour change and is left out. The issue stays open for a decision on code-level ACL support.
POSIX modes do not become ACLs on Windows, so the cache is only as private as the directory it lives in. State that, and recommend a per-user location under %LOCALAPPDATA%; the cache is off unless CAMUNDA_TOKEN_CACHE_DIR is set.
Refs #436
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01RcVhnekJQeXnMfPhs9pYda
The reason will be displayed to describe this comment to others. Learn more.
🔵 Needs a closer look
The README incorrectly describes token-request cost as once per process start rather than on each new OAuth provider’s first use when disk caching is disabled.
No open issues 🎉
1 previously missed issue
In code that hasn't changed since last review
Clarify token requests occur once per provider, not per process
README.md:982
The token-request cost is per OAuth provider, not per process start. Each CamundaClient/CamundaAsyncClient creates its own provider by default, and both providers keep their in-memory token on the instance (runtime/auth.py). With disk caching disabled, two clients in the same process therefore make two initial token requests; repeatedly creating clients adds more. Please describe the cost as a token request on each new provider's first use rather than one per process start.
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.
Before: The README did not say that the OAuth token disk cache is only restricted by POSIX permission modes, and that those do not become access-control lists on Windows. A Windows user who pointed
CAMUNDA_TOKEN_CACHE_DIRat a shared location had no way to know the cached token was readable by anyone with access to that directory.After: A new "OAuth Token Cache" README section states that the cache is off unless
CAMUNDA_TOKEN_CACHE_DIRis set, that the files are owner-only on POSIX, that on Windows the SDK sets no ACL so protection comes from the location, and what to do about it: use a per-user directory such as one under%LOCALAPPDATA%, never a shared location, or disable the disk cache.How: Documentation only; no code, generated or config-reference changes. This records the decision on #436 to document the limitation and rely on a per-user location rather than add a Windows-specific ACL call or dependency. One correction to the premise: in this SDK the cache has no default location (it is opt-in), so the guidance is "choose a per-user location" rather than "rely on the default"; adding a default would be a behaviour change and is left out. The issue stays open for a decision on code-level ACL support.
Refs #436
Generated by Claude Code