Skip to content

fix(sources): stop trusting Codeberg in the default allowlist - #658

Merged
rubenvdlinde merged 1 commit into
developmentfrom
fix/drop-codeberg-default-allowlist
Nov 12, 2026
Merged

rubenvdlinde merged 1 commit into
developmentfrom
fix/drop-codeberg-default-allowlist

Conversation

@rubenvdlinde

Copy link
Copy Markdown
Contributor

Task 2.2 of codeberg-is-no-release-source. Codeberg is no longer a host for ConductionNL (GitHub only, decision 392), so the default allowlist drops it.

What changes

  • TrustedSourceList::DEFAULT_PATTERNS is now ['github:ConductionNL/*']. A codeberg: pattern that an admin stored stays trusted, as "A retired forge keeps what was stored under it" requires.
  • TrustedSourceListTest: the old test that the default trusts Codeberg is replaced by testDefaultTrustsGithubOnly (it fails on the old default) and by testStoredCodebergPatternStillTrusted.
  • The change's delta spec now has a MODIFIED "Trusted-source allowlist [MVP]" with the new default. Task 2.2 is ticked and the proposal says what changes.

Upgrade effect (in the proposal): one kind of install loses trust: one that never set its allowlist and bound an app to Codeberg. A new codeberg: pattern is refused, so the admin rebinds the app to GitHub, or to codeberg.org as the self-hosted Forgejo host with a forgejo: pattern.

Not in this PR: task 2.1 (move the e2e fixtures off Codeberg, and bind/trusted-sources refusal tests).

Verified locally

  • hydra/scripts/diff-check.sh: green, 0 NEW findings. phpstan has 2 inherited findings. phpcs was skipped by the diff check (vendor/bin/phpcs is missing in this repo; cs:check ran php-cs-fixer below).
  • COMPOSER_PROCESS_TIMEOUT=0 composer check:strict (lint, cs:check, psalm): ALL CHECKS PASSED.
  • phpunit -c tests/phpunit-unit-only.xml: 1346 tests OK, 2 skipped.
  • openspec validate codeberg-is-no-release-source --strict: valid.

AI disclosure: prepared with Claude Code (claude-opus-5-5). A person has to review it before it merges.

🤖 Generated with Claude Code

Codeberg is no host for ConductionNL any more, so the default
trusted-source allowlist holds only github:ConductionNL/*. A Codeberg
pattern an admin stored stays trusted, as "A retired forge keeps what was
stored under it" requires. The codeberg-is-no-release-source change now
modifies "Trusted-source allowlist [MVP]" to match, and task 2.2 is done.

Assisted-by: ClaudeCode:claude-opus-5-5
@rubenvdlinde
rubenvdlinde merged commit 6222ce1 into development Nov 12, 2026
8 of 10 checks passed
@github-actions

Copy link
Copy Markdown
Contributor

Quality Report — ConductionNL/versioniq @ 8ed31d3

Check PHP Vue Security License Tests
lint ✅
phpcs ✅
phpmd ✅
psalm ✅
phpstan ✅
phpmetrics ✅
eslint ✅
stylelint ✅
build ✅
composer ✅ ✅ 32/32
npm ✅ ✅ 302/302
app:check-code ⏭️
info.xml ✅
REUSE ❌
lockfile sync ✅
PHPUnit ✅ 1321/1321 · 25 skipped (8 legs)
Newman ⏭️
Playwright ⏭️ deferred: E2E runs locally and on the promotion path only. This pull request targets development, so the suite is asked once per promotion into beta and main rather than once per push per open pull request. Run it locally with npx playwright test, or from the Actions tab on a branch with no open pull request into development.
Hydra gates ✅

Quality workflow — 2026-11-14 09:46 UTC

Download the full PDF report from the workflow artifacts.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant