'use client' import type { MiddlewareHookReturn } from './types' interface LoggingTabProps { hook: MiddlewareHookReturn } export default function LoggingTab({ hook }: LoggingTabProps) { return (

PII Redaction Settings

{(() => { const config = hook.getConfig('pii_redactor') if (!config) return

Loading...

const patterns = config.config.patterns || ['email', 'ip_v4', 'ip_v6', 'phone_de'] const allPatterns = ['email', 'ip_v4', 'ip_v6', 'phone_de', 'phone_intl', 'iban', 'uuid', 'name_prefix', 'student_id'] return (

Select which PII patterns to redact from logs (DSGVO compliance)

{allPatterns.map((pattern) => ( ))}
) })()}

Request-ID Configuration

{(() => { const config = hook.getConfig('request_id') if (!config) return

Loading...

return (
{ hook.updateConfig('request_id', { ...config.config, header_name: e.target.value }) }} className="mt-1 block w-full max-w-xs rounded-md border-gray-300 shadow-sm focus:border-blue-500 focus:ring-blue-500" />
) })()}
) }