{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://iinventedlight.com/library/artifacts/docker-build-secrets.schema.json",
  "title": "docker-build-secrets (summary schema)",
  "description": "Fill draft, 18 November 2026. Not published. Queued note; iil_id is null until the note is published.",
  "type": "object",
  "additionalProperties": false,
  "properties": {
    "slug": {
      "const": "docker-build-secrets"
    },
    "iil_id": {
      "type": "null",
      "description": "Not live yet; the iil:note ID is assigned when the note is published."
    },
    "note_url": {
      "type": "string",
      "format": "uri",
      "description": "https://iinventedlight.com/library/notes/docker-build-secrets/"
    },
    "claim": {
      "type": "string",
      "description": "Pass the secret with `docker build --secret id=aws,src=$HOME/.aws/credentials .` and consume it with `RUN --mount=type=secret,id=aws ...`; it is mounted at `/run/secrets/aws` only for that instruction."
    },
    "license": {
      "type": "string"
    },
    "source_license": {
      "type": "string"
    },
    "as_of": {
      "type": "string"
    },
    "status": {
      "type": "string"
    },
    "claims": {
      "type": "array",
      "items": {
        "type": "object",
        "additionalProperties": false,
        "properties": {
          "id": {
            "type": "string"
          },
          "claim": {
            "type": "string"
          },
          "source_id": {
            "type": "string"
          }
        },
        "required": [
          "id",
          "claim"
        ]
      }
    },
    "related_slugs": {
      "type": "array",
      "items": {
        "type": "string"
      }
    },
    "related_artifacts": {
      "type": "array",
      "items": {
        "type": "string"
      }
    }
  },
  "required": [
    "slug",
    "iil_id",
    "claim",
    "license",
    "as_of"
  ],
  "examples": [
    {
      "slug": "docker-build-secrets",
      "iil_id": null,
      "note_url": "https://iinventedlight.com/library/notes/docker-build-secrets/",
      "claim": "Pass the secret with `docker build --secret id=aws,src=$HOME/.aws/credentials .` and consume it with `RUN --mount=type=secret,id=aws ...`; it is mounted at `/run/secrets/aws` only for that instruction.",
      "license": "CC-BY-4.0",
      "source_license": "Apache-2.0 (Docker docs); Apache-2.0 (Docker docs); prose restates cited source lines in own words",
      "as_of": "2026-11-18",
      "status": "fill-draft-20261118",
      "claims": [
        {
          "id": "C1",
          "claim": "Build args and env vars persist in the final image.",
          "source_id": "S1"
        },
        {
          "id": "C2",
          "claim": "The default secret path is /run/secrets/<id>.",
          "source_id": "S1"
        },
        {
          "id": "C3",
          "claim": "Secret mounts avoid baking values into the image.",
          "source_id": "S2"
        }
      ],
      "related_slugs": [
        "docker-build-cache",
        "docker-multi-stage-builds",
        "docker-build-context"
      ],
      "related_artifacts": [
        "docker-build-secrets.table.json"
      ]
    }
  ]
}