{"id":15568541,"url":"https://github.com/cetanu/steward","last_synced_at":"2025-07-21T04:32:43.113Z","repository":{"id":185887994,"uuid":"605402671","full_name":"cetanu/steward","owner":"cetanu","description":"An implementation of the Lyft rate-limit service","archived":false,"fork":false,"pushed_at":"2023-08-28T17:00:18.000Z","size":133,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-03-16T12:45:26.662Z","etag":null,"topics":["envoy","envoyproxy","rate-limiting"],"latest_commit_sha":null,"homepage":"","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/cetanu.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-02-23T04:26:49.000Z","updated_at":"2023-03-14T01:43:24.000Z","dependencies_parsed_at":null,"dependency_job_id":"a23385fc-4f82-41da-bbf8-1930f2864b1d","html_url":"https://github.com/cetanu/steward","commit_stats":{"total_commits":26,"total_committers":1,"mean_commits":26.0,"dds":0.0,"last_synced_commit":"17009ec926c5519e290a64b15a8a5578670f8041"},"previous_names":["cetanu/steward"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/cetanu/steward","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cetanu%2Fsteward","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cetanu%2Fsteward/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cetanu%2Fsteward/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cetanu%2Fsteward/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/cetanu","download_url":"https://codeload.github.com/cetanu/steward/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cetanu%2Fsteward/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":266240884,"owners_count":23898062,"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":["envoy","envoyproxy","rate-limiting"],"created_at":"2024-10-02T17:17:00.258Z","updated_at":"2025-07-21T04:32:43.093Z","avatar_url":"https://github.com/cetanu.png","language":"Rust","funding_links":[],"categories":[],"sub_categories":[],"readme":"steward\n============================================================\n\nMission Statement\n------------------------------------------------------------\n\nSteward is an implementation of the Lyft Rate-Limit service.\n\n\nFeatures\n------------------------------------------------------------\n\n* Load rate limit configs from HTTP or a local file\n\n\nBuilding and testing\n------------------------------------------------------------\n\n### Prerequisites\n\n* Docker\n* Docker-compose\n* Make\n\n### Optional prerequisites for building locally\n\n* Rust toolchain\n\n\n### Building locally\n\nSimple execute `cargo build --release` to create a binary\nwhich, when run, will start the rate limit service as a\ngRPC server.\n\n### Running the environment\n\nThe environment can be brought up with `make run`.  \nIt includes an envoy proxy, the rate limit service, a redis\ndatabase, a mock configuration server, and a httpbin backend.\n\n### Running tests\n\nThe project uses tavern HTTP integration tests.  \nThey can be executed with `make test`\n\n\nConfiguration\n------------------------------------------------------------\n\nThe path to local configuration can be specified using the\nenvironment variable `STEWARD_CONFIG_PATH`.  \nThe default location is `steward.yaml` in the current working\ndirectory.\n\nExample configuration file:\n\n```yaml\nlisten:\n  addr: 0.0.0.0\n  port: 5001\nrate_limit_configs:\n  http: http://mock_config:8000/api/rate_limits\nredis_host: redis\nredis_connections: 8\ndefault_ttl: 10\n```\n\n### `rate_limit_configs`\n\nThis parameter allows specifying a location for the service\nto lookup various rate limit configurations.\n\nEither a `Http` or `File` location can be specified.\n\nExample of what the service expects the location to contain:\n\n```json\n{\n    \"domain\": [\n        {\n            \"key\": \"descriptor_key\",\n            \"value\": \"descriptor_value\",\n            \"rate_limit\": {\n                \"unit\": \"\u003cseconds|minutes|hours|days|months|years\u003e\",\n                \"requests_per_unit\": 12345\n            }\n        }\n    ]\n}\n```\n\nThere can be any number of domains and descriptors.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcetanu%2Fsteward","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcetanu%2Fsteward","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcetanu%2Fsteward/lists"}