{"id":42599731,"url":"https://github.com/agabani/tor-operator","last_synced_at":"2026-04-13T00:52:34.985Z","repository":{"id":172100018,"uuid":"648422798","full_name":"agabani/tor-operator","owner":"agabani","description":"Tor Operator is a Kubernetes Operator that manages Onion Balances, Onion Keys and Onion Services to provide a highly available, load balanced and fault tolerate Tor Ingress and Tor Proxy.","archived":false,"fork":false,"pushed_at":"2026-01-13T02:41:40.000Z","size":7551,"stargazers_count":15,"open_issues_count":2,"forks_count":2,"subscribers_count":1,"default_branch":"main","last_synced_at":"2026-01-13T05:53:37.387Z","etag":null,"topics":["helm","kubernetes","kubernetes-controller","kubernetes-operator","onion-service","onionbalance","rust","tor","tor-ingress","tor-proxy"],"latest_commit_sha":null,"homepage":"https://agabani.github.io/tor-operator/docs/","language":"Rust","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/agabani.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":"docs/security/cluster_role.md","support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2023-06-02T00:06:45.000Z","updated_at":"2026-01-13T02:41:44.000Z","dependencies_parsed_at":"2024-02-02T23:24:58.263Z","dependency_job_id":"3b7c9581-57c3-4591-9bf8-7d0ce5c9b151","html_url":"https://github.com/agabani/tor-operator","commit_stats":null,"previous_names":["agabani/tor-operator"],"tags_count":101,"template":false,"template_full_name":null,"purl":"pkg:github/agabani/tor-operator","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/agabani%2Ftor-operator","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/agabani%2Ftor-operator/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/agabani%2Ftor-operator/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/agabani%2Ftor-operator/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/agabani","download_url":"https://codeload.github.com/agabani/tor-operator/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/agabani%2Ftor-operator/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28857541,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-28T22:56:21.783Z","status":"ssl_error","status_checked_at":"2026-01-28T22:56:00.861Z","response_time":57,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: 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":["helm","kubernetes","kubernetes-controller","kubernetes-operator","onion-service","onionbalance","rust","tor","tor-ingress","tor-proxy"],"created_at":"2026-01-29T00:18:20.078Z","updated_at":"2026-04-13T00:52:34.956Z","avatar_url":"https://github.com/agabani.png","language":"Rust","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Tor Operator\n\nTor Operator is a Kubernetes Operator that manages [Onion Balances](https://agabani.github.io/tor-operator/docs/custom_resource_definitions/onionbalance/), [Onion Keys](https://agabani.github.io/tor-operator/docs/custom_resource_definitions/onionkey/) and [Onion Services](https://agabani.github.io/tor-operator/docs/custom_resource_definitions/onionservice/) to provide a highly available, load balanced and fault tolerate [Tor Ingress](https://agabani.github.io/tor-operator/docs/custom_resource_definitions/toringress/) and [Tor Proxy](https://agabani.github.io/tor-operator/docs/custom_resource_definitions/torproxy/).\n\n## Documentation\n\n[https://agabani.github.io/tor-operator/docs/](https://agabani.github.io/tor-operator/docs/)\n\n\u003c!--getting-started-installation-start--\u003e\n\n## Installation\n\n1.  Add the chart repository.\n\n        helm repo add agabani-tor-operator https://agabani.github.io/tor-operator\n\n1.  Update the chart repository.\n\n        helm repo update agabani-tor-operator\n\n1.  Install the Tor Operator.\n\n        helm upgrade tor-operator agabani-tor-operator/tor-operator \\\n            --create-namespace \\\n            --install \\\n            --namespace tor-operator\n\n1.  Test the Tor Operator.\n\n        helm test tor-operator --namespace tor-operator\n\n\u003c!--getting-started-installation-end--\u003e\n\n\u003c!--getting-started-custom-resource-definitions-start--\u003e\n\n## Creating a Tor Ingress\n\n1.  Prepare your existing Onion Key to look like:\n\n    - `hostname`\n    - `hs_ed25519_public_key`\n    - `hs_ed25519_secret_key`\n\n    or generate a new Onion Key using:\n\n        cargo install --git https://github.com/agabani/tor-operator --tag v1.0.8\n        tor-operator onion-key generate\n\n1.  Create a `Secret` containing the Onion Key.\n\n        kubectl create secret generic tor-ingress-example \\\n            --from-file=hostname=./hostname \\\n            --from-file=hs_ed25519_public_key=./hs_ed25519_public_key \\\n            --from-file=hs_ed25519_secret_key=./hs_ed25519_secret_key\n\n1.  Create an `OnionKey` wrapping the `Secret`.\n\n        # onionkey.yaml\n        apiVersion: tor.agabani.co.uk/v1\n        kind: OnionKey\n        metadata:\n          name: tor-ingress-example\n        spec:\n          secret:\n            name: tor-ingress-example\n\n    `kubectl apply -f onionkey.yaml`\n\n1.  Create a `TorIngress`, changing `example:80` to your targets `host:port`\n\n        # toringress.yaml\n        apiVersion: tor.agabani.co.uk/v1\n        kind: TorIngress\n        metadata:\n          name: tor-ingress-example\n        spec:\n          horizontalPodAutoscaler:\n            maxReplicas: 6\n            minReplicas: 3\n          onionBalance:\n            onionKey:\n              name: tor-ingress-example\n          onionService:\n            deployment:\n              containers:\n                - name: tor\n                  resources:\n                    requests:\n                      cpu: 100m\n            ports:\n              - target: example:80\n                virtport: 80\n\n    `kubectl apply -f toringress.yaml`\n\n## Creating a Tor Proxy\n\n1.  Create a `TorProxy`\n\n        # torproxy.yaml\n        apiVersion: tor.agabani.co.uk/v1\n        kind: TorProxy\n        metadata:\n          name: tor-proxy-example\n        spec:\n          deployment:\n            containers:\n              - name: tor\n                resources:\n                  requests:\n                    cpu: 100m\n          horizontalPodAutoscaler:\n            maxReplicas: 4\n            minReplicas: 2\n          service:\n            ports:\n              - name: http-tunnel\n                port: 1080\n                protocol: HTTP_TUNNEL\n              - name: socks\n                port: 9050\n                protocol: SOCKS\n\n    `kubectl apply -f torproxy.yaml`\n\n\u003c!--getting-started-custom-resource-definitions-end--\u003e\n\n## Screenshots\n\n![OnionBalance](./docs/custom_resource_definitions/onionbalance.svg)\n\n![OnionKey](./docs/custom_resource_definitions/onionkey.svg)\n\n![OnionService](./docs/custom_resource_definitions/onionservice.svg)\n\n![TorIngress](./docs/custom_resource_definitions/toringress.svg)\n\n![TorProxy](./docs/custom_resource_definitions/torproxy.svg)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fagabani%2Ftor-operator","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fagabani%2Ftor-operator","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fagabani%2Ftor-operator/lists"}