-
-
Save developer-guy/ef469b43c6a967b1a7803e250d64255e to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| admin: | |
| access_log_path: /dev/stdout | |
| address: | |
| socket_address: { address: 0.0.0.0, port_value: 9901 } | |
| static_resources: | |
| listeners: | |
| - name: listener1 | |
| address: | |
| socket_address: { address: 0.0.0.0, port_value: 51051 } | |
| filter_chains: | |
| - filters: | |
| - name: envoy.filters.network.http_connection_manager | |
| typed_config: | |
| "@type": type.googleapis.com/envoy.extensions.filters.network.http_connection_manager.v3.HttpConnectionManager | |
| stat_prefix: grpc_json | |
| codec_type: AUTO | |
| route_config: | |
| name: local_route | |
| virtual_hosts: | |
| - name: local_service | |
| domains: ["*"] | |
| routes: | |
| - match: { prefix: "/" } | |
| route: { cluster: grpc, timeout: { seconds: 60 } } | |
| http_filters: | |
| - name: envoy.ext_authz | |
| typed_config: | |
| '@type': type.googleapis.com/envoy.config.filter.http.ext_authz.v2.ExtAuthz | |
| failure_mode_allow: false | |
| grpc_service: | |
| google_grpc: | |
| stat_prefix: ext_authz | |
| target_uri: unix:/Users/stephan/Misc/envoy/grpc_uds_extauth/opa.sock | |
| with_request_body: | |
| allow_partial_message: true | |
| max_request_bytes: 8192 | |
| - name: envoy.filters.http.router | |
| clusters: | |
| - name: grpc | |
| connect_timeout: 1.25s | |
| type: logical_dns | |
| lb_policy: round_robin | |
| dns_lookup_family: V4_ONLY | |
| http2_protocol_options: {} | |
| load_assignment: | |
| cluster_name: grpc | |
| endpoints: | |
| - lb_endpoints: | |
| - endpoint: | |
| address: | |
| socket_address: | |
| address: 127.0.0.1 | |
| port_value: 9090 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # note: I've run opa this way: `./opa_envoy_darwin_amd64 run -c opa.config -s --set=decision_logs.console=true` | |
| plugins: | |
| envoy_ext_authz_grpc: | |
| addr: "unix://opa.sock" | |
| path: envoy/authz/allow | |
| dry-run: false | |
| enable-reflection: true |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment