06 — Secrets & Credentials
Single source of truth for how credentials are stored, accessed, rotated, and audited across the Ecotrans infrastructure.
Infisical CE (running on vps-i1 at infisical.vps-i1.infra.zintegrowana.online) is the vault for all p24-infra credentials. GitHub Secrets are synced FROM Infisical for CI/CD use.
Key Documents
| Document | Description |
|---|---|
| secrets-management.md | Policy, patterns, and rules for all credential types |
| infisical-ce-operations.md | Infisical CE deployment, project map, Machine Identity setup, rotation procedures |
| n8n-secrets-audit.md | Audit of all n8n credential references — no hardcoded keys |
| secrets-rotation-log.md | Chronological log of every credential rotation |
| password-rotation-procedures.md | Step-by-step rotation procedures per credential type |
| 03-secrets-management.md | Secrets management improvement proposals |
Infisical Project Map
| Project | Hosts covered | Local fallback |
|---|---|---|
p24-monitoring | vps-i1 monitoring stack | /opt/p24-infra/monitoring/.env.bak |
n8n-bms4 | bms-4 n8n stack | /root/.env.bak on bms-4 |
vps-h1 | Hostinger WAHA stack | /root/.env.bak on vps-h1 |
bms-servers | BMS root + MongoDB passwords | GH Secrets backup |
github-actions | CI/CD secrets | GH Secrets (synced from Infisical) |
art-agency | Art Agency credentials | Art-Agency/.env.local |
radekkonarski-brand | Personal brand credentials | .env.local |
Rules (mandatory — no exceptions)
- Never display a credential value in chat or commit it to git
- Never ask the user to paste a secret value into chat
- Always read from Infisical or
.env.bak/.env.local; reference by variable name only - Rotate the old value at source after the new value is live everywhere
- Append every rotation to
secrets-rotation-log.md
Adding a New Secret
- Add to the correct Infisical project via UI
- Regenerate
.env.bakon affected host:- vps-i1:
ssh root@217.154.82.162 "bash /opt/infisical/regen-monitoring-envbak.sh" - bms-4:
bash /opt/infisical/regen-n8n-envbak.sh
- vps-i1:
- Restart only the affected container(s)
- Update
.env.localon developer workstation if needed