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:
Petr 2026-03-12 14:12:44 +01:00
parent c5c24cb45b
commit a7faf70cb3

View file

@ -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]: