CI / CI configuration security checks (push) Successful in 6s
CI / Python tests and compilation (push) Failing after 12s
CI / QMD unit tests (push) Skipped
CI / Capabilities and shell quality (push) Successful in 1m50s
CI / Build and inspect generated packages (push) Skipped
CI / Bash integration and installation guards (push) Skipped
CI / Installed client configuration smoke tests (push) Skipped
CI / PowerShell tests on Ubuntu (push) Failing after 7m24s
15 lines
1.7 KiB
Markdown
15 lines
1.7 KiB
Markdown
# Database and data security
|
|
|
|
Apply these rules when writing database queries, persistence code, or code that stores or exposes sensitive data.
|
|
|
|
* Use parameterized queries or ORM parameter binding; never concatenate untrusted input into SQL.
|
|
* Parameterize values in every query path, including raw SQL and stored procedures. Allowlist dynamic table names, columns, and sort directions.
|
|
* Use least-privilege database identities, separate application and migration privileges, and protect connection strings and backup credentials.
|
|
* Scope tenant- and user-owned reads, writes, joins, aggregates, background tasks, and cache keys explicitly. Do not rely on a caller having applied a filter elsewhere.
|
|
* Collect and retain only necessary sensitive data. Set retention and deletion behavior and protect backups, exports, replicas, logs, and analytics copies.
|
|
* Treat personal data under the GDPR and comparable laws: identify which fields are personal data and why they are processed, support access, correction, export, and deletion requests across every copy, pseudonymize where identity is not needed, and keep personal data out of logs, analytics, test fixtures, and lower environments unless the purpose requires it.
|
|
* Encrypt sensitive data in transit and at rest where appropriate; keep key access separate from database access.
|
|
* Use transactions and suitable constraints where integrity requires atomicity. Check concurrency and isolation around security-sensitive state changes.
|
|
* Avoid raw database errors and sensitive query parameters in responses, logs, traces, and metrics.
|
|
* Test injection, cross-tenant access, unauthorized mutation, stale updates, and cache isolation within the user's requested scope.
|