Skip to content

Add secret scanning guardrails#2

Merged
Lightheartdevs merged 1 commit intomainfrom
add-secret-scanning
Feb 17, 2026
Merged

Add secret scanning guardrails#2
Lightheartdevs merged 1 commit intomainfrom
add-secret-scanning

Conversation

@Lightheartdevs
Copy link
Copy Markdown
Collaborator

Summary

  • Pre-commit hooks (.pre-commit-config.yaml): gitleaks + detect-private-key run locally before any commit
  • GitHub Actions workflow (.github/workflows/secret-scan.yml): gitleaks scans every PR and push to main
  • Expanded .gitignore: global patterns for .env, *.key, *.pem, *.pfx, *.crt, credentials.*, secrets.*, *.keystore

Prevents agents and contributors from accidentally committing API keys, tokens, certificates, and other sensitive data.

Test plan

  • Verify the GitHub Actions workflow runs on this PR
  • Confirm .env.example files are NOT ignored (negation rule !.env.example)
  • Install pre-commit locally and verify gitleaks hook catches test secrets

?? Generated with Claude Code

…ded .gitignore

Prevents agents and contributors from accidentally committing secrets:
- .pre-commit-config.yaml: gitleaks + detect-private-key hooks (local)
- .github/workflows/secret-scan.yml: gitleaks action on PRs and pushes (CI)
- .gitignore: global patterns for .env, keys, certs, credentials, keystores

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@Lightheartdevs Lightheartdevs merged commit 91d6020 into main Feb 17, 2026
1 check failed
SSignall pushed a commit to SSignall/DreamServer that referenced this pull request Mar 8, 2026
- manifest.yaml with features, VRAM requirements
- compose.yaml pinned to 1.12.1, LLM integration via API_URL
- README with usage and integration docs
- Health endpoint: /
- Persistent storage: ./data/sillytavern/
igorls referenced this pull request in igorls/DreamServer Mar 9, 2026
Shell Scripts:
- dream-restore.sh: Replace hardcoded config list with dynamic glob for
  compose overlays (.base.yml, .nvidia.yml, etc.) (Light-Heart-Labs#4)
- dream-update.sh: Use resolve-compose-stack.sh for container restart
  instead of hardcoded docker-compose.yml (Light-Heart-Labs#7)
- dream-update.sh: Enable dotglob in rollback to restore hidden files
  like .env and .version (Light-Heart-Labs#6)
- dream-backup.sh: Include .tar.gz archives in retention/list queries
  to prevent infinite disk accumulation (Light-Heart-Labs#9)
- dream-backup.sh: Dynamic glob for config backup (compose overlays)

Token Spy:
- compose.yaml: Add persistent volume mount for data/ directory to
  prevent SQLite data loss on container restart (#2)
- main.py: Offload blocking SSH subprocess to thread pool via
  asyncio.to_thread() to prevent event loop deadlock (#3)
- main.py: Add finally blocks in streaming generators to guarantee
  billing metrics are logged on asyncio.CancelledError (Light-Heart-Labs#8)
- db_postgres.py: Add conn.rollback() on failed SQL to prevent
  connection pool poisoning (Light-Heart-Labs#10)

Installer:
- detection.sh: Run systemd auto-resume service as root instead of
  $USER to prevent sudo password hang and permission errors (Light-Heart-Labs#11)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant