Skip to content

fix(apisix): pin verified APISIX and etcd images - #1040

Open
NiuBlibing wants to merge 1 commit into
apache:masterfrom
NiuBlibing:feature/image-pinning-external-etcd
Open

NiuBlibing wants to merge 1 commit into
apache:masterfrom
NiuBlibing:feature/image-pinning-external-etcd

Conversation

@NiuBlibing

@NiuBlibing NiuBlibing commented Nov 13, 2026 •

Copy link
Copy Markdown

Scope

Pin the APISIX, bundled etcd and wait-etcd images to explicit tags and immutable multi-architecture manifest digests. The APISIX pin follows the chart's current 3.21.0 default; the dependency hook image remains aligned with the bundled etcd dependency.

External etcd remains controlled by etcd.enabled=false and externalEtcd. This PR does not migrate Bitnami data or change the chart's etcd ownership model.

Validation

uv run --with PyYAML python test/render/images.py passed. The APISIX manifest digest was checked against Docker Hub's registry manifest for amd64 and arm64, and Helm lint passed with token authentication disabled.

@NiuBlibing

Copy link
Copy Markdown
Author

Recommended merge order to reduce overlapping changes while keeping each PR single-topic:

#1039 → #1040 → #1041 → #1042 → #1043 → #1044 → #1045 → #1046 → #1047

The PRs are intentionally all based on master so their review diffs contain one topic. If upstream merges another overlapping change, only the affected topic branch needs a rebase.

@NiuBlibing

Copy link
Copy Markdown
Author

Updated recommended merge order after separating Admin API access policy from Ingress wiring:

#1039 → #1040 → #1041 → #1042 → #1043 → #1048 → #1044 → #1045 → #1046 → #1047

Each PR remains based on master and contains one topic. The sequence only reduces merge conflicts between templates and values; it is not a runtime dependency for every topic.

@membphis membphis left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Reviewed at a7444b7976cf57956cbdb7e6812d6a67ce37712d against baseline acd25584395d905511b68a20420bddf2bbd71a80.

[P1] Preserve the working etcd default or provide an explicit migration

In charts/apisix/values.yaml, this changes etcd.enabled from true to false, while externalEtcd.host still defaults to the placeholder http://etcd.host:2379. A fresh installation with default values therefore has no usable configuration store. An upgrade that adopts the new defaults also removes the bundled etcd workload and points APISIX at that placeholder.

The description currently says that external etcd remains available, but does not disclose that it becomes the default. Please keep the existing default in this image-pinning change, or provide a separately documented migration with a required real endpoint and a tested upgrade/rollback path.

[P1] Pair the pinned etcd image with a compatible chart

The bundled etcd-12.0.18.tgz declares etcd 3.6.4 and defaults preUpgradeJob.enabled to true. Its pre-upgrade Job invokes /opt/bitnami/scripts/etcd/preupgrade.sh, but the selected 3.5.17-debian-12-r2 image predates that script. With etcd.enabled=true, a subsequent Helm upgrade can fail in the hook before updating the release.

Please use a compatible chart/image pair and cover an initial installation followed by a Helm upgrade. The Bitnami container notes describe the introduction of the pre-upgrade script.

The two configured manifest digests match the published tags; the remaining issues are the default-behavior change and chart/image compatibility.

@NiuBlibing
NiuBlibing force-pushed the feature/image-pinning-external-etcd branch from a7444b7 to 6f9c1e3 Compare November 19, 2026 10:56
@NiuBlibing

Copy link
Copy Markdown
Author

Updated at 95fea9b. Bundled etcd remains enabled to preserve existing installations. APISIX and etcd use verified immutable manifest digests; etcd is pinned to 3.6.4 to match dependency 12.0.18 pre-upgrade requirements. External etcd remains explicit with etcd.enabled=false and documented migration/backup behavior.

@NiuBlibing

Copy link
Copy Markdown
Author

Follow-up review fix: the default wait-etcd BusyBox is now pinned to the verified multi-architecture digest, with an explicit empty-digest tag fallback for mirrors. Added render coverage for the default and fallback forms. Verified with python3 test/render/images.py, helm lint charts/apisix --set etcd.auth.token.enabled=false, and git diff --check.

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants