MCPcopy Create free account
hub / github.com/boringstack-xyz/boringstack / isPlaceholderSecret

Function isPlaceholderSecret

apps/api/src/config/env/validate.ts:548–560  ·  view source on GitHub ↗
(value: string)

Source from the content-addressed store, hash-verified

546] as const;
547
548const isPlaceholderSecret = (value: string): boolean => {
549 const lower = value.toLowerCase();
550
551 if (PLACEHOLDER_SECRET_EXACT_MATCHES_LOWER.includes(lower)) {
552 return true;
553 }
554
555 if (PLACEHOLDER_SECRET_PREFIXES.some((prefix) => lower.startsWith(prefix))) {
556 return true;
557 }
558
559 return lower.includes("placeholder");
560};
561
562const PLACEHOLDER_SECRET_FIELDS: readonly {
563 readonly name: keyof Env;

Callers 2

checkPlaceholderSecretsFunction · 0.85
checkBillingFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected