Skip to content

Commit

Permalink
Add from_cookies filed for JWTRule
Browse files Browse the repository at this point in the history
  • Loading branch information
kebe7jun committed Oct 10, 2022
1 parent 0d6e2d4 commit 7cbffcd
Show file tree
Hide file tree
Showing 6 changed files with 87 additions and 15 deletions.
5 changes: 5 additions & 0 deletions kubernetes/customresourcedefinitions.gen.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

7 changes: 7 additions & 0 deletions security/v1beta1/jwt.gen.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

52 changes: 37 additions & 15 deletions security/v1beta1/jwt.pb.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

19 changes: 19 additions & 0 deletions security/v1beta1/jwt.pb.html

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

12 changes: 12 additions & 0 deletions security/v1beta1/jwt.proto
Original file line number Diff line number Diff line change
Expand Up @@ -136,6 +136,18 @@ message JWTRule {
// such requests is undefined.
repeated string from_params = 7;

// List of Cookie names from which JWT is expected. For example, if JWT is provided via Cookie header value
// (e.g `Cookie: auth-token=<JWT>;`)
//
// ```yaml
// fromCookies:
// - "auth-token"
// ```
//
// Note: Requests with multiple tokens (at different locations) are not supported, the output principal of
// such requests is undefined.
repeated string from_cookies = 11;

// This field specifies the header name to output a successfully verified JWT payload to the
// backend. The forwarded data is `base64_encoded(jwt_payload_in_JSON)`. If it is not specified,
// the payload will not be emitted.
Expand Down
7 changes: 7 additions & 0 deletions security/v1beta1/request_authentication.gen.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 7cbffcd

Please sign in to comment.