Commit 2757abe
fix: critical security hardening and RSR compliance cleanup
Security fixes:
- Remove hardcoded 'changeme' DB password fallback in setup.sh;
now fails hard if WORDPRESS_DB_PASSWORD env var is not set
- Change SQL policy engine default from fail-open (Audit) to
fail-closed (Block) for unknown tables
- Fix table matching from substring to exact match, preventing
wp_comments_backdoor from matching wp_comments
- Add recursive subquery table extraction to prevent policy
evasion via nested SELECTs
- Enable SSL verification in WordPress plugin for non-loopback
agent connections (was unconditionally disabled)
- Rename derive_key_hkdf_shake512 to derive_key_hkdf_sha3_256
to match actual algorithm (was misleading)
- Fix broken SQL policy fuzz target (called non-existent
evaluate() method, now uses correct analyze() API)
RSR compliance:
- Rename AI.a2ml to 0-AI-MANIFEST.a2ml (standard naming)
- Create .well-known/ with security.txt, humans.txt, ai.txt
- Add .github/CODEOWNERS with crypto and eBPF review gates
- Delete redundant .machines_readable/6scm/ (canonical copy
is in .machine_readable/ only)
- Remove duplicate MAINTAINERS.md (keeping .adoc)
- Remove duplicate root FUNDING.yml (keeping .github/FUNDING.yml)
Code quality:
- Add // SAFETY: comments to all 15 unsafe blocks in eBPF XDP
firewall documenting bounds-check reasoning
- Add 6 new tests for fail-closed default, exact matching,
DROP/ALTER blocking, DELETE/UPDATE policy enforcement
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>1 parent ece13ac commit 2757abe
19 files changed
Lines changed: 228 additions & 447 deletions
File tree
- .github
- .machines_readable/6scm
- .well-known
- adapters/wordpress-wharf
- crates
- wharf-core/src
- wharf-ebpf/src
- deploy
- fuzz/fuzz_targets
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
0 commit comments