Skip to content

Security

Nyravio implements multiple layers of security for authentication, authorization, data protection, and secure communication.

  • 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
  • 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
  • Rate-limited to 3 requests per hour per account
  • Secure token-based reset flow

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.

  • 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

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.

  • Full lifecycle management (creation, rotation, revocation)
  • Scoped to specific users
  • Auditable usage
  • SSRF protection — unknown or untrusted outbound URLs are validated against an SSRF policy
  • Internal service communication uses private Docker networking
  • NYRAVIO_SERVICES_ALLOW_PRIVATE_NETWORKS controls access to private network ranges
  • 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

Report security vulnerabilities privately through:

See the full Security Policy for details.