You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit 476cd6b
Browse filesBrowse the repository at this point in the historyBrowse files
guest-agent: refuse a malformed token before paying for identity
The scope fairing resolved the app id before looking at the token, so any
string in an Authorization header could drive a boot attestation and queue
behind attest_lock. Split `jwt::decode` out of `Verifier::verify` so the
fairing reads the header and claims first, and only then asks for the app id.
`verify_decoded` checks the signature before the claims: a claim error from an
unsigned token describes a guess at the caller's intent, not the token.
Also:
- the dashboard skips `Worker.Info` unless a block would render it, so an
anonymous page view no longer costs an attestation;
- the watchdog builds one HTTP client instead of one per heartbeat;
- `EffectiveScopes` answers 401, not 403, when the fairing published nothing;
- the gateway drops an `agent_token` longer than 4 KiB with a warning: it is
self-declared, persisted and synced, and must not be sized by the CVM.
Co-Authored-By: Claude Code <noreply@anthropic.com>
Signed-off-by: Kevin Wang <wy721@qq.com>
0 commit comments