environment-container metadata schema, v1 (legacy)

$idhttps://github.com/buildwarden/buildwarden/schemas/v1/environment-container.json
Machine schemametadata-environment-container/v1.schema.json
Applies toThe environment record in ledgers written before typed environments
StatusLegacy. The relay no longer writes it. It is kept so those ledgers resolve.

Purpose

Before environment types were specified, the environment record's metadata schema was environment-container.json and the only environment was a container image. New ledgers reference environment instead.

Compatibility

A ledger that uses this schema has the header label "environment": {"type": "container"}. Readers treat that label as oci-image/v1. The signed payload is the raw OCI manifest bytes with no type member, which is exactly an oci-image/v1 payload, so the reader takes the same type from the payload itself.

Fields

{
  "reference": "docker.io/library/python:3.12-slim",
  "digest": "sha256:<64 hex>",
  "mediaType": "application/vnd.oci.image.manifest.v1+json"
}
FieldTypeRequiredDescription
referencetextyesImage reference as specified by the user
digesttext, sha256:<64 lowercase hex>yesOCI manifest digest
mediaTypetextnoManifest media type

No other fields are allowed. All of them are informational and unsigned.