Documentation
¶
Overview ¶
Package approvals is the Approvals module: Gatecrasher's approvals in front of the owner, as cards, decided where they are shown.
The module follows Gatecrasher's event stream as the owner (the owner key in the settings), shows each pending approval as a card, sends the owner's answer to Gatecrasher's decide, and takes the card away when the approval closes, here or anywhere else. A secret request is a form the page posts straight to the producer's intake: the value never reaches this server, its database, its log, the event bus or the agent (see cards.go and web/).
A review request (gate v1 review batches) is this module's own card, approvals.review: each item approved or denied on its own, an approved one optionally with edited fields. Its answer is checked against the item ids and field keys kept from Gatecrasher's card.
An app that embeds Surface and has no settings to give may set SURFACE_APPROVALS_URL and SURFACE_APPROVALS_KEY_FILE instead: each is used only while its setting is empty, read at the moment of use and checked the same way.
Contract: gatecrasher docs/integration-guide.md and api/openapi/gate-v1.yaml.