Summary
Webhook callback URLs registered by creators may contain API keys or tokens in the query string. A shared masking helper should strip query params and keep only the scheme and host before any URL appears in a log or error response.
Scope
- Add a
maskWebhookUrl(url: string): string helper that returns scheme://host with path and query string removed
- Use this helper in all log statements and error responses that reference a callback URL
- Add unit tests for: URL with query params, URL with path only, URL with no path
Acceptance Criteria
ETA: 12 hours
Coordinate on Telegram
Summary
Webhook callback URLs registered by creators may contain API keys or tokens in the query string. A shared masking helper should strip query params and keep only the scheme and host before any URL appears in a log or error response.
Scope
maskWebhookUrl(url: string): stringhelper that returnsscheme://hostwith path and query string removedAcceptance Criteria
ETA: 12 hours
Coordinate on Telegram