Security Architecture
The 5 Security Layers
1. File Permissions (OS-level)
2. Hash Integrity (Vault)
Every schema version is cryptographically hashed using SHA256:- Schema saved to
versions/v001.json - SHA256 hash computed and saved to
hashes/v001.hash - On every load, hash is verified
- If mismatch → integrity violation detected
Learn more about vault integrity in Vault Integrity.
3. Integrity Modes (Access Control)
Four operational modes control schema modifications:
Mode enforcement:
- Application code checks mode before operations
- Mode upgrades require password authentication
- All mode changes logged in audit trail
Learn more about modes in Mode Enforcement.
4. Vault-Enforced Loading
Application code cannot bypass the vault:5. Audit Trail
Complete event logging: integrity.log (append-only):Threat Model
What ChameleonDB Protects Against
Schema tampering - Hashes detect file modifications
Unauthorized schema changes - Mode enforcement blocks operations
Schema bypass attacks - Vault is the only trusted source
Privilege escalation - Mode upgrades require password
Audit trail tampering - Append-only logs
What ChameleonDB Does NOT Protect Against
Security Checklist
Before deploying to production:Next Steps
Vault Integrity
Learn about SHA256 hashing and tamper detection
Mode Enforcement
Understand ring-based access control
Best Practices
Security recommendations for production