Operational CLI tools for m0sh1.cc infrastructure workflows.
  • Go 73.8%
  • Python 18.7%
  • TypeScript 4.2%
  • Dockerfile 2.9%
  • Go Template 0.4%
Find a file
Yael decb94404e
Some checks failed
ci/woodpecker/push/karakeep-node-ci Pipeline failed
ci/woodpecker/push/build Pipeline was successful
ci/woodpecker/push/woodpecker-mcp Pipeline was successful
Merge pull request 'chore(deps): update dhi.io/cosign:3.0.6-alpine3.23-dev docker digest to b55369e' (#169) from renovate/dhi-base-images into main
Reviewed-on: #169
2026-06-02 11:43:15 +00:00
.woodpecker chore(deps): update dhi.io/cosign:3.0.6-alpine3.23-dev docker digest to b55369e 2026-06-02 11:24:39 +00:00
cmd migrate CI from Harbor to GHCR 2026-05-22 12:53:14 +02:00
data/dhi-db chore: refresh dhi catalog database 2026-05-31 18:23:59 +02:00
docker chore(deps): update dep rollup 2026-06-02 09:25:56 +00:00
docs fix(dhi): hold unsafe upgrade candidates 2026-05-14 16:39:43 +02:00
internal guard authentik bootstrap contract 2026-06-01 03:32:12 +02:00
seed/dhi-db chore(dhi): remove velero 1.18 hold 2026-06-01 18:05:37 +02:00
.gitignore chore: update base images and submodules 2026-04-10 12:41:47 +02:00
.gitmodules fix(netzbremse): use Forgejo submodule remote 2026-05-14 16:40:30 +02:00
dhi-db refactor: data-driven guards, embed.FS templates, AppContext for harbor-tools 2026-03-30 20:51:54 +02:00
go.mod fix(deps): update module modernc.org/sqlite to v1.51.0 2026-05-28 10:14:47 +00:00
go.sum fix(deps): update module modernc.org/sqlite to v1.51.0 2026-05-28 10:14:47 +00:00
mise.toml chore(deps): update dep rollup 2026-06-02 09:25:56 +00:00
README.md feat(netcup): add SCP REST CLI with OIDC refresh flow 2026-04-12 21:33:13 +02:00
renovate.json chore(dhi): refresh catalog and renovate rules 2026-05-26 10:50:40 +02:00

infra-cli

Operational CLI tools for m0sh1.cc infrastructure.

Tools

Tool Description
infra-guard Unified guardrail CLI with subcommands (path-drift, sensitive-files, supply-chain, gitops, terraform, idempotency, cleanup, gitkeep)
dhi-db DHI catalog tracker — queries dhi.io registry, maintains local SQLite DB, proposes upgrades
helm-scaffold Scaffolds wrapper charts and ArgoCD Application stubs
netcup-cli SCP REST helper (OIDC refresh, whoami, servers list/get, raw GET requests)

Repository Layout

cmd/infra-guard/    Unified guardrail CLI entrypoint
cmd/dhi-db/         DHI catalog tracker
cmd/helm-scaffold/  Helm chart scaffolder
cmd/netcup-cli/     Netcup SCP REST helper
internal/guard/     Guard check implementations (shared by infra-guard subcommands)
internal/netcup/    Netcup REST client/auth package
internal/dhi/       DHI-specific packages
data/               Generated data (SQLite DBs, exports)
seed/               Fallback/seed data
docker/             Docker build contexts
scripts/            Shell/Fish helper scripts

Building

go build -o bin/infra-guard ./cmd/infra-guard
go build -o bin/dhi-db ./cmd/dhi-db
go build -o bin/helm-scaffold ./cmd/helm-scaffold
go build -o bin/netcup-cli ./cmd/netcup-cli

License

Private — sm-moshi