Secrets are the most valuable thing the pipeline touches. They must stay out of git, out of logs and readable only by the user that needs them.
Enterprise practice: central secret store, least-privilege access, no secrets in logs, one credential per purpose, rotation.
Steps
Real vault file and password live outside git on the ansible LXC; only vault.example.yml is committed
Separate SSH key per user and purpose (personal vs. runner)
Vault password file: owned by the user that runs playbooks, mode 0400, referenced via vault_password_file
Mark tasks that handle secrets with no_log: true and enable ansible-lint's opt-in no-log-password rule
Rendered .env files on docker: mode 0600
Never pass secrets as command-line arguments in workflows (they show up in process lists and logs); use files or environment variables
Write a short rotation runbook: vault password, runner SSH key, bot tokens
Tools
ansible-vault, ansible-lint, Gitea Actions secrets (for the few CI-only secrets).
Done when
No secret appears in git, job logs or world-readable files, and each credential can be rotated without touching the others.
Secrets are the most valuable thing the pipeline touches. They must stay out of git, out of logs and readable only by the user that needs them.
**Enterprise practice:** central secret store, least-privilege access, no secrets in logs, one credential per purpose, rotation.
## Steps
- [x] Real vault file and password live outside git on the `ansible` LXC; only `vault.example.yml` is committed
- [x] Separate SSH key per user and purpose (personal vs. runner)
- [ ] Vault password file: owned by the user that runs playbooks, mode `0400`, referenced via `vault_password_file`
- [ ] Mark tasks that handle secrets with `no_log: true` and enable ansible-lint's opt-in `no-log-password` rule
- [ ] Rendered `.env` files on `docker`: mode `0600`
- [ ] Never pass secrets as command-line arguments in workflows (they show up in process lists and logs); use files or environment variables
- [ ] Write a short rotation runbook: vault password, runner SSH key, bot tokens
## Tools
ansible-vault, ansible-lint, Gitea Actions secrets (for the few CI-only secrets).
## Done when
No secret appears in git, job logs or world-readable files, and each credential can be rotated without touching the others.
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.
Secrets are the most valuable thing the pipeline touches. They must stay out of git, out of logs and readable only by the user that needs them.
Enterprise practice: central secret store, least-privilege access, no secrets in logs, one credential per purpose, rotation.
Steps
ansibleLXC; onlyvault.example.ymlis committed0400, referenced viavault_password_fileno_log: trueand enable ansible-lint's opt-inno-log-passwordrule.envfiles ondocker: mode0600Tools
ansible-vault, ansible-lint, Gitea Actions secrets (for the few CI-only secrets).
Done when
No secret appears in git, job logs or world-readable files, and each credential can be rotated without touching the others.