Enforce exact source coverage for Harbor chart publishing
This push tightens the Harbor chart publishing validation so every Argo CD chart declaration must have a corresponding Harbor package built from the exact upstream source—Git revision, HTTP chart version, or OCI digest. The change prevents a package from satisfying a declaration that points to a different upstream repository.
Validation now tracks upstream sources per package
The validate function in scripts/ci/harbor-chart-publish.py was refactored to build a sources_for_package set for each chart in the publish manifest. For Git charts the upstream key is ("git:" + path, revision, repository). For HTTP charts it’s (chart, version, repository). If the chart lacks an oci_digest, the DESTINATION repository is also accepted as a valid source. OCI digest-pinned charts only accept their exact upstream. The function then verifies that each Argo CD declaration in declared matches at least one source in sources_for_package, raising a typed error that distinguishes Git from Helm charts.
Test coverage for cross-repository protection and aliases
The test file scripts/ci/harbor-chart-publish-test.py gained a new suite that exercises Git charts, HTTP charts, and OCI digest pins. It asserts that a package validates against its own upstream, that a competing repository with the same chart name fails with a message naming the other repository, and that an alias declared against the DESTINATION repository still resolves to the original upstream row. The doc update in openwiki/operations/harbor-oci.md reflects the new rule: each upstream repository and revision gets its own staging directory and verified Harbor tag, and multiple apps can upgrade the same chart at different times.
Platform engineering: deterministic chart promotion
When multiple teams share a Harbor instance, a loose validation can let a package built from one team’s fork satisfy another team’s Argo CD application. This change makes the promotion pipeline deterministic: the publish job will reject the manifest unless every chart version traces back to the exact source the application declared. A platform team can adopt the same pattern by embedding the upstream repository identity in the validation key and treating OCI digest pins as immutable contracts.