Skip to content

Security Auditing 🟑 BETA

Security auditing combines dependency gates, workflow jobs, secret hygiene and host-level checks.

Where this topic sits in the Developer guide

Overview

Security auditing combines repository gates with host checks. Repository gates are authoritative; a host check is evidence for an operator, not a documented product feature.

Rust Dependency Auditing

deny.toml pins the dependency policy. CI jobs under .github/workflows/ run the advisory and OSV checks; scripts/check_security_dependency_pins.py guards pinning.

cargo-audit

Advisory data is handled by the security scripts and workflows; read the workflow result rather than a copied command.

Automated CI/CD Auditing

security.yml has supply-chain, osv, secrets, python, sbom, workflow-lint and headers jobs.

Strict Auditing

Critical dependencies use exact versions; regular dependencies may use caret ranges (root AGENTS.md, Dependency Management).

Stack Component Vulnerabilities

Component pins are in botserver/3rdparty.toml; advisories for each component are published through the advisory routes served by botserver.

CVE Monitoring

The advisory feed is filtered by product, component and severity through GET /api/advisories (see CLI Reference).

Network Security Audit

Service Canonical port
botserver (development) 8080
botserver (production container) 5858
PostgreSQL 5432
Valkey 6379
Vault 8200
Suite 3000
Cloud 4000
Login 5000
Forgejo (ALM) 4747

Firewall Rules

Never modify iptables rules without explicit confirmation. Use hostnames in configuration, not internal addresses.

Secrets Audit

.env may contain only VAULT_* variables; tokens live in /tmp and never in the repository (root AGENTS.md, Secrets).

Vault Health Check

Use botserver vault health and unseal with three shares in one session when sealed.

Environment Variable Audit

Search the working tree for hardcoded credentials before committing; a found secret is removed, not masked.

Rotate Secrets

Use botserver rotate-secret <component> or rotate-secrets --all, then update every consumer and verify health.

Code Security Analysis

Clippy must pass with zero warnings; #[allow] is forbidden. Error paths use Result, never panic!, unwrap or expect in production.

Static Analysis with Clippy

Run cargo clippy --workspace through the CI gate and fix the finding in code.

Compliance Checks

Security headers and rate limits are enforced in code and gated by CI jobs; a page cannot assert compliance on its own.

Audit Schedule

Run dependency audits weekly and after every dependency change, as recorded in root AGENTS.md.

Reporting Vulnerabilities

Open a security issue without public PoC details; never paste a token or internal address.

See Also

Authority: root AGENTS.md (Security Directives), deny.toml, .github/workflows/security.yml and scripts/check_*.py.

Limits

  • No internal IP, token or password may appear in an issue or in documentation.
  • A status 200 is not evidence that a page is published; compare titles or checksums.
  • The project is MIT; third-party AGPL notices are kept in LICENSES-desktop.md.
  • Host-level audit commands are operator evidence, not a product API.