Webhooks: endpoint delivery mode with signature checks

Chiusa
#679 1 commento 0 reazioni 0 assegnatari Vedi su GitHub

I maintainer di solito rispondono entro 1 giorno

Una pull request collegata è già stata integrata.

  • #753 di @usine-phildl — integrata

Valutazione

Difficoltà
4/5
Tempo stimato
3-5 giorni
Idoneità per principianti
38/100
Tipo di issue
Funzionalità
Chiarezza
Abbastanza chiara
Stato di attività
Attiva
Stack tecnologico
typescript
Ambito
api, backend

Direzione di ricerca

Start by reading ADR 0030 and issue #37, then trace the existing deliveries mode and the operator HTTP server. The issue names no source or test files, so locate the webhook configuration, startup hook, settings, and Needs attention entry points. Done means endpoint mode verifies X-Hub-Signature-256, configures the public URL, surfaces repository hints and status, and documents that the App webhook must be active.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

Second part of #37's webhook delivery modes, after the deliveries mode. Priority: low.

  • POST /webhooks/github on the operator HTTP server, checked with HMAC-SHA256 against X-Hub-Signature-256 and a secret from the instance .env. It stays outside operator authentication; ADR 0030 lists it as one of the routes without a token.
  • At start, PATCH /app/hook/config with the instance's public URL when webhooks.mode is endpoint.
  • Feed the same repository-level hints as the deliveries mode.
  • Settings shows the mode and the last hint time; a Needs attention entry appears when endpoint mode has received no delivery since startup for 10 minutes.
  • Document that the App's webhook must be active.
Lingua principale
TypeScript
Stelle
1
Fork
0
Merge medio
4h 18m
PR unite (30g)
291

Preparare l'ambiente

Questo progetto non fornisce container di sviluppo, Dockerfile né guida per i contributori, quindi l'ambiente è a tuo carico: parti dal suo README e consulta la nostra guida al primo contributo per i passaggi generali.

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di basaltbytes/usine

Tutte le issue di basaltbytes/usine

Issue simili

Altre issue su TypeScript

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.