Repository navigation
feat(sdk): pull images from private registries on Docker - #13412
Merged
Merged
Conversation
spec.registries lists registry addresses; every generated Docker provider gets a matching registry_auth and reads the login of the machine running OpenTofu from its Docker configuration file, optionally a configFile. A live test pulls from a registry that requires a login, without credentials in state.
cv
enabled auto-merge (squash)
October 18, 2026 09:56
Contributor
cv
added a commit
that referenced
this pull request
Oct 18, 2026
## Failure On #13412, all 27 `nemoclaw-build` `changes::` tests failed in CI with `git rev-parse HEAD: fatal: not a git repository`. Since #13407, these tests copy a fixture repository built once under Cargo's `CARGO_TARGET_TMPDIR`, reusing it whenever its `.git` directory exists. CI caches `target/`, which includes that directory. The failures fit a restored cache that kept `.git` but not the files inside it. The template then passed the check, but its copies weren't Git repositories. #13407's own CI had no cached template, so it passed. ## Decision A template is reused only if: - a completion marker, written inside `.git` after the base commit, exists; and - `git rev-parse --verify HEAD` succeeds in it. Otherwise it's removed and rebuilt. The marker lives inside `.git`, so copies don't see it as an untracked file. This adds one Git call per test, while still avoiding a Cargo and Git build of the fixture per test. ## Validation - A new test, `an_incomplete_template_is_not_reused`, checks that a template whose `.git` contains only the marker and an empty `objects` directory isn't reused. - All 27 `changes::` tests pass locally. - `cargo ci` passes locally: 1,554 unit tests and 153 lifecycle tests.
This was referenced Oct 27, 2026
cv
pushed a commit
that referenced
this pull request
Oct 27, 2026
) ## Failure Reviewing #13080's follow-ups (#13837) turned up docs that no longer match v1: references to the Qwen recipe #13506 removed, an incomplete list of cluster rights, links to closed issues as open work, an HTTPS-only claim #13063 relaxed, and a skills example the schema rejects. ## Decision ```mermaid flowchart LR R["recipes.md: inline Qwen example and adapter"] --> R2["Removed (#13506)"] K["kubernetes.md: cluster rights"] --> K2["Add ServiceAccounts, Roles,<br/>RoleBindings, pods/portforward"] K3["kubernetes.md: #12709 open"] --> K4["Link Pull from Private Registries"] U["usage.md: Podman removal not covered"] --> U2["Link the Podman removal steps"] U3["usage.md: credentials require HTTPS"] --> U4["Prefer HTTPS, as inference.md says"] A["agents.md: harness under agent"] --> A2["harness, with kind, on the sandbox"] ``` - The rights are what the pinned chart creates with NemoClaw's values (`serviceAccount.create` and `rbac.create` default on) and the port-forward the SDK opens to the gateway pod. - #12709 closed after #13412 added Docker registry logins; #12640's Podman removal steps are in `usage.md`. ## Validation - The `agents.md` example, merged into `examples/fabric-openclaw.yaml`, validates against the schema; the old one fails with "'harness' was unexpected". - `cargo run --locked -p nemoclaw-build -- docs --check` passes; `git diff --check` is clean. Part of #13837. Co-authored-by: Claude Opus 5.5 <[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.
Closes #12709 together with #13390, which covered Kubernetes and OpenShift.
Failure
NemoClaw pulled every image through the Docker provider anonymously. The SDK never wrote the provider's
registry_auth, so managed gateway and service images on Docker couldn't come from a private registry.Decision
spec.registries: lists registry addresses. Every generated Docker provider gets a matchingregistry_auth, and the provider reads the login of the machine running OpenTofu from its Docker configuration file. The configuration, graph and state hold only addresses.configFile: optional per registry. The bundled provider reads.docker/config.jsonin the OS user's home directory and doesn't honorDOCKER_CONFIG; the live test confirmed this. SettingconfigFilepasses another file to the provider'sconfig_file.usage.md. Agent images on Docker and Podman are pulled by OpenShell's driver with the engine host's own login, so NemoClaw adds nothing there. Kubernetes and OpenShift use feat(kubernetes): reference existing image pull Secrets #13390's pull Secrets.htpasswd, Docker helper).Validation
docker_registry, runs a registry that requires a login, pushes an image with a login in a temporary Docker config, and applies the SDK-generated provider block with the bundled OpenTofu and Docker provider. It checks that:registry_auth, the pull is refused;cargo cipasses locally (1554 unit tests and 153 lifecycle tests), and so doescargo ci live-docker, including the new test.