mirror of
https://github.com/tiennm99/ccs.git
synced 2026-07-30 06:20:06 +00:00
fix: mask Docker key rotation banner
This commit is contained in:
@@ -173,10 +173,14 @@ export function renderDockerKeyRotationBanner(status = getDockerKeyRotationStatu
|
||||
return '';
|
||||
}
|
||||
|
||||
const maskedReplacementKey =
|
||||
maskDockerApiKey(status.legacyGrace.replacementKey) ?? '(not configured)';
|
||||
|
||||
return [
|
||||
'[!] Docker CLIProxy API key rotation grace period is active.',
|
||||
`[i] New CLIProxy API key: ${status.legacyGrace.replacementKey}`,
|
||||
`[i] New CLIProxy API key: ${maskedReplacementKey}`,
|
||||
`[i] Legacy key ${status.legacyGrace.legacyKey} remains valid until ${status.legacyGrace.expiresAt}.`,
|
||||
'[i] Reveal the full key with `ccs docker show-key --full`.',
|
||||
'[i] Update existing clients, then run `ccs docker finalize-key-rotation`.',
|
||||
].join('\n');
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user