{"id":22691502,"url":"https://github.com/noahingh/do-731","last_synced_at":"2026-01-07T12:53:32.133Z","repository":{"id":187795024,"uuid":"255975119","full_name":"noahingh/do-731","owner":"noahingh","description":null,"archived":false,"fork":false,"pushed_at":"2020-04-20T05:02:44.000Z","size":6,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-02-04T17:50:58.511Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":null,"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/noahingh.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}},"created_at":"2020-04-15T16:27:56.000Z","updated_at":"2023-01-16T10:48:28.000Z","dependencies_parsed_at":null,"dependency_job_id":"97eaf891-906d-4773-9548-12c91ca29d82","html_url":"https://github.com/noahingh/do-731","commit_stats":null,"previous_names":["noahingh/do-731"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/noahingh%2Fdo-731","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/noahingh%2Fdo-731/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/noahingh%2Fdo-731/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/noahingh%2Fdo-731/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/noahingh","download_url":"https://codeload.github.com/noahingh/do-731/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246215820,"owners_count":20741894,"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":[],"created_at":"2024-12-10T01:11:25.518Z","updated_at":"2026-01-07T12:53:32.104Z","avatar_url":"https://github.com/noahingh.png","language":null,"funding_links":[],"categories":[],"sub_categories":[],"readme":"# DO-731\n\nThe objective of this repository is to investigate the `EnvoyFilter` of Istio over `v1.13` through the example [per-route config](https://www.envoyproxy.io/docs/envoy/latest/configuration/http/http_filters/ext_authz_filter). The per-route configuration is to set the external authorzation for specific routes.\n\nFirstly, we would start with the Envoy. In example (i.e `./envoy/envoy.yaml`), the envoy is enabled to authorize requests for the host `localhost:10000` but it is disabled for the host `127.0.0.1:10000`. You can try like below.\n\n```shell\n# in ./envoy\n$ docker-compose up\n\n# enabled for localhost.\n$ curl -v localhost:10000\n\n...\n\u003c HTTP/1.1 401 Unauthorized\n...\n\n# disabled for 127.0.0.1\n$ curl -v 127.0.0.1:10000\n\n...\n\u003c HTTP/1.1 200 OK\n```\n\nFor Istio, it would be very similar with the configuration of Envoy. It is enabled to authorize for the public host, which comes from the outside of a cluster, and it is disabled for the internal host. \n\n```shell\n$ cat istio/kubernetes.yaml | sed 's/NAMESPACE/YOUR_NAMESPACE/g' | sed 's/HOSTNAME/YOUR_HOSTNAME/g' | sed 's/GATEWAY/YOUR_GATEWAY.istio-system/g' | k apply -f -\n\n$ curl -v YOUR_HOSTNAME \n...\n\u003c HTTP/1.1 401 Unauthorized\n...\n\n# Inside of the cluster\n$ k run curl -ti --rm  --generator=run-pod/v1 --image=yauritux/busybox-curl --command -- sh\n$ curl -v nginx.YOUR_NAMESPACE.svc.cluster.local \n...\n\u003c HTTP/1.1 200 OK\n```\n\nAnd if you want to check the settings of Envoy in Istio the command `istioctl pc listener POD --port 80 -o json` would be helpful.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnoahingh%2Fdo-731","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fnoahingh%2Fdo-731","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnoahingh%2Fdo-731/lists"}