Repository navigation
fix(server)!: drop generated root passwords, journal root, gate snapshots - #4585
Merged
Merged
Conversation
Codecov Report❌ Patch coverage is Additional details and impacted files@@ Coverage Diff @@
## master #4585 +/- ##
============================================
+ Coverage 89.70% 89.74% +0.03%
+ Complexity 2146 2145 -1
============================================
Files 1343 1343
Lines 289988 291385 +1397
Branches 246223 247622 +1399
============================================
+ Hits 260137 261498 +1361
- Misses 24140 24157 +17
- Partials 5711 5730 +19
🚀 New features to boost your workflow:
|
numinnex
reviewed
Oct 20, 2026
Contributor
Author
|
/ready |
hubcio
requested changes
Oct 20, 2026
hubcio
left a comment
Contributor
There was a problem hiding this comment.
simplification: get_env_vars always returns root credentials, so remove the unreachable empty-environment fallbacks at scripts/performance/run-standard-performance-suite.sh:178 and scripts/performance/run-standard-performance-suite.sh:232.
numinnex
reviewed
Oct 20, 2026
Contributor
Author
|
@hubcio Removed both empty-environment fallbacks from the performance script, as requested in the review summary. |
Contributor
Author
|
/ready |
numinnex
reviewed
Oct 20, 2026
Contributor
Author
|
/ready |
hubcio
previously approved these changes
Oct 20, 2026
mmodzelewski
previously approved these changes
Oct 20, 2026
numinnex
reviewed
Oct 20, 2026
Contributor
Author
|
/ready |
numinnex
approved these changes
Oct 20, 2026
hubcio
approved these changes
Oct 20, 2026
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.
A server started without IGGY_ROOT_USERNAME and IGGY_ROOT_PASSWORD generated a root password and wrote it to stdout and the log file, so anything that could read either stream owned the server. Root was also created in local memory only: a restart before a checkpoint rebuilt it from the environment, and each replica minted its own.
Remove the generator. Fresh root initialization requires both variables or --with-default-root-credentials, and neither value is ever logged. Create root once through the standard metadata replication path: the leader journals the username and password hash, replicas apply the committed account, and restarts recover it without bootstrap credentials.
Require manage_servers for diagnostic snapshots, since the archive carries raw server logs and host diagnostics, and redact the legacy generated-password line from the server-log section. Render readable startup errors and keep launcher guidance consistent.
Recovery keeps disconnected WAL chunks out of replay and commit-watermark calculation. Root validation treats checkpoints at op 0 as uninitialized. Checkpointing skips completed frontiers while preserving retries after a persistence failure.
BREAKING CHANGE: the server no longer generates a root password. Fresh root initialization requires explicit credentials or the development flag. Diagnostic snapshots require manage_servers. Storage format IGGY-BOUND-GRANTS-4 is incompatible with earlier data directories. All existing data directories must be wiped before upgrading. There is no in-place upgrade or automatic migration.