| ed25519 & PAM Multi-Factor Authentication Architecture | Enforces modern ed25519 elliptic-curve authentication plugins with PAM/LDAP directory integration, mandatory password complexity, and automated brute-force account locking policies. | Remains on deprecated mysql_native_password authentication without MFA, exposing passwords to offline rainbow table attacks. | Uses shared generic root accounts across engineering teams with no multi-factor authentication or rotation schedules. | Uses blank or trivial administrative passwords, storing database connection credentials directly in git repositories. |
| TLS 1.3 Transport Encryption & Certificate Lifecycle | Mandates require_secure_transport=ON, restricts cipher suites to TLS 1.3, secures Galera wsrep and MaxScale links, and automates mTLS certificate renewal via ACME/Cert-Manager. | Permits unencrypted plaintext TCP connections on local subnets; leaves replication streams and client traffic unencrypted across private clouds. | Deploys self-signed certificates with expired validity dates, suppressing TLS warnings across application connection pools. | Disables SSL in client connection strings (sslMode=DISABLED) to bypass certificate verification errors in staging and production. |
| Data-at-Rest Encryption (InnoDB TDE) & Key Management (KMS) | Configures InnoDB Transparent Data Encryption (TDE) for tablespaces, redo logs, undo logs, and binary logs with envelope encryption integrated into AWS KMS, HashiCorp Vault, or file_key_management. | Relies solely on underlying storage disk encryption (EBS/LUKS), leaving backup archives, binlogs, and temporary tables vulnerable to cold extraction. | Leaves tablespaces completely unencrypted; stores static encryption keys in plaintext config files with 0777 filesystem permissions. | Ignores encryption-at-rest; stores credit card or PHI data in plaintext database tables without column or tablespace encryption. |
| Fine-Grained RBAC Privilege Minimization & Superuser Revocation | Enforces strict Role-Based Access Control (RBAC) with least-privilege grants, removes wildcard host '%' bindings, and revokes global SUPER, FILE, and PROCESS privileges from application users. | Grants broad ALL PRIVILEGES ON *.* to microservice users to prevent runtime permission errors during deployment releases. | Fails to audit dormant contractor accounts; grants admin privileges directly to personal developer email identities. | Connects every application service directly as the 'root' database user with full schema drop and privilege manipulation powers. |
| MaxScale Database Firewall (dbfwfilter) SQL Injection Defense | Implements MaxScale L7 Database Firewall (dbfwfilter) with strict query whitelisting, regex rule blocking, SQL injection prevention, and query rate limiting at the proxy layer. | Relies entirely on application-level ORM parameterization without database-tier firewall defense or runtime query pattern inspection. | Disables proxy filtering due to performance concerns, allowing raw uninspected SQL injection vectors to reach backend databases. | Constructs raw SQL queries via string concatenation in web services, exposing tables to classic SQL injection attacks. |
| Immutable MariaDB Audit Plugin Logging to SIEM (SOC 2/HIPAA) | Configures MariaDB Audit Plugin with JSON formatting, fine-grained event filtering (CONNECT, QUERY, TABLE), log rotation, and tamper-proof streaming to Datadog/Splunk for SOC 2 and HIPAA compliance. | Enables verbose general log logging to local disk, saturating storage IOPS and causing catastrophic cluster crashes during peak traffic. | Disables audit logging entirely to save disk space, failing compliance audits during annual SOC 2 or PCI-DSS reviews. | Has no audit trail or query logging; unable to detect unauthorized data exfiltration or identify compromised user accounts. |