Skip to content

Commit 2757abe

Browse files
hyperpolymathclaude
andcommitted
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/CODEOWNERS

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
# SPDX-License-Identifier: PMPL-1.0-or-later
2+
# SPDX-FileCopyrightText: 2026 Jonathan D.A. Jewell (hyperpolymath) <j.d.a.jewell@open.ac.uk>
3+
#
4+
# CODEOWNERS — defines review requirements for pull requests
5+
# https://docs.github.com/en/repositories/managing-your-repositorys-settings-and-features/customizing-your-repository/about-code-owners
6+
7+
# Default owner for everything
8+
* @hyperpolymath
9+
10+
# Crypto code requires explicit review
11+
crates/wharf-core/src/crypto.rs @hyperpolymath
12+
13+
# eBPF kernel code requires explicit review
14+
crates/wharf-ebpf/ @hyperpolymath
15+
16+
# Security-sensitive files
17+
SECURITY.md @hyperpolymath
18+
.well-known/ @hyperpolymath
19+
deploy/ @hyperpolymath

.machines_readable/6scm/AGENTIC.scm

Lines changed: 0 additions & 16 deletions
This file was deleted.

.machines_readable/6scm/ECOSYSTEM.scm

Lines changed: 0 additions & 60 deletions
This file was deleted.

.machines_readable/6scm/META.scm

Lines changed: 0 additions & 79 deletions
This file was deleted.

.machines_readable/6scm/NEUROSYM.scm

Lines changed: 0 additions & 13 deletions
This file was deleted.

.machines_readable/6scm/PLAYBOOK.scm

Lines changed: 0 additions & 13 deletions
This file was deleted.

.machines_readable/6scm/STATE.scm

Lines changed: 0 additions & 147 deletions
This file was deleted.

.well-known/ai.txt

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
# SPDX-License-Identifier: PMPL-1.0-or-later
2+
# SPDX-FileCopyrightText: 2026 Jonathan D.A. Jewell (hyperpolymath) <j.d.a.jewell@open.ac.uk>
3+
#
4+
# AI system declaration for Project Wharf
5+
# See: 0-AI-MANIFEST.a2ml for full AI integration protocol
6+
7+
User-agent: *
8+
Allow: /
9+
10+
# AI agents should read the AI manifest first:
11+
# - 0-AI-MANIFEST.a2ml (root)
12+
# - .machine_readable/STATE.scm (current project state)
13+
# - .machine_readable/AGENTIC.scm (agent constraints)
14+
#
15+
# This project uses neurosymbolic CI/CD (Hypatia) and
16+
# gitbot-fleet for automated remediation.

.well-known/humans.txt

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
# SPDX-License-Identifier: PMPL-1.0-or-later
2+
# SPDX-FileCopyrightText: 2026 Jonathan D.A. Jewell (hyperpolymath) <j.d.a.jewell@open.ac.uk>
3+
#
4+
# humanstxt.org
5+
6+
/* TEAM */
7+
Lead: Jonathan D.A. Jewell
8+
Site: https://github.com/hyperpolymath
9+
Location: United Kingdom
10+
11+
/* SITE */
12+
Software: Project Wharf — The Sovereign Web Hypervisor
13+
Standards: PMPL-1.0-or-later, RSR (Rhodium Standard Repository)
14+
Components: wharf-cli, yacht-agent, wharf-ebpf
15+
Languages: Rust, Nickel, PHP, Bash

.well-known/security.txt

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
# SPDX-License-Identifier: PMPL-1.0-or-later
2+
# SPDX-FileCopyrightText: 2026 Jonathan D.A. Jewell (hyperpolymath) <j.d.a.jewell@open.ac.uk>
3+
#
4+
# Security contact information per RFC 9116
5+
# https://www.rfc-editor.org/rfc/rfc9116
6+
7+
Contact: mailto:security@hyperpolymath.net
8+
Expires: 2027-03-01T00:00:00.000Z
9+
Preferred-Languages: en
10+
Canonical: https://github.com/hyperpolymath/project-wharf/.well-known/security.txt
11+
Policy: https://github.com/hyperpolymath/project-wharf/blob/main/SECURITY.md

0 commit comments

Comments
 (0)