Module public_http
Expand description
Transport-neutral policy and JSON bodies shared by the two /v1/sql/* HTTP hosts.
The hosts still own header extraction, project fencing, body limits, sockets, routing, and
command admission. This module owns only decisions and bytes that must stay identical between
rindle-replicator and standalone rindled.
Structs§
Enums§
- SqlIngress
Auth - Authentication posture for the versioned public SQL surface.
Constants§
Functions§
- authorize_
sql_ ingress - Apply the two-token authority rule after a host has supplied its header matcher.
- cursor_
history_ lost - execute_
public_ read - Execute the shared public read path on a host-owned read connection. The host supplies its current committed cursor lookup; connection ownership stays outside.
- refresh_
generation_ bound - Replace a generation-bound resource only after its successor opens successfully. Failed refreshes retain a healthy predecessor and stay retryable.
- sql_
success_ body - Wrap statement results in the common write-authority success envelope.
served_bynames the authority role that actually answered —"master"on the replicator,"standalone"on a source-less daemon — so observability keyed on routing never invents a replication plane that isn’t there. - validate_
public_ request_ id - Validate the optional public request-id header and build the shared typed rejection body.
- validated_
request_ id - Return the one canonical request id, rejecting absent, duplicate, and malformed values alike.
Callers use this only for response echo; absence therefore maps to
None.