You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@airflow.apache.org by "hussein-awala (via GitHub)" <gi...@apache.org> on 2023/02/23 23:21:26 UTC
[GitHub] [airflow] hussein-awala opened a new pull request, #29734: Support multiple mount points in Vault backend secret
hussein-awala opened a new pull request, #29734:
URL: https://github.com/apache/airflow/pull/29734
closes: #29666
---
Currently we can setup Valut backend secret with a single mount point, and we cannot read variables/secrets from outside this mount point.
This PR allows users to setup Valut backend secret with `None` mount point, and provide it as a prefix of secret path:
```python
Variables.get("mount_point/path/to/secret") # -> mount point: mount_point & secret path: path/to/secret
Connection.get_connection_from_secrets("mount_point/path/to/secret") # -> mount point: mount_point & secret path: path/to/secret
```
Configuration:
```python
[secrets]
backend = airflow.providers.hashicorp.secrets.vault.VaultBackend
backend_kwargs = {"connections_path": "connections", "variables_path": "variables", "mount_point": None, "url": "http://127.0.0.1:8200"}
```
--
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: commits-unsubscribe@airflow.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [airflow] potiuk merged pull request #29734: Support multiple mount points in Vault backend secret
Posted by "potiuk (via GitHub)" <gi...@apache.org>.
potiuk merged PR #29734:
URL: https://github.com/apache/airflow/pull/29734
--
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: commits-unsubscribe@airflow.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org