Skip to content

Commit

Permalink
refactor: ECP Config schema update. Googlers see go/enterpise-cert-co…
Browse files Browse the repository at this point in the history
…nfig (#1152)

* refactor: ECP Config schema update. Googlers see go/enterpise-cert-config
  • Loading branch information
clundin25 committed Sep 26, 2022
1 parent 78d3790 commit 45313ac
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 7 deletions.
8 changes: 4 additions & 4 deletions google/auth/transport/_custom_tls_signer.py
Expand Up @@ -192,8 +192,8 @@ def __init__(self, enterprise_cert_file_path):
{
"libs": {
"signer_library": "...",
"offload_library": "..."
"ecp_client": "...",
"tls_offload": "..."
}
}
"""
Expand All @@ -206,8 +206,8 @@ def load_libraries(self):
with open(self._enterprise_cert_file_path, "r") as f:
enterprise_cert_json = json.load(f)
libs = enterprise_cert_json["libs"]
signer_library = libs["signer_library"]
offload_library = libs["offload_library"]
signer_library = libs["ecp_client"]
offload_library = libs["tls_offload"]
except (KeyError, ValueError) as caught_exc:
new_exc = exceptions.MutualTLSChannelError(
"enterprise cert file is invalid", caught_exc
Expand Down
Binary file modified system_tests/secrets.tar.enc
Binary file not shown.
6 changes: 3 additions & 3 deletions tests/data/enterprise_cert_valid.json
@@ -1,6 +1,6 @@
{
"libs": {
"signer_library": "/path/to/signer/lib",
"offload_library": "/path/to/offload/lib"
"ecp_client": "/path/to/signer/lib",
"tls_offload": "/path/to/offload/lib"
}
}
}

0 comments on commit 45313ac

Please sign in to comment.