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-256verification viaring::hmac+subtle. X-GitHub-Deliverydeduplication and immediate202 Acceptedasync dispatch.
Structs§
- Github
AppWebhook Config - Operator-supplied JSON configuration loaded via
arks serve --github-app-config <path>. - Github
AppWebhook State - Shared runtime state attached to
ServeHttpOptions. - Validated
Github AppConfig - Validated runtime configuration (fail-closed on missing secret or unreadable key).
- Verified
Webhook Event - Verified webhook event passed to the async background dispatcher.
Constants§
Functions§
- compute_
signature_ 256 - Compute
sha256=<hex>signature forbodyusing HMAC-SHA256. - handle_
github_ app_ webhook - Handle an incoming GitHub App webhook request fail-closed and return
202 Acceptedimmediately while dispatching processing asynchronously. - verify_
signature_ 256 - Constant-time verification of
X-Hub-Signature-256viaring::hmac+subtle.