{
  "slug": "glab-artifact-registry-docker-login-and-credential-helper-resolution-b42d3b580d00",
  "title": "glab artifact-registry Docker login and credential helper resolution",
  "tools": [
    "glab"
  ],
  "tags": [
    "agent"
  ],
  "introduced_at": "2026-08-18T12:25:35.010Z",
  "announced_at": "2026-08-18T12:25:35.010Z",
  "effective_at": null,
  "date_basis": "source-publication",
  "status": "unknown",
  "how": {
    "incantation": "When authenticating Docker to a GitLab Artifact Registry, register glab as its credential helper with `glab artifact-registry login --docker --registry <registry_host>`. The helper exchanges a fresh token for each pull or push and ignores `GITLAB_TOKEN`.",
    "examples": [
      "glab artifact-registry login --docker --registry <registry_host>"
    ],
    "gotchas": [
      "Version: v1.114.0",
      "--docker (required): Selects Docker configuration; registers glab as a Docker credential helper. Writes to `$DOCKER_CONFIG`, or `~/.docker` if unset.",
      "--registry <registry_host> (required): Registry to authenticate against. For Docker, provide a bare hostname; use only a registry backed by Artifact Registry.",
      "--duration: Sets exchanged token lifetime for other package managers; ignored for Docker.",
      "--hostname: GitLab hostname to request the token from; defaults to the configured GitLab instance.",
      "Prerequisite: Run `glab auth login` first if no credential is stored for the GitLab host. The Docker helper reads credentials from the configuration file and ignores `GITLAB_TOKEN`.",
      "Docs conflict: Current GitLab Artifact Registry Docker documentation says the GitLab CLI version must be 1.115.0 or later, newer than the card’s v1.114.0. That page does not establish this prerequisite for v1.114.0: https://docs.gitlab.com/artifact-registry/formats/docker/"
    ]
  },
  "why_it_matters": "Authenticate Docker to a GitLab artifact registry and resolve registry credentials through Docker's credential helper.",
  "sources": [
    "https://gitlab.com/gitlab-org/cli/-/releases/v1.114.0",
    "https://docs.gitlab.com/cli/artifact-registry/login/"
  ],
  "rank": 0.98037,
  "judge": {
    "publish": true,
    "judge_model": "codex-cli/gpt-6-luna+typesafe/jev-1.13.0",
    "prompt_version": "extract-v7+enrich-v2+judge-v2x3+jev-publish-v1"
  },
  "review_state": "approved",
  "provenance": {
    "run_id": "wave2b-20261017",
    "verdict_id": "wave2b-20261017:wave2b-20261017-12a789fd5e4069ce-1:gate",
    "evidence_hash": "08af60aa3a1d08bd495ee86f476e0bd3e4903cc1742b1ae4fbd61f11abc87e6c"
  },
  "review": {
    "draft_hash": "bf6f0edd7e842ed85d8e6683fab0cbeb60d3461bd0ae71d318436084a11a0f45",
    "reviewer": "publication-gate",
    "reviewed_at": "2026-10-07T00:00:00.000Z",
    "decision": "wave2b-20261017:gate",
    "reason": "3 of 3 judge runs approved with p_yes >= 0.9 (mean 0.98 >= 0.9; 2 needed) and Jev gave 0.70 (>= 0.6 needed)."
  }
}
