Deployment Hardening
AIvis can run in different deployment forms. The hardening checklist below applies to production environments regardless of whether services run on one host, multiple hosts, or managed infrastructure.
Network exposure
Baseline hardening matrix
Secrets
- Use deployment secret stores or environment-specific secret management instead of committing secrets to source control.
- Rotate model, connector, service, and object-storage credentials on a documented schedule.
- Use placeholders in runbooks and examples; never paste real authorization tokens, API keys, private keys, or user emails into public documentation.
- Separate credentials by environment so staging access cannot reach production data.
Credential rotation events
Rotate affected credentials when:
- A connector owner changes.
- A model provider key is copied into a test environment.
- A runtime or bridge service is redeployed with changed access policy.
- An administrator leaves the operating team.
- Logs, screenshots, tickets, or chat messages accidentally include a secret.
Storage and backup
Postgres, OpenSearch, and object storage contain the most important durable state. Production deployments should define backup cadence, retention, restore testing, encryption at rest, and disaster recovery ownership before broad user rollout.
Logging and monitoring
Log request IDs, service health, indexing jobs, connector sync failures, runtime errors, and authorization denials. Avoid logging raw secrets, full credential payloads, or unrestricted user content unless your deployment policy explicitly requires it.
Monitor at least:
- API error rate, latency, and authorization denials.
- Connector sync status, skipped documents, and credential failures.
- Indexing queue depth and model-server latency.
- Agent runtime failures, tool denials, and long-running jobs.
- OpenSearch disk usage, Redis availability, object-storage errors, and Postgres connections.
Egress control
Connector workers and runtime services may need outbound access to approved SaaS APIs, model providers, or internal services. Restrict egress to the domains and networks required by enabled connectors, integrations, and model providers.
Incident response preparation
Prepare an operator runbook before production launch:
Production checklist
- Public traffic enters through TLS-protected routing only.
- Internal service ports are blocked from the public internet.
- Administrator accounts and identity provider settings are reviewed.
- Backups have been restored in a test environment.
- Secret rotation and incident response ownership are assigned.
- Logs are searchable without exposing sensitive values.
- Connector scopes and Agent tool scopes are reviewed by a data owner.
- A rollback path exists for model, connector, Agent, and runtime configuration changes.