Security
Nyravio implements multiple layers of security for authentication, authorization, data protection, and secure communication.
Authentication
Section titled “Authentication”Local authentication
Section titled “Local authentication”- Bcrypt password hashing (strength: 12 rounds)
- Account lockout after 5 failed attempts (15–60 minute lockout period)
- JWT tokens with rotation:
- Access token: 15 minutes
- Refresh token: 7 days
- Session FIFO eviction when maximum sessions are exceeded
Multi-factor authentication (MFA)
Section titled “Multi-factor authentication (MFA)”- TOTP (Time-based One-Time Passwords) — compatible with standard authenticator apps
- Recovery codes for account access when TOTP device is unavailable
- Trusted devices with 30-day TTL
Password reset
Section titled “Password reset”- Rate-limited to 3 requests per hour per account
- Secure token-based reset flow
Federated authentication
Section titled “Federated authentication”Nyravio supports enterprise identity providers:
| Protocol | Features |
|---|---|
| OpenID Connect (OIDC) | Authorization code flow with PKCE, JIT user provisioning |
| SAML 2.0 | SP-initiated SSO, JIT user provisioning |
Both support SSO-only mode (disable local password authentication). SSO state has a 600-second TTL.
Authorization
Section titled “Authorization”- Role-based access control with fine-grained permissions
- Users and groups management
- Authorization enforced at every data boundary and asynchronous continuation
- Tenant identity derived from trusted authenticated context, not client-controlled headers
Credential protection
Section titled “Credential protection”Stored credentials (LLM provider API keys, tool server credentials, MCP connection secrets) are encrypted at rest using NYRAVIO_ADMIN_ENCRYPTION_KEY.
MCP connection credentials use separate encryption when NYRAVIO_MCP_MASTER_KEYS is configured.
API keys
Section titled “API keys”- Full lifecycle management (creation, rotation, revocation)
- Scoped to specific users
- Auditable usage
Network security
Section titled “Network security”- SSRF protection — unknown or untrusted outbound URLs are validated against an SSRF policy
- Internal service communication uses private Docker networking
NYRAVIO_SERVICES_ALLOW_PRIVATE_NETWORKScontrols access to private network ranges
Content security
Section titled “Content security”- Model-generated HTML, citations, tool outputs, markdown links, and file references are treated as untrusted content
- Path traversal protection on file operations
- Provider reasoning metadata is displayed only to the extent an API actually exposes it
Reporting vulnerabilities
Section titled “Reporting vulnerabilities”Report security vulnerabilities privately through:
See the full Security Policy for details.
Next steps
Section titled “Next steps”- Environment Variables — security-related configuration
- Backup — protecting encryption keys
- Updates — keeping your installation secure