Skip to content

Commit

Permalink
Clarify request authentication root namespace scope. (#2086)
Browse files Browse the repository at this point in the history
* Clarify request authentication root namespace scope.

* typo fix.

* make gen.

* make gen.

* clarified all workloads instead.

* update with authz example.

* Update security/v1beta1/request_authentication.proto

Co-authored-by: Sven Mawson <[email protected]>

* Update security/v1beta1/request_authentication.proto

Co-authored-by: Sven Mawson <[email protected]>

* update the doc gen.

Co-authored-by: Lin Sun <[email protected]>
Co-authored-by: Sven Mawson <[email protected]>
  • Loading branch information
3 people authored Sep 14, 2021
1 parent 75b5398 commit 7f52510
Show file tree
Hide file tree
Showing 3 changed files with 82 additions and 0 deletions.
27 changes: 27 additions & 0 deletions security/v1beta1/request_authentication.pb.go

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

28 changes: 28 additions & 0 deletions security/v1beta1/request_authentication.pb.html

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

27 changes: 27 additions & 0 deletions security/v1beta1/request_authentication.proto
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,33 @@ option go_package="istio.io/api/security/v1beta1";
// requestPrincipals: ["*"]
// ```
//
// - A policy in the root namespace ("istio-system" by default) applies to workloads in all namespaces
// in a mesh. The following policy makes all workloads only accept requests that contain a
// valid JWT token.
//
// ```yaml
// apiVersion: security.istio.io/v1beta1
// kind: RequestAuthentication
// metadata:
// name: req-authn-for-all
// namespace: istio-system
// spec:
// jwtRules:
// - issuer: "issuer-foo"
// jwksUri: https://example.com/.well-known/jwks.json
// ---
// apiVersion: security.istio.io/v1beta1
// kind: AuthorizationPolicy
// metadata:
// name: require-jwt-for-all
// namespace: istio-system
// spec:
// rules:
// - from:
// - source:
// requestPrincipals: ["*"]
// ```
//
// - The next example shows how to set a different JWT requirement for a different `host`. The `RequestAuthentication`
// declares it can accept JWTs issued by either `issuer-foo` or `issuer-bar` (the public key set is implicitly
// set from the OpenID Connect spec).
Expand Down

0 comments on commit 7f52510

Please sign in to comment.