use pangolin-key prefix for virtual api keys

This commit is contained in:
miloschwartz
2026-08-13 15:22:18 -04:00
parent 4a9b0117a2
commit e580c7db7c
2 changed files with 1 additions and 6 deletions
-5
View File
@@ -62,11 +62,6 @@ function parseVkCredential(
};
}
/**
* Extract a virtual API key credential from provider-style auth headers.
* Checks Authorization Bearer / Splunk, x-api-key, x-goog-api-key, and
* cf-aig-authorization. First matching vk-{id}.{secret} wins.
*/
export function extractVirtualApiKeyCredential(
headers: Record<string, string> | undefined
): VirtualApiKeyCredential | null {
+1 -1
View File
@@ -1,4 +1,4 @@
export const VIRTUAL_API_KEY_PREFIX = "vk-";
export const VIRTUAL_API_KEY_PREFIX = "pangolin-key-";
const VIRTUAL_API_KEY_AUTH_HEADER_NAMES = [
"authorization",