From 6ee7d9ed5a97978939206b549bd60c0e139a1034 Mon Sep 17 00:00:00 2001 From: alafanechere Date: Fri, 17 May 2024 20:10:10 +0200 Subject: [PATCH] iwp --- .../connectors/pipelines/pipelines/models/secrets.py | 11 ----------- 1 file changed, 11 deletions(-) diff --git a/airbyte-ci/connectors/pipelines/pipelines/models/secrets.py b/airbyte-ci/connectors/pipelines/pipelines/models/secrets.py index 062fcc0edd44..d499b2cbec8f 100644 --- a/airbyte-ci/connectors/pipelines/pipelines/models/secrets.py +++ b/airbyte-ci/connectors/pipelines/pipelines/models/secrets.py @@ -21,19 +21,12 @@ class SecretNotFoundError(Exception): class SecretStore(ABC): - @property - @abstractmethod - def name(self): - raise NotImplementedError() - @abstractmethod def fetch_secret(self, name: str) -> str: raise NotImplementedError() class GSMSecretStore(SecretStore): - - def __init__(self, gcp_credentials: Secret) -> None: service_account_info = json.loads(gcp_credentials.value) credentials = service_account.Credentials.from_service_account_info(service_account_info) @@ -62,8 +55,6 @@ def fetch_secret(self, name: str) -> str: class EnvVarSecretStore(SecretStore): - - def fetch_secret(self, name: str) -> str: try: return os.environ[name] @@ -72,7 +63,6 @@ def fetch_secret(self, name: str) -> str: class LocalDirectorySecretStore(SecretStore): - def __init__(self, local_directory_path: Path) -> None: if not local_directory_path.exists() or not local_directory_path.is_dir(): raise ValueError(f"The path {local_directory_path} does not exists on your filesystem or is not a directory.") @@ -88,7 +78,6 @@ def fetch_secret(self, name: str) -> str: class InMemorySecretStore(SecretStore): - def __init__(self) -> None: self._store: Dict[str, str] = {}