Nirmos
Resources

Security best practices

Protect keys, authorize application users, and limit sensitive context.

Keep Nirmos API keys and provider secrets in server secret stores. Never embed them in browser bundles, public environment variables, source control or logs. Applications expose their own authenticated server endpoint when a browser needs AI functionality.

Limit authority

Use a service key with only the scopes needed by the workload. Use personal keys only when a workflow needs that user's identity. Enforce application-user access before selecting knowledge bases, memory spaces, prompts or administrative resources. User/resource metadata is not authorization.

Rotate keys through the Dashboard workflow. Separate environments and organizations with their own issued keys and configuration; do not rely on arbitrary attribution strings for isolation.

Handle untrusted data

Treat retrieved documents, memories and tool arguments as untrusted input. Validate tool arguments and authorize the requested action before executing it. Validate structured model output before application writes. Keep retrieval context distinct from higher-priority application instructions.

Use a Memory policy with deliberate privacy and retention settings. Review captured request/response payloads before enabling logging or importing traces into datasets. Provider content may leave your application boundary; choose data according to your application's requirements.

Bound execution

Propagate cancellation signals, set finite request/run budgets and avoid unbounded retry loops. Enable mutation replay only where server deduplication is supported. Log safe codes and request/trace IDs rather than keys or full private prompts.

Authentication · Reliability · Access control

On this page