{"id":16478013,"url":"https://github.com/sparkoo/kube-svcauth-proxy","last_synced_at":"2025-10-04T10:13:29.240Z","repository":{"id":148228497,"uuid":"400513383","full_name":"sparkoo/kube-svcauth-proxy","owner":"sparkoo","description":null,"archived":false,"fork":false,"pushed_at":"2021-08-31T06:13:29.000Z","size":41,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-02-28T17:51:53.675Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"epl-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/sparkoo.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2021-08-27T13:11:34.000Z","updated_at":"2021-08-31T06:13:31.000Z","dependencies_parsed_at":null,"dependency_job_id":"571c7083-ba90-4ad8-ae0c-edfd6fe79cad","html_url":"https://github.com/sparkoo/kube-svcauth-proxy","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/sparkoo/kube-svcauth-proxy","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sparkoo%2Fkube-svcauth-proxy","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sparkoo%2Fkube-svcauth-proxy/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sparkoo%2Fkube-svcauth-proxy/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sparkoo%2Fkube-svcauth-proxy/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/sparkoo","download_url":"https://codeload.github.com/sparkoo/kube-svcauth-proxy/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sparkoo%2Fkube-svcauth-proxy/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":278297626,"owners_count":25963764,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-10-04T02:00:05.491Z","response_time":63,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"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":[],"created_at":"2024-10-11T12:47:34.154Z","updated_at":"2025-10-04T10:13:29.213Z","avatar_url":"https://github.com/sparkoo.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# kube-svcauth-proxy\n\nMulti-channel reverse proxy, to secure pod service from unauthorized access.\n\n_kube-svcauth-proxy_ can serve multiple routes, listen-\u003eupstream pairs, each configured separately.\nAuthorization procedure is simple get request to the configured service name in configured\nnamespace. With this we don't need any cluster-wide permissions.\n\n![Diagram](diag.png)\n\n## Configuration\n\nArgs:\n\n```\nUsage of ./main:\n  -conf string\n    \tPath to config yaml file. (default \"conf.yaml\")\n```\n\nConfig file:\n\n```yaml\nproxy:\n  - listen: \":9090\"\n    upstream: \"http://127.0.0.1:8080\"\n    namespace: \"app-namespace\"\n    service: \"app-service\"\n  - listen: \":9091\"\n    upstream: \"http://127.0.0.1:8081\"\n    namespace: \"app-namespace\"\n    service: \"app-service\"\n```\n\n- _listen_ - listen on this address\n- _upstream_ - forward to this address\n- _namespace_ - check access in this namespace\n- _service_ - check access to this service\n\n## Motivation\n\nThere is [`kube-rbac-proxy`](https://github.com/brancz/kube-rbac-proxy), which serve similar goal.\nHowever, there are few reasons why it doesn't suite us well in our use-case:\n- kube-rbac-proxy does not support multiple routes, so that would mean that we would need one\n  kube-rbac-proxy instance per port, which is huge overhead. In Eclipse Che, that would mean extra\n  container per secured workspace endpoint. That's 5+ extra containers per workspace. Alternatively\n  we would need another reverse-proxy container that would do the routing, which would make\n  deployment and configuration more complex.\n- kube-rbac-proxy needs cluster permissions to `tokenreviews` and `subjectaccessreviews`. That would\n  mean that every workspace `ServiceAccount` would need to have these permissions. In DevWorkspace\n  world that would mean to have extra `ClusterRoleBinding` per workspace.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsparkoo%2Fkube-svcauth-proxy","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsparkoo%2Fkube-svcauth-proxy","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsparkoo%2Fkube-svcauth-proxy/lists"}