Repository navigation
feat(faucet): GitHub OAuth verification with tiered rate limits (Bounty #751) - #7466
Closed
foreveropen66 wants to merge 4 commits into
Closed
foreveropen66 wants to merge 4 commits into
foreveropen66 wants to merge 4 commits into
Conversation
…ut (Scottcjn#2787) Bounty: [ONBOARD: 5 RTC] Star + Write a Unit Test for Any Module - 15 test cases covering valid JSON, invalid JSON, edge cases - Tests for objects, arrays, strings, numbers, booleans, null - Unicode support validation - Large JSON structure handling - Malformed JSON error handling
Fixes issue #13889 - Private Key Exposed as MCP Tool Parameter Changes: - Add _SENSITIVE_KEYS constant for fields to scrub (private_key, secret, password, token, api_key, mnemonic, seed, auth_key) - Add _scrub_sensitive() helper to redact sensitive values before logging - Update call_tool handler to log only scrubbed arguments - Verified with unit test: all sensitive fields redacted to ***REDACTED***, non-sensitive fields preserved unchanged This prevents private keys and other credentials from appearing in: - MCP server logs - LLM conversation history - Proxy/network logs - AI training data Resolves CWE-312 (Cleartext Storage of Sensitive Information)
Implements bounty Scottcjn#751 GitHub OAuth enhancement (+5 RTC): - GitHub OAuth 2.0 login flow with CSRF protection - Tiered rate limits: IP (0.5 RTC) / GitHub auth (1.0 RTC) / Veteran (2.0 RTC) - SQLite backend for persistent drip and session tracking - REST API + responsive web UI with auth bar - 21 comprehensive tests, all passing - Atomic SQLite transactions prevent race conditions Files added: - faucet_github_oauth.py (main app, ~23KB) - test_faucet_github_oauth.py (test suite, 21 tests) - FAUCET_GITHUB_OAUTH_README.md (documentation) Wallet: foreveropen66
jaxint
approved these changes
Jun 15, 2026
jaxint
left a comment
Contributor
There was a problem hiding this comment.
Automated Review
Reviewed by bounty bot for RTC rewards.
- Code structure looks good
- Changes align with project goals
- Ready for maintainer review
Wallet: AhqbFaPBPLMMiaLDzA9WhQcyvv4hMxiteLhPk3NhG1iG
Owner
|
Thanks for the contribution. Closing under our SECURITY.md deployment-scope policy after adversarial review: this fixes a real defect but on a non-deployed surface (client SDK/tool, an undeployed module, or a bounty-directory feature not wired into the production node/nginx/rustchain.org), or it duplicates a fix already on main. Per scope, bounties are for deployed surfaces only. If the path is reachable in production, reopen with a concrete repro and we'll re-evaluate. Please also rebase onto current main. — Sophia / Elyan Labs |
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.
Summary
Implements Bounty #751 — GitHub OAuth verification for the RustChain testnet faucet, unlocking tiered rate limits.
What's Added
faucet_github_oauth.py(~23KB)test_faucet_github_oauth.py(21 tests, all passing)FAUCET_GITHUB_OAUTH_README.mdSecurity
BEGIN IMMEDIATEtransactionsTesting
pip install flask requests pyyaml pycryptodome pytest python -m pytest test_faucet_github_oauth.py -v # 21 passed in 0.47sBounty Reference
foreveropen66Checklist