systemd · Example Payload

Varlink Credentials Encrypt Example

Encrypt a database password into a systemd encrypted credential blob (TPM2-bound when available) so it can be supplied to a unit via LoadCredentialEncrypted=.

BootCgroupsContainerD-BusInitIPCJournalLinuxLoggingNetworkOpen SourcePID 1Service ManagerSystemSystemdVarlink

Varlink Credentials Encrypt Example is an example object payload from systemd, with 4 top-level fields. It illustrates the shape of data this provider's APIs accept or return.

Top-level fields

operationdescriptionrequestresponse

Example Payload

Raw ↑
{
  "operation": "io.systemd.Credentials.Encrypt",
  "description": "Encrypt a database password into a systemd encrypted credential blob (TPM2-bound when available) so it can be supplied to a unit via LoadCredentialEncrypted=.",
  "request": {
    "name": "db-password",
    "data": "c2VjcmV0LXBhc3N3b3JkLWhlcmU=",
    "notAfter": 4102444800000000
  },
  "response": {
    "blob": "AAAAAQAAACgw...truncated...=="
  }
}