Re: [PR] Add config option [secrets]backends_order [airflow]

2025-02-15 Thread via GitHub


potiuk commented on PR #45931:
URL: https://github.com/apache/airflow/pull/45931#issuecomment-2661094214

   Yeah. I think that might be 3.1 


-- 
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-unsubscr...@airflow.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org



Re: [PR] Add config option [secrets]backends_order [airflow]

2025-02-13 Thread via GitHub


eladkal commented on PR #45931:
URL: https://github.com/apache/airflow/pull/45931#issuecomment-2656887152

   We are on feature freeze for Airflow 3.
   https://lists.apache.org/thread/r26htzl0w3th7pw0l1y31g6s14qbtwwt


-- 
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-unsubscr...@airflow.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org



Re: [PR] Add config option [secrets]backends_order [airflow]

2025-02-13 Thread via GitHub


VladaZakharova commented on PR #45931:
URL: https://github.com/apache/airflow/pull/45931#issuecomment-2656190070

   Hi @potiuk @eladkal ! Are there some other changes we need to make here? Or 
we can merge this one?


-- 
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-unsubscr...@airflow.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org



Re: [PR] Add config option [secrets]backends_order [airflow]

2025-02-06 Thread via GitHub


VladaZakharova commented on PR #45931:
URL: https://github.com/apache/airflow/pull/45931#issuecomment-2639426046

   hi there! 
   @potiuk 
   Can we merge this one please?


-- 
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-unsubscr...@airflow.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org



Re: [PR] Add config option [secrets]backends_order [airflow]

2025-01-25 Thread via GitHub


potiuk commented on PR #45931:
URL: https://github.com/apache/airflow/pull/45931#issuecomment-2614079232

   @eladkal ?


-- 
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-unsubscr...@airflow.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org



Re: [PR] Add config option [secrets]backends_order [airflow]

2025-01-25 Thread via GitHub


potiuk commented on PR #45931:
URL: https://github.com/apache/airflow/pull/45931#issuecomment-2614079156

   I was initially against making it configurable, but seeing the simplicity 
and flexibility, I am in.


-- 
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-unsubscr...@airflow.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org



Re: [PR] Add config option [secrets]backends_order [airflow]

2025-01-23 Thread via GitHub


moiseenkov commented on PR #45931:
URL: https://github.com/apache/airflow/pull/45931#issuecomment-2609151622

   @eladkal , please take a look at the updates.


-- 
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-unsubscr...@airflow.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org



Re: [PR] Add config option [secrets]backends_order [airflow]

2025-01-22 Thread via GitHub


moiseenkov commented on code in PR #45931:
URL: https://github.com/apache/airflow/pull/45931#discussion_r1925348243


##
airflow/config_templates/config.yml:
##
@@ -1296,6 +1296,15 @@ secrets:
   sensitive: true
   example: ~
   default: ""
+backends_order:
+  description: |
+Comma-separated list of secret backends. These backends will be used 
in the order they are specified.
+Please note that the `environment_variable` and `metastore` are 
required values and cannot be removed
+from the list. Supported values are: `custom`, `environment_variable`, 
`metastore`.
+  version_added: 2.10.5
+  type: string
+  example: ~
+  default: "custom,environment_variable,metastore"

Review Comment:
   Thanks for noticing that - I updated the documentation and the new option 
description.
   
   Speaking of breaking changes, I'm pretty sure that the default behavior is 
identical the current one, because the existing implementation used to check 
any custom backend first, and then load `EnvironmentVariablesBackend` and 
`MetastoreBackend`.
   
   ```python
   DEFAULT_SECRETS_SEARCH_PATH = [
   "airflow.secrets.environment_variables.EnvironmentVariablesBackend",
   "airflow.secrets.metastore.MetastoreBackend",
   ]
   
   ...
   
   def initialize_secrets_backends() -> list[BaseSecretsBackend]:
   ...
   
   backend_list = []
   
   custom_secret_backend = get_custom_secret_backend()
   
   if custom_secret_backend is not None:
   backend_list.append(custom_secret_backend)
   
   for class_name in DEFAULT_SECRETS_SEARCH_PATH:
   secrets_backend_cls = import_string(class_name)
   backend_list.append(secrets_backend_cls())
   
   return backend_list
   ```



-- 
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-unsubscr...@airflow.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org



Re: [PR] Add config option [secrets]backends_order [airflow]

2025-01-22 Thread via GitHub


moiseenkov commented on code in PR #45931:
URL: https://github.com/apache/airflow/pull/45931#discussion_r1925339026


##
airflow/config_templates/config.yml:
##
@@ -1296,6 +1296,15 @@ secrets:
   sensitive: true
   example: ~
   default: ""
+backends_order:
+  description: |
+Comma-separated list of secret backends. These backends will be used 
in the order they are specified.
+Please note that the `environment_variable` and `metastore` are 
required values and cannot be removed
+from the list. Supported values are: `custom`, `environment_variable`, 
`metastore`.
+  version_added: 2.10.5

Review Comment:
   Thanks for pointing that out. Changed to the version 3.0.0.



-- 
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-unsubscr...@airflow.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org



Re: [PR] Add config option [secrets]backends_order [airflow]

2025-01-22 Thread via GitHub


eladkal commented on code in PR #45931:
URL: https://github.com/apache/airflow/pull/45931#discussion_r1925299794


##
airflow/config_templates/config.yml:
##
@@ -1296,6 +1296,15 @@ secrets:
   sensitive: true
   example: ~
   default: ""
+backends_order:
+  description: |
+Comma-separated list of secret backends. These backends will be used 
in the order they are specified.
+Please note that the `environment_variable` and `metastore` are 
required values and cannot be removed
+from the list. Supported values are: `custom`, `environment_variable`, 
`metastore`.
+  version_added: 2.10.5
+  type: string
+  example: ~
+  default: "custom,environment_variable,metastore"

Review Comment:
   isn't this breaking change? What is custom? Is it for rolling secret backend?
   The current order is not the same as you listed:
   
   > If you enable an alternative secrets backend, it will be searched first, 
followed by environment variables, then metastore. This search ordering is not 
configurable.
   
   Also you need to make doc changes to explain about this new functionality
   
   
https://airflow.apache.org/docs/apache-airflow/stable/security/secrets/secrets-backend/index.html#search-path



##
airflow/config_templates/config.yml:
##
@@ -1296,6 +1296,15 @@ secrets:
   sensitive: true
   example: ~
   default: ""
+backends_order:
+  description: |
+Comma-separated list of secret backends. These backends will be used 
in the order they are specified.
+Please note that the `environment_variable` and `metastore` are 
required values and cannot be removed
+from the list. Supported values are: `custom`, `environment_variable`, 
`metastore`.
+  version_added: 2.10.5

Review Comment:
   This can not be in 2.10.5 nor in 2.11 it's a new feature. Will have to wait 
for Airflow 3.



-- 
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-unsubscr...@airflow.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org