Skip to content

Commit 4af774d

Browse files
author
soloio-bot
committed
Sync Gloo APIs. Destination Branch: gloo-main
1 parent a4a9927 commit 4af774d

File tree

14 files changed

+555
-429
lines changed

14 files changed

+555
-429
lines changed

api/gloo/enterprise.gloo/v1/auth_config.proto

+2
Original file line numberDiff line numberDiff line change
@@ -1484,6 +1484,8 @@ message RetryPolicy {
14841484
}
14851485

14861486
// Authorizes requests by querying a custom extauth grpc server
1487+
// To send the request body to the ext-auth service, the settings.extauth.requestBody must be set in the Gloo Edge Settings CRD so that
1488+
// the request body is buffered and sent.
14871489
// Assumes that the server implements the envoy external authorization spec:
14881490
// https://github.com/envoyproxy/envoy/blob/ae1ed1fa74f096dabe8dd5b19fc70333621b0309/api/envoy/service/auth/v3/external_auth.proto#L29
14891491
message PassThroughGrpc {

api/gloo/gloo/external/envoy/extensions/filters/http/jwt_authn/v3/config.proto

+15
Original file line numberDiff line numberDiff line change
@@ -212,6 +212,21 @@ message JwtProvider {
212212
// Specify the clock skew in seconds when verifying JWT time constraint,
213213
// such as `exp`, and `nbf`. If not specified, default is 60 seconds.
214214
uint32 clock_skew_seconds = 10;
215+
216+
// If non empty, the failure status ``::google::jwt_verify::Status`` for a non verified JWT will be written to StreamInfo DynamicMetadata
217+
// in the format as: ``namespace`` is the jwt_authn filter name as ``envoy.filters.http.jwt_authn``
218+
// The value is the ``protobuf::Struct``. The values of this field will be ``code`` and ``message``
219+
// and they will contain the JWT authentication failure status code and a message describing the failure.
220+
//
221+
// For example, if failed_status_in_metadata is ``my_auth_failure_status``:
222+
//
223+
// .. code-block:: yaml
224+
//
225+
// envoy.filters.http.jwt_authn:
226+
// my_auth_failure_status:
227+
// code: 3
228+
// message: Jwt expired
229+
string failed_status_in_metadata = 11;
215230
}
216231

217232
// This message specifies how to fetch JWKS from remote and how to cache it.

api/gloo/gloo/v1/enterprise/options/jwt/jwt.proto

+8
Original file line numberDiff line numberDiff line change
@@ -100,6 +100,14 @@ message Provider {
100100

101101
// Optional: ClockSkewSeconds is used to verify time constraints, such as `exp` and `npf`. Default is 60s
102102
google.protobuf.UInt32Value clock_skew_seconds = 8;
103+
104+
// Optional: When this field is set, the specified value is used as the key in DynamicMetadata to store the JWT failure status code and message under that key. If the value is empty (i.e., ""), it is ignored.
105+
// This field is particularly useful when logging the failure status.
106+
//
107+
// For example, if the value of `attach_failed_status_to_metadata` is 'custom_auth_failure_status' then
108+
// the failure status can be accessed in the access log as '%DYNAMIC_METADATA(envoy.filters.http.jwt_authn:custom_auth_failure_status)'
109+
// Note: status code and message can be individually accessed as '%DYNAMIC_METADATA(envoy.filters.http.jwt_authn:custom_auth_failure_status.code)' and '%DYNAMIC_METADATA(envoy.filters.http.jwt_authn:custom_auth_failure_status.message)' respectively.
110+
string attach_failed_status_to_metadata = 9;
103111
}
104112

105113
message Jwks {

api/gloo/gloo/v1/options/als/als.proto

+4
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,10 @@ message GrpcService {
6363
repeated string additional_response_headers_to_log = 5;
6464

6565
repeated string additional_response_trailers_to_log = 6;
66+
67+
// Additional filter state objects to log in filter_state_objects. Logger will call FilterState::Object::serializeAsProto to serialize the filter state object.
68+
// See https://www.envoyproxy.io/docs/envoy/latest/api-v3/extensions/access_loggers/grpc/v3/als.proto#extensions-access-loggers-grpc-v3-commongrpcaccesslogconfig
69+
repeated string filter_state_objects_to_log = 7;
6670
}
6771

6872
message AccessLogFilter {

pkg/api/enterprise.gloo.solo.io/v1/auth_config.pb.go

+2
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

pkg/api/gloo.solo.io/external/envoy/extensions/filters/http/jwt_authn/v3/config.pb.go

+241-216
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

pkg/api/gloo.solo.io/v1/enterprise/options/jwt/jwt.pb.clone.go

+2
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

pkg/api/gloo.solo.io/v1/enterprise/options/jwt/jwt.pb.equal.go

+4
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

pkg/api/gloo.solo.io/v1/enterprise/options/jwt/jwt.pb.go

+71-53
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

pkg/api/gloo.solo.io/v1/enterprise/options/jwt/jwt.pb.hash.go

+4
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

pkg/api/gloo.solo.io/v1/options/als/als.pb.clone.go

+9
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

pkg/api/gloo.solo.io/v1/options/als/als.pb.equal.go

+11
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)