Repository navigation
refactor: remove ingot root creds - #60
Merged
Merged
Conversation
There was a problem hiding this comment.
🔵 Needs a closer look
Existing root credentials are not purged from previously provisioned nodes; add and document a privileged cleanup migration.
Pull request overview
Removes deprecated Ingot root credentials now that root access is disabled.
Changes:
- Stops generating, loading, and exporting root credentials.
- Removes root credential fields from development and staging configurations.
- Updates related secret documentation.
File summaries
| File | Summary |
|---|---|
scripts/host/keygen.sh |
Removes root credential generation; existing credentials still require privileged cleanup. |
scripts/host/deploy-apps.sh |
Stops loading and exporting root credentials. |
nodes/staging/apps/config/ingot/config.yaml.tpl |
Removes root credential settings. |
nodes/dev/apps/config/ingot/config.yaml.tpl |
Removes root credential settings and documentation. |
nodes/dev/apps/compose.yml |
Updates the secret configuration comment. |
Review details
Suppressed comments (1)
scripts/host/keygen.sh:168
- This keeps the old credentials in place on every node that was provisioned before this change:
generate_passwordonly creates missing fields, and removing the two calls does not delete the existingingot#root_access_key/ingot#root_secret_keyvalues from OpenBao. Because the deploy policy only grants create/read/update/patch (scripts/host/provision-platform.sh:180-187), normal re-provisioning cannot scrub them, so add a privileged migration/cleanup step and document how existing nodes are purged.
if bao_has "$path" "$field"; then
echo " $path#$field already set"
return 0
fi
bao_put_if_absent "$path" "$field" "$(openssl rand -hex 32)"
- Files reviewed: 5/5 changed files
- Comments generated: 0
- Review effort level: Lite
💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.
bajtos
approved these changes
Sep 15, 2026
bajtos
left a comment
Member
There was a problem hiding this comment.
![]()
Existing root credentials are not purged from previously provisioned nodes; add and document a privileged cleanup migration.
I think that's fine, no need to purge them.
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.
Ingot root access is now disabled.
refs fil-forge/ingot#142 fil-forge/smelt#42