{"id":18616721,"url":"https://github.com/sile/cotoxy","last_synced_at":"2025-08-29T21:40:06.115Z","repository":{"id":62438997,"uuid":"120309240","full_name":"sile/cotoxy","owner":"sile","description":"TCP proxy which uses Consul for service discovery","archived":false,"fork":false,"pushed_at":"2024-12-17T04:27:41.000Z","size":70,"stargazers_count":10,"open_issues_count":0,"forks_count":1,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-08-17T06:41:27.164Z","etag":null,"topics":["consul","rust","tcp-proxy"],"latest_commit_sha":null,"homepage":null,"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/sile.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,"zenodo":null}},"created_at":"2018-02-05T13:35:49.000Z","updated_at":"2024-12-17T04:27:45.000Z","dependencies_parsed_at":"2023-01-29T23:15:54.495Z","dependency_job_id":"1cb5beee-c1b1-44c5-9b5f-564288a08817","html_url":"https://github.com/sile/cotoxy","commit_stats":{"total_commits":26,"total_committers":1,"mean_commits":26.0,"dds":0.0,"last_synced_commit":"eb2d2df959af4c147d487eda4d0c31cf9aa75b83"},"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/sile/cotoxy","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sile%2Fcotoxy","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sile%2Fcotoxy/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sile%2Fcotoxy/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sile%2Fcotoxy/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/sile","download_url":"https://codeload.github.com/sile/cotoxy/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sile%2Fcotoxy/sbom","scorecard":{"id":823471,"data":{"date":"2025-08-11","repo":{"name":"github.com/sile/cotoxy","commit":"f217412c54d4acd52bf193d44c49c84d9e400d3d"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":2.5,"checks":[{"name":"Token-Permissions","score":-1,"reason":"No tokens found","details":null,"documentation":{"short":"Determines if the project's workflows follow the principle of least privilege.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#token-permissions"}},{"name":"Packaging","score":-1,"reason":"packaging workflow not detected","details":["Warn: no GitHub/GitLab publishing workflow detected."],"documentation":{"short":"Determines if the project is published as a package that others can easily download, install, easily update, and uninstall.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#packaging"}},{"name":"SAST","score":0,"reason":"no SAST tool detected","details":["Warn: no pull requests merged into dev branch"],"documentation":{"short":"Determines if the project uses static code analysis.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#sast"}},{"name":"Dangerous-Workflow","score":-1,"reason":"no workflows found","details":null,"documentation":{"short":"Determines if the project's GitHub Action workflows avoid dangerous patterns.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#dangerous-workflow"}},{"name":"Code-Review","score":0,"reason":"Found 0/30 approved changesets -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project requires human code review before pull requests (aka merge requests) are merged.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#code-review"}},{"name":"Maintained","score":0,"reason":"0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project is \"actively maintained\".","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#maintained"}},{"name":"Binary-Artifacts","score":10,"reason":"no binaries found in the repo","details":null,"documentation":{"short":"Determines if the project has generated executable (binary) artifacts in the source repository.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#binary-artifacts"}},{"name":"Pinned-Dependencies","score":-1,"reason":"no dependencies found","details":null,"documentation":{"short":"Determines if the project has declared and pinned the dependencies of its build process.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#pinned-dependencies"}},{"name":"CII-Best-Practices","score":0,"reason":"no effort to earn an OpenSSF best practices badge detected","details":null,"documentation":{"short":"Determines if the project has an OpenSSF (formerly CII) Best Practices Badge.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#cii-best-practices"}},{"name":"Fuzzing","score":0,"reason":"project is not fuzzed","details":["Warn: no fuzzer integrations found"],"documentation":{"short":"Determines if the project uses fuzzing.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#fuzzing"}},{"name":"Security-Policy","score":0,"reason":"security policy file not detected","details":["Warn: no security policy file detected","Warn: no security file to analyze","Warn: no security file to analyze","Warn: no security file to analyze"],"documentation":{"short":"Determines if the project has published a security policy.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#security-policy"}},{"name":"License","score":10,"reason":"license file detected","details":["Info: project has a license file: LICENSE:0","Info: FSF or OSI recognized license: MIT License: LICENSE:0"],"documentation":{"short":"Determines if the project has defined a license.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#license"}},{"name":"Signed-Releases","score":0,"reason":"Project has not signed or included provenance with any releases.","details":["Warn: release artifact 0.1.0 not signed: https://api.github.com/repos/sile/cotoxy/releases/9565744","Warn: release artifact 0.1.0 does not have provenance: https://api.github.com/repos/sile/cotoxy/releases/9565744"],"documentation":{"short":"Determines if the project cryptographically signs release artifacts.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#signed-releases"}},{"name":"Branch-Protection","score":0,"reason":"branch protection not enabled on development/release branches","details":["Warn: branch protection not enabled for branch 'master'"],"documentation":{"short":"Determines if the default and release branches are protected with GitHub's branch protection settings.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#branch-protection"}},{"name":"Vulnerabilities","score":8,"reason":"2 existing vulnerabilities detected","details":["Warn: Project is vulnerable to: RUSTSEC-2020-0016","Warn: Project is vulnerable to: RUSTSEC-2024-0436"],"documentation":{"short":"Determines if the project has open, known unfixed vulnerabilities.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#vulnerabilities"}}]},"last_synced_at":"2025-08-23T16:09:24.578Z","repository_id":62438997,"created_at":"2025-08-23T16:09:24.578Z","updated_at":"2025-08-23T16:09:24.578Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":272766957,"owners_count":24989408,"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-08-29T02:00:10.610Z","response_time":87,"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":["consul","rust","tcp-proxy"],"created_at":"2024-11-07T03:37:42.814Z","updated_at":"2025-08-29T21:40:06.090Z","avatar_url":"https://github.com/sile.png","language":"Rust","funding_links":[],"categories":[],"sub_categories":[],"readme":"cotoxy\n======\n\n[![cotoxy](http://meritbadge.herokuapp.com/cotoxy)](https://crates.io/crates/cotoxy)\n[![Documentation](https://docs.rs/cotoxy/badge.svg)](https://docs.rs/cotoxy)\n[![License: MIT](https://img.shields.io/badge/license-MIT-blue.svg)](LICENSE)\n\nA TCP proxy using [Consul][consul] for service discovery.\n\nThis uses [List Nodes for Service] API for collecting candidate servers.\n\n[consul]: https://www.consul.io/\n[List Nodes for Service]: https://www.consul.io/api/catalog.html#list-nodes-for-service\n\nInstall\n--------\n\n### Precompiled binaries\n\nA precompiled binary for Linux environment is available in the [releases] page.\n\n```console\n$ curl -L https://github.com/sile/cotoxy/releases/download/0.1.0/cotoxy-0.1.0.linux -o cotoxy\n$ chmod +x cotoxy\n$ ./cotoxy -h\ncotoxy 0.1.0\nA TCP proxy using Consul for service discovery\n\nUSAGE:\n    cotoxy [OPTIONS] \u003cSERVICE\u003e [--] [THREADS]\n\nFLAGS:\n    -h, --help       Prints help information\n    -V, --version    Prints version information\n\nOPTIONS:\n        --bind-addr \u003cBIND_ADDR\u003e                TCP address to which the proxy bind [default: 0.0.0.0:17382]\n        --connect-timeout \u003cCONNECT_TIMEOUT\u003e    TCP connect timeout in milliseconds [default: 1000]\n        --consul-addr \u003cCONSUL_ADDR\u003e            TCP address of the consul agent which the proxy queries [default:\n                                               127.0.0.1:8500]\n        --dc \u003cDC\u003e                              Datacenter to query [default: \u003cDatacenter of the consul agent being\n                                               queried\u003e]\n        --log-level \u003cLOG_LEVEL\u003e                 [default: info]  [values: debug, info, warning, error]\n        --near \u003cNEAR\u003e                          Node name to sort the service node list in ascending order based on the\n                                               estimated round trip time from that node. If `_agent` is specified, the\n                                               node of the consul agent being queried will be used for the sort.\n        --node-meta \u003cNODE_META\u003e...             Node metadata key/value pair of the form `key:value`. Service nodes will\n                                               be filtered with the specified key/value pairs.\n        --service-port \u003cSERVICE_PORT\u003e          Port number of the service [default: \u003cPort number registered in Consul\u003e]\n        --tag \u003cTAG\u003e                            Tag to filter service nodes on\n\nARGS:\n    \u003cSERVICE\u003e    Name of the service to which clients connect\n    \u003cTHREADS\u003e    Number of worker threads [default: 1]\n```\n\n### Using Cargo\n\nIf you have already installed [Cargo][cargo], you can install `cotoxy` easily in the following command:\n\n```console\n$ cargo install cotoxy\n```\n\n[cargo]: https://doc.rust-lang.org/cargo/\n[releases]: https://github.com/sile/cotoxy/releases\n\nExamples\n--------\n\n```console\n/// Run the consul agent in the background.\n$ docker run -d --rm -p 8500:8500 consul\n\n/// Start `cotoxy` which proxies \"consul\" service.\n$ cotoxy consul --service-port 8500\nFeb 07 13:23:13.028 INFO Proxy server started, service: consul, proxy: 0.0.0.0:17382\n\n/// Call consul API via the proxy.\n$ curl -s http://localhost:17382/v1/catalog/service/consul\n[\n    {\n        \"ID\": \"2db3224e-e9cb-fab4-edd7-6e98a2842f16\",\n        \"Node\": \"e10993d941f1\",\n        \"Address\": \"127.0.0.1\",\n        \"Datacenter\": \"dc1\",\n        \"TaggedAddresses\": {\n            \"lan\": \"127.0.0.1\",\n            \"wan\": \"127.0.0.1\"\n        },\n        \"NodeMeta\": {\n            \"consul-network-segment\": \"\"\n        },\n        \"ServiceID\": \"consul\",\n        \"ServiceName\": \"consul\",\n        \"ServiceTags\": [],\n        \"ServiceAddress\": \"\",\n        \"ServicePort\": 8300,\n        \"ServiceEnableTagOverride\": false,\n        \"CreateIndex\": 5,\n        \"ModifyIndex\": 5\n    }\n]\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsile%2Fcotoxy","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsile%2Fcotoxy","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsile%2Fcotoxy/lists"}