Unikraft Cloud Network Shield Plugin API
This specification describes the Network Shield plugin API, the control API of a network shield instance on Unikraft Cloud. It manages the policies that say what the sandboxes behind the shield may reach and what may reach them, the secrets the shield substitutes into their requests and the limits on the shield as a whole, and it reports what is enforced and what the control plane has done.
Every operation declares a single default response: the standard response
envelope, which carries the outcome of the request in status, the
human-readable reason for a failure in message and the HTTP status code in
errors. The HTTP status code itself distinguishes success from failure; the
status codes an operation can return are documented on the operation.
A failure whose reason has structure carries it in data instead, with
message empty. There are three: a body that fails validation (422), whose
data lists each field at fault as type, loc and msg and never the
value it held; a write to a shield that has sealed (503), whose data is
the shield's account of what failed, as error, reason, failures,
sealed and remedy; and a bandwidth limit the host could not apply
(500), whose data is error and failures. A path no operation serves
is 404, and a method an operation does not take 405, both enveloped.