Skip to content

Fix local storage token authorization - #722

Merged
Nathan (hydraxman) merged 1 commit into
mainfrom
shbu-microsoft-fix-local-storage-token-validation
Sep 2, 2026
Merged

Fix local storage token authorization#722
Nathan (hydraxman) merged 1 commit into
mainfrom
shbu-microsoft-fix-local-storage-token-validation

Conversation

@hydraxman

Copy link
Copy Markdown
Member

Summary

  • reject fabricated LOCAL storage tokens and enforce issued token permissions, expiry, and file scope
  • generate an unpredictable center token by default and strictly parse Bearer authorization headers
  • prevent traversal in storage file resolution and screenshot token issuance
  • preserve compatibility for agents that cannot refresh write tokens during rolling deployment

Testing

  • ./gradlew.bat :common:test :center:test --no-daemon --console=plain
  • Added regression coverage for arbitrary tokens, read/write permissions, file scope, expiry, Bearer parsing, traversal, screenshot scope, and agent token compatibility

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
@hydraxman
Nathan (hydraxman) merged commit e071f39 into main Sep 2, 2026
6 checks passed
@hydraxman
Nathan (hydraxman) deleted the shbu-microsoft-fix-local-storage-token-validation branch September 2, 2026 08:20
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.

1 participant