{"id":21397583,"url":"https://github.com/multani/redis-proxy","last_synced_at":"2025-09-15T02:40:03.598Z","repository":{"id":158368974,"uuid":"633997346","full_name":"multani/redis-proxy","owner":"multani","description":"A proxy for Redis that authenticate on behalf of the proxy's clients","archived":false,"fork":false,"pushed_at":"2023-04-28T20:51:04.000Z","size":5,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-03-16T15:17:45.585Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Python","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/multani.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":"2023-04-28T19:15:34.000Z","updated_at":"2024-09-25T12:22:06.000Z","dependencies_parsed_at":null,"dependency_job_id":"c92c9514-4661-45e4-80f0-878a536245dd","html_url":"https://github.com/multani/redis-proxy","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/multani/redis-proxy","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/multani%2Fredis-proxy","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/multani%2Fredis-proxy/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/multani%2Fredis-proxy/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/multani%2Fredis-proxy/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/multani","download_url":"https://codeload.github.com/multani/redis-proxy/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/multani%2Fredis-proxy/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":275196735,"owners_count":25422090,"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-09-15T02:00:09.272Z","response_time":75,"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-11-22T14:43:37.658Z","updated_at":"2025-09-15T02:40:03.548Z","avatar_url":"https://github.com/multani.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Redis proxy\n\nA Redis proxy that handles authentication to Redis, on behalf of its clients.\n\nWhen it starts, the proxy listen for connections from your favorite Redis client.\n\nEach time a Redis client on the proxy, the proxy connects back on an upstream\nRedis server and:\n\n1. Authenticate on the Redis server, using the [Redis `AUTH` command](https://redis.io/docs/management/security/#authentication)\n2. If the authentication succeeds, the connection to the Redis server is\n   handed over to the client of the proxy:\n   * All the commands from the client are forwarded to the upstream server, as\n     if the client was directly connected to the server.\n   * Similarly, all the responses from upstream are sent back to the client.\n3. If the authentication fails, then the proxy gives up and closes the\n   connection to the client.\n\n```\nClient -\u003e [Redis Proxy] -\u003e Upstream Redis server\n```\n\n## Demo\n\n1. Start a Redis server instance, protected by a password. Use:\n\n   ```sh\n   redis-server --port 6379 --requirepass secret-password\n   ```\n\n   Or the Docker command:\n\n   ```sh\n   docker run --rm --port 6379:6379 redis --requirepass secret-password\n   ```\n\n   For convenience, a Docker Compose also exists:\n\n   ```sh\n   docker compose up\n   ```\n\n   This will create a new Redis server running on port 6379.\n\n2. Start the proxy with:\n\n   ```sh\n   ./redis-proxy.py -vv --listen-port 6378 --upstream-address 127.0.0.1 --upstream-port 6379 --upstream-password secret-password\n   ```\n\n   This will create a Redis-compatible server running on TCP port 6378.\n\n3. Start any Redis client and connect it on `127.0.0.1` port 6378 (the proxy), **without any password**:\n\n   ```sh\n   $ redis-cli -h 127.0.0.1 -p 6378 ping\n   PONG\n   $ redis-cli -h 127.0.0.1 -p 6379 ping\n   (error) NOAUTH Authentication required.\n   $ redis-cli -h 127.0.0.1 -p 6379 --pass secret-password ping\n   PONG\n   ```\n\n\n## Requirements\n\nThis is a pure Python 3 project. It requires Python 3.8 or greater.\n\n\n## Status\n\nThe proxy works 🎉\n\nIt super slow 🎉 [redis-benchmark](https://redis.io/docs/management/optimization/benchmarks/) is about 100 slower when going through the proxy, compared to going directly to the upstream Redis server :)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmultani%2Fredis-proxy","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmultani%2Fredis-proxy","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmultani%2Fredis-proxy/lists"}