Compliance Notes

This page lists what the code provides that a compliance program can use, and where the code falls short. It makes no claim that SynergyDB meets any standard or holds any certification. What the reviewed files say about certifications and HIPAA is in Security, section 9.

Each row names the code and, where one exists, the test. Defaults are those of a release build.

Identification and authentication

Capability Default Code and test Caveat
Per-user accounts in one catalog, shared by all wires On src/catalog/system_tables.rs, AuthId; src/auth/wire_auth.rs, verify_credential Some logins bypass the catalog (env-seeded MongoDB users, Redis requirepass, Memcached file users) and become superuser sessions (src/auth/session.rs, resolve_from_catalog)
Passwords stored as Argon2id On src/auth/password.rs, PasswordHasher; test test_hash_and_verify Wire verifiers (SHA1-based MySQL hash, SCRAM, Oracle 12C) are stored beside it (src/catalog/repository.rs, set_password_verifiers)
Challenge-response login without sending the password PostgreSQL and MongoDB SCRAM-SHA-256, MySQL native, Oracle O5LOGON src/auth/scram.rs; tests rfc7677_vector, scram_sha256_verifier_matches_rfc7677_example Several wires send the password in clear inside the protocol (HTTP Basic, SASL PLAIN, MySQL caching_sha2_password full auth); use TLS there (src/auth/wire_auth.rs, decode_basic_authorization; src/protocol/mysql/auth.rs, verify_caching_sha2)
Failed-login slowdown On src/auth/wire_auth.rs, auth_failure_delay; test delay_starts_after_free_failures_and_is_capped Not on MySQL, which has a per-IP limiter with test-level defaults (src/protocol/rate_limiter.rs)
No known first-boot password On src/catalog/bootstrap.rs; test non_interactive_first_boot_generates_a_password_not_a_known_or_empty_one --dev uses a fixed password
Password expiry Not effective src/query/engine.rs, apply_role_options VALID UNTIL is not stored; only MySQL reads the field
Account lockout None src/auth/wire_auth.rs, auth_failure_delay Delay only, capped at 5 s; no per-user lockout
Concurrent session limit None src/query/engine.rs, apply_role_options rolconnlimit is stored but not enforced; no server-wide connection cap

Details: Authentication.

Access control

Capability Default Code and test Caveat
Table privileges with GRANT and REVOKE Enforced for non-superusers src/query/engine.rs, authorize_plan; test table_privileges_follow_ownership_and_grants A table with no security record is open to all roles
Column privileges Enforced src/query/engine.rs, column_grants_allow; test column_level_select_grants_are_enforced  
Column masking Per column, opt-in src/query/engine.rs, apply_column_masks; test test_column_mask_applies_to_select_star Not applied through joins, aggregates, subqueries or expressions
Row-level security Per table, opt-in src/plan/rls_injector.rs; tests listed in Authorization Extra tables in UPDATE ... FROM and DELETE ... USING are not filtered
Per-wire access for non-SQL wires Enforced src/auth/wire_auth.rs, wire_access_allowed SYNERGYDB_WIRE_ACCESS=open turns it off
Database, schema, function and sequence privileges Not enforced src/query/engine.rs, execute_grant_revoke Accepted and ignored
Loopback-only open access Memcached, Schema Registry, SQLite Hrana default to LocalOnly src/protocol/memcached/, src/protocol/schema_registry/, src/protocol/sqlite/hrana.rs An anonymous loopback SQLite stream runs with no privilege checks and no statement audit

Details: Authorization.

Audit

Capability Default Code and test Caveat
Audit trail of logins, statements, privilege and role changes, and non-SQL access Off src/server/mod.rs, start_audit_logger; src/auth/audit.rs Must be enabled with [audit] enabled and path
Tamper evidence Hash chain; HMAC when a key is set src/auth/audit_chain.rs; tests edited_record_is_detected, hmac_chain_needs_the_key_and_rejects_a_forgery Without a key the chain can be rewritten by anyone with write access; set require_key
Offline verification synergydb audit verify src/audit_cmd.rs No tests of the command itself
Retention 2190 days src/auth/audit_chain.rs, DEFAULT_RETENTION_DAYS; test six_year_default_retention_keeps_five_year_old_segments Pruning is recorded in the chain
Durability of each record Written after the reply, then fdatasync src/auth/audit.rs; src/auth/audit_chain.rs No fail-closed mode: a crash, or a full disk, does not stop the database, and a crash can lose records of acknowledged actions

Details: Audit and limits.

Transmission and storage

Capability Default Code and test Caveat
TLS on every wire Off in release builds src/protocol/tls.rs; src/config.rs, TlsConfigFile No minimum-version setting; rustls defaults apply
Refuse plaintext from remote peers Off (require_tls) src/protocol/tls.rs, plaintext_allowed Loopback peers may always use plaintext on wires that support both
Client certificates Off src/protocol/tls.rs, build_server_config Certificates are checked for trust only, not mapped to users; no mTLS test
Encryption at rest See Encryption at rest internals    
Field-level encryption in front of the database See Encryption proxy    

Details: TLS.

Where sensitive data can end up

These are places outside the tables where the code writes data that a compliance review may need to account for.

Location Content Source
Audit log SQL text up to 8192 characters and bound parameter values (up to 64, 256 characters each) unless log_statement or log_parameters is false src/query/engine.rs, execute
initial_superuser_password in the data directory Generated superuser password, mode 0600 on Unix src/catalog/credentials.rs
data_dir/certs/server.key Generated TLS private key; file mode not set src/protocol/tls.rs, generate_self_signed_cert
Process memory Password check results cached for up to 30 s, keyed by a salted hash, not by the password src/auth/verify_cache.rs

Unwired features

The [secrets] section accepts Vault, Kubernetes, AWS, Azure and GCP backends, but the secrets manager is never started, so those backends are not used (source: src/auth/secrets.rs, init_secrets_manager). Other unwired security modules are listed in the volume index.

Evidence not in the snapshot

The status entry docs/status/2026-11-30-hipaa-audit-rls-tls.md reports proof runs (prove_audit, prove_rls, prove_tls) and points to a HIPAA mapping in docs/security/hipaa-audit.md. Not verified: neither the proof scripts nor that document are in the reviewed snapshot, so this page relies only on the in-tree tests named above (source: docs/status/2026-11-30-hipaa-audit-rls-tls.md; src/audit_cmd.rs).