{"id":16303084,"url":"https://github.com/himenon/envoy-ext-proc-sample","last_synced_at":"2025-04-10T05:58:52.036Z","repository":{"id":107740173,"uuid":"410844286","full_name":"Himenon/envoy-ext-proc-sample","owner":"Himenon","description":"Sample implementation for Envoy External Processing (ext_proc).","archived":false,"fork":false,"pushed_at":"2021-09-28T04:52:45.000Z","size":52,"stargazers_count":4,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"main","last_synced_at":"2025-02-15T19:35:35.483Z","etag":null,"topics":["envoy","envoyproxy","extproc","istio"],"latest_commit_sha":null,"homepage":"","language":"Go","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/Himenon.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":"2021-09-27T10:46:03.000Z","updated_at":"2024-10-07T21:32:56.000Z","dependencies_parsed_at":"2023-06-08T22:36:41.153Z","dependency_job_id":null,"html_url":"https://github.com/Himenon/envoy-ext-proc-sample","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Himenon%2Fenvoy-ext-proc-sample","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Himenon%2Fenvoy-ext-proc-sample/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Himenon%2Fenvoy-ext-proc-sample/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Himenon%2Fenvoy-ext-proc-sample/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Himenon","download_url":"https://codeload.github.com/Himenon/envoy-ext-proc-sample/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248166937,"owners_count":21058480,"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","extproc","istio"],"created_at":"2024-10-10T20:59:41.293Z","updated_at":"2025-04-10T05:58:52.014Z","avatar_url":"https://github.com/Himenon.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Envoy External Processing Sample (ext_proc)\n\n## Functions of each sample\n\n* 01 Simple Proxy\n    * Can be run as a proxy server where the Request Response does nothing but go through the ext_proc server.\n* 02 Modifying the response body of a GET\n    * Rewrite the response body of a GET request.\n* 03 Return a 404 page\n    * If Upstream returns status code 404, set a special HTML in the response body.\n* 04 Sample extension of 03.\n    * Return the corresponding HTML when Upstream response status code is 403, 404, 500 or 503.\n\n## Requirements\n\n```\ngo \u003e= 1.17\nEnvoy \u003e= 1.7.0\n```\n\n## Sample architecture\n\n![Architecture](./docs/Envoy_External_Processing_Server_Architecture.png)\n\n## Start Sample\n\n### Step 1 Setup\n\n```bash\ngit clone https://github.com/Himenon/envoy-ext-proc-sample.git\ncd envoy-ext-proc-sample\n\n# Install dependent packages for go\ngo mod download\n\n# build docker image\ndocker-compose build\n```\n\n### Step 2 Start Demo Server\n\n```bash\ndocker-compose up\n```\n\nAccess the webserver directly\n\n* `http://localhost:3000`\n\nReturn the targeted HTTP status from the webserver\n\n* `http://localhost:3000/error?status=404`\n* `http://localhost:3000/error?status=403`\n* `http://localhost:3000/error?status=500`\n* ...\n\n[implementation of webserver](./example/webserver/server.ts)\n\n### Step 3 Start the ext_proc server\n\nYou can start any sample you like.\n\n```bash\ngo run sample/01-simple-proxy/main.go\ngo run sample/02-rewrite-get-response-body/main.go\ngo run sample/03-not-found/main.go\ngo run sample/04-status-code-mapping-response/main.go\n```\n\nIf you want to change the gRPC address, run the following:\n\n```bash\nGRPC_ADDRESS=127.0.0.1:18080 go run sample/01-simple-proxy/main.go\n```\n\n## LICENSE\n\nMIT\n\n## Reference\n\n* [salrashid123/envoy_ext_proc](https://github.com/salrashid123/envoy_ext_proc)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhimenon%2Fenvoy-ext-proc-sample","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fhimenon%2Fenvoy-ext-proc-sample","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhimenon%2Fenvoy-ext-proc-sample/lists"}