Post

Independent Private Harbor Core Publication to an ECR Bootstrap Repository

Independent Private Harbor Core Publication to an ECR Bootstrap Repository

I added a new CI step that publishes the tested Harbor Core image to a dedicated ECR repository, binding the published digest to the verified build and enabling a secure, isolated cutover.

Introducing Independent Private Core Publication in Harbor CI

I extended the Harbor CI workflow with a bootstrap_registry boolean input and a new job that runs builds/harbor-core/publish-bootstrap.sh. The job downloads the image, verifies its digest and configuration, and signs it using the exact workflow identity and source commit. This creates an immutable ECR repository outside the cluster that can be consumed by the runtime without affecting the main Harbor registry.

Validate and Verify the Published Image with Source Tests

The scripts/ci/harbor-core-source-test.py test was updated to invoke the new bootstrap script in a temporary environment. It checks that the expected inspection and escape files are created, validates that the digest matches the expected SHA‑256 hash, and confirms the configuration digest aligns with the signed workflow. The test fails when the script does not produce the required artifacts, ensuring the publishing step behaves as intended before any cutover.

Documentation and Cutover Steps for the New ECR Repository

I added a dedicated section to docs/harbor-image-mirroring.md describing the independent Core publication process, including how to apply the operator unit, configure External Secrets, and use the pinned reference for the later GitOps cutover. The openwiki/operations/harbor-oci.md file was also updated to note that the Core recipe now uses the signed Photon zlib update and that the protected Core workflow can publish to the immutable ECR repository with separate pull credentials. Teams can follow these steps to safely publish their own core services to an isolated registry and perform a controlled cutover.

This post is licensed under CC BY 4.0 by the author.