Skip to content

feat: implement custom headers for custom alerters#1399

Open
maxjb-xyz wants to merge 1 commit intomoghtech:mainfrom
maxjb-xyz:feat/alerter-headers
Open

feat: implement custom headers for custom alerters#1399
maxjb-xyz wants to merge 1 commit intomoghtech:mainfrom
maxjb-xyz:feat/alerter-headers

Conversation

@maxjb-xyz
Copy link
Copy Markdown

Summary

Adds custom request headers for Custom alerter endpoints and hardens the feature against two regressions found during review. Closes #1398

Changes

Added headers: Record<string, string> / HashMap<String, String> to CustomAlerterEndpoint
Updated custom alert delivery to interpolate header values the same way as the URL
Sanitized secrets in custom alerter non-2xx response bodies, not just request-send errors
Added backend tests covering:
URL + header interpolation
secret sanitization on request errors
secret sanitization in response bodies
Added UI support for editing custom headers in the alerter endpoint config
Blocked save when header text is invalid, including the confirm modal and keyboard save path

Notes

I also ran a UI build after installing dependencies, but the workspace currently has unrelated pre-existing TypeScript/module-resolution failures, so there was no clean end-to-end frontend build signal attributable to this change alone.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Configure Headers for Alerters

1 participant