Repository note, April 21, 2026: this is the original
peether-protocolworkspace. Current public release work has moved to:
- Backend API: https://github.com/pinkpeether/ptdt-settlement-api
- Frontend UI: https://github.com/pinkpeether/ptdt-settlement-frontend
The content below describes earlier setup steps and is retained as legacy/reference documentation.
PTDT Settlement API - Private Repository Security Configuration
Your repository is now configured with comprehensive security controls:
- ✅ Establishes vulnerability reporting process
- ✅ Defines severity levels
- ✅ Sets response time expectations (24-90 days)
- ✅ Protects pre-launch security
Location: SECURITY.md
Use: Share with trusted security researchers for responsible disclosure
- ✅ Tracks who owns which code sections
- ✅ Requires approval for critical changes
- ✅ Audit trail for all modifications
- ✅ Prevents unauthorized changes
Location: CODEOWNERS
Use: GitHub automatically enforces approvals based on this file
- ✅ Clarifies intellectual property rights
- ✅ Sets usage expectations
- ✅ Protects your code legally
- ✅ Standard for software projects
Location: LICENSE
Use: Legal protection for your code
- ✅ Prevents accidental secret commits
- ✅ Catches environment variables
- ✅ Prevents API key leakage
- ✅ Blocks private key commits
- ✅ Comprehensive pattern matching
Location: .gitignore
Use: Automatically prevents sensitive file commits
- Go to GitHub:
https://github.com/pinkpeether/peether-protocol/settings - Click Settings → General
- Scroll to Danger Zone
- Click Change repository visibility
- Select Private
- Confirm
- Go to Settings → Branches
- Add rule for
mainbranch - Enable:
- ✅ "Require a pull request before merging"
- ✅ "Require reviews from code owners"
- ✅ "Require 1 approval"
- ✅ "Dismiss stale pull request approvals"
- ✅ "Require branches to be up to date before merging"
- ✅ "Require status checks to pass"
- Go to Settings → Code security & analysis
- Enable Secret scanning
- Enable Push protection
- GitHub will block commits containing secrets
-
Create team structure:
peether-team/ ├── core-devs (code access) ├── security (security review) ├── devops (deployment) ├── maintainers (full access) -
Set up permissions:
- Maintainers: Admin access
- Core-devs: Write access
- Security: Read access (for review)
- DevOps: Write access (for deployment)
Edit CODEOWNERS with your actual team members:
# Replace @pinkpeether with actual GitHub usernames
* @username1 @username2 # Default reviewers
src/services/paymentService.ts @security-expert @cto
prisma/ @devops-lead @dba
- Go to Settings → Branches
- Under branch protection rule for
main: - Enable Require status checks to pass before merging
- Select checks:
- ✅ TypeScript compilation
- ✅ Linting
- ✅ Tests
- ✅ Security scanning
peether-protocol/
├── 🔒 SECURITY.md ← Vulnerability reporting policy
├── 📊 CODEOWNERS ← Code review ownership
├── 📄 LICENSE ← MIT License
├── 🔒 .gitignore ← Secret protection
├── 🔒 .env.example ← Template (no secrets!)
├── .env ← [NEVER COMMIT] Local only
├─┠ [All other source files]
# 1. Check git status
git status
# 2. Review changes
git diff
# 3. Make sure .env is NOT staged
git check-ignore .env # Should show .gitignore match
# 4. Add files carefully (use -p for interactive)
git add -p
# 5. Commit with message
git commit -m "feature: Description"
# 6. Push
git push origin feature-branchDO:
- ✅ Use
.env.exampleto document variables - ✅ Store secrets in GitHub Secrets (for CI/CD)
- ✅ Use environment variables locally
- ✅ Use AWS Secrets Manager / HashiCorp Vault for production
- ✅ Rotate API keys regularly
- ✅ Use different keys for dev/staging/production
DON'T:
- ❌ Commit
.envfile - ❌ Hard-code API keys in code
- ❌ Share private keys via email/chat
- ❌ Use same keys across environments
- ❌ Store secrets in comments
- ❌ Log sensitive data
-
Create Feature Branch:
git checkout -b feature/payment-improvement
-
Make Changes & Commit:
git add src/services/paymentService.ts git commit -m "fix: Improve payment validation" -
Push & Create PR:
git push origin feature/payment-improvement
-
GitHub Automatically Requests Reviewers:
- CODEOWNERS file determines who reviews
- Reviews required before merge
- Status checks must pass
-
Reviewers Approve & Merge:
- GitHub enforces approval requirement
- Only authorized users can merge
- Make repository private
- Add SECURITY.md
- Add CODEOWNERS
- Add LICENSE
- Add enhanced .gitignore
- Enable branch protection
- Enable secret scanning
- Set up GitHub teams
- Configure CODEOWNERS with real usernames
- Require status checks
- Add .env.example (no secrets!)
- Security audit of code
- Vulnerability scan
- Dependency audit
- Code review by security expert
- Load testing
- Penetration testing
- Smart contract audit (for PTDT integration)
- Production secrets configured
- Weekly secret scanning
- Monthly dependency updates
- Monthly security patches
- Quarterly code audit
- Regular backup verification
| File | Purpose | Audience | Frequency |
|---|---|---|---|
| SECURITY.md | Vulnerability reporting | Security researchers | Update on policy change |
| CODEOWNERS | Code ownership | Development team | Update on team change |
| LICENSE | Legal terms | Legal/Users | Once at launch |
| .gitignore | Secret prevention | All developers | Update on new patterns |
| .env.example | Setup template | Developers | Update with new vars |
| README.md | Project overview | All | Update on feature change |
| DEPLOYMENT.md | Deployment guide | DevOps | Update on process change |
If you suspect a security breach:
-
Immediately:
- Revoke all API keys
- Rotate database passwords
- Reset blockchain private keys
- Force-push to remove secrets (if already leaked)
-
Within 1 Hour:
- Notify team members
- Document what happened
- Review git logs for changes
- Check blockchain for unauthorized transactions
-
Within 24 Hours:
- Complete security audit
- Update all credentials
- Deploy patches
- Notify affected users
-
Follow-Up:
- Implement fixes
- Update SECURITY.md if needed
- Brief team on lessons learned
Security Issues:
- Email: security@peether.io
- Response Time: 24 hours
General Support:
- Email: support@pinktaxi.io
- GitHub Issues: Use for non-security bugs
Thank you for taking security seriously! 🔐
This setup provides:
- ✅ Pre-launch privacy
- ✅ Intellectual property protection
- ✅ Secret prevention
- ✅ Code quality enforcement
- ✅ Security auditability
- ✅ Team coordination
Your repository is now private and secure. 🚀
Last Updated: January 26, 2026 Version: 1.0