PeerAuthentication class

Peer authentication policies specify the mutual TLS mode Istio enforces on target workloads. The following modes are supported:

  • PERMISSIVE: Workloads accept both mutual TLS and plain text traffic. This mode is most useful during migrations when workloads without sidecar cannot use mutual TLS. Once workloads are migrated with sidecar injection, you should switch the mode to STRICT.
  • STRICT: Workloads only accept mutual TLS traffic.
  • DISABLE: Mutual TLS is disabled. From a security perspective, you shouldn’t use this mode unless you provide your own security solution.

When the mode is unset, the mode of the parent scope is inherited. Mesh-wide peer authentication policies with an unset mode use the PERMISSIVE mode by default.

Constructors

PeerAuthentication({String? apiVersion, String? kind, ObjectMeta? metadata, PeerAuthenticationSpec? spec, PeerAuthenticationStatus? status})
The main constructor.
const
PeerAuthentication.fromJson(Map<String, dynamic> json)
Creates a PeerAuthentication from JSON data.

Properties

apiVersion String?
APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources
final
hashCode int
The hash code for this object.
no setterinherited
kind String?
Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds
final
metadata ObjectMeta?
Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
spec PeerAuthenticationSpec?
Spec defines the desired identities of object.
final
status PeerAuthenticationStatus?
Status is the current status of this object.
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited

Static Methods

listFromJson(Iterable<Map<String, dynamic>> list) List<PeerAuthentication>
Creates a list of PeerAuthentication from JSON data.