clear-skies-aws 2.0.11__py3-none-any.whl → 2.0.13__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,118 @@
1
+ """
2
+ AWS Parameter Store implementation of SecretCache.
3
+
4
+ This module provides a cache storage backend using AWS Systems Manager Parameter Store.
5
+ """
6
+
7
+ from __future__ import annotations
8
+
9
+ from clearskies.configs import Boolean, String
10
+ from clearskies.decorators import parameters_to_properties
11
+ from clearskies.di.inject import ByClass
12
+ from clearskies.secrets.cache_storage import SecretCache
13
+
14
+ from clearskies_aws.di import inject
15
+ from clearskies_aws.secrets import parameter_store
16
+
17
+
18
+ class ParameterStoreCache(SecretCache):
19
+ """
20
+ Cache storage backend using AWS Systems Manager Parameter Store.
21
+
22
+ This class implements the SecretCache interface to store cached secrets in AWS
23
+ Parameter Store. Paths are automatically sanitized by the underlying ParameterStore
24
+ to comply with SSM parameter naming requirements.
25
+
26
+ ### Example Usage
27
+
28
+ ```python
29
+ from clearskies.secrets import Akeyless
30
+ from clearskies_aws.secrets.secrets_cache import ParameterStoreCache
31
+
32
+ cache = ParameterStoreCache(prefix="/cache/secrets")
33
+ akeyless = Akeyless(
34
+ access_id="p-xxx",
35
+ access_type="aws_iam",
36
+ cache_storage=cache,
37
+ )
38
+
39
+ # First call fetches from Akeyless and caches in Parameter Store
40
+ secret = akeyless.get("/path/to/secret")
41
+
42
+ # Subsequent calls return from Parameter Store cache
43
+ secret = akeyless.get("/path/to/secret")
44
+
45
+ # Force refresh bypasses cache
46
+ secret = akeyless.get("/path/to/secret", refresh=True)
47
+ ```
48
+ """
49
+
50
+ boto3 = inject.Boto3()
51
+
52
+ parameter_store = ByClass(parameter_store.ParameterStore)
53
+
54
+ prefix = String(default=None)
55
+ allow_cleanup = Boolean(default=False)
56
+
57
+ @parameters_to_properties
58
+ def __init__(self, prefix: str | None = None, allow_cleanup: bool = False):
59
+ """
60
+ Initialize the Parameter Store cache.
61
+
62
+ The prefix is prepended to all secret paths when storing in Parameter Store.
63
+ This helps organize cached secrets and avoid conflicts with other parameters.
64
+ """
65
+ super().__init__()
66
+
67
+ def _build_path(self, path: str) -> str:
68
+ """
69
+ Build the full parameter path by prepending the prefix.
70
+
71
+ The path is sanitized by the underlying ParameterStore.
72
+ """
73
+ return f"{self.prefix}/{path.lstrip('/')}"
74
+
75
+ def get(self, path: str) -> str | None:
76
+ """
77
+ Retrieve a cached secret value from Parameter Store.
78
+
79
+ Returns the cached secret value for the given path, or None if not found.
80
+ """
81
+ ssm_name = self._build_path(path)
82
+ return self.parameter_store.get(ssm_name, silent_if_not_found=True)
83
+
84
+ def set(self, path: str, value: str, ttl: int | None = None) -> None:
85
+ """
86
+ Store a secret value in Parameter Store.
87
+
88
+ Stores the secret value as a SecureString parameter. Note that Parameter Store
89
+ does not natively support TTL, so the ttl parameter is ignored. Consider using
90
+ a cleanup process or Lambda function to remove stale cached secrets.
91
+ """
92
+ ssm_name = self._build_path(path)
93
+ self.parameter_store.update(ssm_name, value)
94
+
95
+ def delete(self, path: str) -> None:
96
+ """
97
+ Remove a secret from the Parameter Store cache.
98
+
99
+ Deletes the parameter at the given path. Does nothing if the parameter
100
+ doesn't exist.
101
+ """
102
+ ssm_name = self._build_path(path)
103
+ self.parameter_store.delete(ssm_name)
104
+
105
+ def clear(self) -> None:
106
+ """
107
+ Remove all cached secrets from Parameter Store under the configured prefix.
108
+
109
+ This method deletes all parameters under the cache prefix. Use with caution
110
+ in production environments.
111
+ """
112
+ if not self.allow_cleanup:
113
+ raise RuntimeError(
114
+ "Clearing the Parameter Store cache is not allowed. Set allow_cleanup=True to enable this operation."
115
+ )
116
+ names = self.parameter_store.list_by_path(self.prefix, recursive=True)
117
+ if names:
118
+ self.parameter_store.delete_many(names)
@@ -1,5 +1,8 @@
1
1
  from __future__ import annotations
2
2
 
3
+ import re
4
+ from typing import Any
5
+
3
6
  from botocore.exceptions import ClientError
4
7
  from clearskies.exceptions.not_found import NotFound
5
8
  from types_boto3_ssm import SSMClient
@@ -7,19 +10,84 @@ from types_boto3_ssm import SSMClient
7
10
  from clearskies_aws.secrets import secrets
8
11
 
9
12
 
10
- class ParameterStore(secrets.Secrets):
13
+ class ParameterStore(secrets.Secrets[SSMClient]):
14
+ """
15
+ Backend for managing secrets using AWS Systems Manager Parameter Store.
16
+
17
+ This class provides integration with AWS SSM Parameter Store, allowing you to store,
18
+ retrieve, update, and delete secrets. All values are stored as SecureString by default
19
+ for security.
20
+
21
+ Paths are automatically sanitized to comply with SSM parameter naming requirements.
22
+ AWS SSM parameter paths only allow: a-z, A-Z, 0-9, -, _, ., /, @, and :
23
+ Any disallowed characters in the path are replaced with hyphens.
24
+
25
+ ### Example Usage
26
+
27
+ ```python
28
+ from clearskies_aws.secrets import ParameterStore
29
+
30
+ secrets = ParameterStore()
31
+
32
+ # Create/update a secret (stored as SecureString)
33
+ secrets.update("/my-app/database-password", "super-secret")
34
+
35
+ # Get a secret
36
+ password = secrets.get("/my-app/database-password")
37
+
38
+ # Delete a secret
39
+ secrets.delete("/my-app/database-password")
40
+ ```
41
+ """
42
+
11
43
  ssm: SSMClient
12
44
 
13
45
  def __init__(self):
46
+ """Initialize the Parameter Store backend."""
14
47
  super().__init__()
15
- self.ssm = self.boto3.client("ssm", region_name=self.environment.get("AWS_REGION"))
48
+
49
+ def _sanitize_path(self, path: str) -> str:
50
+ """
51
+ Sanitize a secret path for use as an SSM parameter name.
52
+
53
+ AWS SSM parameter paths only allow a-z, A-Z, 0-9, -, _, ., /, @, and :
54
+ Any disallowed characters are replaced with hyphens.
55
+ """
56
+ return re.sub(r"[^a-zA-Z0-9\-_\./@:]", "-", path)
57
+
58
+ @property
59
+ def boto3_client(self) -> SSMClient:
60
+ """
61
+ Return the boto3 SSM client.
62
+
63
+ Creates a new client if one doesn't exist yet, using the AWS_REGION environment variable.
64
+ """
65
+ if hasattr(self, "ssm"):
66
+ return self.ssm
67
+ self.ssm = self.boto3.client(
68
+ "ssm",
69
+ region_name=self.environment.get("AWS_REGION"),
70
+ )
71
+ return self.ssm
16
72
 
17
73
  def create(self, path: str, value: str) -> bool:
74
+ """
75
+ Create a new parameter in Parameter Store.
76
+
77
+ This is an alias for update() since Parameter Store uses upsert semantics.
78
+ """
18
79
  return self.update(path, value)
19
80
 
20
81
  def get(self, path: str, silent_if_not_found: bool = False) -> str | None: # type: ignore[override]
82
+ """
83
+ Retrieve a parameter value from Parameter Store.
84
+
85
+ Returns the decrypted parameter value for the given path. If silent_if_not_found
86
+ is True, returns None when the parameter is not found instead of raising NotFound.
87
+ """
88
+ sanitized_path = self._sanitize_path(path)
21
89
  try:
22
- result = self.ssm.get_parameter(Name=path, WithDecryption=True)
90
+ result = self.boto3_client.get_parameter(Name=sanitized_path, WithDecryption=True)
23
91
  except ClientError as e:
24
92
  error = e.response.get("Error", {})
25
93
  if error.get("Code") == "ResourceNotFoundException":
@@ -30,23 +98,91 @@ class ParameterStore(secrets.Secrets):
30
98
  return result["Parameter"].get("Value", "")
31
99
 
32
100
  def list_secrets(self, path: str) -> list[str]:
33
- response = self.ssm.get_parameters_by_path(Path=path, Recursive=False)
101
+ """
102
+ List parameters at the given path.
103
+
104
+ Returns a list of parameter names at the specified path (non-recursive).
105
+ """
106
+ sanitized_path = self._sanitize_path(path)
107
+ response = self.boto3_client.get_parameters_by_path(Path=sanitized_path, Recursive=False)
34
108
  return [parameter["Name"] for parameter in response["Parameters"] if "Name" in parameter]
35
109
 
36
110
  def update(self, path: str, value: str) -> bool: # type: ignore[override]
37
- response = self.ssm.put_parameter(
38
- Name=path,
111
+ """
112
+ Update or create a secret as a SecureString.
113
+
114
+ Creates the parameter if it doesn't exist, or updates it if it does.
115
+ The value is stored as an encrypted SecureString using the default KMS key.
116
+ """
117
+ sanitized_path = self._sanitize_path(path)
118
+ self.boto3_client.put_parameter(
119
+ Name=sanitized_path,
39
120
  Value=value,
40
- Type="String",
121
+ Type="SecureString",
41
122
  Overwrite=True,
42
123
  )
43
124
  return True
44
125
 
45
126
  def upsert(self, path: str, value: str) -> bool: # type: ignore[override]
127
+ """
128
+ Create or update a secret.
129
+
130
+ This is an alias for update() since Parameter Store uses upsert semantics.
131
+ """
46
132
  return self.update(path, value)
47
133
 
134
+ def delete(self, path: str) -> bool:
135
+ """
136
+ Delete a parameter from Parameter Store.
137
+
138
+ Returns True if the parameter was deleted, False if it didn't exist.
139
+ """
140
+ sanitized_path = self._sanitize_path(path)
141
+ try:
142
+ self.boto3_client.delete_parameter(Name=sanitized_path)
143
+ return True
144
+ except ClientError as e:
145
+ error = e.response.get("Error", {})
146
+ if error.get("Code") == "ParameterNotFound":
147
+ return False
148
+ raise e
149
+
150
+ def delete_many(self, paths: list[str]) -> bool:
151
+ """
152
+ Delete multiple parameters from Parameter Store.
153
+
154
+ Deletes up to 10 parameters at a time (SSM limit). For larger lists,
155
+ recursively calls itself to delete in batches.
156
+ """
157
+ if not paths:
158
+ return True
159
+ sanitized_paths = [self._sanitize_path(p) for p in paths]
160
+ self.boto3_client.delete_parameters(Names=sanitized_paths[:10])
161
+ if len(sanitized_paths) > 10:
162
+ return self.delete_many(paths[10:])
163
+ return True
164
+
165
+ def list_by_path(self, path: str, recursive: bool = True) -> list[str]:
166
+ """
167
+ List all parameter names under a given path.
168
+
169
+ Returns a list of parameter names (not values) under the specified path.
170
+ Uses pagination to handle large result sets.
171
+ """
172
+ sanitized_path = self._sanitize_path(path)
173
+ names: list[str] = []
174
+ paginator = self.boto3_client.get_paginator("get_parameters_by_path")
175
+ for page in paginator.paginate(Path=sanitized_path, Recursive=recursive):
176
+ names.extend([param["Name"] for param in page.get("Parameters", [])])
177
+ return names
178
+
48
179
  def list_sub_folders(
49
180
  self,
50
181
  path: str,
51
- ) -> list[str]: # type: ignore[override]
182
+ ) -> list[Any]:
183
+ """
184
+ List sub-folders at the given path.
185
+
186
+ This operation is not supported by Parameter Store.
187
+ """
52
188
  raise NotImplementedError("Parameter store doesn't support list_sub_folders.")
@@ -1,12 +1,24 @@
1
1
  from __future__ import annotations
2
2
 
3
+ import profile
4
+ from typing import Generic, Protocol, TypeVar
5
+
3
6
  from clearskies.di.inject import Di, Environment
4
7
  from clearskies.secrets import Secrets as BaseSecrets
5
8
 
6
9
  from clearskies_aws.di import inject
7
10
 
8
11
 
9
- class Secrets(BaseSecrets):
12
+ class Boto3Client(Protocol):
13
+ """Protocol for boto3 clients to enable type-safe generic return types."""
14
+
15
+ ...
16
+
17
+
18
+ ClientT = TypeVar("ClientT", bound=Boto3Client)
19
+
20
+
21
+ class Secrets(BaseSecrets, Generic[ClientT]):
10
22
  boto3 = inject.Boto3()
11
23
  environment = Environment()
12
24
 
@@ -14,3 +26,8 @@ class Secrets(BaseSecrets):
14
26
  super().__init__()
15
27
  if not self.environment.get("AWS_REGION", True):
16
28
  raise ValueError("To use secrets manager you must use set the 'AWS_REGION' environment variable")
29
+
30
+ @property
31
+ def boto3_client(self) -> ClientT:
32
+ """Return the boto3 client for the secrets manager implementation."""
33
+ raise NotImplementedError("You must implement the client property in subclasses")
@@ -10,21 +10,69 @@ from types_boto3_secretsmanager.type_defs import SecretListEntryTypeDef
10
10
  from clearskies_aws.secrets import secrets
11
11
 
12
12
 
13
- class SecretsManager(secrets.Secrets):
13
+ class SecretsManager(secrets.Secrets[SecretsManagerClient]):
14
+ """
15
+ Backend for managing secrets using AWS Secrets Manager.
16
+
17
+ This class provides integration with AWS Secrets Manager, allowing you to store,
18
+ retrieve, update, and delete secrets. It supports versioning and KMS encryption.
19
+
20
+ ### Example Usage
21
+
22
+ ```python
23
+ from clearskies_aws.secrets import SecretsManager
24
+
25
+ secrets = SecretsManager()
26
+
27
+ # Create a new secret
28
+ secrets.create("my-app/database-password", "super-secret-password")
29
+
30
+ # Get a secret
31
+ password = secrets.get("my-app/database-password")
32
+
33
+ # Update a secret
34
+ secrets.update("my-app/database-password", "new-password")
35
+
36
+ # Delete a secret
37
+ secrets.delete("my-app/database-password")
38
+ ```
39
+ """
40
+
14
41
  secrets_manager: SecretsManagerClient
15
42
 
16
43
  def __init__(self):
44
+ """Initialize the Secrets Manager backend."""
17
45
  super().__init__()
18
- self.secrets_manager = self.boto3.client("secretsmanager", region_name=self.environment.get("AWS_REGION"))
46
+
47
+ @property
48
+ def boto3_client(self) -> SecretsManagerClient:
49
+ """
50
+ Return the boto3 Secrets Manager client.
51
+
52
+ Creates a new client if one doesn't exist yet, using the AWS_REGION environment variable.
53
+ """
54
+ if hasattr(self, "secrets_manager"):
55
+ return self.secrets_manager
56
+ self.secrets_manager = self.boto3.client(
57
+ "secretsmanager",
58
+ region_name=self.environment.get("AWS_REGION"),
59
+ )
60
+ return self.secrets_manager
19
61
 
20
62
  def create(self, secret_id: str, value: Any, kms_key_id: str | None = None) -> bool:
63
+ """
64
+ Create a new secret in Secrets Manager.
65
+
66
+ Creates a new secret with the given ID and value. Optionally encrypts the secret
67
+ with a custom KMS key. Returns True if the secret was created successfully.
68
+ """
21
69
  calling_parameters = {
22
70
  "SecretId": secret_id,
23
71
  "SecretString": value,
24
72
  "KmsKeyId": kms_key_id,
25
73
  }
26
74
  calling_parameters = {key: value for (key, value) in calling_parameters.items() if value}
27
- result = self.secrets_manager.create_secret(**calling_parameters)
75
+ result = self.boto3_client.create_secret(**calling_parameters)
28
76
  return bool(result.get("ARN"))
29
77
 
30
78
  def get( # type: ignore[override]
@@ -34,6 +82,13 @@ class SecretsManager(secrets.Secrets):
34
82
  version_stage: str | None = None,
35
83
  silent_if_not_found: bool = False,
36
84
  ) -> str | bytes | None:
85
+ """
86
+ Retrieve a secret value from Secrets Manager.
87
+
88
+ Returns the secret value for the given ID. Optionally retrieves a specific version
89
+ by version_id or version_stage. If silent_if_not_found is True, returns None when
90
+ the secret is not found instead of raising NotFound.
91
+ """
37
92
  calling_parameters = {"SecretId": secret_id}
38
93
 
39
94
  # Only add optional parameters if they are not None
@@ -43,7 +98,7 @@ class SecretsManager(secrets.Secrets):
43
98
  calling_parameters["VersionStage"] = version_stage
44
99
 
45
100
  try:
46
- result = self.secrets_manager.get_secret_value(**calling_parameters)
101
+ result = self.boto3_client.get_secret_value(**calling_parameters)
47
102
  except ClientError as e:
48
103
  error = e.response.get("Error", {})
49
104
  if error.get("Code") == "ResourceNotFoundException":
@@ -58,7 +113,12 @@ class SecretsManager(secrets.Secrets):
58
113
  return result.get("SecretBinary")
59
114
 
60
115
  def list_secrets(self, path: str) -> list[SecretListEntryTypeDef]: # type: ignore[override]
61
- results = self.secrets_manager.list_secrets(
116
+ """
117
+ List secrets matching the given path filter.
118
+
119
+ Returns a list of secret metadata entries that match the path filter.
120
+ """
121
+ results = self.boto3_client.list_secrets(
62
122
  Filters=[
63
123
  {
64
124
  "Key": "name",
@@ -69,6 +129,12 @@ class SecretsManager(secrets.Secrets):
69
129
  return results["SecretList"]
70
130
 
71
131
  def update(self, secret_id: str, value: str, kms_key_id: str | None = None) -> bool: # type: ignore[override]
132
+ """
133
+ Update an existing secret's value.
134
+
135
+ Updates the secret with the given ID to the new value. Optionally re-encrypts
136
+ with a different KMS key. Returns True if the update was successful.
137
+ """
72
138
  calling_parameters = {
73
139
  "SecretId": secret_id,
74
140
  "SecretString": value,
@@ -77,10 +143,16 @@ class SecretsManager(secrets.Secrets):
77
143
  # If no KMS key is provided, we should not include it in the parameters
78
144
  calling_parameters["KmsKeyId"] = kms_key_id
79
145
 
80
- result = self.secrets_manager.update_secret(**calling_parameters)
146
+ result = self.boto3_client.update_secret(**calling_parameters)
81
147
  return bool(result.get("ARN"))
82
148
 
83
149
  def upsert(self, secret_id: str, value: str, kms_key_id: str | None = None) -> bool: # type: ignore[override]
150
+ """
151
+ Create or update a secret value.
152
+
153
+ Creates a new version of the secret with the given value. This is useful for
154
+ rotating secrets. Returns True if the operation was successful.
155
+ """
84
156
  calling_parameters = {
85
157
  "SecretId": secret_id,
86
158
  "SecretString": value,
@@ -89,8 +161,33 @@ class SecretsManager(secrets.Secrets):
89
161
  # If no KMS key is provided, we should not include it in the parameters
90
162
  calling_parameters["KmsKeyId"] = kms_key_id
91
163
 
92
- result = self.secrets_manager.put_secret_value(**calling_parameters)
164
+ result = self.boto3_client.put_secret_value(**calling_parameters)
93
165
  return bool(result.get("ARN"))
94
166
 
167
+ def delete(self, secret_id: str, force_delete: bool = False) -> bool:
168
+ """
169
+ Delete a secret from Secrets Manager.
170
+
171
+ If force_delete is True, the secret is deleted immediately without recovery window.
172
+ Otherwise, the secret is scheduled for deletion with a 7-day recovery window.
173
+ Returns True if the secret was deleted, False if it didn't exist.
174
+ """
175
+ try:
176
+ if force_delete:
177
+ self.boto3_client.delete_secret(SecretId=secret_id, ForceDeleteWithoutRecovery=True)
178
+ else:
179
+ self.boto3_client.delete_secret(SecretId=secret_id)
180
+ return True
181
+ except ClientError as e:
182
+ error = e.response.get("Error", {})
183
+ if error.get("Code") == "ResourceNotFoundException":
184
+ return False
185
+ raise e
186
+
95
187
  def list_sub_folders(self, path: str, value: str) -> list[str]: # type: ignore[override]
188
+ """
189
+ List sub-folders at the given path.
190
+
191
+ This operation is not supported by Secrets Manager.
192
+ """
96
193
  raise NotImplementedError("Secrets Manager doesn't support list_sub_folders.")
@@ -1,62 +0,0 @@
1
- from .iam_db_auth import IAMDBAuth
2
- from .iam_db_auth_with_ssm import IAMDBAuthWithSSM
3
- from .mysql_connection_dynamic_producer_via_ssh_cert_bastion import MySQLConnectionDynamicProducerViaSSHCertBastion
4
- from .mysql_connection_dynamic_producer_via_ssm_bastion import MySQLConnectionDynamicProducerViaSSMBastion
5
-
6
-
7
- def mysql_connection_dynamic_producer_via_ssh_cert_bastion(
8
- producer_name=None,
9
- bastion_host=None,
10
- bastion_name=None,
11
- bastion_region=None,
12
- bastion_username=None,
13
- public_key_file_path=None,
14
- cert_issuer_name=None,
15
- database_host=None,
16
- database_name=None,
17
- local_proxy_port=None,
18
- ):
19
- return MySQLConnectionDynamicProducerViaSSHCertBastion(
20
- producer_name=producer_name,
21
- bastion_host=bastion_host,
22
- bastion_name=bastion_name,
23
- bastion_region=bastion_region,
24
- bastion_username=bastion_username,
25
- cert_issuer_name=cert_issuer_name,
26
- public_key_file_path=public_key_file_path,
27
- database_host=database_host,
28
- database_name=database_name,
29
- local_proxy_port=local_proxy_port,
30
- )
31
-
32
-
33
- def mysql_connection_dynamic_producer_via_ssm_bastion(
34
- producer_name=None,
35
- bastion_instance_id=None,
36
- bastion_name=None,
37
- bastion_region=None,
38
- bastion_username=None,
39
- public_key_file_path=None,
40
- database_host=None,
41
- database_name=None,
42
- local_proxy_port=None,
43
- ):
44
- return MySQLConnectionDynamicProducerViaSSMBastion(
45
- producer_name=producer_name,
46
- bastion_instance_id=bastion_instance_id,
47
- bastion_name=bastion_name,
48
- bastion_region=bastion_region,
49
- bastion_username=bastion_username,
50
- public_key_file_path=public_key_file_path,
51
- database_host=database_host,
52
- database_name=database_name,
53
- local_proxy_port=local_proxy_port,
54
- )
55
-
56
-
57
- def iam_db_auth():
58
- return IAMDBAuth()
59
-
60
-
61
- def iam_db_auth_with_ssm():
62
- return IAMDBAuthWithSSM()
@@ -1,39 +0,0 @@
1
- from __future__ import annotations
2
-
3
- import os
4
-
5
- import clearskies
6
-
7
-
8
- class IAMDBAuth(clearskies.di.AdditionalConfig):
9
- def provide_boto3(self):
10
- import boto3
11
-
12
- return boto3
13
-
14
- def provide_connection_details(self, environment, boto3):
15
- """
16
- Make configuration values and environment variables customizable.
17
-
18
- Allows both the values and the environment variable names to be set for flexible configuration.
19
-
20
- Returns:
21
- dict: Connection details for IAM DB authentication.
22
- """
23
- endpoint = environment.get("db_endpoint")
24
- username = environment.get("db_username")
25
- database = environment.get("db_database")
26
- region = environment.get("AWS_REGION")
27
- ssl_ca_bundle_name = environment.get("ssl_ca_bundle_filename")
28
- os.environ["LIBMYSQL_ENABLE_CLEARTEXT_PLUGIN"] = "1"
29
-
30
- rds_api = boto3.Session().client("rds")
31
- rds_token = rds_api.generate_db_auth_token(DBHostname=endpoint, Port="3306", DBUsername=username, Region=region)
32
-
33
- return {
34
- "username": username,
35
- "password": rds_token,
36
- "host": endpoint,
37
- "database": database,
38
- "ssl_ca": ssl_ca_bundle_name,
39
- }