Skip to content

feat(fs): manage owner and scoped file system tokens - #40

Merged
Icemap merged 2 commits into
mainfrom
cheese/fs-token-lifecycle
Aug 13, 2026
Merged

feat(fs): manage owner and scoped file system tokens#40
Icemap merged 2 commits into
mainfrom
cheese/fs-token-lifecycle

Conversation

@Icemap

@Icemap Icemap commented Aug 13, 2026

Copy link
Copy Markdown
Collaborator

Summary

  • add owner token generation and path-and-operation-limited scoped token issuance for TiDB Cloud Filesystem
  • allow TI_FS_TOKEN and --fs-token to carry either owner or scoped credentials, with backend-enforced capability boundaries
  • add token list, enable, disable, delete, and self-refresh workflows with optional atomic local credential selection and rotation
  • preserve authoritative scoped metadata locally without treating local state as the remote token inventory
  • protect active local mounts from destructive token changes and provide owner/scoped-specific authentication and authorization errors
  • update README, agent guidance, the completed 0030 specification, unit tests, black-box e2e, and live e2e

Validation

  • make test
  • make e2e
  • TI_E2E_BIN="$PWD/bin/ti" TI_LIVE=1 TI_PROFILE=live-e2e go test ./e2e -count=1 -v -timeout 15m -run '^TestLiveFSFileSystemTokenLifecycle$'
  • git diff --check

The live lifecycle verifies owner-to-scoped issuance, in-scope access, out-of-scope rejection, scoped self-refresh, denial of scoped token-management and child-issuance operations, and cleanup.

@ti-chi-bot ti-chi-bot Bot added the size/XXL label Aug 13, 2026
@Icemap Icemap changed the title feat(fs): manage file system tokens feat(fs): manage owner and scoped file system tokens Aug 13, 2026
@Icemap
Icemap merged commit 09e34f9 into main Aug 13, 2026
2 checks passed
@Icemap Icemap mentioned this pull request Aug 14, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant