coily ops forgejo: wrap forgejo admin CLI verbs for the kai-server deploy #55
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
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?
Originally filed by @coilysiren on 2026-05-05T10:36:44Z - https://github.com/coilysiren/coily/issues/57
Proposal
Add a `coily ops forgejo ...` verb group that wraps the in-pod `forgejo` CLI on the kai-server k3s deploy. Each leaf is a fixed-shape `k3s kubectl -n forgejo exec deploy/forgejo -- forgejo `, run through the privileged-op gate (audit + scope binding) like every other `ops` verb.
Spawned from the forgejo deploy. Pairs with #50 (the broader `coily ops ` rename) - this issue carves out the forgejo-shaped surface inside that group regardless of whether #50 lands first.
Why
Three shapes recur for managing this Forgejo instance from outside the pod:
All three want the same shape: "run a fixed-shape forgejo CLI verb against the running pod, log it, no sudo, no escape hatch."
Without a wrapper each one is bare `ssh kai-server 'k3s kubectl -n forgejo exec ...'`, which (a) is gated by the harness's `kubectl exec` deny-rule (rightly), (b) leaves no audit row, (c) varies subtly per invocation and creates a documentation maintenance burden.
Verb selection (forgejo 15.0.1 `forgejo --help` survey)
Strong fit for wrapping (admin-shaped, safe, repeatable):
Skip / explicit reject:
Borderline (decide during implementation):
Mechanical scope
Out of scope
Dependencies