koopa-admin-log/2026/2026-09-07--git-meta-origin-forgejo.md
2026-09-09 04:22:13 +02:00

2 KiB
Raw Permalink Blame History

$HOME/git/ meta-repo origin on git.hacktivism.ch (2026-09-07)

Remote

Item Value
Host Forgejo rootless https://git.hacktivism.ch/
Repo hernani/git (meta-repo: non-secret globals only)
Visibility private (DEFAULT_PRIVATE template is public — create with private:true)
Default branch master (forgejo/ht SoT — never main)
SSH clone (FQDN form) git@git.hacktivism.ch:hernani/git.git
SSH URL (API form) ssh://git@git.hacktivism.ch:9200/hernani/git.git
Local tree $HOME/git/ (PATH[git-root])

Unauth HTTPS browse of a private repo → 404 (expected).

Local setup (done 2026-09-07 ~14:21)

cd "$HOME/git"
git remote add origin git@git.hacktivism.ch:hernani/git.git
git push -u origin master

SSH Host git.hacktivism.ch: HostName 127.0.0.1, Port 9200, User git, ProxyJump hernani@koopa, IdentityFile ~/.ssh/id_ed25519.

Create via One-Shot-Token (on koopa)

Do not use xAI / host-expert-ssh mutate for this. SSH as hernani → local HTTP 9024.

# unique token name (default gitea-admin may already exist)
podman exec koopa-forgejo gitea admin user generate-access-token \
  --username hernani \
  --token-name "oneshot-git-meta-$(date +%s)" \
  --scopes write:repository,write:admin \
  --raw
# → TOKEN (never log / never commit)

curl -sS -X POST \
  -H "Authorization: token ${TOKEN}" \
  -H "Content-Type: application/json" \
  -d '{"name":"git","private":true,"auto_init":false,"default_branch":"master"}' \
  http://127.0.0.1:9024/api/v1/admin/users/hernani/repos
# expect HTTP 201, full_name=hernani/git

Token delete via API often 403 with those scopes — purge leftover oneshot-* in Forgejo UI if needed.

  • This admin-logs own origin: 2026-07-10--admin-log-origin-forgejo.md (public)
  • Forgejo install: 2026-07-10--forgejo-rootless.md
  • Host skill quirk: private repos need explicit private:true
  • Meta Must: no secrets / no child worktrees in this Forgejo repo