feat: support scoped registry1 parent-image pulls #133

Merged
gitchegumi merged 2 commits from kiyi/base-image-registry1-auth into main 2026-10-19 12:20:06 -05:00
Member

Registry1-derived Core image patches need authenticated parent pulls. Add optional registry1_parent_pulls to base-image.yml, preinstalled-base-image.yml and validate-base-images.yml, using the existing UDS registry credential pair only for registry1.dso.mil. The default remains off.

All three workflows use disposable Docker configuration, reject missing credential pairs and clear UDS credentials before subsequent commands. Existing scan names, gates, publication guards and the preinstalled image activation/provenance contract remain intact.

Run 1065 caught the missing preinstalled wrapper change in the existing operation-parity test. Commit 5a4398a gives both build entry points the same optional authentication and extends the real-shell mocked credential/cleanup cases to cover the preinstalled path. The parity assertion remains unchanged.

Validation: 556 Linux unit/contract tests completed successfully (20 tool/integration-dependent cases skipped locally), plus the native Windows Git-path workflow-channel case passed separately. The original failing security-image operation-parity test and credential cleanup cases pass. YAML/Bash validation and 16 mocked gate cases, Ruff, staged-diff checks and native Gitleaks passed. Hosted acceptance and full tool/integration checks remain required; no local image build or deployment was performed.

Merge, publish and promote this workflow change before adopting the new input in base-images #57.

Registry1-derived Core image patches need authenticated parent pulls. Add optional `registry1_parent_pulls` to `base-image.yml`, `preinstalled-base-image.yml` and `validate-base-images.yml`, using the existing UDS registry credential pair only for `registry1.dso.mil`. The default remains off. All three workflows use disposable Docker configuration, reject missing credential pairs and clear UDS credentials before subsequent commands. Existing scan names, gates, publication guards and the preinstalled image activation/provenance contract remain intact. Run [1065](https://git.gitchegumi.com/Homelab/workflows/actions/runs/1065/jobs/0/attempt/1) caught the missing preinstalled wrapper change in the existing operation-parity test. Commit `5a4398a` gives both build entry points the same optional authentication and extends the real-shell mocked credential/cleanup cases to cover the preinstalled path. The parity assertion remains unchanged. Validation: 556 Linux unit/contract tests completed successfully (20 tool/integration-dependent cases skipped locally), plus the native Windows Git-path workflow-channel case passed separately. The original failing security-image operation-parity test and credential cleanup cases pass. YAML/Bash validation and 16 mocked gate cases, Ruff, staged-diff checks and native Gitleaks passed. Hosted acceptance and full tool/integration checks remain required; no local image build or deployment was performed. Merge, publish and promote this workflow change before adopting the new input in [base-images #57](https://git.gitchegumi.com/Homelab/base-images/pulls/57).
feat: support scoped registry1 parent-image pulls
Some checks failed
Security image compatibility / startup (pull_request) Successful in 1m8s
Security image compatibility / legacy (pull_request) Successful in 0s
Workflow acceptance / acceptance (pull_request) Successful in 1m53s
Repository security / security-1 (pull_request) Successful in 2m25s
Security image compatibility / startup-1 (pull_request) Successful in 2m27s
Security image compatibility / image (pull_request) Successful in 0s
Library checks / tests (pull_request) Failing after 2m30s
2f5a0a8055
portegumi approved these changes 2026-10-19 01:18:29 -05:00
Dismissed
portegumi left a comment

Reviewed exact head 2f5a0a8055 and the full changed workflow steps, test hunks, and documentation. The optional input defaults off; both build and definition validation scope UDS credential login to registry1.dso.mil, reject missing pairs, use disposable Docker configuration with EXIT cleanup, and unset the UDS credentials before later commands. Existing image scanning, signing/publication guard, and check names remain in place. This is parent-image pull authentication, not a UDS deployment, admission, or routing change; no gateway or bundle changes are warranted. Source approved. Exact-head Library, acceptance, repository-security and image-compatibility checks remain pending and must pass before merge; no live image build/deployment was verified.

CI at submission: pending. This is a source-review approval, not a scan verdict; required checks still block merge.

Reviewed exact head 2f5a0a8055e6ff9b248321f30a245371469183eb and the full changed workflow steps, test hunks, and documentation. The optional input defaults off; both build and definition validation scope UDS credential login to registry1.dso.mil, reject missing pairs, use disposable Docker configuration with EXIT cleanup, and unset the UDS credentials before later commands. Existing image scanning, signing/publication guard, and check names remain in place. This is parent-image pull authentication, not a UDS deployment, admission, or routing change; no gateway or bundle changes are warranted. Source approved. Exact-head Library, acceptance, repository-security and image-compatibility checks remain pending and must pass before merge; no live image build/deployment was verified. CI at submission: pending. This is a source-review approval, not a scan verdict; required checks still block merge.
fix: align preinstalled registry1 parent authentication
All checks were successful
Security image compatibility / startup (pull_request) Successful in 45s
Security image compatibility / legacy (pull_request) Successful in 0s
Workflow acceptance / acceptance (pull_request) Successful in 1m38s
Security image compatibility / startup-1 (pull_request) Successful in 1m16s
Security image compatibility / image (pull_request) Successful in 0s
Repository security / security-1 (pull_request) Successful in 4m39s
Library checks / tests (pull_request) Successful in 5m1s
5a4398aa98
kiyi dismissed portegumi's review 2026-10-19 11:29:46 -05:00
Reason:

New commits pushed, approval review dismissed automatically according to repository settings

portegumi approved these changes 2026-10-19 11:31:08 -05:00
portegumi left a comment

Reviewed exact head 5a4398aa98, including full source for all three workflow entry points and the new real-shell credential tests. The preinstalled path now matches the standard build path: opt-in boolean defaults false, fixed registry1.dso.mil login requires both UDS secrets, and both paths use disposable DOCKER_CONFIG with EXIT cleanup and unset the UDS credential variables before the build. Validation preserves Dockerfile checks and its existing scan-registry auth; publication protections, artifact retention and preinstalled runtime provenance remain intact. This changes authenticated parent pulls, not UDS deployment, routing, admission or gateway ownership. No source blocker found. Prior own approval was on an older SHA; this verdict applies only to the current head. Exact-head Library, acceptance, repository-security and security-image compatibility checks are pending; source approval is not scan acceptance or merge authorization. No image build or deployment verified.

CI at submission: pending. This is a source-review approval, not a scan verdict; required checks still block merge.

Reviewed exact head 5a4398aa9856b17addd1ca25bc4449b0e1208fcb, including full source for all three workflow entry points and the new real-shell credential tests. The preinstalled path now matches the standard build path: opt-in boolean defaults false, fixed registry1.dso.mil login requires both UDS secrets, and both paths use disposable DOCKER_CONFIG with EXIT cleanup and unset the UDS credential variables before the build. Validation preserves Dockerfile checks and its existing scan-registry auth; publication protections, artifact retention and preinstalled runtime provenance remain intact. This changes authenticated parent pulls, not UDS deployment, routing, admission or gateway ownership. No source blocker found. Prior own approval was on an older SHA; this verdict applies only to the current head. Exact-head Library, acceptance, repository-security and security-image compatibility checks are pending; source approval is not scan acceptance or merge authorization. No image build or deployment verified. CI at submission: pending. This is a source-review approval, not a scan verdict; required checks still block merge.
gitchegumi deleted branch kiyi/base-image-registry1-auth 2026-10-19 12:20:07 -05:00
Sign in to join this conversation.
No reviewers
No milestone
No project
No assignees
2 participants
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
Homelab/workflows!133
No description provided.