Add automation config snapshot debugging feature#890
Draft
nammn wants to merge 2 commits intovm-migration-feature-branchfrom
Draft
Add automation config snapshot debugging feature#890nammn wants to merge 2 commits intovm-migration-feature-branchfrom
nammn wants to merge 2 commits intovm-migration-feature-branchfrom
Conversation
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
Add debug-only automation config snapshot feature to track AC changes step-by-step. When
MDB_AC_SNAPSHOT=trueis set on the operator pod, each PUT to the automationConfig endpoint is captured as a numbered diff in a<resource-name>-ac-snapshotConfigMap.Why: Debugging complex AC change sequences (like auth migrations) requires visibility into what changed between each reconcile step. Current logging doesn't preserve the full change history.
What:
Proof of Work
ConfigMap created with step-by-step diffs showing X.509 → SCRAM-256 migration:
step-001: Initial AC structure createdstep-002: Auth made authoritativestep-003: X.509 auth enabledstep-004: Replica set and processes addedstep-005: SCRAM-256 added to deployment auth mechanismsstep-006: TLS mode relaxed to OPTIONALstep-007: Auth disabledstep-008: Switched to SCRAM-256 (removed X.509, added autoPwd)Full ConfigMap output validates the feature works end-to-end.
Checklist
skip-changeloglabel if not needed