Commit Graph
6 Commits
Author SHA1 Message Date
AlexKucera 867d982786 chore: ignore agent tooling, record GitNexus docs
Add .pi-subagents/, .claude/, and CLAUDE.md to .gitignore, and append the GitNexus code-intelligence instructions to the root AGENTS.md.
2026-08-11 13:35:47 +02:00
AlexKucera 299c061f26 fix(security): mask forge tokens in logs and disk
CI / test (push) Canceled after 0s
Close two token-leak paths in the git mirror and harden the supply
chain per the OWASP audit (audit/2026-08-11/security-report.md).

Runtime fixes:
- mirror GitError masks the embedded oauth2:<token> in both the
  failing command line and git's stderr before raising; cli now
  catches GitError with a clean message instead of an uncaught
  traceback that printed the live token.
- Scrub token-bearing remote URLs from the bare config at the end
  of each run so tokens aren't persisted in .git/config.
- Default mirror workdir is per-user 0700 (/tmp/cb2gitea-<uid>),
  not a world-readable /tmp/cb2gitea.

Supply chain:
- Commit uv.lock; CI installs via uv sync --frozen (hash-verified).
- Pin Gitea Actions to commit SHAs, not mutable @vN tags.
- Pin the ruff rule set and exclude audit/ for reproducible linting.

Adds tests/test_mirror.py for the redaction helpers.
2026-08-11 11:48:32 +02:00
AlexKucera 7d26e2d4ca docs: record one-shot/cutover migration model as intentional design 2026-08-11 11:18:42 +02:00
AlexKucera ab43b0311e feat: implement Codeberg → Gitea repo migrator
Replay git (mirror + LFS), labels, milestones, issues & PRs (with
comments), and releases (with assets) entity-by-entity over the shared
Forgejo/Gitea REST API. Two-pass issue/PR creation rewrites #NNN and
URL cross-references to the target number space; deleted-branch PR
heads are recreated as refs/heads/_pr/<n>.

CLI: codeberg-to-gitea migrate owner/name  (CODEBERG_TOKEN/GITEA_TOKEN)
Verified end-to-end on AlexKucera/helm: 283 issues, 1 PR, 19 labels,
219 comments, git history, with cross-refs correctly rewritten.
2026-08-11 11:12:06 +02:00
AlexKucera 601cf4c41e chore: bootstrap project scaffold
CI / test (push) Canceled after 0s
Set up the codeberg-to-gitea-migrator project: Python package
with src/ layout (hatchling, ruff, pytest), GPL-3.0-or-later
license, CITATION.cff, README, ADRs for stack/license/forge, and
DOX-structured AGENTS.md. Add Gitea Actions CI.

The package is a stub; migration modules land in follow-up commits.
2026-08-11 09:46:13 +02:00
AlexKucera ddca225fde Initial commit 2026-08-11 09:15:57 +02:00