UNPKG

@himorishige/noren-plugin-security

Version:

Security-focused plugin for Noren (JWT tokens, API keys, HTTP headers, cookies)

53 lines (52 loc) 1.7 kB
/** Pre-compiled regex patterns with enhanced boundary detection */ export declare const SECURITY_PATTERNS: { readonly authHeader: RegExp; readonly jwt: RegExp; readonly apiKey: RegExp; readonly apiKeyHeader: RegExp; readonly urlTokens: RegExp; readonly clientCredentials: RegExp; readonly uuid: RegExp; readonly hexToken: RegExp; readonly cookie: RegExp; readonly setCookie: RegExp; readonly sessionId: RegExp; readonly githubToken: RegExp; readonly awsAccessKey: RegExp; readonly googleApiKey: RegExp; readonly stripeApiKey: RegExp; readonly slackToken: RegExp; readonly sendGridApiKey: RegExp; readonly openAiApiKey: RegExp; readonly googleOAuthToken: RegExp; readonly azureSubscriptionKey: RegExp; readonly webhookUrls: { readonly slack: RegExp; readonly discord: RegExp; readonly github: RegExp; }; readonly signedUrls: { readonly awsS3: RegExp; readonly googleCloud: RegExp; readonly azureSas: RegExp; }; }; /** Optimized context hint constants with Set for O(1) lookup */ export declare const SECURITY_CONTEXTS: { readonly auth: Set<string>; readonly apiKey: Set<string>; readonly cookie: Set<string>; readonly url: Set<string>; readonly jwt: Set<string>; readonly session: Set<string>; readonly github: Set<string>; readonly aws: Set<string>; readonly google: Set<string>; readonly stripe: Set<string>; readonly slack: Set<string>; readonly sendgrid: Set<string>; readonly openai: Set<string>; readonly azure: Set<string>; readonly webhook: Set<string>; readonly oauth: Set<string>; };