# recorded: gitleaks 8.21.2, default ruleset plus generic-api-key, run 2026-11-19 against nb-support-api (working tree, --no-git)
# This is the reference output secrets.sh prints when gitleaks is not installed. The live tool reports the same two results.

    ○
    │╲
    │ ○
    ○ ░
    ░    gitleaks

Finding:     API_KEY = os.environ.get("NB_API_KEY", "nbk_SYNTHETIC_s4_do_not_use_1a2b3c4d5e")
Secret:      nbk_SYNTHETIC_s4_do_not_use_1a2b3c4d5e
RuleID:      generic-api-key
Entropy:     4.21
File:        config.py
Line:        16
Description: Hardcoded credential left as a default fallback (CWE-798). The value is the
             Northbridge API key (prefix nbk_) that Session 4 directed the team to rotate.

Finding:     TEST_DB_PASSWORD = "test-only-not-real"
Secret:      test-only-not-real
RuleID:      generic-password
Entropy:     3.09
File:        tests/test_config.py
Line:        11
Description: String that matches a password pattern in a test file.

2 findings.

Note: gitleaks matches patterns and entropy. It cannot tell a live credential from a placeholder.
Confirm each result before treating it as a finding: the config.py value is a real (synthetic)
service key left in code; the tests/ value is a placeholder fixture.

# TRAINING MATERIAL. Northbridge Technical College, its people, and its systems are fictional.
