{"id":45208051,"url":"https://github.com/ppiankov/tote","last_synced_at":"2026-04-04T08:02:07.727Z","repository":{"id":337068553,"uuid":"1152181672","full_name":"ppiankov/tote","owner":"ppiankov","description":"Emergency Kubernetes operator that salvages container images from node caches when registries are unavailable.","archived":false,"fork":false,"pushed_at":"2026-04-04T06:53:25.000Z","size":254,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2026-04-04T07:25:19.903Z","etag":null,"topics":["containerd","disaster-recovery","go","grpc","image-management","kubernetes","operator"],"latest_commit_sha":null,"homepage":null,"language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/ppiankov.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":"docs/security.md","support":null,"governance":null,"roadmap":"docs/ROADMAP.md","authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2026-02-07T13:44:23.000Z","updated_at":"2026-04-04T06:53:30.000Z","dependencies_parsed_at":"2026-02-08T00:06:55.041Z","dependency_job_id":null,"html_url":"https://github.com/ppiankov/tote","commit_stats":null,"previous_names":["ppiankov/tote"],"tags_count":18,"template":false,"template_full_name":null,"purl":"pkg:github/ppiankov/tote","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ppiankov%2Ftote","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ppiankov%2Ftote/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ppiankov%2Ftote/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ppiankov%2Ftote/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ppiankov","download_url":"https://codeload.github.com/ppiankov/tote/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ppiankov%2Ftote/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31392188,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-04T04:26:24.776Z","status":"ssl_error","status_checked_at":"2026-04-04T04:23:34.147Z","response_time":60,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["containerd","disaster-recovery","go","grpc","image-management","kubernetes","operator"],"created_at":"2026-02-20T16:03:31.494Z","updated_at":"2026-04-04T08:02:07.721Z","avatar_url":"https://github.com/ppiankov.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# tote\n\n[![CI](https://github.com/ppiankov/tote/actions/workflows/ci.yml/badge.svg)](https://github.com/ppiankov/tote/actions/workflows/ci.yml)\n[![Release](https://github.com/ppiankov/tote/actions/workflows/release.yml/badge.svg)](https://github.com/ppiankov/tote/releases)\n[![Go Report Card](https://goreportcard.com/badge/github.com/ppiankov/tote)](https://goreportcard.com/report/github.com/ppiankov/tote)\n[![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](LICENSE)\n[![ANCC](https://img.shields.io/badge/ANCC-compliant-brightgreen)](docs/SKILL.md)\n\nEmergency Kubernetes operator that detects image pull failures, finds cached copies on other nodes, and salvages images via node-to-node transfer.\n\n**If this tool ever feels comfortable, you've used it wrong.**\n\n## Why this exists\n\nKubernetes clusters with long-lived workloads lose images. Registries get cleaned. Artifacts get deleted. Harbors go down. Nobody has the Dockerfile anymore. Pods crash-loop with `ImagePullBackOff` while the exact image sits cached on another node, quietly working.\n\ntote detects this situation, finds which nodes still have the image, and transfers it to where it's needed — automatically, if you opt in.\n\n## What tote is\n\n- A Kubernetes operator that watches for `ImagePullBackOff`, `ErrImagePull`, and `CreateContainerError`\n- A detector that finds which cluster nodes still have the exact image digest cached\n- A salvage engine that transfers images node-to-node via gRPC agents and containerd\n- A cleanup tool that removes corrupt image records from containerd\n- A backup pipeline that pushes salvaged images to a registry before the last cached copy disappears\n- A webhook emitter that notifies external systems on detection and salvage events\n- An emergency tool — a fire extinguisher, not plumbing\n\n## What tote is NOT\n\n- **NOT a replacement for proper CI/CD** — fix your build pipeline, tote just buys you time\n- **NOT a security tool** — does not validate signatures, provenance, or supply chain integrity\n- **NOT invisible** — every detection emits a Warning event that says \"This is technical debt\"\n- **NOT enabled by default** — requires explicit opt-in annotations on both Namespace and Pod\n\n## Philosophy\n\n\u003e Principiis obsta — resist the beginnings.\n\ntote exists to keep production alive long enough for humans to fix what they broke. It presents evidence and lets operators decide. Every event it emits is a reminder that something upstream is broken.\n\nThis is duct tape for container images. Use it. Then fix the real problem.\n\n## Quick start\n\n```bash\n# Helm install\nhelm install tote ./charts/tote -n tote --create-namespace\n\n# Opt in a namespace\nkubectl annotate namespace my-app tote.dev/allow=true\n\n# Opt in a workload (in pod template)\n# annotations:\n#   tote.dev/auto-salvage: \"true\"\n```\n\nWhen an image pull fails, tote emits events like:\n\n```\nWarning  ImageSalvageable  Registry pull failed for registry.example.com/my-app@sha256:e3b0c44...;\n                           image digest exists on nodes: [node-1, node-3].\n                           This is technical debt — rebuild and push the image properly.\n```\n\n## Agent integration\n\nSingle binary, Helm-based deployment, structured Kubernetes events, Prometheus metrics.\n\nAgents: read [`docs/SKILL.md`](docs/SKILL.md) for commands, Helm values, event parsing patterns, and metrics queries.\n\nKey pattern: `kubectl get events --field-selector reason=ImageSalvageable -o json`\n\n## SpectreHub integration\n\n```sh\nspectrehub collect --tool tote\n```\n\n## Documentation\n\n| Document | Contents |\n|----------|----------|\n| [Architecture](docs/architecture.md) | Module layout, reconciliation flow, node inventory |\n| [CLI Reference](docs/cli-reference.md) | Controller/agent flags, annotations, events, metrics |\n| [Security \u0026 Safety](docs/security.md) | Defense in depth, mTLS, RBAC, hardening |\n| [Known Limitations](docs/known-limitations.md) | kubelet limits, tag-only images, imagePullPolicy |\n\n## License\n\n[MIT](LICENSE)\n\n---\n\n*tote exists to keep prod alive long enough for humans to fix what they broke.*\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fppiankov%2Ftote","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fppiankov%2Ftote","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fppiankov%2Ftote/lists"}