relay: the packaged intake key reports too (build job uploads got 'no token' after the key split)
Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
This commit is contained in:
parent
1aaba2ee80
commit
912fdb9174
1 changed files with 3 additions and 0 deletions
|
|
@ -39,6 +39,9 @@ export function authed(req) {
|
|||
if (sameSecret(given, token)) return 'token';
|
||||
const k = req.headers['x-igneum-key'];
|
||||
if (sameSecret(k, key)) return 'key';
|
||||
// the key packaged into every miner app (LOG_INTAKE_KEY, and its successor during a rotation) reports too: the
|
||||
// build job uploads its binaries with it (5 October 2026: 0.3.5 apps got "no token" after the relay key split)
|
||||
for (const name of ['LOG_INTAKE_KEY', 'LOG_INTAKE_KEY_NEXT']) if (process.env[name] && sameSecret(k, process.env[name])) return 'key';
|
||||
return null;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue