Adding Independent Core Pull Credential and Cold Pull Verification for Harbor
I introduced an independent ECR pull credential for the Harbor Core deployment, adding cold pull verification, updated render checks, and new test coverage to ensure the Core image can be pulled directly from ECR without relying on the public Harbor mirror.
Independent Core Pull Credential Architecture
The changes add a dedicated ServiceAccount harbor-core-bootstrap and ExternalSecrets harbor-core-ecr-reader and harbor-core-ecr-pull to fetch credentials from AWS SSM. The render check in scripts/ci/harbor-render-check.py now validates the bootstrap chain: ExternalSecret reader → ECRAuthorizationToken generator → ExternalSecret pull secret → ServiceAccount, ensuring each exists and the ServiceAccount sync wave precedes the Core workload.
Cold Pull Verification with Publication Receipts
A new bootstrap_reference function in scripts/harbor-full-sync.py uses the GitHub publication run ID to verify a cold pull. It creates a short-lived Job using the dedicated ServiceAccount on a worker node that lacks the digest, confirms the kubelet pulls the exact ECR image, and records the worker and digest in the receipt. The documentation in docs/harbor-image-mirroring.md describes the dry-run and execute workflow for operators.
Catalog Guards and Test Coverage
The harbor-images-check.py script now rejects the private Core ECR repository from entering the public mirror catalog and tracks Core ECR digests separately. New test cases in harbor-full-sync-test.py, harbor-images-check-test.py, and harbor-render-check-test.py exercise the bootstrap chain validation, catalog rejection, and cold pull recovery logic, ensuring the independent credential path works before cutover.