Skip to content

chore: remove retired KEEP-era infrastructure tree - #4272

Merged
piotr-roslaniec merged 2 commits into
devfrom
chore/remove-infrastructure
Aug 19, 2026
Merged

chore: remove retired KEEP-era infrastructure tree#4272
piotr-roslaniec merged 2 commits into
devfrom
chore/remove-infrastructure

Conversation

@piotr-roslaniec

Copy link
Copy Markdown
Collaborator

Summary

Removes the entire ./infrastructure/ directory (190 files, ~25.9k lines), which is KEEP-token-era infrastructure that no longer reflects Threshold Network operations.

Why it's safe to remove

  • No in-repo code depends on it. Nothing in cmd/, pkg/, tools.go, or any Dockerfile reads from ./infrastructure/.
  • CI already paths-ignored it. .github/workflows/client.yml excluded infrastructure/** from both the push paths-ignore and the PR path-filter, so the directory was unvalidated today.
  • It can't actually be used. The Terraform modules source from git@github.com:thesis/infrastructure.git (pre-Threshold thesis-co org, no longer reachable), and the provision-keep-client initcontainer consumes KEEP contract JSONs (TokenStaking.json, KeepToken.json, KeepRandomBeacon*.json) that were extracted to threshold-network/keep-core-v1 along with solidity-v1/.
  • Already documented as retired. docs/retired-components.md already lists infrastructure/kube/keep-* as retired KEEP-token dashboard manifests.

Plumbing cleanup

File Change
.gitignore Drop the 4 /infrastructure/... ignore entries and their headers
.dockerignore Drop infrastructure/ from the build context
.github/workflows/client.yml Drop infrastructure/** from the push paths-ignore and the PR path-filter (no longer needed)
docs/dev-ops.adoc Drop the broken testnet-config link
docs/retired-components.md Replace the infrastructure/kube/keep-* bullet with one covering the whole ./infrastructure/ tree so the audit trail is preserved

Verification

  • python3 -c "import yaml; yaml.safe_load_all(open('.github/workflows/client.yml'))"valid YAML
  • Final grep -ri infrastructure/ across the repo only matches the intentional audit-trail entry in docs/retired-components.md:15.
  • 195 files changed, 2 insertions(+), 25,954 deletions(-). Single commit on chore/remove-infrastructure.

Out of scope (intentionally not changed)

  • docs/dev-ops.adoc still describes the GCP + Kubernetes deployment pattern at a high level; the per-environment list of bullets (regional cluster, 10 clients, LoadBalancer, StatefulSet) is left intact as historical context.

The `./infrastructure/` directory is KEEP-token-era and no longer
reflects Threshold Network operations:

- Terraform modules source from the now-defunct
  `thesis/infrastructure` repository on the pre-Threshold `thesis-co`
  GitHub org.
- The `provision-keep-client` initcontainer consumes KEEP contract
  JSONs (`TokenStaking`, `KeepToken`, `KeepRandomBeacon*`) that
  were extracted to `threshold-network/keep-core-v1` along with
  `solidity-v1/`.
- GKE manifests deploy into the KEEP `keep-dev-fe24` / `keep-test`
  GCP projects, not current Threshold infrastructure.
- CI already paths-ignored `infrastructure/**` in `.github/workflows/
  client.yml`, so the directory was unvalidated.

Nothing in `cmd/`, `pkg/`, `tools.go`, or any Dockerfile reads from
this tree; removal is safe.

Plumbing cleanup that goes with it:
- `.gitignore`: drop the `/infrastructure/...` ignore entries.
- `.dockerignore`: drop `infrastructure/` from the build context.
- `.github/workflows/client.yml`: drop `infrastructure/**` from the
  push `paths-ignore` and PR `path-filter` (no longer needed).
- `docs/dev-ops.adoc`: drop the broken testnet-config link.
- `docs/retired-components.md`: replace the
  `infrastructure/kube/keep-*` bullet with one covering the whole
  `./infrastructure/` tree so the audit trail is preserved.
@coderabbitai

coderabbitai Bot commented Aug 19, 2026

Copy link
Copy Markdown

Important

Review skipped

Auto reviews are disabled on base/target branches other than the default branch.

Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.

⚙️ Run configuration

Configuration used: defaults

Review profile: CHILL

Plan: Pro Plus

Run ID: 17967671-eed0-4139-aa2e-a962f4bf3025

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Use the checkbox below for a quick retry:

  • 🔍 Trigger review

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

…lose live GCP infra

Review findings on PR #4272 identified that the bulk infrastructure/
deletion swept up a still-maintained resource and left two disclosure
gaps:

- infrastructure/kube/keep-test/tbtc-v2-maintainer/ is an actively
  deployed Kubernetes overlay (kubectl apply -k ./, independent of the
  retired Terraform) that was bugfixed weeks before this cleanup.
  Restored at its original path; .dockerignore, .gitignore, and the
  client workflow's infrastructure/** exclusions are restored to match.
- docs/retired-components.md now discloses that keep-test-f3e0 and
  keep-prd-210b remain live GCP projects (still used by CI and
  operator docs) managed out-of-band from the removed Terraform, and
  names the low-sensitivity testnet/dev credential material the
  removed tree carried.
@piotr-roslaniec
piotr-roslaniec merged commit 377ae3c into dev Aug 19, 2026
18 checks passed
@piotr-roslaniec
piotr-roslaniec deleted the chore/remove-infrastructure branch August 19, 2026 18:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant