{
  "schemaVersion": "ebb.rule.v1",
  "id": "container.dockerfile.maintainer",
  "ecosystem": "container",
  "purl": "pkg:generic/dockerfile",
  "affectedVersions": "vers:semver/*",
  "event": "deprecated",
  "severity": "low",
  "title": "The Dockerfile MAINTAINER instruction is deprecated",
  "summary": "The Dockerfile reference marks MAINTAINER as deprecated because author metadata belongs in the org.opencontainers.image.authors label.",
  "replacement": "A LABEL org.opencontainers.image.authors instruction carrying the same author text",
  "sources": [
    {
      "title": "Dockerfile reference: MAINTAINER (deprecated)",
      "url": "https://docs.docker.com/reference/dockerfile/#maintainer-deprecated",
      "accessedAt": "2026-10-31"
    },
    {
      "title": "Docker build check: MaintainerDeprecated",
      "url": "https://docs.docker.com/reference/build-checks/maintainer-deprecated/",
      "accessedAt": "2026-10-31"
    }
  ],
  "provenance": {
    "observedAt": "2026-10-31",
    "reviewedAt": "2026-10-31",
    "reviewer": "arminazimi"
  },
  "migration": {
    "constraints": [
      "Keep the author text exactly as it is written.",
      "Quote the label value so spaces and punctuation stay part of the value."
    ],
    "steps": [
      {
        "id": "replace-maintainer",
        "title": "Replace MAINTAINER with the OCI author label",
        "instructions": "Replace the MAINTAINER instruction with LABEL org.opencontainers.image.authors, using the same author text as a quoted value.",
        "targets": "declaration"
      }
    ],
    "verification": [
      {
        "command": "docker build .",
        "purpose": "Build the image with the rewritten Dockerfile."
      },
      {
        "command": "docker inspect IMAGE",
        "purpose": "Confirm the image carries the org.opencontainers.image.authors label."
      }
    ]
  }
}
