Przejdź do treści
Biblioteka skilli
Bezpieczeństwo · Przegląd i audyt

secrets-management

/secrets-management

Znajduje i zabezpiecza wyciekłe sekrety, ustawia bezpieczne przechowywanie, rotację i skanowanie GitHub z blokadą push.

Licencja
MIT
Ostatnia zmiana repozytorium
07.11.2026

Ocena i bezpieczeństwo

100/ 100Klasa: dobry
Format25 / 25
Frontmatter z nazwą i opisem, poprawna nazwa, opis do 1024 znaków, nazwa zgodna z folderem.
Odkrywalność25 / 25
Opis mówi, kiedy użyć skilla, ma sensowną długość i jest w 3. osobie.
Treść35 / 35
Co najmniej 150 słów i do 500 linii, nagłówki, listy kroków, przykłady albo kod.
Higiena15 / 15
Bez zaślepek typu TODO, bez ścieżek Windows, z licencją.
Ryzykobrak sygnałów w skanie
Pliki w paczce
1
Skrypty
0
Komentarze HTML
0
Adresy URL w SKILL.md
0
Przestarzałość

Brak sygnałów. Repozytorium zmienione 07.11.2026, bez odwołań do wycofanych modeli i API.

Licencja

MIT, otwarta: można używać i zmieniać, z zachowaniem informacji o autorze.

Co robi i kiedy

Znajduje i zabezpiecza wyciekłe sekrety, ustawia bezpieczne przechowywanie, rotację i skanowanie GitHub z blokadą push.

Oryginalny opis (EN)

Find, contain and prevent exposed secrets — API keys, tokens, passwords, private keys and environment files — and set up proper storage, rotation and GitHub secret scanning with push protection. Use when secrets are found, when configuring environments or CI, or during audits.

Jak działa

  1. Objectives
  2. Steps
  3. Security rules
  4. Validation criteria
Sekcje z nagłówków SKILL.md, w oryginale · 43 linii, 357 słów
Podgląd SKILL.md
---
name: secrets-management
description: Find, contain and prevent exposed secrets — API keys, tokens, passwords, private keys and environment files — and set up proper storage, rotation and GitHub secret scanning with push protection. Use when secrets are found, when configuring environments or CI, or during audits.
---

# Secrets management

Part of saas-blind-security — created and maintained by IbrahimCodeur.

## Objectives

- No secret in source code, git history, logs, images, client bundles or reports.
- Secrets are stored in the environment / secret manager, scoped, rotated and revocable.

## Steps

1. **Detect.** `$SBS/scripts/security-check.sh --only builtin,semgrep` (rules `sbs-builtin-hardcoded-secret`,
   `sbs-known-token-format`, `sbs-hardcoded-credential-assignment`), GitHub secret scanning alerts, review of
   `.env*`, config files, Docker build args, CI files, frontend bundles (`NEXT_PUBLIC_*`, `VITE_*`,
   `NUXT_PUBLIC_*` are public by design — they must not contain secrets).
2. **History.** If git history is available, check whether the secret was ever committed
   (`git log -p -S '<prefix>'` with a non-secret prefix only). Removing it from HEAD is not enough.
3. **Contain (with the user).** A committed secret must be considered compromised: revoke/rotate it at the
   provider first, then remove it from the code, then optionally purge history (`git filter-repo`) — history
   rewriting requires the user's explicit approval and coordination.
4. **Store properly.** Environment variables loaded at runtime, `.env` git-ignored with a `.env.example`
   containing placeholders only; GitHub Actions secrets / environments for CI; a secret manager (cloud provider
   or Vault) for production; least-privilege, per-environment keys; separate test and live keys.
5. **Prevent.** Enable GitHub secret scanning + push protection (`$SBS/scripts/configure-github-security.sh`),
   `.gitignore` for `.env*`, no secrets in Docker images (use runtime env or BuildKit secrets), no secrets
   in logs/error trackers (scrub), CI uses `${{ secrets.X }}` and never echoes them.
6. **Application secrets.** Laravel `APP_KEY`, Django `SECRET_KEY`, JWT signing keys, session secrets: unique
   per environment, long and random, rotated with a plan (rotation invalidates sessions/tokens).

## Security rules

- Never display, copy, test or transmit a discovered secret. Report file:line and `[REDACTED]`.
- Never commit realistic fake secrets in tests; generate them at runtime.
- Do not rewrite git history or rotate production keys yourself without explicit approval.

## Validation criteria

- [ ] Secret scanners clean, or every finding classified (rotated + removed, or false positive).
- [ ] `.env` ignored; `.env.example` contains placeholders only.
- [ ] Push protection enabled (or documented as unavailable for the plan).
- [ ] Rotation performed or explicitly handed over to the owner for each exposed secret.

Wersje

RepozytoriumWynikLicencja
Ta strona · IbrahimCodeur/saas-blind-security100MIT
nikospavlopoulos/devops-mutant-powers100MIT
rootcastleco/rei-skills100MIT
ILIV007/prime-skill100MIT
OKHP3/skillz100MIT
nimadorostkar/Claude-Skills-collection100MIT
thisiskurubaran/DevSecOps100MIT
claude-dev-suite/claude-dev-suite100MIT
wshobson/agents100MIT

Migawka bazy z 13.11.2026 · wersja paczki a98feb64b9d5 (skrót SHA-256 całej paczki)

Pobrania w ostatnich 30 dniach: 1 · ranking

Zgłoś problem z tym skillem: szkodliwa treść, błędny opis albo prośba autora o usunięcie.

Podobne skille

  • 90secrets-management-audit
    Szuka wyciekłych sekretów w kodzie, historii gita, logach i konfiguracji oraz audytuje ich przechowywanie, rotację i minimalne uprawnienia.
  • 100scanning-for-secrets
    Wykrywa ujawnione sekrety, klucze API i poświadczenia w kodzie przy audycie wycieków.
  • 100scanning-for-secrets
    Wykrywa ujawnione sekrety, klucze API i poświadczenia w kodzie przy audycie wycieków.
  • 90secrets-management-audit
    Skanuje kod pod kątem zakodowanych na sztywno sekretów i słabej obsługi kluczy oraz sprawdza rotację kluczy i miejsca przechowywania haseł.
  • 90Secret Scanning
    Wyszukuje zakodowane na sztywno dane uwierzytelniające i wyciekłe klucze w kodzie źródłowym oraz historii gita podczas przeglądu white-box.
  • 100secret-scanning
    Konfiguruje skanowanie sekretów w GitHub, blokadę push i własne wzorce oraz obsługuje związane z tym alerty.

Uwagi i zgłoszenia

Wiadomość trafi do Bartosza Sokolińskiego. Adres e-mail jest potrzebny tylko do odpowiedzi. Szczegóły w polityce prywatności.