Repository navigation
docs: add ORAS CLI 1.4 versioned docs - #705
Merged
Merged
Conversation
NopeCharon
requested review from
FeynmanZhou,
TerryHowe,
asmitbm,
sabre1041,
sajayantony and
shizhMSFT
as code owners
November 19, 2026 22:38
ORAS CLI v1.4.0 was released on 2026-11-17. Add 1.4 as the latest docs version so that https://oras.land/docs/ defaults to it, and keep 1.3 in the version dropdown. There was no 1.4 preview, so the 1.4 docs start as a copy of the 1.3 docs and sidebar: - add "1.4" to the top of versions.json and map it to 1.4.0 in versions-map - copy versioned_docs/version-1.3 and the 1.3 sidebar to 1.4 - regenerate the 1.4 command reference with `npm run refresh-commands` against the v1.4.0 binary. The only change in the help output is that boolean flags are now shown as `--flag[=true|false]` - pin v1.4.0 on the 1.4 installation page (download snippets, WinGet, `go install`, the ghcr.io image, the doras alias and setup-oras) and replace the sample `oras version` output with the output of the v1.4.0 release binary - update the binary verification guide example to v1.4.0, with the `gpg --verify` signature time and the `gh attestation verify` digest and tag taken from the v1.4.0 release assets - require oras.land/[email protected] in the Go scripting example - say that the `oras discover` formatting flags are experimental in v1.4, which they still are - update the home page Linux install snippet to v1.4.0 - fix the "pervious" typo in the copied quickstart, which Vale reports as an error on the new 1.4 page Signed-off-by: NopeCharon <[email protected]>
NopeCharon
force-pushed
the
docs/add-1.4-docs
branch
from
November 19, 2026 22:54
2fefc28 to
41188f2
Compare
Member
|
Thanks! |
TerryHowe
pushed a commit
that referenced
this pull request
Nov 20, 2026
Fixes #700 (part of #697) **Depends on #705.** The guide goes in `versioned_docs/version-1.4/`, which #705 adds, so this branch is based on it. Only the last commit, 2302395, belongs to this PR. Once #705 is merged I'll rebase, and the diff will only show the guide. ## Summary ORAS CLI v1.4.0 can read the registry configuration files that Podman, Buildah and Skopeo use when `ORAS_EXPERIMENTAL_CONTAINERS_CONFIG` is set (oras-project/oras#2002). This PR adds `how_to_guides/containers_config.mdx` to the 1.4 docs. It covers the items listed in the issue: - **What it does and its status:** an "experimental, off by default" warning at the top, how to turn it on, and that ORAS ignores the files without the variable - **Supported files:** a table of `registries.conf` (and its drop-ins), `certs.d`, `auth.json`, `policy.json` and `registries.d`, with their default locations, what ORAS uses from each, the merge order, and links to the containers man pages - **Worked examples:** a mirror (including `pull-from-mirror`), a private CA and a client certificate in `certs.d`, a location rewrite, a blocked registry, and a `policy.json` that allows only one registry - **ORAS-specific keys:** `token-flow`, `referrers-api` and `blocked-realm-prefixes` - **Precedence:** how each flag combines with the files - **`oras login` and `oras repo ls`:** which settings they use, and which host to log in to when a registry is redirected - **Errors:** the error you get when a file can't be parsed, and how to rule out the files It also links the guide from the v1.4.0 blog post, which said it would add the link once this guide existed. It also adds `Podman`, `Buildah`, `Skopeo` and `loopback` to the Vale vocabulary. ## Behavior worth knowing I ran each scenario against the v1.4.0 binary, and some of the results are worth documenting: - for the registry, `insecure = true` only skips certificate verification. Unlike Podman, ORAS doesn't fall back to plain HTTP, so `--plain-http` is still needed - mirrors are only used for resolving and fetching. They are reached over TLS, verified against the system trust store or skipped with `insecure`. `certs.d` doesn't apply to them (see `buildMirrorRepositories` in oras-go v3) - short-name `[aliases]` can't be used from the CLI, because ORAS rejects a reference without a registry before it reads the files. The guide says so rather than listing aliases as supported - `policy.json` is also checked for `oras push` and `oras repo tags` - a malformed `$HOME/.config/containers/registries.conf` is skipped without an error, while a malformed drop-in, `auth.json`, `policy.json` or `~/.docker/config.json` fails the command. This comes from `LoadSystemRegistriesConfig` in oras-go v3. The guide mentions it in the troubleshooting section ## Validation - ran local `registry:3` instances (plain HTTP, TLS with a private CA, htpasswd auth, and mutual TLS) and checked every behavior and error message in the guide with the v1.4.0 binary: mirror fallback and `Pulled` output, `certs.d` CA and client certificates (also for `oras repo ls`), path rewrites for pull and push, wildcard and blocked prefixes, `auth.json` from `$XDG_RUNTIME_DIR` and `~/.config/containers` (including a namespace entry, and skipped with `--registry-config`), `policy.json` reject and allow, login against a rewritten registry, flags overriding the files, and parse errors - `vale` on the new page: 0 errors, 0 warnings - `npm test` (32 passed), `npm run check-links`, `docusaurus build`. The page shows up in the 1.4 sidebar only Signed-off-by: NopeCharon <[email protected]>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Fixes #699 (part of #697)
Summary
ORAS CLI v1.4.0 was released on 2026-11-17. This PR adds 1.4 as the latest docs version, following the post-release checklist in the oras
RELEASING.md. There was no 1.4 preview, so the 1.4 docs start as a copy of 1.3."1.4"to the top ofversions.jsonand1.4 1.4.0toversions-mapversioned_docs/version-1.3/andversioned_sidebars/version-1.3-sidebars.jsonto 1.4versioned_docs/version-1.4/commands/withnpm run refresh-commandsagainst the v1.4.0 binary. The only difference from 1.3 is that boolean flags now show as--flag[=true|false], which is whatoras <command> --helpprints in v1.4.0. The blob digest requirement from fix: require digests for blob fetch and delete oras#2304 was already reflected in the 1.3 pages, and fix: reject custom header flags for an OCI layout path target oras#2299 changes behavior but not the help textgo install, theghcr.io/oras-project/orasimage, thedorasalias and setup-oras). The sampleoras versionoutput comes from the v1.4.0 release binary and matches the one in the issuegpg --verifysignature time and thegh attestation verifydigest and workflow refs come from the v1.4.0 release assets. The "Starting withv1.3.6" sentences and the expired-key example keep their versions because they describe when attestations started and an older releaseoras.land/[email protected]oras discover--format/--templateflags are experimental in v1.4, which they still areVERSION="1.4.0"quickstart.mdx. Vale checks the whole new file, so the typo carried over from 1.3 failed the checkOne thing to note: WinGet doesn't list
ORASProject.ORAS1.4.0 yet (the latest manifest is 1.3.6).winget install oras --version 1.4.0will work once the community manifest is published. setup-oras already supports 1.4.0, andghcr.io/oras-project/oras:v1.4.0exists.Validation
gpg --verifypasses on the checksums file and onoras_1.4.0_linux_amd64.tar.gz.shasum -a 256 --ignore-missing -cpasses.gh attestation verifysucceeds, also with--source-ref refs/tags/v1.4.0, and fails with--source-ref refs/tags/v1.3.6.oras versionon darwin/arm64 prints the output shown on the pageoras.land/[email protected](Go 1.26.11)npm run refresh-commands: onlyversioned_docs/version-1.4/commands/changes, and older versions are untouchednpm test(32 passed),npm run check-links,docusaurus build. In the build,/docs/serves 1.4 with the v1.4.0 snippets, and/docs/1.3/is still there with the older-version banner