[PR #98] [MERGED] Harden Agent catalog publishing trust #804

Closed
opened 2026-10-20 17:31:07 +07:00 by bsakaguchi · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/Pasta-Devs/Marinara-Agents/pull/98
Author: @SpicyMarinara
Created: 7/23/2026
Status: ✅ Merged
Merged: 7/24/2026
Merged by: @SpicyMarinara

Base: main ← Head: security/agent-update-trust


📝 Commits (2)

  • a1e2e35 Harden Agent catalog publishing trust
  • 6f2d9c8 fix(security): protect CODEOWNERS policy

📊 Changes

4 files changed (+39 additions, -2 deletions)

View changed files

➕ .github/CODEOWNERS (+11 -0)
📝 CONTRIBUTING.md (+2 -0)
➕ SECURITY.md (+18 -0)
📝 scripts/validate-catalog.mjs (+8 -2)

📄 Description

Linked issue

None. This is maintainer-requested security hardening; no public issue was opened before the controls were ready for review.

Why this change

Catalog SHA-256 values prove that a download matches the catalog, but not that a catalog author is trustworthy: anyone able to change both the artifact and its adjacent hash could publish new executable client/server code. The repository therefore needs stronger review boundaries and canonical publication invariants.

What changed

  • Added CODEOWNERS coverage for workflows, build/validation scripts, schemas, packages, Engine source snapshots, artifacts, and catalogs.
  • Added SECURITY.md documenting private vulnerability reporting, the executable package trust model, hash limitations, and required repository rules.
  • Made catalog validation reject artifact URLs that do not exactly match https://raw.githubusercontent.com/Pasta-Devs/Marinara-Agents/main/artifacts/<id>-<version>.zip.
  • Updated contributor guidance to require code-owner review for supply-chain-sensitive paths.

Package and security impact

  • Affected package IDs: none; all 29 current packages retain identical manifests and artifacts.
  • Engine compatibility impact: none.
  • New or changed permissions/entrypoints: none.
  • Restart, storage, update, or uninstall impact: none.
  • Publishing impact: official catalog entries can no longer redirect executable downloads to another host or filename while passing local validation.
  • Administrator follow-up: main is currently unprotected. CODEOWNERS becomes enforceable only after GitHub branch protection/rulesets require Code Owner review, dismiss stale approvals, require catalog validation, and disallow force pushes/deletion.

Validation

  • node scripts/test-catalog-lanes.mjs passes locally
  • node scripts/validate-catalog.mjs passes locally
  • git diff --check passes locally
  • Confirm the GitHub ruleset requires Code Owner review for main
  • Confirm stale approvals are dismissed after new commits
  • Confirm the catalog validation check is required

Automated evidence

  • node scripts/test-catalog-lanes.mjs passed.
  • node scripts/validate-catalog.mjs passed: 29 packages (21 agents, 8 features), v2=29, v3=6, legacy=v2.
  • git diff --check passed.

Manual verification notes

  • Manually verify a PR changing catalog/, artifacts/, or scripts/ requests @SpicyMarinara as code owner after branch protection is enabled.
  • Manually verify a non-canonical artifact URL fails the pull-request catalog validation workflow.

Documentation impact

  • Review the new private-reporting guidance in SECURITY.md.
  • Review the contributor trust-model note in CONTRIBUTING.md.

Summary by CodeRabbit

  • Documentation

    • Added security guidance for privately reporting vulnerabilities and understanding package, artifact, and catalog trust boundaries.
    • Clarified contribution requirements, integrity checks, code-owner review, and branch-protection expectations.
  • Chores

    • Added repository ownership rules for sensitive directories and workflow changes.
  • Bug Fixes

    • Improved catalog validation by consistently deriving artifact URLs and filenames from package identity and version information.

🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/Pasta-Devs/Marinara-Agents/pull/98 **Author:** [@SpicyMarinara](https://github.com/SpicyMarinara) **Created:** 7/23/2026 **Status:** ✅ Merged **Merged:** 7/24/2026 **Merged by:** [@SpicyMarinara](https://github.com/SpicyMarinara) **Base:** `main` ← **Head:** `security/agent-update-trust` --- ### 📝 Commits (2) - [`a1e2e35`](https://github.com/Pasta-Devs/Marinara-Agents/commit/a1e2e357ffc303ddf1d3efe3fd259e0efd1eec3f) Harden Agent catalog publishing trust - [`6f2d9c8`](https://github.com/Pasta-Devs/Marinara-Agents/commit/6f2d9c8b45da3c73096122c39495db4c4f64875f) fix(security): protect CODEOWNERS policy ### 📊 Changes **4 files changed** (+39 additions, -2 deletions) <details> <summary>View changed files</summary> ➕ `.github/CODEOWNERS` (+11 -0) 📝 `CONTRIBUTING.md` (+2 -0) ➕ `SECURITY.md` (+18 -0) 📝 `scripts/validate-catalog.mjs` (+8 -2) </details> ### 📄 Description ## Linked issue None. This is maintainer-requested security hardening; no public issue was opened before the controls were ready for review. ## Why this change Catalog SHA-256 values prove that a download matches the catalog, but not that a catalog author is trustworthy: anyone able to change both the artifact and its adjacent hash could publish new executable client/server code. The repository therefore needs stronger review boundaries and canonical publication invariants. ## What changed - Added CODEOWNERS coverage for workflows, build/validation scripts, schemas, packages, Engine source snapshots, artifacts, and catalogs. - Added `SECURITY.md` documenting private vulnerability reporting, the executable package trust model, hash limitations, and required repository rules. - Made catalog validation reject artifact URLs that do not exactly match `https://raw.githubusercontent.com/Pasta-Devs/Marinara-Agents/main/artifacts/<id>-<version>.zip`. - Updated contributor guidance to require code-owner review for supply-chain-sensitive paths. ## Package and security impact - Affected package IDs: none; all 29 current packages retain identical manifests and artifacts. - Engine compatibility impact: none. - New or changed permissions/entrypoints: none. - Restart, storage, update, or uninstall impact: none. - Publishing impact: official catalog entries can no longer redirect executable downloads to another host or filename while passing local validation. - Administrator follow-up: `main` is currently unprotected. CODEOWNERS becomes enforceable only after GitHub branch protection/rulesets require Code Owner review, dismiss stale approvals, require catalog validation, and disallow force pushes/deletion. ## Validation - [ ] `node scripts/test-catalog-lanes.mjs` passes locally - [ ] `node scripts/validate-catalog.mjs` passes locally - [ ] `git diff --check` passes locally - [ ] Confirm the GitHub ruleset requires Code Owner review for `main` - [ ] Confirm stale approvals are dismissed after new commits - [ ] Confirm the catalog validation check is required ### Automated evidence - `node scripts/test-catalog-lanes.mjs` passed. - `node scripts/validate-catalog.mjs` passed: 29 packages (21 agents, 8 features), v2=29, v3=6, legacy=v2. - `git diff --check` passed. ### Manual verification notes - [ ] Manually verify a PR changing `catalog/`, `artifacts/`, or `scripts/` requests `@SpicyMarinara` as code owner after branch protection is enabled. - [ ] Manually verify a non-canonical artifact URL fails the pull-request catalog validation workflow. ## Documentation impact - [ ] Review the new private-reporting guidance in `SECURITY.md`. - [ ] Review the contributor trust-model note in `CONTRIBUTING.md`. <!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit - **Documentation** - Added security guidance for privately reporting vulnerabilities and understanding package, artifact, and catalog trust boundaries. - Clarified contribution requirements, integrity checks, code-owner review, and branch-protection expectations. - **Chores** - Added repository ownership rules for sensitive directories and workflow changes. - **Bug Fixes** - Improved catalog validation by consistently deriving artifact URLs and filenames from package identity and version information. <!-- end of auto-generated comment: release notes by coderabbit.ai --> --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
bsakaguchi 2026-10-20 17:31:07 +07:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
Pasta-Devs/Marinara-Agents#804
No description provided.