Fix Release Prerelease Flag Evaluation and Document Zero Gas Price Policy Tradeoff - #156
localtrade1 wants to merge 4 commits into
Conversation
…licy Tradeoff
### Description
This pull request addresses release pipeline correctness and node configuration documentation findings in `node` (**F-10, F-22**), identified during the XRPL EVM workspace security audit.
Previously, `.github/workflows/release.yml` evaluated the `prerelease` property using a nonexistent step output, causing inconsistent release tagging behavior. Additionally, the zero-value default for `MinGasPrices` lacked documentation regarding its spam deterrent tradeoff.
### Key Changes & Remediations
#### 1. Release Prerelease Expression Fix (F-10 - `.github/workflows/release.yml`)
* **Accurate Release Type Evaluation:** Fixed the `softprops/action-gh-release` step to evaluate `is_latest_release` directly from workflow inputs:
```yaml
prerelease: ${{ github.event.inputs.is_latest_release != 'true' }}
Supply Chain Pinning: Pinned third-party build and release actions to immutable commit SHAs (docker/setup-qemu-action, docker/setup-buildx-action, docker/login-action, docker/build-push-action, softprops/action-gh-release).
2. Minimum Gas Price Security Policy Documentation (F-22 - cmd/exrpd/cmd/config.go)
Spam Tradeoff Guidance: Added detailed security comments to InitAppConfig explaining that defaulting MinGasPrices to "0" eliminates economic barriers against transaction spam, guiding node validators to override it with positive values in production app.toml files.
How to Review
Inspect .github/workflows/release.yml to confirm the prerelease input evaluation and commit SHA pinning.
Review the godoc in cmd/exrpd/cmd/config.go around srvCfg.MinGasPrices.
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: defaults Review profile: CHILL Plan: Advanced Run ID: 📒 Files selected for processing (2)
Included review availability: Your plan provides up to 4 included reviews per hour; 3 remain after this review. 📝 WalkthroughWalkthroughThe release workflow now derives prerelease status from ChangesRelease publishing
Gas price documentation
Priority: ➖ Normal Estimated code review effort: 2 (Simple) | ~10 minutes Change: Bug fix Merge Risk: ⚪ Minimal · up to The release prerelease mapping and configuration documentation changes have no remaining supported merge-blocking risk. 🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
✨ Finishing Touches🧪 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 |
DescriptionAddresses release workflow prerelease flag evaluation and node configuration documentation findings (F-10, F-22) identified during the XRPL EVM workspace security audit. Key Changes & Remediations
Verification
|
Description
This pull request addresses release pipeline correctness and node configuration documentation findings in
node(F-10, F-22), identified during the XRPL EVM workspace security audit.Previously,
.github/workflows/release.ymlevaluated theprereleaseproperty using a nonexistent step output, causing inconsistent release tagging behavior. Additionally, the zero-value default forMinGasPriceslacked documentation regarding its spam deterrent tradeoff.Key Changes & Remediations
1. Release Prerelease Expression Fix (F-10 -
.github/workflows/release.yml)softprops/action-gh-releasestep to evaluateis_latest_releasedirectly from workflow inputs: ```yaml prerelease: ${{ github.event.inputs.is_latest_release != 'true' }}Supply Chain Pinning: Pinned third-party build and release actions to immutable commit SHAs (docker/setup-qemu-action, docker/setup-buildx-action, docker/login-action, docker/build-push-action, softprops/action-gh-release).
How to Review
Inspect .github/workflows/release.yml to confirm the prerelease input evaluation and commit SHA pinning.
Review the godoc in cmd/exrpd/cmd/config.go around srvCfg.MinGasPrices.
Summary by CodeRabbit
Bug Fixes
Documentation