environment metadata schema, v1

$idhttps://github.com/buildwarden/buildwarden/schemas/v1/environment.json
Machine schemametadata-environment/v1.schema.json
Applies toThe environment record's open and close
Default header index5 (see the ledger spec's Default Schemas)

Purpose

Informational, unsigned context on the environment record. The signed environment payload names its own type and is described by its environment-<type> document; this metadata only echoes it. Readers take the type from the payload, never from this metadata.

Ledgers written before typed environments use the legacy environment-container schema in this position instead.

Fields

{
  "type": "oci-image/v1",
  "reference": "docker.io/library/python:3.12-slim",
  "digest": "sha256:<64 hex>",
  "mediaType": "application/vnd.oci.image.manifest.v1+json"
}
FieldTypeRequiredDescription
typetextyes"environment" on the open record; on the close record an echo of the payload's environment type, such as oci-image/v1 or vm-disk-chain/v1 (unsigned; the payload is authoritative)
drivertextnovm-disk-chain/v1: the driver that booted the environment
referencetextnooci-image/v1: image reference as the user gave it
digesttext, sha256:<64 lowercase hex>nooci-image/v1: registry digest of the pulled reference. Equals sha256(payload) only when the runtime returned the registry's exact manifest bytes
mediaTypetextnooci-image/v1: manifest media type

The schema allows other fields.