Files
traefik-llmgateway/webui/mock/leak-terms.ts
T
lukaszraczyloandGitHub 979d903c19 feat: admin redesign, decision assist, prompt caching and shared state (#11)
This change adds the redesigned admin panel and the smart router decision model assist.
It adds opt-in prompt-prefix caching per provider and cached-token pricing and metrics.
With Redis, the metrics route reports fleet-wide values. The redis.sharedState switch shares six coordination states across replicas.
PR CI grants actions read, which the shared go-pr workflow needs.
The pull request description has the full list and the verification.
2026-11-26 15:50:11 +00:00

21 lines
580 B
TypeScript

export type LeakTerm = string | RegExp
// Site-specific names come from LEAK_SCAN_EXTRA_TERMS so this list never publishes them.
const LITERALS: string[] = ['raczylo', 'aliyuncs', 'cluster.local']
const PATTERNS: RegExp[] = [
/\bsk-[A-Za-z0-9]/,
/\b10\.\d+\.\d+\.\d+\b/,
/\b172\.(1[6-9]|2\d|3[01])\./,
/\b192\.168\./,
/[A-Za-z0-9._%+-]+@[A-Za-z0-9.-]+\.[A-Za-z]{2,}/,
]
export function leakTerms(extra?: string): LeakTerm[] {
const names = (extra ?? '')
.split(',')
.map((s) => s.trim())
.filter(Boolean)
return [...LITERALS, ...PATTERNS, ...names]
}