kurtrwall commented on issue #41512:
URL: https://github.com/apache/airflow/issues/41512#issuecomment-2568193432
This is just not implemented for the LocalFilesystemBackend unfortunately.
I'm not sure if you could consider it a bug, per se, but it's certainly implied
it should work in the documentation (IIRC). Create a pip installable secrets
backend yourself, here's the code I use and it works well, though you should
know it will leak secrets to anyone with access to the `airflow config` CLI.
```python
class YourLocalFilesystemBackend(LocalFilesystemBackend):
"""Airflow filesystem secrets backend that can pull config values from
secrets"""
def get_config(self, key: str) -> str | None:
config = super().get_config(key)
if config is not None:
return config
var = self.get_variable(key)
if var is not None:
return var
conn = self.get_connection(key)
if conn is not None:
return conn.get_uri()
```
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]