Skip to content

Add helper for masking webhook callback URLs in logs and error responses #444

Description

@Chucks1093

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

  • Query string is stripped from all logged URLs
  • Path is stripped, only scheme and host remain
  • Unit tests cover all URL shapes

ETA: 12 hours


Coordinate on Telegram

Metadata

Metadata

Assignees

Labels

Stellar WaveIssues in the Stellar wave program

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions