{"id":22170543,"url":"https://github.com/diegohce/chaos-proxy","last_synced_at":"2025-07-16T05:38:10.607Z","repository":{"id":139431936,"uuid":"190806617","full_name":"diegohce/chaos-proxy","owner":"diegohce","description":"Random error proxy for http requests.","archived":false,"fork":false,"pushed_at":"2019-06-21T22:48:33.000Z","size":29,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"master","last_synced_at":"2025-03-24T17:52:37.060Z","etag":null,"topics":["chaos-monkey","chaos-proxy","go","golang","http","microservices","proxy","proxy-server","testing"],"latest_commit_sha":null,"homepage":"","language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/diegohce.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":"2019-06-07T20:43:09.000Z","updated_at":"2019-06-21T22:48:35.000Z","dependencies_parsed_at":"2023-05-12T18:30:36.339Z","dependency_job_id":null,"html_url":"https://github.com/diegohce/chaos-proxy","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/diegohce/chaos-proxy","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/diegohce%2Fchaos-proxy","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/diegohce%2Fchaos-proxy/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/diegohce%2Fchaos-proxy/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/diegohce%2Fchaos-proxy/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/diegohce","download_url":"https://codeload.github.com/diegohce/chaos-proxy/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/diegohce%2Fchaos-proxy/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":265485088,"owners_count":23774430,"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","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":["chaos-monkey","chaos-proxy","go","golang","http","microservices","proxy","proxy-server","testing"],"created_at":"2024-12-02T06:52:11.391Z","updated_at":"2025-07-16T05:38:10.589Z","avatar_url":"https://github.com/diegohce.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# chaos-proxy\n\n[![Go Report Card](https://goreportcard.com/badge/github.com/diegohce/chaos-proxy)](https://goreportcard.com/report/github.com/diegohce/chaos-proxy)\n[![GitHub release](https://img.shields.io/github/release/diegohce/chaos-proxy.svg)](https://github.com/diegohce/chaos-proxy/releases/)\n[![Github all releases](https://img.shields.io/github/downloads/diegohce/chaos-proxy/total.svg)](https://github.com/diegohce/chaos-proxy/releases/)\n[![GPLv3 license](https://img.shields.io/badge/License-GPLv3-blue.svg)](https://github.com/diegohce/chaos-proxy/blob/master/LICENSE)\n[![Maintenance](https://img.shields.io/badge/Maintained%3F-yes-green.svg)](https://github.com/diegohce/chaos-proxy/graphs/commit-activity)\n[![HitCount](http://hits.dwyl.io/diegohce/chaos-proxy.svg)](http://hits.dwyl.io/diegohce/chaos-proxy)\n[![Generic badge](https://img.shields.io/badge/deb%20package-no-red.svg)](https://github.com/diegohce/chaos-proxy/releases/)\n\n## What is it?\nChaos-proxy acts almost as a normal proxy. It causes at random, normal http request error scenarios. 500's errors, timeout delays and connections drop.\n\n## But why?\nI use it to test microservices resilience. If it works fine with chaos-proxy in the middle, it will certainly work without it.\n\n## Bind address\n\nDefault bind address and port: `0.0.0.0:6667`. It can be changed setting `CHAOSPROXY_BINDADDR` environment variable.\n\n\n## Config file\n\n`chaos-proxy.json` can be placed into project directory or, preferably, in `/etc/chaos-proxy`\n\n* max_timeout: Sets the top boundary for random milliseconds to timeout the request.\n* default_host: Where every request that does not match one of `paths` will be routed to.\n* paths: Where to route specific requests. If path ends with `/` it's interpreted as \"begins with\".\n\n```json\n{\n\t\"max_timeout\": 5000,\n\t\"default_host\": {\n\t\t\"host\": \"http://localhost:6666\"\n\t},\n\t\"paths\": {\n\t\t\"/badservice/status/400\": {\n\t\t\t\"host\": \"http://localhost:6666\"\n\t\t},\n\t\t\"/badservice/status/403\": {\n\t\t\t\"host\": \"http://localhost:6666\"\n\t\t},\n\t\t\"/badservice/status/404\": {\n\t\t\t\"host\": \"http://localhost:6666\"\n\t\t},\n\t\t\"/data/2.5/\": {\n\t\t\t\"host\": \"http://api.openweathermap.org:80\"\n\t\t}\n\t}\n}\n```\n\n# Status\n\nChaos-proxy is still in a very early stage. The \"random error\" generator is pretty lousy and there's code that can be improved for sure. But, as is, it works as intended.\n\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdiegohce%2Fchaos-proxy","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdiegohce%2Fchaos-proxy","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdiegohce%2Fchaos-proxy/lists"}