Projects

PUT /projects/{id}/container-security

Changed on

Request

  • Base URL
    /api (relative, and the document was published on a file host, not at the API’s origin)
  • Auth
    HTTP bearer

Path parameters

idinteger required

Project ID

Request body

acknowledge_risksboolean

Required (true) when the change allows a capability that was not allowed before.

allowed_capabilitiesstring[] required

The capabilities to allow, as Docker names (NET_BIND_SERVICE). Anything outside options is rejected with 400.

expected_allowed_capabilitiesstring[] required

The value the editor loaded; the save fails with 409 if it changed.

Response

allowed_capabilitiesContainerCapability[] required

Capabilities this project's containers get back after cap_drop: ALL. Empty: fully hardened (the default). Applies from the next deployment.

always_enforcedstring[] required

Hardening every project container keeps whatever is allowed.

can_editboolean required

Whether the caller may change the setting.

edit_requirementstring required

Who may change it, for a caller who cannot.

Changes