fix: remove keyring-backend=test default override#120
Conversation
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: defaults Review profile: CHILL Plan: Pro Run ID: 📒 Files selected for processing (1)
✅ Files skipped from review due to trivial changes (1)
📝 WalkthroughWalkthroughThe root command initialization no longer calls the recursive helper that overwrote the Changes
Estimated code review effort🎯 2 (Simple) | ⏱️ ~8 minutes Poem
🚥 Pre-merge checks | ✅ 4 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (4 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches📝 Generate docstrings
🧪 Generate unit tests (beta)
Warning There were issues while running some tools. Please review the errors and either fix the tool's configuration or disable the tool if it's a critical failure. 🔧 golangci-lint (2.11.4)Error: can't load config: unsupported version of the configuration: "" See https://golangci-lint.run/docs/product/migration-guide for migration instructions 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 |
fix: remove keyring-backend=test default override
Motivation 💡
The root command was globally overriding the keyring backend default to
testacross all subcommands, including production node operations. Thetestbackend stores keys as unencrypted JSON files under~/.exrpd/keyring-test/with no passphrase protection, so any operator running the binary without explicitly passing--keyring-backend=oswould silently use the insecure backend. This exposes Cosmos-managed keys (e.g. hot wallet keys for fee payments or EVM operations) to any attacker with local filesystem access.Changes 🛠
overwriteFlagDefaultscall incmd/exrpd/cmd/root.gothat setflags.FlagKeyringBackendtotest, restoring the Cosmos SDK default ofos(OS secret store).Considerations 🤔
testbackend will need to either pass--keyring-backend=testexplicitly for local development or migrate their keys to theosbackend.Summary by CodeRabbit