Skip to content

Commit

Permalink
Set SSL verification default to True
Browse files Browse the repository at this point in the history
  • Loading branch information
mdesmet committed Nov 1, 2024
1 parent 5e6331c commit 3aa6f1f
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions dbt/adapters/trino/connections.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
from dataclasses import dataclass, field
from datetime import date, datetime
from enum import Enum
from typing import Any, Dict, List, Optional
from typing import Any, Dict, List, Optional, Union

import sqlparse
import trino
Expand Down Expand Up @@ -99,7 +99,7 @@ class TrinoNoneCredentials(TrinoCredentials):
user: str
client_tags: Optional[List[str]] = None
roles: Optional[Dict[str, str]] = None
cert: Optional[str] = None
cert: Optional[Union[str, bool]] = True
http_scheme: HttpScheme = HttpScheme.HTTP
http_headers: Optional[Dict[str, str]] = None
session_properties: Dict[str, Any] = field(default_factory=dict)
Expand All @@ -124,7 +124,7 @@ class TrinoCertificateCredentials(TrinoCredentials):
user: Optional[str] = None
client_tags: Optional[List[str]] = None
roles: Optional[Dict[str, str]] = None
cert: Optional[str] = None
cert: Optional[Union[str, bool]] = True
http_headers: Optional[Dict[str, str]] = None
session_properties: Dict[str, Any] = field(default_factory=dict)
prepared_statements_enabled: bool = PREPARED_STATEMENTS_ENABLED_DEFAULT
Expand Down Expand Up @@ -154,7 +154,7 @@ class TrinoLdapCredentials(TrinoCredentials):
impersonation_user: Optional[str] = None
client_tags: Optional[List[str]] = None
roles: Optional[Dict[str, str]] = None
cert: Optional[str] = None
cert: Optional[Union[str, bool]] = True
http_headers: Optional[Dict[str, str]] = None
session_properties: Dict[str, Any] = field(default_factory=dict)
prepared_statements_enabled: bool = PREPARED_STATEMENTS_ENABLED_DEFAULT
Expand Down Expand Up @@ -185,7 +185,7 @@ class TrinoKerberosCredentials(TrinoCredentials):
krb5_config: Optional[str] = None
service_name: Optional[str] = "trino"
mutual_authentication: Optional[bool] = False
cert: Optional[str] = None
cert: Optional[Union[str, bool]] = True
http_headers: Optional[Dict[str, str]] = None
force_preemptive: Optional[bool] = False
hostname_override: Optional[str] = None
Expand Down Expand Up @@ -227,7 +227,7 @@ class TrinoJwtCredentials(TrinoCredentials):
user: Optional[str] = None
client_tags: Optional[List[str]] = None
roles: Optional[Dict[str, str]] = None
cert: Optional[str] = None
cert: Optional[Union[str, bool]] = True
http_headers: Optional[Dict[str, str]] = None
session_properties: Dict[str, Any] = field(default_factory=dict)
prepared_statements_enabled: bool = PREPARED_STATEMENTS_ENABLED_DEFAULT
Expand All @@ -253,7 +253,7 @@ class TrinoOauthCredentials(TrinoCredentials):
user: Optional[str] = None
client_tags: Optional[List[str]] = None
roles: Optional[Dict[str, str]] = None
cert: Optional[str] = None
cert: Optional[Union[str, bool]] = True
http_headers: Optional[Dict[str, str]] = None
session_properties: Dict[str, Any] = field(default_factory=dict)
prepared_statements_enabled: bool = PREPARED_STATEMENTS_ENABLED_DEFAULT
Expand Down Expand Up @@ -282,7 +282,7 @@ class TrinoOauthConsoleCredentials(TrinoCredentials):
user: Optional[str] = None
client_tags: Optional[List[str]] = None
roles: Optional[Dict[str, str]] = None
cert: Optional[str] = None
cert: Optional[Union[str, bool]] = True
http_headers: Optional[Dict[str, str]] = None
session_properties: Dict[str, Any] = field(default_factory=dict)
prepared_statements_enabled: bool = PREPARED_STATEMENTS_ENABLED_DEFAULT
Expand Down

0 comments on commit 3aa6f1f

Please sign in to comment.