cloudflared/quicktunnelauth/validation.go
Miguel da Costa Martins Marcelino cdcd702aa4 chore: Add upper bounds to supplied emails
This prevents users from abusing `--allowed-mail` policies by limiting the nr. of rules to 100 and defining a max per rule of 320 bytes. Validation errors now identify only the rule position and category, preventing recipient values from appearing in logs. Parsing also stops once limits are exceeded while preserving normalisation and deduplication.
2026-09-23 15:59:32 +00:00

82 lines
2.5 KiB