This repository contains configuration templates for internal company use. Before making this repository public, ensure:
-
Configuration Files
- Remove all
appsettings.jsonandappsettings.*.jsonfiles - Use
appsettings.template.jsoninstead - Remove
db.jsonfiles with actual connection strings
- Remove all
-
Environment Files
- Keep only
.env.examplefiles with placeholder values - Remove all
.envfiles with actual credentials
- Keep only
-
IP Addresses & Hosts
- Replace all internal IP addresses (
203.228.x.x,10.10.x.x,192.168.x.x) - Use
{HOST},{DB_HOST},{K8S_HOST}placeholders
- Replace all internal IP addresses (
-
Credentials
- Remove all passwords, API keys, tokens
- Use
{PASSWORD},{API_KEY},{TOKEN}placeholders
-
Email Addresses
- Replace company emails with placeholder:
{EMAIL} - Use generic example:
[email protected]
- Replace company emails with placeholder:
-
Target Files (Prometheus/Monitoring)
- Remove or sanitize all files in
observability/prometheus/targets/ - Use template files with placeholders
- Remove or sanitize all files in
# 1. Remove sensitive files from Git history
git filter-branch --force --index-filter \
"git rm --cached --ignore-unmatch */appsettings.json" \
--prune-empty -- --all
# 2. Force push (⚠️ WARNING: This rewrites history)
git push origin --force --all
# 3. Clean up local repository
rm -rf .git/refs/original/
git reflog expire --expire=now --all
git gc --prune=now --aggressive- All passwords removed
- All internal IPs replaced with placeholders
- All email addresses sanitized
- Configuration files converted to templates
-
.gitignoreupdated - Git history cleaned
- README updated with setup instructions
- Security review completed
If you discover a security vulnerability, please email: [email protected]
DO NOT create public GitHub issues for security vulnerabilities.