VirtualServiceMutualTransportLayerSecurityDetails

class oci.service_mesh.models.VirtualServiceMutualTransportLayerSecurityDetails(**kwargs)

Bases: object

The mTLS authentication mode to use when receiving requests from other virtual services or ingress gateways within the mesh.

Methods

__init__(**kwargs) Initializes a new VirtualServiceMutualTransportLayerSecurityDetails object with values from keyword arguments.

Attributes

maximum_validity Gets the maximum_validity of this VirtualServiceMutualTransportLayerSecurityDetails.
mode [Required] Gets the mode of this VirtualServiceMutualTransportLayerSecurityDetails.
__init__(**kwargs)

Initializes a new VirtualServiceMutualTransportLayerSecurityDetails object with values from keyword arguments. The following keyword arguments are supported (corresponding to the getters/setters of this class):

Parameters:
  • maximum_validity (int) – The value to assign to the maximum_validity property of this VirtualServiceMutualTransportLayerSecurityDetails.
  • mode (str) – The value to assign to the mode property of this VirtualServiceMutualTransportLayerSecurityDetails.
maximum_validity

Gets the maximum_validity of this VirtualServiceMutualTransportLayerSecurityDetails. The number of days the mTLS certificate is valid. This value should be less than the Maximum Validity Duration for Certificates (Days) setting on the Certificate Authority associated with this Mesh. The certificate will be automatically renewed after 2/3 of the validity period, so a certificate with a maximum validity of 45 days will be renewed every 30 days.

Returns:The maximum_validity of this VirtualServiceMutualTransportLayerSecurityDetails.
Return type:int
mode

[Required] Gets the mode of this VirtualServiceMutualTransportLayerSecurityDetails. DISABLED: Connection is not tunneled. PERMISSIVE: Connection can be either plaintext or an mTLS tunnel. STRICT: Connection is an mTLS tunnel. Clients without a valid certificate will be rejected.

Returns:The mode of this VirtualServiceMutualTransportLayerSecurityDetails.
Return type:str