Release 0.26.2: restore existing client tokens without rotation - #620
Merged
Merged
Conversation
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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Connecta 0.24 removed managed client tokens, preventing deployments with active v0.23 credentials from upgrading. This patch restores them through the optional
@zackbart/connecta/auth/access-tokensmodule and prepares version 0.26.2, including the changelog and Node template pin.Existing
cta_…secrets authenticate against the originalaccess-token:v1:record:*and lookup records without rewriting storage or rotating clients. Token IDs, activity labels, and principal bindings survive. Every request still uses the deployment's current identity/tool/pool grants.To upgrade, import
accessTokens, replace the old boolean/options configuration withaccessTokens: accessTokens(storage), and retain the same storage namespace and grant rules. The operator UI restores create/show-once/list/rename/revoke behind the new, denied-by-defaultidentity.accessTokenManagementpermission. Static and managed bearers cannot administer tokens or connection credentials. Omitting the module loads no token implementation into core, and the eight MCP tools stay unchanged.New issuance requires atomic
compareAndSetstorage to bound concurrent creation. Legacy adapters still verify existing tokens and support rename/revoke; revocation follows the backend's consistency guarantees. Uncertain writes retain their capacity reservation, and atomic metadata updates prevent a stale rename from erasing revocation.Validation:
npm run release:checkpassed, including 4,785 tests across Node and Workers, 50 Chromium tests, declaration/import/bundle checks, zero runtime audit vulnerabilities, package installation, and Docker smoke. A fixture generated by the actual v0.23 manager covers original valid/revoked secrets and principal bindings. The installed release tarball also passedconnecta doctorwith an original fixture token and real QuickJS. Browser coverage exercises the real lifecycle routes, one-time display, rename, reload, and revocation.Closes #619.