{"id":16878802,"url":"https://github.com/peterj/envoy-introspection","last_synced_at":"2026-04-30T16:32:26.097Z","repository":{"id":145600777,"uuid":"433247535","full_name":"peterj/envoy-introspection","owner":"peterj","description":null,"archived":false,"fork":false,"pushed_at":"2021-11-30T01:05:49.000Z","size":2,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-07-18T02:22:13.586Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/peterj.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"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-11-30T01:03:01.000Z","updated_at":"2021-11-30T07:11:09.000Z","dependencies_parsed_at":null,"dependency_job_id":"c3a7e02b-f8bf-4fba-aec4-5237583c2529","html_url":"https://github.com/peterj/envoy-introspection","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/peterj/envoy-introspection","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/peterj%2Fenvoy-introspection","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/peterj%2Fenvoy-introspection/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/peterj%2Fenvoy-introspection/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/peterj%2Fenvoy-introspection/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/peterj","download_url":"https://codeload.github.com/peterj/envoy-introspection/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/peterj%2Fenvoy-introspection/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32470879,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-30T13:12:12.517Z","status":"ssl_error","status_checked_at":"2026-04-30T13:12:06.837Z","response_time":57,"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":"2024-10-13T15:51:28.366Z","updated_at":"2026-04-30T16:32:26.082Z","avatar_url":"https://github.com/peterj.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Envoy introspection\n\n\n\n## Demo\n\n1. Build the extension (.wasm file):\n\n    ```\n    make wasm\n    ```\n\n2. Start the upstream service:\n\n    ```sh\n    docker run -d -p 3030:80 kennethreitz/httpbin\n    ```\n\n3. Run the Envoy instance using func-e:\n\n    ```sh\n    func-e run -c envoy.yaml \u0026\n    ```\n\n4. Send a request using the `intercept: 1` header to intercept the call:\n\n    ```sh\n    curl -H \"intercept: 1\" localhost:10000/get\n    ```\n\nNotice in the output the call is intercepted and a request is made to the same cluster and the callback function is called:\n\n```sh\n$ curl -H \"intercept: 1\" localhost:10000/1\n[2021-11-30 01:02:33.159][14834][info][wasm] [source/extensions/common/wasm/context.cc:1167] wasm log: intercepting call!!\n[2021-11-30 01:02:33.159][14834][info][wasm] [source/extensions/common/wasm/context.cc:1167] wasm log: cluster name: httpbin_1\n[2021-11-30 01:02:33.163][14834][info][wasm] [source/extensions/common/wasm/context.cc:1167] wasm log: called callBack func\n{\n  \"args\": {},\n  \"headers\": {\n    \"Accept\": \"*/*\",\n    \"Host\": \"localhost:10000\",\n    \"Intercept\": \"1\",\n    \"User-Agent\": \"curl/7.64.0\",\n    \"X-Envoy-Expected-Rq-Timeout-Ms\": \"15000\",\n    \"X-Envoy-Original-Path\": \"/1\"\n  },\n  \"origin\": \"172.18.0.1\",\n  \"url\": \"http://localhost:10000/get\"\n}\n```","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpeterj%2Fenvoy-introspection","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpeterj%2Fenvoy-introspection","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpeterj%2Fenvoy-introspection/lists"}