docs(etcd-encryption): document global cluster deterministic installation#773
docs(etcd-encryption): document global cluster deterministic installation#773timonwong wants to merge 2 commits into
Conversation
…tion The etcd Encryption Manager now supports global clusters via deterministic key derivation. Restructure the page to introduce a "Key Strategies" section and split installation into the existing workload/DCS path and a new global cluster path that documents the three UI-exposed plugin parameters (key_strategy, replication_group_id, master_secret_name), master Secret preparation, and chart-only advanced fields. Highlight DR-pair requirements (matching parameters across Active/Standby, etcd Synchronizer v4.3.7+ baseline, same master key material on every cluster in the replication group, sufficient entropy when generating the master key) as warning callouts so misconfiguration that would silently break failover is hard to miss.
WalkthroughThe etcd encryption documentation has been expanded from a brief installation overview to a comprehensive guide covering key strategy selection (random vs deterministic), cluster-type-specific installation requirements, deterministic mode prerequisites and parameter configuration, master Secret creation procedures, and Global DR pair behavioral details for deterministic key derivation and replication across failover scenarios. Changesetcd Encryption Configuration Guide
Estimated code review effort🎯 2 (Simple) | ⏱️ ~10 minutes Possibly related PRs
Suggested reviewers
Poem
🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches📝 Generate docstrings
🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
Align with the upstream etcd-encryption-manager API rename: masterSecretRef → rootSecretRef, master_secret_name → root_secret_name, default Secret etcd-derivation-master → etcd-derivation-root, Secret data key master-key → root-key, and the example file master-key.bin → root-key.bin. Drop the cspell ignore for "master" — it is no longer used in this file and the project's inclusive-language rule (master → control plane) now applies cleanly. Keep the cspell ignore for `urandom`, which is still referenced via `/dev/urandom`.
|
Review of the deterministic etcd encryption documentation. Overall this is a strong update — the binary P1 — Root key file: secure transport channel is not statedThe Preparing the Root Secret section tells the operator to generate Suggest adding one sentence right after the existing key-material warning:
P1 — Root key file: lifecycle after Secret creation is not statedOnce Suggest adding step 3 to Preparing the Root Secret: A related minor tightening: the warning currently reads
If keeping the generic wording for forward compatibility is intentional, ignore this nit. P2 — Plugin Parameters overview table mixes literal defaults with UI behaviorRow 3 has a literal default. Rows 1 and 2 have narrative paragraphs in the same column. Scanning the column reads inconsistently. Suggest keeping only the literal value in P2 —
|
Summary
docs/en/configure/clusters/etcd-encryption.mdxto support the new global-clusterdeterministickey strategy alongside the existing workload/DCSrandomstrategy. Removes the stale "Not supported: global cluster" note.Key Strategiessection that comparesrandomvs.deterministicand clarifies that Active/Standby roles are detected at runtime, not configured manually.key_strategy,replication_group_id,root_secret_name), how to generate areplication_group_id, and how to prepare the root Secret in two explicit steps with an entropy guideline.deterministicmode with identical parameters, etcd Synchronizer v4.3.7+, identical key material across the replication group, and a "use the same value on both clusters" reminder forreplication_group_id.Advancedblock covering chart-only fields (activationPolicy,approvalDelay,derivationAlgorithm,dimension,rootSecretRef.namespace) that are not exposed in the plugin form.How it Worksdescribing how deterministic mode interacts with the etcd Synchronizer (SeedBundle generation/replication, Standby derivation, auto role detection).Source of truth: the etcd-encryption-manager
feat/deterministic-key-derivationbranch (already merged to main upstream), updated terminology in the parallel "rename master→root" change. Chart parameter / CRD field names in this PR use the newroot*naming.Out of scope:
docs/en/install/global_dr.mdx— not modified.Test plan
npx cspell --config cspell.config.js docs/en/configure/clusters/etcd-encryption.mdx— 0 issuesyarn lintvia pre-commit hook — 0 errors, 0 warningsyarn dev):Key Strategiessection appears aboveInstallation#global-deterministicresolves<Directive type="warning">callouts render<details>advanced block collapses by default