File tree Expand file tree Collapse file tree 2 files changed +50
-1
lines changed
templates/terraform/examples Expand file tree Collapse file tree 2 files changed +50
-1
lines changed Original file line number Diff line number Diff line change @@ -55,6 +55,14 @@ examples:
5555 backend_name : ' authz-service'
5656 test_env_vars :
5757 project : ' PROJECT_NAME'
58+ - name : ' network_services_authz_extension_basic_with_auth_grpc'
59+ min_version : ' beta'
60+ primary_resource_id : ' default'
61+ vars :
62+ resource_name : ' my-authz-ext-with-grpc'
63+ backend_name : ' authz-service-grpc'
64+ test_env_vars :
65+ project : ' PROJECT_NAME'
5866parameters :
5967 - name : ' name'
6068 type : String
@@ -142,8 +150,23 @@ properties:
142150 - name : ' wireFormat'
143151 type : Enum
144152 description : |
145- The format of communication supported by the callout extension. Will be set to EXT_PROC_GRPC by the backend if no value is set.
153+ Specifies the communication protocol used by the callout extension
154+ to communicate with its backend service.
155+ Supported values:
156+ - WIRE_FORMAT_UNSPECIFIED:
157+ No wire format is explicitly specified. The backend automatically
158+ defaults this value to EXT_PROC_GRPC.
159+ - EXT_PROC_GRPC:
160+ Uses Envoy's External Processing (ext_proc) gRPC API over a single
161+ gRPC stream. The backend service must support HTTP/2 or H2C.
162+ All supported events for a client request are sent over the same
163+ gRPC stream. This is the default wire format.
164+ - EXT_AUTHZ_GRPC:
165+ Uses Envoy's external authorization (ext_authz) gRPC API.
166+ The backend service must support HTTP/2 or H2C.
167+ This option is only supported for regional AuthzExtension resources.
146168 default_from_api : true
147169 enum_values :
148170 - ' WIRE_FORMAT_UNSPECIFIED'
149171 - ' EXT_PROC_GRPC'
172+ - ' EXT_AUTHZ_GRPC'
Original file line number Diff line number Diff line change 1+ resource " google_compute_region_backend_service" " default" {
2+ provider = google-beta
3+ name = " {{index $.Vars " backend_name" }}"
4+ project = " {{index $.TestEnvVars " project" }}"
5+ region = " us-west1"
6+
7+ protocol = " HTTP2"
8+ load_balancing_scheme = " INTERNAL_MANAGED"
9+ port_name = " grpc"
10+ }
11+
12+ resource " google_network_services_authz_extension" " {{$.PrimaryResourceId}}" {
13+ provider = google-beta
14+ name = " {{index $.Vars " resource_name" }}"
15+ project = " {{index $.TestEnvVars " project" }}"
16+ location = " us-west1"
17+
18+ description = " my description"
19+ load_balancing_scheme = " INTERNAL_MANAGED"
20+ wire_format = " EXT_AUTHZ_GRPC"
21+ authority = " ext11.com"
22+ service = google_compute_region_backend_service.default.self_link
23+ timeout = " 0.1s"
24+ fail_open = false
25+ forward_headers = [" Authorization" ]
26+ }
You can’t perform that action at this time.
0 commit comments