{"id":27125024,"url":"https://github.com/anatoly-semenov/cpp-security-gateway","last_synced_at":"2025-08-24T04:18:09.175Z","repository":{"id":286442289,"uuid":"961416494","full_name":"Anatoly-Semenov/cpp-security-gateway","owner":"Anatoly-Semenov","description":"C++ implementation of a gRPC gateway designed for scalable and secure microservice architectures on Kubernetes","archived":false,"fork":false,"pushed_at":"2025-04-06T14:20:27.000Z","size":35,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-04-09T22:58:04.510Z","etag":null,"topics":["cpp","gateway","high-performance","security"],"latest_commit_sha":null,"homepage":"","language":"C++","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/Anatoly-Semenov.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":"2025-04-06T13:32:17.000Z","updated_at":"2025-04-06T14:20:31.000Z","dependencies_parsed_at":"2025-04-06T14:46:33.833Z","dependency_job_id":null,"html_url":"https://github.com/Anatoly-Semenov/cpp-security-gateway","commit_stats":null,"previous_names":["anatoly-semenov/cpp-security-gateway"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/Anatoly-Semenov/cpp-security-gateway","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Anatoly-Semenov%2Fcpp-security-gateway","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Anatoly-Semenov%2Fcpp-security-gateway/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Anatoly-Semenov%2Fcpp-security-gateway/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Anatoly-Semenov%2Fcpp-security-gateway/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Anatoly-Semenov","download_url":"https://codeload.github.com/Anatoly-Semenov/cpp-security-gateway/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Anatoly-Semenov%2Fcpp-security-gateway/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":271790436,"owners_count":24821583,"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-24T02:00:11.135Z","response_time":111,"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":["cpp","gateway","high-performance","security"],"created_at":"2025-04-07T14:28:58.867Z","updated_at":"2025-08-24T04:18:09.154Z","avatar_url":"https://github.com/Anatoly-Semenov.png","language":"C++","funding_links":[],"categories":[],"sub_categories":[],"readme":"# cpp-security-gateway\nC++ implementation of a gRPC gateway designed for scalable and secure microservice architectures on Kubernetes\n\n## Security Features\n\nThe gateway includes the following security features:\n\n### DDoS Attack Protection\n- Request rate limiting for each IP address\n- Customizable limits for different API endpoints\n- Automatic blocking of IP addresses that exceed limits\n\n### Login Protection\n- Automatic IP blocking after 15 failed login attempts\n- Block duration: 1 hour\n- Counter reset on successful login\n- Protection against brute force attacks\n\n### Registration Protection\n- Automatic IP blocking after 5 successful registrations per hour\n- Block duration: 1 hour\n- Protection against mass account creation\n\n### Redis Integration\n- Distributed storage of blocked IP addresses data\n- Real-time tracking of request counts\n\n### IP Blacklist\n- Predefined list of known malicious IP addresses\n- REST API for blacklist management (adding/removing IPs)\n- Automatic blocking of requests from blacklisted IP addresses\n\n## Launch\n\n```bash\n# Run with Docker Compose\ndocker-compose up -d\n```\n\n## IP Blacklist Management\n\n### Get list of blocked IPs\n```\nGET /api/v1/admin/blacklist\n```\n\n### Add IP to blacklist\n```\nPOST /api/v1/admin/blacklist/add\n{\n  \"ip\": \"192.168.1.1\",\n  \"ban_time_seconds\": 3600\n}\n```\n\n### Remove IP from blacklist\n```\nPOST /api/v1/admin/blacklist/remove\n{\n  \"ip\": \"192.168.1.1\"\n}\n```\n\n\u003e Note: To access the blacklist management API, you must include the `X-API-Key` header with the correct API key.\n\n## Project Structure\n\n```\n.\n├── CMakeLists.txt           # CMake build configuration\n├── Dockerfile               # Docker image build instructions\n├── README.md                # Project documentation\n├── blacklist.txt            # Predefined list of blocked IP addresses\n├── docker-compose.yml       # Docker Compose configuration\n├── include/                 # Header files (*.h, *.hpp)\n│   ├── gateway/             # Gateway module headers\n│   ├── security/            # Security module headers\n│   └── services/            # Service integration headers\n├── proto/                   # gRPC service definitions (Protocol Buffers)\n│   ├── balance.proto        # User balance service\n│   ├── payments.proto       # Payments service\n│   └── users.proto          # Users service\n└── src/                     # C++ source code (*.cpp)\n    ├── gateway/             # Gateway functionality implementation\n    ├── main.cpp             # Application entry point\n    ├── security/            # Security functionality implementation\n    └── services/            # External services integration implementation\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fanatoly-semenov%2Fcpp-security-gateway","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fanatoly-semenov%2Fcpp-security-gateway","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fanatoly-semenov%2Fcpp-security-gateway/lists"}