Allow self-signed certificates for OpenMetadata catalog (internal networks)
OpenMetadata catalog uses self-signed HTTPS certificate on internal networks. Disable SSL verification in httpx client and suppress related warnings.
This commit is contained in:
parent
c5c24cb45b
commit
a7faf70cb3
1 changed files with 5 additions and 0 deletions
|
|
@ -10,9 +10,13 @@ Low-level HTTP wrapper for OpenMetadata REST API with these functions:
|
|||
|
||||
import logging
|
||||
from typing import Dict, List, Optional, Any
|
||||
import warnings
|
||||
|
||||
import httpx
|
||||
|
||||
# Suppress SSL warnings for self-signed certificates
|
||||
warnings.filterwarnings("ignore", message="Unverified HTTPS request")
|
||||
|
||||
|
||||
logger = logging.getLogger(__name__)
|
||||
|
||||
|
|
@ -50,6 +54,7 @@ class OpenMetadataClient:
|
|||
"Content-Type": "application/json",
|
||||
},
|
||||
timeout=timeout,
|
||||
verify=False, # Allow self-signed certificates (internal networks)
|
||||
)
|
||||
|
||||
def get_table(self, fqn: str) -> Dict[str, Any]:
|
||||
|
|
|
|||
Loading…
Reference in a new issue