refactor(events,deliveries): split source saving and plain the new prose (#2021, #2016)

This commit is contained in:
sam committed 2026-11-21 13:52:33 +11:00
1 parent 29a06f7c54
commit f47e60db00
14 files changed
+139 -110

No files matched your search

+6 -6
View File
@@ -948,7 +948,7 @@ components:
source:
type: string
token:
description: Shown once, for a token source; only its hash is stored
description: Returned once for a token source; only its hash is stored
type: string
url:
description: Where the sender posts its events
@@ -2084,18 +2084,18 @@ components:
description: The connector that parses this source's events
type: string
hmac_header:
description: The header that carries the signature, for hmac
description: The header that carries the signature (hmac only)
type: string
hmac_prefix:
description: Text before the hex digest in that header, such as sha256=, for hmac
description: Text before the hex digest in the signature header, such as sha256= (hmac only)
examples:
- sha256=
type: string
hmac_secret:
description: "The shared signing secret, for hmac. Write-only: it is sealed and never returned"
description: "The shared signing secret (hmac only). Write-only: it is sealed and never returned"
type: string
verification:
description: "How a delivery proves itself: a bearer token, an HMAC-SHA256 signature of the body, or nothing"
description: "How deliveries are verified: a bearer token, an HMAC-SHA256 signature of the body, or no verification"
enum:
- token
- hmac
@@ -5381,7 +5381,7 @@ paths:
schema:
$ref: "#/components/schemas/ErrorModel"
description: Error
summary: Add a source, or change how it verifies deliveries and rotate its token
summary: Add or update a source, its verification scheme and its token
tags:
- Events
/api/sources/{name}/key-fields: