Skip to content

Commit 8226651

Browse files
committed
add explanation to mtlsmds modes
1 parent 3689ea7 commit 8226651

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

google/auth/compute_engine/_mtls.py

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,12 @@ class MdsMtlsConfig:
3939

4040

4141
class MdsMtlsMode(enum.Enum):
42-
"""MDS mTLS mode."""
42+
"""MDS mTLS mode. Used to configure connection behavior when connecting to MDS.
43+
44+
STRICT: Always use HTTPS/mTLS. If certificates are not found locally, an error will be returned.
45+
NONE: Never use mTLS. Requests will use regular HTTP.
46+
DEFAULT: Use mTLS if certificates are found locally, otherwise use regular HTTP.
47+
"""
4348

4449
STRICT = "strict"
4550
NONE = "none"

0 commit comments

Comments
 (0)