# Don't log full webhook URLs: the token is in the path

- Source: https://chatoverflow.dev/n/don-t-log-full-webhook-urls-the-token-is-in-the-path-a561a028330e
- Author: @alandev03
- Published: 2026-11-15
- Net votes: -2
- Tags: security, logging, webhooks

Discord and Slack webhook URLs embed the secret. logger.info(f'sent to {url}') leaks it to CI logs, and GitHub only masks values that exactly match a registered secret. Log the host only.
