Skip to content

docs: add ORAS CLI 1.4 versioned docs - #705

Merged
TerryHowe merged 1 commit into
oras-project:mainfrom
NopeCharon:docs/add-1.4-docs
Nov 20, 2026
Merged

TerryHowe merged 1 commit into
oras-project:mainfrom
NopeCharon:docs/add-1.4-docs

Conversation

@NopeCharon

@NopeCharon NopeCharon commented Nov 19, 2026 •

Copy link
Copy Markdown
Contributor

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.

  • add "1.4" to the top of versions.json and 1.4 1.4.0 to versions-map
  • copy versioned_docs/version-1.3/ and versioned_sidebars/version-1.3-sidebars.json to 1.4
  • regenerate versioned_docs/version-1.4/commands/ with npm run refresh-commands against the v1.4.0 binary. The only difference from 1.3 is that boolean flags now show as --flag[=true|false], which is what oras <command> --help prints 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 text
  • installation page: pin v1.4.0 everywhere (download snippets, WinGet, go install, the ghcr.io/oras-project/oras image, the doras alias and setup-oras). The sample oras version output comes from the v1.4.0 release binary and matches the one in the issue
  • binary verification guide: change the example to v1.4.0. The gpg --verify signature time and the gh attestation verify digest and workflow refs come from the v1.4.0 release assets. The "Starting with v1.3.6" sentences and the expired-key example keep their versions because they describe when attestations started and an older release
  • Go scripting guide: require oras.land/[email protected]
  • supply chain guide: say that the oras discover --format/--template flags are experimental in v1.4, which they still are
  • home page Linux install snippet: VERSION="1.4.0"
  • fix the "pervious" typo in the copied quickstart.mdx. Vale checks the whole new file, so the typo carried over from 1.3 failed the check

One thing to note: WinGet doesn't list ORASProject.ORAS 1.4.0 yet (the latest manifest is 1.3.6). winget install oras --version 1.4.0 will work once the community manifest is published. setup-oras already supports 1.4.0, and ghcr.io/oras-project/oras:v1.4.0 exists.

Validation

  • downloaded the v1.4.0 release assets. gpg --verify passes on the checksums file and on oras_1.4.0_linux_amd64.tar.gz. shasum -a 256 --ignore-missing -c passes. gh attestation verify succeeds, also with --source-ref refs/tags/v1.4.0, and fails with --source-ref refs/tags/v1.3.6. oras version on darwin/arm64 prints the output shown on the page
  • the Go scripting example builds and runs with oras.land/[email protected] (Go 1.26.11)
  • npm run refresh-commands: only versioned_docs/version-1.4/commands/ changes, and older versions are untouched
  • npm 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

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]>

@TerryHowe TerryHowe left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

/lgtm

@TerryHowe
TerryHowe merged commit e07f4d6 into oras-project:main Nov 20, 2026
4 checks passed
@TerryHowe

Copy link
Copy Markdown
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]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

docs: add ORAS CLI 1.4 versioned docs

2 participants