security: fix faucet rate limiting, backup key permissions, and ECDSA signature exposure#115
Draft
security: fix faucet rate limiting, backup key permissions, and ECDSA signature exposure#115
Conversation
…sure Co-authored-by: numbers-official <181934381+numbers-official@users.noreply.github.com>
Copilot
AI
changed the title
[WIP] Fix faucet nginx config to implement rate limiting
security: fix faucet rate limiting, backup key permissions, and ECDSA signature exposure
Mar 4, 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.
Three high-severity security issues: faucet API had no rate limiting (token drain vector), staking key backups were world-readable plaintext, and full ECDSA signature components (
r,s,v) were published in the README alongside nonce and transaction data.Faucet nginx rate limiting (
faucet/default)limit_req_zoneat 1 req/min per IP with a 10 MB shared zone/api/location now enforcesburst=2 nodelay, returns 429 on excess, and caps body size at 1 KBBackup script hardening (
chains/backup-validator.sh)#!/bin/bashto supportset -euo pipefailumask 077+ explicitchmod 600ensure archive is never world-readable%Y%m%d-%H%M%S) to prevent same-day overwritesECDSA signature scrub (
README.md)r,s,v,nonce,data,blockHash,gasPrice) with a minimal summary — retaining onlyhash,blockNumber,from,to, andchainIdOriginal prompt
✨ Let Copilot coding agent set things up for you — coding agent works faster and does higher quality work when set up for your repo.