Security Best Practices

Security is a top priority for the Daciel platform. This page covers recommendations for securely working with the API, handling data, and protecting your infrastructure.

API Key Security

API keys grant full access to your account. Treat them like passwords.

  • Environment variablesAlways store keys in environment variables (MIRA_API_KEY), never hardcode them in source code.
  • Client-side codeNever include API keys in client-side JavaScript, mobile apps, or public repositories.
  • Key rotationRotate API keys regularly. If a key is compromised, revoke it immediately from the dashboard.
  • Least privilegeCreate separate keys for different services and environments (development, production).
Correct way to store keys
# .env file (добавьте в .gitignore / add to .gitignore)
MIRA_API_KEY=sk-mira-your-secret-key

# Python
import os
api_key = os.environ["MIRA_API_KEY"]

# Node.js
const apiKey = process.env.MIRA_API_KEY;
If you accidentally expose an API key (e.g., in a git commit), revoke it immediately and create a new one in your account settings at platform.daciel.com.

HTTPS & Encryption

All communication with the Daciel API is conducted over HTTPS with TLS 1.2+ encryption. Unencrypted HTTP requests are automatically rejected.

  • Transport encryptionAll data between your application and Daciel servers is encrypted in transit.
  • Certificate validationEnsure your HTTP client validates SSL/TLS certificates. Never disable certificate verification.

Data Handling

Daciel does not use your API requests for model training. Your data remains yours.

  • No training on your dataAPI requests are not used for training or improving models.
  • Data retentionRequest logs are retained for up to 30 days for monitoring and debugging, then deleted.
  • Sensitive dataAvoid sending sensitive data (passwords, card numbers, personal data) to the API unless necessary.

Content Filtering

Daciel includes automatic content moderation to prevent generation of harmful material. The system works in real time and covers:

  • Input filteringRequests are checked for malicious instructions before processing.
  • Output filteringResponses are checked for potentially harmful or inappropriate content.

Rate Limiting

Rate limits protect the platform from abuse and ensure fair resource allocation.

  • Per-key limitsEach API key has individual limits based on the subscription plan.
  • Response headersMonitor X-RateLimit-Remaining and Retry-After headers to manage request rate.
  • Retry strategyImplement exponential backoff when receiving a 429 error.

Authentication Security

Daciel Code CLI uses device code flow for authentication, eliminating the need to enter passwords in the terminal.

  • Device code flowAuthentication happens via the browser — the CLI only receives a JWT token after confirmation.
  • JWT handlingTokens are stored securely on disk and automatically refreshed when they expire.
  • LogoutUse mira auth logout to remove stored tokens.

Infrastructure

The Daciel platform is hosted in secure data centers with multi-layered protection.

  • DDoS protectionActive DDoS protection at the network and application level.
  • Monitoring24/7 system monitoring with automatic alerting for suspicious activity.
  • BackupsRegular data backups with geographic distribution.

Responsible AI

Daciel follows responsible AI principles including content safety and bias mitigation.

  • Content safetyModels are trained to refuse generation of harmful, illegal, or dangerous content.
  • Bias mitigationOngoing work to identify and reduce biases in model responses.

Security Checklist

Use this checklist to verify the security of your Daciel integration:

API keys stored in environment variables, not in code
API keys not included in client-side JavaScript
.env files added to .gitignore
API keys rotated every 90 days
All requests sent over HTTPS
429 (rate limit) error handling implemented
Exponential backoff on retries
Sensitive data not passed in prompts
Logging does not contain API keys
TLS version >= 1.2

Reporting Vulnerabilities

If you discover a security vulnerability in the Daciel platform, please report it to:

security@vmira.ai

We take every security report seriously and will respond within 48 hours. Please do not disclose vulnerability information publicly until it has been resolved.

For general security and compliance inquiries, contact compliance@vmira.ai.