feat(broker): drop the repo allowlist from the broker config #65
No reviewers
Labels
No labels
Agent
Ignore
Agent
In Progress
Agent
Planned
Agent
Planning
Agent
Ready
Agent
Triage
Compat
Breaking
Kind
Bug
Kind
Documentation
Kind
Enhancement
Kind
Feature
Kind
Security
Kind
Testing
Priority
Critical
Priority
High
Priority
Low
Priority
Medium
Reviewed
Confirmed
Reviewed
Duplicate
Reviewed
Invalid
Reviewed
Won't Fix
Status
Abandoned
Status
Blocked
Status
Need More Info
No milestone
No project
No assignees
2 participants
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
lucas/omp-deck!65
Loading…
Reference in a new issue
No description provided.
Delete branch "64-remove-the-repo-allowlist-from-the-forgejo-admin-broker-config"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
The Forgejo admin broker no longer has a
reposallowlist.POST /permissionanswers for anyowner/name. Which repositories reach it is already limited by the agent account's collaborator access and by the configured webhooks. The broker config is now{forgejoUrl, adminToken, webhookSecret}. A leftoverreposkey, in an existing config or in an old unfilled template, is ignored silently. The template check only looks for an emptyforgejoUrlandadminToken. The entrypoint template, thecheckPermissiondoc comment and the docs are updated to match.Verification
bun run typecheck: all workspaces pass.apps/broker:bun test, 17 pass. New tests: a leftoverreposkey is ignored; a template with or withoutreposcounts as unconfigured;/permissionforother/xreturns 200 with the level.apps/server:bun test, 866 pass.sh -n docker/entrypoint.shpasses, and the generated template heredoc parses withjq."repos": ["a/b"]: the broker starts.POST /permission {"repo":"other/x","user":"alice"}reaches Forgejo; with no Forgejo running it returns 502forgejo unreachable, where it used to return 403repository not allowed.Closes #64
omp-deck failed to handle this event: an internal error occurred.
Details are in omp-deck under webhook delivery
49cda3e6-1741-4cd8-8027-8ae1e7a3058f.