Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Peer authentication beta API, aka mTLS beta #1241

Merged
merged 14 commits into from
Jan 31, 2020
Prev Previous commit
Next Next commit
Address comments
  • Loading branch information
diemtvu committed Jan 31, 2020
commit bf130958020fccd1bfd5e318e50f7ddfa904acc8
4 changes: 2 additions & 2 deletions kubernetes/customresourcedefinitions.gen.yaml

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

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

4 changes: 2 additions & 2 deletions security/v1beta1/peer_authentication.gen.json
Original file line number Diff line number Diff line change
Expand Up @@ -38,9 +38,9 @@
"type": "string",
"enum": [
"UNSET",
"DISABLE",
"PERMISSIVE",
"STRICT",
"DISABLE"
"STRICT"
]
},
"istio.type.v1beta1.WorkloadSelector": {
Expand Down
32 changes: 17 additions & 15 deletions security/v1beta1/peer_authentication.pb.go

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

18 changes: 10 additions & 8 deletions security/v1beta1/peer_authentication.pb.html

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

16 changes: 9 additions & 7 deletions security/v1beta1/peer_authentication.proto
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Copyright 2019 Istio Authors
// Copyright 2020 Istio Authors
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
Expand Down Expand Up @@ -40,6 +40,8 @@ option go_package="istio.io/api/security/v1beta1";
// mtls:
// mode: STRICT
// ```
// For mesh level, put the policy in root-namespace according to your Istio installation.
//
// Policies to allow both mTLS & plaintext traffic for all workloads under namespace `foo`, but
// require mTLS for workload `finance`.
// ```yaml
Expand Down Expand Up @@ -126,17 +128,17 @@ message PeerAuthentication {
// Mutual TLS settings.
message MutualTLS {
enum Mode {
// Inherit from parent.
// Inherit from parent, if has one. Otherwise treated as PERMISSIVE.
UNSET = 0;

// Connection is not tunneled.
DISABLE = 1;

// Connection can be either plaintext or mTLS tunnel.
PERMISSIVE = 1;
PERMISSIVE = 2;

// Connection is an mTLS tunnel (TLS with client cert must be presented).
STRICT = 2;

// Connection is not tunneled.
DISABLE = 3;
STRICT = 3;
}

// Defines the mTLS mode used for peer authentication.
Expand Down