Repository navigation
feat(auth): accept a Basilisk user API token for CI audits - #43
Merged
Merged
Conversation
Add PIXI_AUDIT_TOKEN, a Basilisk user API token (bsk_<key id><secret>) generated under Settings on the Basilisk explorer, as the credential for unattended audits. The token is sent as Authorization: Bearer to the configured Basilisk origin only, never to OSV, EPSS, KEV or package channels, and only over HTTPS or plain HTTP to localhost. A malformed value is an error rather than a silent anonymous audit, so a misconfigured CI secret fails the job. Outside CI the same token may be stored for the exact audit host with pixi auth login; only a BearerToken under the exact host with the token shape is used, so the wildcard *.prefix.dev channel credential can never reach the audit API. The token takes precedence over the --login audience grant, which the audience middleware yields to because the Authorization header is already set. Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
tdejager
requested changes
Oct 8, 2026
tdejager
approved these changes
Oct 13, 2026
Merged
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
Stacked on #40.
PIXI_AUDIT_TOKENor an exact-host stored Basilisk API token, scoped to the configured origin over HTTPS or local HTTP.Server-side token attribution in Basilisk is separate from this client change.
Validation
249 workspace tests and 88 no-default-feature library tests pass. One focused API-token test reuses #40's request-capture helper to verify the Bearer header and HTTP 401 propagation without retry. Formatting, all-target no-default-feature checks, and all-feature Clippy pass.