feat(security): BIT-5254 implement audit logging for secret access
- Add src/logger/audit.js: dedicated audit logger writing to logs/audit.log
and logs/combined.log; events: secret.access, secret.missing,
secrets.loaded, auth.success, auth.failure; never logs secret values
- Integrate audit.logSecretAccess() and audit.logSecretsLoaded() into
SecretsManager.get() and load() in src/config/secrets.js
- Integrate audit.logAuthAttempt() into adminOk() in src/http/ui-auth.js,
distinguishing no_token / invalid_token / no_admin_token_configured
- Add audit_log() function to tools/deploy/lxc-secrets-inject.sh writing
JSON events to syslog (security.info) and stderr for gitea.secret.fetched,
gitea.secret.fetch_failed, lxc.injection.started, lxc.injection.completed
- Add src/logger/audit.test.js covering all exported functions (11 cases)
- All 341 tests pass
Co-Authored-By: Paperclip <[email protected]>