Skip to content

Create repositories through an authenticated API - #107

Merged
carsonfarmer merged 2 commits into
mainfrom
cf/git-repository-create
Sep 28, 2026
Merged

carsonfarmer merged 2 commits into
mainfrom
cf/git-repository-create

Conversation

@carsonfarmer

Copy link
Copy Markdown
Owner

New repository names currently need an operator configuration edit and restart. Add authenticated POST /<name>/create so callers choose SHA-1/SHA-256 and a default branch, then use ordinary Git. A default access policy resolves new names to isolated WAL identities; exact policies remain overrides. Both bare and .git URLs identify the same repository.

Creation, stored format, refs and recovery use the existing repository WAL. Reads and wildcard pushes never create a missing Git root. Existing explicitly configured repositories retain first-push setup. The separate TypeScript viewer adds the UI in #104; no Git browser logic enters this service.

Validation: full make check, Terraform format/validation, independent correctness and simplification review, and the complete local Spin/MinIO Git provider suite. Added native-client SHA-1/SHA-256 API-create/push/clone/fsck checks, denied and bounded requests, alias/default-branch checks, and concurrent creators (one 201, one 409, winning format preserved).

Scheduled host maintenance still enumerates named policies; API-created names expose the same endpoints but dynamic discovery is follow-on work. No core WAL or dependency changes.

Closes #106.

Resolve new names under a default access policy, publish their format and default branch through the existing WAL, and recover stored formats without per-repository configuration.

Co-authored-by: Codex <noreply@openai.com>
Co-authored-by: Codex <noreply@openai.com>
@carsonfarmer
carsonfarmer force-pushed the cf/git-repository-create branch from e3d471f to 696661f Compare September 27, 2026 18:44
@carsonfarmer
carsonfarmer merged commit fbc34b0 into main Sep 28, 2026
3 checks passed
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.

Create repositories through an authenticated API and viewer

1 participant