59 Commits

Author SHA1 Message Date
benvin 41168df5fd Merge pull request 'Declare go-cache-plugin build repo' (#101) from benvin/go-cache-plugin-repo into main
ci/woodpecker/push/apply Pipeline was successful
Reviewed-on: #101
2026-09-26 21:04:25 +10:00
unkin-agent 98f80d58f8 Declare go-cache-plugin build repo
ci/woodpecker/pr/plan Pipeline was successful
ci/woodpecker/pr/pre-commit Pipeline was successful
Adds the Gitea repo that builds and releases the tailscale go-cache-plugin
GOCACHEPROG binary for the estate.
2026-09-26 19:06:06 +10:00
benvin f4e7dbd1ff Merge pull request 'Protect main on the jellyfin-plugin-sso fork' (#100) from benvin/jellyfin-plugin-sso-protection into main
ci/woodpecker/push/apply Pipeline was successful
Reviewed-on: #100
2026-09-19 22:29:11 +10:00
unkin-agent ac5604ec92 Protect main on the jellyfin-plugin-sso fork
ci/woodpecker/pr/plan Pipeline was successful
ci/woodpecker/pr/pre-commit Pipeline was successful
Require the PR pipeline and Owners merge approval on main, keeping owner push for upstream syncs.
2026-09-19 22:28:09 +10:00
benvin c26a432769 Merge pull request 'Fork the Jellyfin SSO plugin mirror into unkin' (#99) from benvin/fork-jellyfin-plugin-sso into main
ci/woodpecker/push/apply Pipeline was successful
Reviewed-on: #99
2026-09-19 17:17:31 +10:00
unkin-agent 289ebc84d6 Fork the Jellyfin SSO plugin mirror into unkin
ci/woodpecker/pr/plan Pipeline was successful
ci/woodpecker/pr/pre-commit Pipeline was successful
Add config/git.unkin.net/unkin/repository/jellyfin-plugin-sso.yaml forking mirrors/jellyfin-plugin-sso.
2026-09-19 17:11:06 +10:00
benvin 25ef56fc30 Merge pull request 'Use plain git migration service for the SSO plugin mirror' (#98) from benvin/mirror-sso-plain-git into main
ci/woodpecker/push/apply Pipeline was successful
Reviewed-on: #98
2026-09-19 17:03:48 +10:00
unkin-agent 112f7c8042 Use plain git migration service for the SSO plugin mirror
ci/woodpecker/pr/plan Pipeline was successful
ci/woodpecker/pr/pre-commit Pipeline was successful
2026-09-19 16:47:41 +10:00
benvin b126fffe17 Merge pull request 'Mirror the upstream Jellyfin SSO plugin' (#97) from benvin/mirror-jellyfin-plugin-sso into main
ci/woodpecker/push/apply Pipeline failed
Reviewed-on: #97
2026-09-19 16:36:09 +10:00
unkin-agent 8207d8cc8a Mirror the upstream Jellyfin SSO plugin
ci/woodpecker/pr/plan Pipeline was successful
ci/woodpecker/pr/pre-commit Pipeline was successful
Add a pull mirror of github.com/9p4/jellyfin-plugin-sso into the mirrors
organisation, syncing every 8h with issues, pull requests and release
migration disabled.
2026-09-19 16:18:55 +10:00
benvin 55151a8796 Merge pull request 'Add declarative fork support to repository config' (#96) from benvin/gitea-fork-from into main
ci/woodpecker/push/apply Pipeline was successful
Reviewed-on: #96
2026-09-19 16:13:06 +10:00
unkin-agent 8bc04e2c7d Reject fork_from alongside unsupported repository keys
ci/woodpecker/pr/plan Pipeline was successful
ci/woodpecker/pr/pre-commit Pipeline was successful
gitea_fork can only express the source repo and owning organisation, so any
other setting in a fork's yaml is silently dropped.

- validate fork_from entries carry no other repository attributes, naming the
  offending config key and attributes
- note that gitea_fork has no archive_on_destroy
2026-09-19 16:03:44 +10:00
benvin 2cb056cbac Merge pull request 'Add Gitea pull-mirror support and a mirrors organisation' (#95) from benvin/gitea-mirror-repos into main
ci/woodpecker/push/apply Pipeline was successful
Reviewed-on: #95
2026-09-19 15:58:01 +10:00
unkin-agent 9ab540719e Add fork_from to repository config
ci/woodpecker/pr/plan Pipeline was successful
ci/woodpecker/pr/pre-commit Pipeline was successful
Express a fork as an optional fork_from key on the repository yaml, so a
forked repo is declared the same way as any other repo.

- add fork_from "<owner>/<repo>" to the repository module and object type
- create gitea_fork instead of gitea_repository when fork_from is set
- validate the source repo name matches the config file name, since a fork
  inherits the source name
- move gitea_repository.this to index 0 for the count refactor
- index existing repository import targets to match
2026-09-19 15:55:12 +10:00
unkin-agent 66823a939a Add pull-mirror support and a mirrors organisation
ci/woodpecker/pr/plan Pipeline was successful
ci/woodpecker/pr/pre-commit Pipeline was successful
Expose the non-secret gitea_repository mirror/migration attributes through
the repository module and add the mirrors org for public upstream mirrors.
2026-09-19 15:47:32 +10:00
benvin 26e7723251 Merge pull request 'Add sshsignhost repository and scope certmanager to X.509' (#94) from benvin/puppet-vault-signers-repo into main
ci/woodpecker/push/apply Pipeline was successful
Reviewed-on: #94
2026-09-19 10:25:37 +10:00
unkin-agent 1a43ed6a47 repository: add sshsignhost and scope certmanager to X.509
ci/woodpecker/pr/plan Pipeline was successful
ci/woodpecker/pr/pre-commit Pipeline was successful
Puppet calls /usr/local/bin/certmanager and /usr/local/bin/sshsignhost at
hardcoded paths, so each tool needs a repo named for its binary.
2026-09-19 10:21:14 +10:00
unkin-agent de2b8acf8a Add puppet-vault-signers repository
ci/woodpecker/pr/plan Pipeline was successful
ci/woodpecker/pr/pre-commit Pipeline was successful
Host the Go rewrites of the certmanager and sshsignhost Vault signing
helpers.

- Add config/git.unkin.net/unkin/repository/puppet-vault-signers.yaml
- Protect main with Owners-only merge and the standard woodpecker checks
2026-09-14 23:30:11 +10:00
benvin 93b47c0941 Merge pull request 'Add puppet-catalog-tools repository' (#93) from benvin/puppet-catalog-tools-repo into main
ci/woodpecker/push/apply Pipeline was successful
Reviewed-on: #93
2026-09-12 15:35:20 +10:00
unkin-agent 73cc875373 Add puppet-catalog-tools repository
ci/woodpecker/pr/plan Pipeline was successful
ci/woodpecker/pr/pre-commit Pipeline was successful
2026-09-12 15:32:55 +10:00
benvin 4424abad17 Merge pull request 'Make arti-pack repo description vendor-neutral' (#92) from benvin/arti-pack-neutral-description into main
ci/woodpecker/push/apply Pipeline was successful
Reviewed-on: #92
2026-09-09 23:12:29 +10:00
unkin-agent 96ca0630d5 Make arti-pack repo description vendor-neutral
ci/woodpecker/pr/plan Pipeline was successful
ci/woodpecker/pr/pre-commit Pipeline was successful
2026-09-09 22:39:34 +10:00
benvin deaa0f003d Merge pull request 'Add arti-pack repository' (#91) from benvin/arti-pack-repo into main
ci/woodpecker/push/apply Pipeline was successful
Reviewed-on: #91
2026-09-08 22:59:29 +10:00
unkin-agent d0c1f7f6bd Add arti-pack repository
ci/woodpecker/pr/pre-commit Pipeline was successful
ci/woodpecker/pr/plan Pipeline was successful
2026-09-07 23:49:12 +10:00
benvin 9230ece23a Merge pull request 'Add vimpack repository' (#90) from benvin/vimpack-repo into main
ci/woodpecker/push/apply Pipeline was successful
Reviewed-on: #90
2026-09-05 13:06:55 +10:00
unkin-agent 62b8ab4e9c Add vimpack repository
ci/woodpecker/pr/plan Pipeline was successful
ci/woodpecker/pr/pre-commit Pipeline was successful
2026-09-05 11:13:50 +10:00
benvin 7b699c36b7 Merge pull request 'Add golib repository' (#89) from benvin/golib-repo into main
ci/woodpecker/push/apply Pipeline was successful
Reviewed-on: #89
2026-08-31 06:58:05 +10:00
unkin-agent c731f89dd4 Add golib repository
ci/woodpecker/pr/plan Pipeline was successful
ci/woodpecker/pr/pre-commit Pipeline was successful
Shared Go library for estate services, starting with a postgres pool and
migrations module.
2026-08-31 04:15:59 +10:00
benvin 2e9a5fb8d4 Merge pull request 'Add repospawner machine user scoped to terraform-git' (#88) from benvin/repospawner-user into main
ci/woodpecker/push/apply Pipeline was successful
Reviewed-on: #88
2026-08-30 09:34:47 +10:00
benvin cb61d385e2 Merge pull request 'Add repospawner repository' (#87) from benvin/repospawner-repo into main
ci/woodpecker/push/apply Pipeline was successful
Reviewed-on: #87
2026-08-30 09:28:12 +10:00
unkin-agent dd26c861fc repospawner: mark the account restricted
ci/woodpecker/pr/plan Pipeline was successful
ci/woodpecker/pr/pre-commit Pipeline was successful
Defense in depth for the repo-creation bot: a restricted Gitea account can
only see repositories and organisations it is explicitly added to, so a
leaked repospawner token cannot enumerate or read the rest of the estate.
The repospawner team grant on terraform-git already covers everything the
bot does, so nothing it needs is lost.
2026-08-30 00:55:01 +10:00
unkin-agent 4b30ba0cfd Add repospawner machine user scoped to terraform-git
ci/woodpecker/pr/plan Pipeline was successful
ci/woodpecker/pr/pre-commit Pipeline was successful
repospawner opens repo-creation PRs against terraform-git and needs no other
access, so give it its own identity and a per-repo team instead of adding it to
the org-wide agents team.

- add config/git.unkin.net/user/repospawner.yaml (limited visibility, not admin,
  no org/repo creation), mirroring the unkin-agent bot posture
- add config/git.unkin.net/unkin/team/repospawner.yaml granting write on the
  terraform-git repository only (include_all_repositories false)
2026-08-30 00:48:10 +10:00
unkin-agent 0e9f2a1279 Add repospawner repository
ci/woodpecker/pr/plan Pipeline was successful
ci/woodpecker/pr/pre-commit Pipeline was successful
2026-08-30 00:40:44 +10:00
benvin a38a792f69 Merge pull request 'Add mediamark repository' (#86) from benvin/mediamark-repo into main
ci/woodpecker/push/apply Pipeline was successful
Reviewed-on: #86
2026-08-29 21:13:42 +10:00
unkin-agent cd006fdff6 mediamark: make repo public and require woodpecker PR checks
ci/woodpecker/pr/plan Pipeline was successful
ci/woodpecker/pr/pre-commit Pipeline was successful
2026-08-29 21:08:48 +10:00
unkin-agent ae41bf6cdc repository: add mediamark repo
ci/woodpecker/pr/plan Pipeline was successful
ci/woodpecker/pr/pre-commit Pipeline was successful
2026-08-29 20:57:05 +10:00
benvin 98169c7cf8 Merge pull request 'Archive terraform-nomad repository' (#85) from benvin/archive-nomad into main
ci/woodpecker/push/apply Pipeline was successful
Reviewed-on: #85
2026-08-23 22:36:29 +10:00
unkin-agent 960e88cd7e Archive terraform-nomad repository
ci/woodpecker/pr/plan Pipeline was successful
ci/woodpecker/pr/pre-commit Pipeline was successful
The terraform-nomad project is being decommissioned; mark it archived
in Gitea so it becomes read-only, consistent with other retired repos
in this config (e.g. rpmbuild-template).
2026-08-23 22:34:03 +10:00
benvin 9ac6edd0a1 Merge pull request 'Run plan without acquiring the Consul state lock' (#84) from benvin/lockfree-plan into main
ci/woodpecker/push/apply Pipeline was successful
Reviewed-on: #84
2026-08-23 22:31:30 +10:00
unkin-agent f83bdff5e6 Run plan without acquiring the Consul state lock
ci/woodpecker/pr/pre-commit Pipeline was successful
ci/woodpecker/pr/plan Pipeline was successful
PR plan pipelines were failing with "Error acquiring the state lock"
when they collided with a concurrent apply (or another plan) holding
the lock on the same Consul-backed state.

- plan: pass -lock=false to terragrunt plan; apply/apply-if-changes keep locking
2026-08-23 22:21:11 +10:00
benvin e4a65e18ab Merge pull request 'Make clickhouse-tools and logviewer public and require CI status checks' (#83) from benvin/repo-defaults into main
ci/woodpecker/push/apply Pipeline was successful
Reviewed-on: #83
2026-08-23 16:56:12 +10:00
unkin-agent 54fb6154af Require all three woodpecker PR contexts (build/test/pre-commit)
ci/woodpecker/pr/plan Pipeline was successful
ci/woodpecker/pr/pre-commit Pipeline was successful
2026-08-23 16:43:18 +10:00
unkin-agent 3cbfac7017 Make clickhouse-tools and logviewer public and require CI status checks
ci/woodpecker/pr/plan Pipeline was successful
ci/woodpecker/pr/pre-commit Pipeline was successful
Both repos do not need to be private, and their main branches should
only accept PRs whose Woodpecker pipeline passed.

- private: false for clickhouse-tools and logviewer
- require ci/woodpecker/pr/build status check on main for both
2026-08-23 16:33:47 +10:00
benvin 58c67e69be Merge pull request 'Add clickhouse-tools repository' (#81) from benvin/clickhouse-tools-repo into main
ci/woodpecker/push/apply Pipeline was successful
Reviewed-on: #81
2026-08-23 12:40:12 +10:00
benvin 43a43b5f85 Merge pull request 'Add logviewer repository' (#82) from benvin/logviewer-repo into main
ci/woodpecker/push/apply Pipeline was successful
Reviewed-on: #82
2026-08-23 12:39:40 +10:00
unkin-agent d4018f6b7e Add logviewer repository
ci/woodpecker/pr/plan Pipeline was successful
ci/woodpecker/pr/pre-commit Pipeline was successful
2026-08-23 12:37:18 +10:00
unkin-agent 22f11a0bda Add clickhouse-tools repository
ci/woodpecker/pr/plan Pipeline was successful
ci/woodpecker/pr/pre-commit Pipeline was successful
2026-08-23 12:36:32 +10:00
benvin 78191e8eaf Merge pull request 'Add mediamover repository' (#80) from benvin/mediamover-repo into main
ci/woodpecker/push/apply Pipeline was successful
Reviewed-on: #80
2026-08-22 22:53:07 +10:00
unkin-agent 9f85070281 repository: add mediamover repo
ci/woodpecker/pr/plan Pipeline was successful
ci/woodpecker/pr/pre-commit Pipeline was successful
2026-08-22 22:37:46 +10:00
benvin fe7dec14e8 Merge pull request 'waitfordb: add branch protection on main' (#79) from benvin/waitfordb-branch-protection into main
ci/woodpecker/push/apply Pipeline was successful
Reviewed-on: #79
2026-08-22 17:03:15 +10:00
unkin-agent dd02e3dc75 Require all three PR status checks for waitfordb
ci/woodpecker/pr/plan Pipeline was successful
ci/woodpecker/pr/pre-commit Pipeline was successful
The waitfordb CI is being split into three Woodpecker PR workflows
(pre-commit, test, build), each exposing its own status context. Require
all three on the main branch protection so a PR cannot merge until
pre-commit, test, and build all pass. Mirrors node-lookup.
2026-08-22 15:16:48 +10:00
unkin-agent c44f90e1ff waitfordb: add branch protection on main
ci/woodpecker/pr/plan Pipeline was successful
ci/woodpecker/pr/pre-commit Pipeline was successful
Owners-only merge, benvin approval, and the required Woodpecker PR check.
Requires the repo to be activated in Woodpecker so ci/woodpecker/pr/build
reports before a PR can merge.
2026-08-22 15:05:31 +10:00
benvin 6e6dcc1f25 Merge pull request 'Add waitfordb repo' (#78) from benvin/waitfordb-repo into main
ci/woodpecker/push/apply Pipeline was successful
Reviewed-on: #78
2026-08-22 13:29:00 +10:00
unkin-agent 7fa013160a repository: add waitfordb repo
ci/woodpecker/pr/plan Pipeline was successful
ci/woodpecker/pr/pre-commit Pipeline was successful
waitfordb is a small Go tool shipped as a container image, used as a Kubernetes
initContainer to block an app from starting until its database is ready. It
replaces the hand-written psql-in-a-shell init steps on the arrstack.

Creates the unkin/waitfordb Gitea repo (Go tool settings mirroring node-lookup:
public, squash merges, delete branch after merge). branch_protection is omitted
on creation to avoid requiring Woodpecker status checks that do not exist until
the first pipeline runs; it will be added in a follow-up PR once CI is green.
2026-08-22 12:52:25 +10:00
benvin 62a9f092d1 Merge pull request 'Add terraform-provider-vault-secrets-arrstack repo' (#77) from benvin/add-terraform-provider-arrstackvaultsecret into main
ci/woodpecker/push/apply Pipeline was successful
Reviewed-on: #77
2026-08-19 21:50:14 +10:00
unkin-agent b178a5cb37 Rename repo to terraform-provider-vault-secrets-arrstack
ci/woodpecker/pr/plan Pipeline was successful
ci/woodpecker/pr/pre-commit Pipeline was successful
Align the repo name with the vault-secrets-<engine> provider naming used by
the ghp/netbox provider repos (the canonical form for this engine).
2026-08-19 21:40:00 +10:00
unkin-agent 16e8d4cb18 Add terraform-provider-arrstackvaultsecret repo
ci/woodpecker/pr/plan Pipeline was successful
ci/woodpecker/pr/pre-commit Pipeline was successful
terraform-provider-arrstackvaultsecret is a bespoke Terraform provider that
configures the new arrstack Vault/OpenBao secrets engine (engine config +
roles) from terraform-vault, following the per-engine-provider convention
used by the gpg/litellm/rancher vault-secret providers. It needs a Gitea
repo to host its source before CI and releases can be wired up.

- add config/git.unkin.net/unkin/repository/terraform-provider-arrstackvaultsecret.yaml
- public repo, default branch main, delete-branch-after-merge, squash-only
- Owners-only merge with required pre-commit/build/test Woodpecker checks
2026-08-19 21:35:36 +10:00
benvin abc4f0c3f2 Merge pull request 'Add vault-plugin-secrets-arrstack repo' (#76) from benvin/add-vault-plugin-secrets-arrstack into main
ci/woodpecker/push/apply Pipeline was successful
Reviewed-on: #76
2026-08-18 21:21:24 +10:00
unkin-agent 2365b182f4 Add vault-plugin-secrets-arrstack repo
ci/woodpecker/pr/plan Pipeline was successful
ci/woodpecker/pr/pre-commit Pipeline was successful
vault-plugin-secrets-arrstack is a new Vault/OpenBao secrets engine that
dynamically mints arrproxy machine (per-user) API tokens, enabling
terraform-driven onboarding of *arr services. It needs a Gitea repo to
host its source before CI and releases can be wired up.

- add config/git.unkin.net/unkin/repository/vault-plugin-secrets-arrstack.yaml
- public repo, default branch main, delete-branch-after-merge, squash-only
- Owners-only merge with required pre-commit/build/test Woodpecker checks
2026-08-18 20:47:41 +10:00
28 changed files with 441 additions and 37 deletions
+1 -1
View File
@@ -23,7 +23,7 @@ init:
plan: init plan: init
@$(call vault_env) && \ @$(call vault_env) && \
terragrunt run --all --parallelism 4 --non-interactive plan terragrunt run --all --parallelism 4 --non-interactive plan -- -lock=false
apply-if-changes: init apply-if-changes: init
@$(call vault_env) && \ @$(call vault_env) && \
+3
View File
@@ -0,0 +1,3 @@
description: "Pull mirrors of upstream repositories"
visibility: public
repo_admin_change_team_access: true
@@ -0,0 +1,11 @@
description: "Pull mirror of github.com/9p4/jellyfin-plugin-sso, the Jellyfin SSO/OIDC authentication plugin"
private: false
has_issues: false
has_pull_requests: false
mirror: true
migration_clone_address: "https://github.com/9p4/jellyfin-plugin-sso"
migration_service: "git"
migration_mirror_interval: "8h0m0s"
migration_issue_labels: false
migration_milestones: false
migration_releases: false
@@ -0,0 +1,14 @@
description: "Neovim plugin manager that installs plugins from tagged archives in an HTTP artifact repository into nvim's native package path"
private: false
default_branch: "main"
default_delete_branch_after_merge: true
default_merge_style: "squash"
branch_protection:
- rule_name: "main"
merge_whitelist_teams:
- "Owners"
enable_push: false
status_check_contexts:
- "ci/woodpecker/pr/test"
- "ci/woodpecker/pr/lint"
- "ci/woodpecker/pr/pre-commit"
@@ -1,4 +1,4 @@
description: "Vault PKI certificate issuance and SSH host key signing tool for Puppet-managed infrastructure" description: "Vault-backed X.509 certificate signing helper for Puppet"
private: false private: false
default_branch: "master" default_branch: "master"
default_delete_branch_after_merge: true default_delete_branch_after_merge: true
@@ -0,0 +1,14 @@
description: "CLI tools (chcat, chtail, chgrep) for searching, filtering and tailing logs in the ClickHouse log store"
private: false
default_branch: "main"
default_delete_branch_after_merge: true
default_merge_style: "squash"
branch_protection:
- rule_name: "main"
merge_whitelist_teams:
- "Owners"
enable_push: false
status_check_contexts:
- "ci/woodpecker/pr/build"
- "ci/woodpecker/pr/test"
- "ci/woodpecker/pr/pre-commit"
@@ -0,0 +1,16 @@
description: "Build repo that compiles the tailscale/go-cache-plugin GOCACHEPROG S3 Go build cache from a pinned upstream module version and publishes static binaries as Gitea releases."
private: false
default_branch: "main"
default_delete_branch_after_merge: true
default_merge_style: "squash"
branch_protection:
- rule_name: "main"
merge_whitelist_teams:
- "Owners"
enable_push: false
status_check_contexts:
- "ci/woodpecker/pr/build"
- "ci/woodpecker/pr/test"
- "ci/woodpecker/pr/pre-commit"
approval_whitelist_users:
- "benvin"
@@ -0,0 +1,14 @@
description: "Shared Go library for estate services: postgres, http service kit, vault and gitea clients"
private: false
default_branch: "main"
default_delete_branch_after_merge: true
default_merge_style: "squash"
branch_protection:
- rule_name: "main"
merge_whitelist_teams:
- "Owners"
enable_push: false
status_check_contexts:
- "ci/woodpecker/pr/build"
- "ci/woodpecker/pr/test"
- "ci/woodpecker/pr/pre-commit"
@@ -0,0 +1,15 @@
fork_from: "mirrors/jellyfin-plugin-sso"
branch_protection:
- rule_name: "main"
merge_whitelist_teams:
- "Owners"
# Whitelist-push: the owner pushes main directly when syncing upstream;
# everyone else must open a PR.
enable_push: true
push_whitelist_users:
- "unkinben"
# PRs to main must pass the plugin build pipeline before merge.
status_check_contexts:
- "ci/woodpecker/pr/ci"
approval_whitelist_teams:
- "Owners"
@@ -0,0 +1,14 @@
description: "Web UI for the ClickHouse log store: fuzzy find, tail and SQL-filter logs (logviewer.unkin.net)"
private: false
default_branch: "main"
default_delete_branch_after_merge: true
default_merge_style: "squash"
branch_protection:
- rule_name: "main"
merge_whitelist_teams:
- "Owners"
enable_push: false
status_check_contexts:
- "ci/woodpecker/pr/build"
- "ci/woodpecker/pr/test"
- "ci/woodpecker/pr/pre-commit"
@@ -0,0 +1,14 @@
description: "Keyboard-centric web UI to mark media as cheeztv (kids) content via hardlinks; oauth2-proxy fronted, talks to sonarr/radarr APIs"
private: false
default_branch: "main"
default_delete_branch_after_merge: true
default_merge_style: "squash"
branch_protection:
- rule_name: "main"
merge_whitelist_teams:
- "Owners"
enable_push: false
status_check_contexts:
- "ci/woodpecker/pr/build"
- "ci/woodpecker/pr/test"
- "ci/woodpecker/pr/pre-commit"
@@ -0,0 +1,10 @@
description: "Media copy/move tool: Go API + UI spawning per-file k8s Jobs from mediafs CephFS to media PVCs; doubles as a Ceph aggregate-bandwidth test"
private: true
default_branch: "main"
default_delete_branch_after_merge: true
default_merge_style: "squash"
branch_protection:
- rule_name: "main"
merge_whitelist_teams:
- "Owners"
enable_push: false
@@ -0,0 +1,14 @@
description: "Go CLIs to diff Puppet catalogs between branches and map puppet-prod changes to affected hosts"
private: false
default_branch: "main"
default_delete_branch_after_merge: true
default_merge_style: "squash"
branch_protection:
- rule_name: "main"
merge_whitelist_teams:
- "Owners"
enable_push: false
status_check_contexts:
- "ci/woodpecker/pr/build"
- "ci/woodpecker/pr/test"
- "ci/woodpecker/pr/pre-commit"
@@ -0,0 +1,14 @@
description: "API service that opens terraform-git PRs for new repo requests via kube Jobs; oauth2-proxy'd status UI"
private: false
default_branch: "main"
default_delete_branch_after_merge: true
default_merge_style: "squash"
branch_protection:
- rule_name: "main"
merge_whitelist_teams:
- "Owners"
enable_push: false
status_check_contexts:
- "ci/woodpecker/pr/build"
- "ci/woodpecker/pr/test"
- "ci/woodpecker/pr/pre-commit"
@@ -0,0 +1,14 @@
description: "Vault-backed SSH host certificate signing helper for Puppet"
private: false
default_branch: "main"
default_delete_branch_after_merge: true
default_merge_style: "squash"
branch_protection:
- rule_name: "main"
merge_whitelist_teams:
- "Owners"
enable_push: false
status_check_contexts:
- "ci/woodpecker/pr/build"
- "ci/woodpecker/pr/test"
- "ci/woodpecker/pr/pre-commit"
@@ -2,6 +2,7 @@ description: "Manage nomad with Terraform"
private: false private: false
default_branch: "master" default_branch: "master"
default_delete_branch_after_merge: true default_delete_branch_after_merge: true
archived: true
branch_protection: branch_protection:
- rule_name: "master" - rule_name: "master"
enable_push: false enable_push: false
@@ -0,0 +1,21 @@
description: "Terraform provider to manage the arrstack Vault secrets engine (config + roles)"
private: false
default_branch: "main"
default_delete_branch_after_merge: true
# Squash-only: the gitea provider has no "default merge style", so we restrict
# the allowed styles to squash to force it.
allow_merge_commits: false
allow_rebase: false
allow_rebase_explicit: false
allow_squash_merge: true
branch_protection:
- rule_name: "main"
merge_whitelist_teams:
- "Owners"
enable_push: false
status_check_contexts:
- "ci/woodpecker/pr/pre-commit"
- "ci/woodpecker/pr/build"
- "ci/woodpecker/pr/test"
approval_whitelist_teams:
- "Owners"
@@ -0,0 +1,21 @@
description: "Vault/OpenBao secrets engine minting dynamic arrproxy per-user API tokens"
private: false
default_branch: "main"
default_delete_branch_after_merge: true
# Squash-only: the gitea provider has no "default merge style", so we restrict
# the allowed styles to squash to force it.
allow_merge_commits: false
allow_rebase: false
allow_rebase_explicit: false
allow_squash_merge: true
branch_protection:
- rule_name: "main"
merge_whitelist_teams:
- "Owners"
enable_push: false
status_check_contexts:
- "ci/woodpecker/pr/pre-commit"
- "ci/woodpecker/pr/build"
- "ci/woodpecker/pr/test"
approval_whitelist_teams:
- "Owners"
@@ -0,0 +1,14 @@
description: "Neovim plugin manager installing plugins from tagged archives on artifactapi/Artifactory instead of git clones"
private: false
default_branch: "main"
default_delete_branch_after_merge: true
default_merge_style: "squash"
branch_protection:
- rule_name: "main"
merge_whitelist_teams:
- "Owners"
enable_push: false
status_check_contexts:
- "ci/woodpecker/pr/test"
- "ci/woodpecker/pr/lint"
- "ci/woodpecker/pr/pre-commit"
@@ -0,0 +1,16 @@
description: "A small Go tool, shipped as a container image, used as a Kubernetes initContainer to block an app from starting until its database is ready."
private: false
default_branch: "main"
default_delete_branch_after_merge: true
default_merge_style: "squash"
branch_protection:
- rule_name: "main"
merge_whitelist_teams:
- "Owners"
enable_push: false
status_check_contexts:
- "ci/woodpecker/pr/build"
- "ci/woodpecker/pr/test"
- "ci/woodpecker/pr/pre-commit"
approval_whitelist_users:
- "benvin"
@@ -0,0 +1,16 @@
# Least-privilege access for the repospawner bot: Write on terraform-git only,
# which is the minimum Gitea permission that allows pushing a branch and opening
# a pull request. repospawner does its whole job here (repo-creation PRs), so it
# is kept out of the org-wide "agents" team (include_all_repositories: true).
#
# Merge stays reserved for Ben: branch protection on terraform-git's main sets a
# merge whitelist of the Owners team only. Keep this team out of every merge and
# approval whitelist.
description: "repospawner bot -- push branches + open PRs on terraform-git only"
permission: write
include_all_repositories: false
can_create_repos: false
repositories:
- terraform-git
members:
- repospawner
@@ -0,0 +1,22 @@
# Service identity for repospawner, which opens pull requests against this
# repository (terraform-git) to add new Gitea repositories on request. It is
# deliberately separate from unkin-agent so its access can stay scoped to the
# single repository it needs: the "repospawner" team (unkin/team/repospawner.yaml)
# grants Write on terraform-git and nothing else.
#
# Auth is via ephemeral API tokens minted by the vault-plugin-secrets-gitea
# engine -- no usable credential lives in this repo's state beyond the generated
# placeholder. Merge stays blocked by branch protection (merge whitelist =
# Owners only), so it can push branches and open PRs but never merge.
email: repospawner@unkin.net
full_name: "Repo Spawner"
description: "repospawner service identity -- opens repo-creation PRs against terraform-git"
# Conservative bot posture: not a site admin, cannot create orgs or repos,
# profile visible only to signed-in users.
visibility: limited
admin: false
# Restricted: account can only see repos/orgs it is explicitly added to -- the
# repospawner team grant on terraform-git is all it needs.
restricted: true
allow_create_organization: false
max_repo_creation: 0
+34 -34
View File
@@ -4,167 +4,167 @@ import {
} }
import { import {
to = module.repository["git.unkin.net/unkin/puppet-prod"].gitea_repository.this to = module.repository["git.unkin.net/unkin/puppet-prod"].gitea_repository.this[0]
id = "2" id = "2"
} }
import { import {
to = module.repository["git.unkin.net/unkin/puppet-r10k"].gitea_repository.this to = module.repository["git.unkin.net/unkin/puppet-r10k"].gitea_repository.this[0]
id = "3" id = "3"
} }
import { import {
to = module.repository["git.unkin.net/unkin/rpmbuild-gonic"].gitea_repository.this to = module.repository["git.unkin.net/unkin/rpmbuild-gonic"].gitea_repository.this[0]
id = "23" id = "23"
} }
import { import {
to = module.repository["git.unkin.net/unkin/docker-almalinux-base"].gitea_repository.this to = module.repository["git.unkin.net/unkin/docker-almalinux-base"].gitea_repository.this[0]
id = "24" id = "24"
} }
import { import {
to = module.repository["git.unkin.net/unkin/rpmbuild-internal-ca-certificates"].gitea_repository.this to = module.repository["git.unkin.net/unkin/rpmbuild-internal-ca-certificates"].gitea_repository.this[0]
id = "27" id = "27"
} }
import { import {
to = module.repository["git.unkin.net/unkin/rpmbuild-template"].gitea_repository.this to = module.repository["git.unkin.net/unkin/rpmbuild-template"].gitea_repository.this[0]
id = "29" id = "29"
} }
import { import {
to = module.repository["git.unkin.net/unkin/rpmbuild-jellyfin-web"].gitea_repository.this to = module.repository["git.unkin.net/unkin/rpmbuild-jellyfin-web"].gitea_repository.this[0]
id = "31" id = "31"
} }
import { import {
to = module.repository["git.unkin.net/unkin/rpmbuild-proxlb"].gitea_repository.this to = module.repository["git.unkin.net/unkin/rpmbuild-proxlb"].gitea_repository.this[0]
id = "33" id = "33"
} }
import { import {
to = module.repository["git.unkin.net/unkin/docker-almalinux-buildrunner"].gitea_repository.this to = module.repository["git.unkin.net/unkin/docker-almalinux-buildrunner"].gitea_repository.this[0]
id = "36" id = "36"
} }
import { import {
to = module.repository["git.unkin.net/unkin/docker-template"].gitea_repository.this to = module.repository["git.unkin.net/unkin/docker-template"].gitea_repository.this[0]
id = "38" id = "38"
} }
import { import {
to = module.repository["git.unkin.net/unkin/terraform-vault"].gitea_repository.this to = module.repository["git.unkin.net/unkin/terraform-vault"].gitea_repository.this[0]
id = "39" id = "39"
} }
import { import {
to = module.repository["git.unkin.net/unkin/docker-almalinux-jupyterinstance"].gitea_repository.this to = module.repository["git.unkin.net/unkin/docker-almalinux-jupyterinstance"].gitea_repository.this[0]
id = "40" id = "40"
} }
import { import {
to = module.repository["git.unkin.net/unkin/rpmbuilder"].gitea_repository.this to = module.repository["git.unkin.net/unkin/rpmbuilder"].gitea_repository.this[0]
id = "41" id = "41"
} }
import { import {
to = module.repository["git.unkin.net/unkin/docker-almalinux-runnerdnd"].gitea_repository.this to = module.repository["git.unkin.net/unkin/docker-almalinux-runnerdnd"].gitea_repository.this[0]
id = "43" id = "43"
} }
import { import {
to = module.repository["git.unkin.net/unkin/initbuilder"].gitea_repository.this to = module.repository["git.unkin.net/unkin/initbuilder"].gitea_repository.this[0]
id = "47" id = "47"
} }
import { import {
to = module.repository["git.unkin.net/unkin/puppetapi"].gitea_repository.this to = module.repository["git.unkin.net/unkin/puppetapi"].gitea_repository.this[0]
id = "50" id = "50"
} }
import { import {
to = module.repository["git.unkin.net/unkin/terraform-nomad"].gitea_repository.this to = module.repository["git.unkin.net/unkin/terraform-nomad"].gitea_repository.this[0]
id = "53" id = "53"
} }
import { import {
to = module.repository["git.unkin.net/unkin/packer-images"].gitea_repository.this to = module.repository["git.unkin.net/unkin/packer-images"].gitea_repository.this[0]
id = "59" id = "59"
} }
import { import {
to = module.repository["git.unkin.net/unkin/app-sudaporn-research-normalised"].gitea_repository.this to = module.repository["git.unkin.net/unkin/app-sudaporn-research-normalised"].gitea_repository.this[0]
id = "60" id = "60"
} }
import { import {
to = module.repository["git.unkin.net/unkin/app-sudaporn-research-individual"].gitea_repository.this to = module.repository["git.unkin.net/unkin/app-sudaporn-research-individual"].gitea_repository.this[0]
id = "63" id = "63"
} }
import { import {
to = module.repository["git.unkin.net/unkin/terraform-incus"].gitea_repository.this to = module.repository["git.unkin.net/unkin/terraform-incus"].gitea_repository.this[0]
id = "66" id = "66"
} }
import { import {
to = module.repository["git.unkin.net/unkin/artifactapi"].gitea_repository.this to = module.repository["git.unkin.net/unkin/artifactapi"].gitea_repository.this[0]
id = "67" id = "67"
} }
import { import {
to = module.repository["git.unkin.net/unkin/argocd-apps"].gitea_repository.this to = module.repository["git.unkin.net/unkin/argocd-apps"].gitea_repository.this[0]
id = "100" id = "100"
} }
import { import {
to = module.repository["git.unkin.net/unkin/certmanager"].gitea_repository.this to = module.repository["git.unkin.net/unkin/certmanager"].gitea_repository.this[0]
id = "101" id = "101"
} }
import { import {
to = module.repository["git.unkin.net/unkin/node-lookup"].gitea_repository.this to = module.repository["git.unkin.net/unkin/node-lookup"].gitea_repository.this[0]
id = "102" id = "102"
} }
import { import {
to = module.repository["git.unkin.net/unkin/container-devcompute"].gitea_repository.this to = module.repository["git.unkin.net/unkin/container-devcompute"].gitea_repository.this[0]
id = "135" id = "135"
} }
import { import {
to = module.repository["git.unkin.net/unkin/streamstack"].gitea_repository.this to = module.repository["git.unkin.net/unkin/streamstack"].gitea_repository.this[0]
id = "136" id = "136"
} }
import { import {
to = module.repository["git.unkin.net/unkin/terraform-provider-artifactapi"].gitea_repository.this to = module.repository["git.unkin.net/unkin/terraform-provider-artifactapi"].gitea_repository.this[0]
id = "137" id = "137"
} }
import { import {
to = module.repository["git.unkin.net/unkin/forgebot"].gitea_repository.this to = module.repository["git.unkin.net/unkin/forgebot"].gitea_repository.this[0]
id = "139" id = "139"
} }
import { import {
to = module.repository["git.unkin.net/unkin/forgebot-skills"].gitea_repository.this to = module.repository["git.unkin.net/unkin/forgebot-skills"].gitea_repository.this[0]
id = "140" id = "140"
} }
import { import {
to = module.repository["git.unkin.net/unkin/container-agent-base"].gitea_repository.this to = module.repository["git.unkin.net/unkin/container-agent-base"].gitea_repository.this[0]
id = "141" id = "141"
} }
import { import {
to = module.repository["git.unkin.net/unkin/container-agent-dev"].gitea_repository.this to = module.repository["git.unkin.net/unkin/container-agent-dev"].gitea_repository.this[0]
id = "142" id = "142"
} }
import { import {
to = module.repository["git.unkin.net/unkin/container-agent-infra"].gitea_repository.this to = module.repository["git.unkin.net/unkin/container-agent-infra"].gitea_repository.this[0]
id = "143" id = "143"
} }
@@ -199,7 +199,7 @@ import {
} }
import { import {
to = module.repository["git.unkin.net/unkin/terraform-git"].gitea_repository.this to = module.repository["git.unkin.net/unkin/terraform-git"].gitea_repository.this[0]
id = "144" id = "144"
} }
+11
View File
@@ -19,6 +19,7 @@ module "repository" {
name = each.value.name name = each.value.name
organisation = each.value.organisation organisation = each.value.organisation
fork_from = each.value.fork_from
description = each.value.description description = each.value.description
private = each.value.private private = each.value.private
default_branch = each.value.default_branch default_branch = each.value.default_branch
@@ -35,6 +36,16 @@ module "repository" {
website = each.value.website website = each.value.website
autodetect_manual_merge = each.value.autodetect_manual_merge autodetect_manual_merge = each.value.autodetect_manual_merge
mirror = each.value.mirror
migration_clone_address = each.value.migration_clone_address
migration_service = each.value.migration_service
migration_mirror_interval = each.value.migration_mirror_interval
migration_lfs = each.value.migration_lfs
migration_lfs_endpoint = each.value.migration_lfs_endpoint
migration_issue_labels = each.value.migration_issue_labels
migration_milestones = each.value.migration_milestones
migration_releases = each.value.migration_releases
depends_on = [module.organisation] depends_on = [module.organisation]
} }
@@ -1,4 +1,10 @@
locals {
fork_source = var.fork_from == null ? null : split("/", var.fork_from)
}
resource "gitea_repository" "this" { resource "gitea_repository" "this" {
count = var.fork_from == null ? 1 : 0
username = var.organisation username = var.organisation
name = var.name name = var.name
description = var.description description = var.description
@@ -18,8 +24,32 @@ resource "gitea_repository" "this" {
autodetect_manual_merge = var.autodetect_manual_merge autodetect_manual_merge = var.autodetect_manual_merge
archive_on_destroy = true archive_on_destroy = true
mirror = var.mirror
migration_clone_address = var.migration_clone_address
migration_service = var.migration_service
migration_mirror_interval = var.migration_mirror_interval
migration_lfs = var.migration_lfs
migration_lfs_endpoint = var.migration_lfs_endpoint
migration_issue_labels = var.migration_issue_labels
migration_milestones = var.migration_milestones
migration_releases = var.migration_releases
lifecycle { lifecycle {
# migration_mirror_interval defaults to "8h0m0s" but Gitea returns an empty MirrorInterval for non-mirror repos, so the read-back never matches and plans a spurious update every run; it is a migration-only knob with no drift to track here. # migration_mirror_interval defaults to "8h0m0s" but Gitea returns an empty MirrorInterval for non-mirror repos, so the read-back never matches and plans a spurious update every run; it is a migration-only knob with no drift to track here.
ignore_changes = [migration_mirror_interval] ignore_changes = [migration_mirror_interval]
} }
} }
moved {
from = gitea_repository.this
to = gitea_repository.this[0]
}
# gitea_fork has no archive_on_destroy, so removing a fork from the config deletes the repository instead of archiving it.
resource "gitea_fork" "this" {
count = var.fork_from == null ? 0 : 1
owner = local.fork_source[0]
repo = local.fork_source[1]
organization = var.organisation
}
@@ -1,3 +1,3 @@
output "id" { output "id" {
value = gitea_repository.this.id value = one(concat(gitea_repository.this[*].id, gitea_fork.this[*].id))
} }
@@ -6,6 +6,22 @@ variable "organisation" {
type = string type = string
} }
variable "fork_from" {
description = "Source repository to fork, as \"<owner>/<repo>\". When set, a fork is created instead of a new repository."
type = string
default = null
validation {
condition = var.fork_from == null || can(regex("^[^/]+/[^/]+$", var.fork_from))
error_message = "fork_from must be \"<owner>/<repo>\"."
}
validation {
condition = var.fork_from == null || try(split("/", var.fork_from)[1], null) == var.name
error_message = "fork_from source repository must be named \"${var.name}\": a fork inherits the source name, so it cannot differ from the config file name."
}
}
variable "description" { variable "description" {
type = string type = string
default = null default = null
@@ -80,3 +96,48 @@ variable "autodetect_manual_merge" {
type = bool type = bool
default = null default = null
} }
variable "mirror" {
type = bool
default = null
}
variable "migration_clone_address" {
type = string
default = null
}
variable "migration_service" {
type = string
default = null
}
variable "migration_mirror_interval" {
type = string
default = null
}
variable "migration_lfs" {
type = bool
default = null
}
variable "migration_lfs_endpoint" {
type = string
default = null
}
variable "migration_issue_labels" {
type = bool
default = null
}
variable "migration_milestones" {
type = bool
default = null
}
variable "migration_releases" {
type = bool
default = null
}
+24
View File
@@ -17,6 +17,7 @@ variable "repository" {
type = map(object({ type = map(object({
name = string name = string
organisation = string organisation = string
fork_from = optional(string)
description = optional(string) description = optional(string)
private = optional(bool) private = optional(bool)
default_branch = optional(string) default_branch = optional(string)
@@ -32,8 +33,31 @@ variable "repository" {
repo_template = optional(bool) repo_template = optional(bool)
website = optional(string) website = optional(string)
autodetect_manual_merge = optional(bool) autodetect_manual_merge = optional(bool)
mirror = optional(bool)
migration_clone_address = optional(string)
migration_service = optional(string)
migration_mirror_interval = optional(string)
migration_lfs = optional(bool)
migration_lfs_endpoint = optional(string)
migration_issue_labels = optional(bool)
migration_milestones = optional(bool)
migration_releases = optional(bool)
})) }))
default = {} default = {}
validation {
condition = alltrue([
for key, repo in var.repository :
length([for attribute, value in repo : attribute if value != null && !contains(["name", "organisation", "fork_from"], attribute)]) == 0
if repo.fork_from != null
])
error_message = "gitea_fork only takes the source repository and the owning organisation, so fork_from cannot be combined with other repository settings: ${join("; ", [
for key, repo in var.repository :
"${key} also sets ${join(", ", [for attribute, value in repo : attribute if value != null && !contains(["name", "organisation", "fork_from"], attribute)])}"
if repo.fork_from != null && length([for attribute, value in repo : attribute if value != null && !contains(["name", "organisation", "fork_from"], attribute)]) > 0
])}."
}
} }
variable "branch_protection" { variable "branch_protection" {