Repository navigation
feat(ai): accept key-bearing v1 Agent tokens - #327
Merged
Merged
Conversation
The Console now mints Agent tokens as
pss_agent:v2:{token}:{kx_pub}:{share_a}:{wrap_key}, the same layout as
Service Account tokens. Parse that form and reject the bearer-only v1
form, which was never released. Only the bearer part is sent.
Deploying phase-cli-install-script with
|
| Latest commit: |
775ee68
|
| Status: | ✅ Deploy successful! |
| Preview URL: | https://19ab6ea2.phase-cli-install-script.pages.dev |
| Branch Preview URL: | https://feat--agent-token-keys.phase-cli-install-script.pages.dev |
No released CLI or Console has ever handled pss_agent tokens, so the
first released form is pss_agent:v1:{token}:{kx_pub}:{share_a}:{wrap_key}.
The prefix alone selects Agent authentication, so the version does not
need to match Service Account tokens. v2 and the bearer-only form are
rejected.
rohan-chaturvedi
approved these changes
Oct 29, 2026
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.
Summary
pss_agent:v1:{token}:{kx_pub}:{share_a}:{wrap_key}, the same layout as Personal Access and Service Account tokens.AuthenticationFromPhaseTokenaccepts that form and rejectspss_agent:v2and the bearer-only three-part form, neither of which was ever released.Bearer Agent <token>), so the runtime, proxy and secrets-command refusal are unchanged.Testing
go build ./...,go vet(native andGOOS=windows),go test ./....Console side: phasehq/console#1102.