Repository navigation
Conversation
moonming
marked this pull request as draft
November 24, 2026 13:31
moonming
marked this pull request as ready for review
November 24, 2026 15:17
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
secretKeyRefasAPISIX_ETCD_PASSWORDand connects asroot.init_etcdcannot race etcd's authentication setup.fullCustomConfigcredentials, and rollback precautions.Fixes #1032. NetworkPolicy remains a separate layer: even a pod with a forged client label cannot write to etcd without credentials.
Upgrade notes
Fresh installations generate a random password without additional configuration. Existing releases must create a password Secret before upgrading and set
etcd.auth.rbac.existingSecret; an upgrade that enables authentication without it fails instead of silently changing or losing credentials. When reusing old values with--reuse-valuesor--reset-then-reuse-values, setetcd.auth.rbac.create=trueexplicitly so the previousfalsevalue is not retained. The README includes the exact commands and explains the temporary Admin API write interruption while authentication is enabled.This change is limited to password authentication and does not change the existing TLS configuration.
Verification
test/render/admin-credentials.sh: 100 assertions.test/render/etcd-access.sh: 102 assertions, including authenticated startup checks, image pull secrets, and rendering thefullCustomConfigexample extracted from the generated README.test/render/data-encryption.sh: 59 assertions.ct lint --skip-helm-dependencies --validate-maintainers=falsepasses for the APISIX, dashboard, and ingress-controller charts, using the dependency versions pinned inChart.lock.test/e2e/etcd-access.sh: 51 assertions pass, including a default three-replica startup with zero APISIX restarts, authenticated fresh installs, rejection of anonymous reads and forged-label writes, password preservation across upgrades, and migration from chart 2.18.2 with a pre-created Secret.test/e2e/data-encryption.sh: 53 assertions pass, including reads from unauthenticated old releases, authenticated reads and explicit anonymous-read rejection after migration,--reuse-valuesmigration from chart 3.0.0 with an explicitly savedcreate=false, and encryption-key rotation.Verification note
A local default three-replica startup smoke test could not complete because Docker's 59 GB virtual disk reached 100% usage. The equivalent GitHub CI jobs on Kubernetes 1.22/1.23 and Kubernetes 1.37 have now passed on the final revision, completing the required real-cluster verification.