{"id":41916057,"url":"https://github.com/brainfair/istio-ratelimits","last_synced_at":"2026-01-25T16:23:33.222Z","repository":{"id":273697007,"uuid":"920575297","full_name":"brainfair/istio-ratelimits","owner":"brainfair","description":"This repository demonstrates two approaches to implementing rate limiting in Istio: Local Rate Limiting and Global Rate Limiting","archived":false,"fork":false,"pushed_at":"2025-11-01T13:17:51.000Z","size":85,"stargazers_count":0,"open_issues_count":1,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-11-01T15:11:51.163Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"YAML","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/brainfair.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,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2025-01-22T11:55:22.000Z","updated_at":"2025-11-01T13:17:54.000Z","dependencies_parsed_at":null,"dependency_job_id":"fbc877de-2ed9-4feb-9651-0d106dc12d6c","html_url":"https://github.com/brainfair/istio-ratelimits","commit_stats":null,"previous_names":["brainfair/istio-ratelimits"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/brainfair/istio-ratelimits","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/brainfair%2Fistio-ratelimits","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/brainfair%2Fistio-ratelimits/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/brainfair%2Fistio-ratelimits/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/brainfair%2Fistio-ratelimits/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/brainfair","download_url":"https://codeload.github.com/brainfair/istio-ratelimits/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/brainfair%2Fistio-ratelimits/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28755256,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-25T13:59:49.818Z","status":"ssl_error","status_checked_at":"2026-01-25T13:59:33.728Z","response_time":113,"last_error":"SSL_read: 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":[],"created_at":"2026-01-25T16:23:32.672Z","updated_at":"2026-01-25T16:23:33.218Z","avatar_url":"https://github.com/brainfair.png","language":"YAML","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Istio Rate Limiting Examples\n\nThis repository demonstrates two approaches to implementing rate limiting in Istio: Local Rate Limiting and Global Rate Limiting. These examples showcase how to manage traffic flow and protect services from excessive requests using Istio's Envoy filters.\n\n## Overview\n\nRate limiting in Istio helps control the number of requests sent to a service to prevent overloading and ensure fair usage. The two approaches covered in this repository are:\n- **Local Rate Limiting**: Enforces rate limits at the sidecar proxy level, where each instance of a service independently applies the configured limits.\n- **Global Rate Limiting**: Enforces rate limits across all instances on a Gateway level of a service using a centralized Redis-based rate-limiting mechanism.\n\n## Deploy\n\nThis configuration can be deployed as is with [FluxCD example](https://github.com/brainfair/awesome-flux-head/blob/main/clusters/homelab/02-istio-ratelimits.yaml) or just with kubectl (make sure that you replaced subdomain placeholders before).\n\n## Run Tests\nTests are provided using the k6 framework in the ```test.js``` and ```test-cookies.js``` files located inside each example directory. The tests target the configured rate-limited path (```/headers```) and validate the ```custom-header``` value, and per cookie value ```TEST```.\n\nYou can run the tests using the Makefile commands inside each directory example:\n```\n## Common tests with rate limiter per path and header value\nmake test111  # Runs the test with custom-header set to 111\nmake test222  # Runs the test with custom-header set to 222\n\n## Global rate limit test per cookie rate limiter\nmake test-cookie\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbrainfair%2Fistio-ratelimits","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbrainfair%2Fistio-ratelimits","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbrainfair%2Fistio-ratelimits/lists"}