Skip to main content

Security Reference

Comprehensive security guide covering authentication, encryption, compliance, and operational security.

Authentication Methods

OLIVE supports multiple authentication mechanisms for different use cases:

API Keys

Third-party integrationsAuthorization: Bearer olive_live_xxx

JWT Tokens

Admin dashboardAuthorization: Bearer eyJhbG...

HMAC Signatures

POS and partner integrationsX-API-Key-ID + X-Timestamp + X-Signature

Service Auth

Internal servicesX-Service-Name + X-Service-Timestamp + X-Service-Signature

API Key Authentication

API keys are used for third-party integrations:

Key Formats

Key Scopes


JWT Authentication

Admin dashboard uses JWT tokens:

JWT Configuration

JWT secrets must be at least 32 characters. Use a cryptographically secure random generator.

HMAC Authentication

POS terminals use HMAC-SHA256 signatures:

Required Headers

Signatures are valid for 5 minutes. Ensure your server clock is synchronized with NTP.

TLS Configuration

External Traffic (TLS 1.3)

All external traffic uses TLS 1.3:

Internal Traffic (mTLS)

gRPC between Gateway and Wallet-Core uses mutual TLS:

Certificate Rotation

  • Rotate certificates every 90 days
  • Use automated renewal (cert-manager, Let’s Encrypt)
  • Monitor certificate expiry with alerts

Secrets Management

Never commit secrets to version control. Use environment variables or a secrets manager.

Rate Limiting

Configure per-client rate limits:

Rate Limit Headers


Security Layers

  • VPC isolation for internal services
  • Firewall rules restricting access
  • Network policies in Kubernetes
  • Private subnets for databases
  • TLS 1.3 for all external traffic
  • mTLS for internal gRPC communication
  • Certificate pinning for critical services
  • Regular certificate rotation
  • JWT/OAuth2 authentication
  • API key management with scopes
  • Rate limiting per client
  • Input validation and sanitization
  • Encrypted database connections
  • Encryption at rest (optional)
  • Comprehensive audit logging
  • Idempotency keys for operations

PII and Data Protection

KYC Document Handling

  • Documents stored in private S3 bucket
  • Access via short-lived pre-signed URLs
  • No PII in application logs
  • Encryption at rest with KMS

Data Retention


Compliance

Designed to support:

PCI-DSS

Payment card industry standards

GDPR

European data protection

SOC 2 Type II

Security and availability

ISO 27001

Information security management

Threat Mitigation


Security Checklist

Complete before production deployment.

Infrastructure

  • TLS/mTLS enabled on all services
  • Firewall rules configured
  • Network policies in place
  • VPC isolation for database

Application

  • Strong JWT secret (32+ chars)
  • Rate limiting enabled
  • Input validation active
  • Audit logging enabled

Operations

  • Monitoring and alerting
  • Regular backups
  • Incident response plan
  • Security training completed

Incident Response

1

Detection

Monitor logs and alerts for suspicious activity
2

Containment

Isolate affected systems, revoke compromised credentials
3

Investigation

Analyze audit logs and transaction history
4

Remediation

Apply fixes, patches, and security updates
5

Recovery

Restore normal operations
6

Post-Mortem

Document findings and improve processes

Gateway Authentication

Detailed auth configuration

Deployment Guide

Production deployment