Skip to main content

Module github_app_webhook

Module github_app_webhook 

Source
Expand description

Opt-in BYO self-hosted GitHub App webhook module for arks serve --github-app-config <path>.

Cite: .spec/sot/github-app-integration.sot.md §4.

  • Disabled by default; fail-closed if enabled with missing webhook secret or private key.
  • Constant-time X-Hub-Signature-256 verification via ring::hmac + subtle.
  • X-GitHub-Delivery deduplication and immediate 202 Accepted async dispatch.

Structs§

GithubAppWebhookConfig
Operator-supplied JSON configuration loaded via arks serve --github-app-config <path>.
GithubAppWebhookState
Shared runtime state attached to ServeHttpOptions.
ValidatedGithubAppConfig
Validated runtime configuration (fail-closed on missing secret or unreadable key).
VerifiedWebhookEvent
Verified webhook event passed to the async background dispatcher.

Constants§

DEFAULT_WEBHOOK_PATH

Functions§

compute_signature_256
Compute sha256=<hex> signature for body using HMAC-SHA256.
handle_github_app_webhook
Handle an incoming GitHub App webhook request fail-closed and return 202 Accepted immediately while dispatching processing asynchronously.
verify_signature_256
Constant-time verification of X-Hub-Signature-256 via ring::hmac + subtle.

Type Aliases§

AsyncEventHook