Skip to content

feat(forge): private orgs from the admin CLI, and refuse Gitea's brace globs in branch protection - #336

Merged
tonibergholm-codento merged 2 commits into
mainfrom
feat/forge-org-visibility
Nov 9, 2026
Merged

tonibergholm-codento merged 2 commits into
mainfrom
feat/forge-org-visibility

Conversation

@tonibergholm-codento

Copy link
Copy Markdown
Collaborator

Two gaps surfaced while moving Codento Engine's Project repositories from Gitea to sc-forge (Engine ADR-0080).

  • sc-forge admin org create --visibility public|limited|private. The default stays public. Engine's bootstrap creates its org projects as private, as its Gitea bootstrap did. Until now the CLI hard-coded public, which would have exposed the org and its members to every signed-in user. Invalid values are refused.
  • Glob patterns in branch protection. Names with { or \ are now refused like * ? [. Gitea 1.26.2's glob syntax gives meaning to * ? [ { \, so a Gitea rule like {main,release} was stored as a literal branch name and protected nothing. Existing stored rules still load and enforce.

Proof: e2e_a checks that a CLI-created private org reads back as private and that an invalid value errors. e2e_protection gains a brace-glob refusal case. cargo test -p scl-forge passes all 323 tests, and clippy (-D warnings) is clean.

Reviewed with sol-loop: 1 round with gpt-6.1-sol on high. Sol verdict: approved

Created with Claude Opus 5.5 in T3 Code (Claude Code harness).

Codento Engine's Project host bootstrap creates its org as private; sc-forge
hard-coded public, which would expose the org (and its member list) to every
signed-in user after the migration (Engine ADR-0080, COD2-7139). The new
--visibility flag takes Gitea's values and defaults to public as before.
Gitea's glob syntax also gives { and \ a meaning, so a rule like
{main,release} recreated from Gitea was stored as a literal branch name
that protects nothing. Such names are now refused like the other patterns.
@coderabbitai

coderabbitai Bot commented Nov 9, 2026

Copy link
Copy Markdown

Important

  • Trigger review

This repository does not receive automatic reviews because it has fewer than 10 stars.

Run configuration

  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: defaults
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: 462740e1-ce9b-442d-a4d5-c01a7bb83f82
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

Share

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Nov 9, 2026 •

Copy link
Copy Markdown
Codex Review Summary: ✅ Completed

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-11-09T14:41:29.643387Z 4b0695d PR opened
🔒 Security Review ✅ Completed 2026-11-09T14:42:46.887999Z 4b0695d PR opened
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@tonibergholm-codento
tonibergholm-codento merged commit deb361b into main Nov 9, 2026
11 checks passed
@tonibergholm-codento
tonibergholm-codento deleted the feat/forge-org-visibility branch November 9, 2026 14:50
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.

2 participants