Vault IaC: Branch Planner for Forgejo deferred (upstream gitea detection bug) #1516
Labels
No labels
epic
fleet:hub
fleet:identity
fleet:ingress
fleet:offload
fleet:sveltos
needs-triage
ready-for-agent
ready-for-human
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
lab/clusters#1516
Loading…
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?
Branch Planner for Forgejo — deferred, upstream issue + implementation doc
The "review plans in merge requests" requirement from the vault todo cannot use tofu-controller's Branch Planner as shipped.
Finding (verified against v0.16.5 source + pinned deps)
newGiteaProvider, go-scm gitea driver, PAT + OAuth2 refresh, full comment editing).github.com/kubescape/go-git-url v0.0.32, which has no gitea classification. A host starting withgit.(ourgit.animeteamspeak.moe) is mis-detected as GitLab → the planner hits/api/v4, which Forgejo does not serve (it serves/api/v1) → 404s. Any other hostname → "repository host not supported".go-git-url v0.0.32returnsprovider="gitlab"forssh://git@git.animeteamspeak.moe/lab/clusters. Same gap onmain.Decisions
approvePlan: "", read plan fromTerraform.status, setapprovePlanto apply).Actions
FromURL/ go-git-url).Internal issue record lives in this repo at
docs/vault-branch-planner-internal-issue.md(full finding + repro + suggested fix direction). Research notes:plans/tofu-controller-branch-planner-research.md.Per maintainer decision: do not file upstream via automation — the maintainer will take the next steps on the upstream question. This ticket tracks the local state.
Closing: the branch planner runs from the lab/tofu-controller Forgejo fork and posts plans on iac PRs. Remaining routeros coverage and upstreaming are tracked in lab/iac#97.