Commit Graph

9 Commits

Author SHA1 Message Date
unkin-agent de36ed3b6d Keep live envs whose name only corrected branches collide on, cap forge metadata reads 2026-11-08 21:41:31 +11:00
unkin-agent 66580c9b37 Keep GC off targeted deploys, always drop live marks, let exact branches win env names
ci/woodpecker/pr/test Pipeline was successful
ci/woodpecker/pr/build Pipeline was successful
ci/woodpecker/pr/lint Pipeline was successful
ci/woodpecker/pr/pre-commit Pipeline was successful
2026-11-08 20:54:57 +11:00
unkin-agent d7ab79f874 Write the branch as the deploy marker name, as g10k does
ci/woodpecker/pr/build Pipeline was successful
ci/woodpecker/pr/test Pipeline was successful
ci/woodpecker/pr/pre-commit Pipeline was successful
ci/woodpecker/pr/lint Pipeline was successful
2026-11-08 20:40:10 +11:00
unkin-agent 1c192c9409 Keep targeted deploys targeted across sources and drop unverifiable GC marks 2026-11-08 20:39:22 +11:00
unkin-agent 53e78a5f75 Serialize worktree commands per repo
ci/woodpecker/pr/build Pipeline was successful
ci/woodpecker/pr/test Pipeline was successful
ci/woodpecker/pr/pre-commit Pipeline was successful
ci/woodpecker/pr/lint Pipeline was successful
2026-11-08 20:29:23 +11:00
unkin-agent 8a336b62a5 Harden Puppetfile parsing, module sources and cache GC
ci/woodpecker/pr/build Pipeline was successful
ci/woodpecker/pr/pre-commit Pipeline was successful
ci/woodpecker/pr/test Pipeline was successful
ci/woodpecker/pr/lint Pipeline was successful
- return an error for an option with no value instead of reading past EOF
- recover panics per environment, module and single-flight as errors
- accept only https, http, ssh and user@host:path module remotes
- fetch modules with protocol.file.allow=never
- reuse module and forge dirs only with an out-of-tree done marker
- rename GC'd dirs aside before deleting and sweep leftovers
- add a Puppetfile fuzz target; serve test modules over git smart HTTP
2026-11-08 20:25:59 +11:00
unkin-agent af20148ea4 Confine worktree writes, time out git calls, keep removed sources' modules
ci/woodpecker/pr/build Pipeline was successful
ci/woodpecker/pr/test Pipeline was successful
ci/woodpecker/pr/pre-commit Pipeline was successful
ci/woodpecker/pr/lint Pipeline was successful
- write the deploy marker and module links through os.Root
- extract forge tarballs through os.Root
- bound each git call with w10k.git_timeout (default 10m) and http low-speed abort
- count module refs from every worktree and basedir link, not only configured sources
2026-11-08 18:07:09 +11:00
unkin-agent 01fa51110b Harden module installs against untrusted Puppetfiles
- reject option-like :git URLs and refs; pass -- before git positionals
- link modules without following symlinks; reject nested module paths
- judge worktree completeness by an out-of-tree done file
- key git mirrors by URL hash and forge releases by forge base
- bound every git and forge call with the -j semaphore
2026-11-08 17:52:07 +11:00
unkin-agent fc5d90b684 Add w10k: deploy Puppet environments as sha-pinned git worktrees
ci/woodpecker/pr/build Pipeline was successful
ci/woodpecker/pr/test Pipeline was successful
ci/woodpecker/pr/lint Pipeline was successful
ci/woodpecker/pr/pre-commit Pipeline was successful
2026-11-08 17:38:08 +11:00