GitHub user dor-schreiber added a comment to the discussion: Custom secret 
backend issue

Hi @romantsovmike
I wasn't having much luck with it. Iv'e decided to drop the secret manager 
option for local development and use `LocalFilesystemBackend` for now.
Another solution I have is to add support in the CloudSecretManagerBackend for 
ignoring keys:
```py
class CloudSecretManagerBackend(BaseSecretsBackend, LoggingMixin):
   def __init__(
        self,
       ...
      ignore_keys: Sequence[str] | None = None,
        **kwargs,
    ) -> None:
      ...

    #example for one of the get functions
    def get_variable(self, key: str) -> str | None:
        if self.variables_prefix is None:
            return None

        if key in ignore_keys:
            return None

        return self._get_secret(self.variables_prefix, key)
```

The main issue with my request is that the flow of the class is that he access 
the secret manager first always so we don't have the option to override the 
same key.

@potiuk WDYT about the `ignore_keys`?

GitHub link: 
https://github.com/apache/airflow/discussions/43880#discussioncomment-11318768

----
This is an automatically sent email for [email protected].
To unsubscribe, please send an email to: [email protected]

Reply via email to