Documentation
¶
Overview ¶
Package custom is the config-only generic webhook source: operators map any vendor's alert JSON to investigation requests with dot-path field extraction (sources.custom.instances.<name>), no Go required.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Source ¶
type Source struct {
// contains filtered or unexported fields
}
Source is the generic webhook source adapter. One Source serves every configured instance; the core-stamped source.InstanceHeader selects which mapping applies to a delivery (see source.Built.Handler).
func (*Source) Authenticate ¶
Authenticate verifies a delivery's bearer token. Implementing source.Authenticator skips the core's shared webhook auth, so the ladder is re-established here explicitly: the instance's own token when configured (shared no longer accepted — tighter, per-vendor secrets), else the shared server.webhook_token_env value resolved at Build, else open (mirroring the alertmanager source; app.RequireWebhookAuth still refuses to start a model-configured server with an empty shared token, and Build fails closed under actions.mode=auto below).