Skip to content

Commit 2e5cbcd

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

File tree

7 files changed

+343
-269
lines changed

7 files changed

+343
-269
lines changed

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

Lines changed: 15 additions & 0 deletions
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

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -100,6 +100,13 @@ 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: If this field is not empty, the JWT failure status code and message are added to DynamicMetadata under the provided value.
105+
// This is particularly useful when logging the status with access logs.
106+
//
107+
// For example, if the value of `attach_failed_status_in_metadata` is 'custom_auth_failure_status' then
108+
// the status can be accessed in the access log as '%DYNAMIC_METADATA(envoy.filters.http.jwt_authn:custom_auth_failure_status:message)'
109+
string attach_failed_status_in_metadata = 9;
103110
}
104111

105112
message Jwks {

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

Lines changed: 241 additions & 216 deletions
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

Lines changed: 2 additions & 0 deletions
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

Lines changed: 4 additions & 0 deletions
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

Lines changed: 70 additions & 53 deletions
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

Lines changed: 4 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)