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
Decision record: Windows token cache is documented, not ACL-restricted #440
The Windows limits of the OAuth token cache are documented, and the SDK relies on the user choosing a per-user location for it. No Windows ACL code or new dependency is added. The README now says the cache is off unless CAMUNDA_TOKEN_CACHE_DIR is set, that POSIX modes do not become ACLs on Windows, and to use a directory under %LOCALAPPDATA% (never a shared location) or to disable the disk cache.
Context
Issue #436 (option 2 plus 3 of its three options), implemented by PR #439. One correction to the issue's premise: this SDK has no default cache location at all, because the cache is opt-in, so the guidance is "choose a per-user location" rather than "rely on the default". The same question exists in the other SDKs; this record covers the Python SDK only.
Why this default
It closes the information gap at no risk. An owner-only ACL would need pywin32 or ctypes against advapi32, a path the SDK's CI does not exercise, so the code could not be verified here. A per-user profile directory is already restricted by the default Windows ACL, and the cache is optional, so the exposure is limited to users who opt in and pick a shared directory.
Alternatives not taken
Restrict by ACL on Windows (pywin32 or ctypes): unverifiable in current CI and adds a dependency or platform-specific code.
Add a default cache location under %LOCALAPPDATA%: a behaviour change that turns the cache on for everyone.
How to revert/change
Revert PR #439 to remove the README section. To add real ACL support, reopen the work under #436 (it was left open for exactly this) and add a Windows-only branch in runtime/auth.py plus a Windows CI leg for it.
Activity