Open mik-laj opened 4 years ago
If a connection defined in one of those hidden options. What will happen if I will try to define a new connection in the UI with the exact name?
If a connection defined in one of those hidden options. What will happen if I will try to define a new connection in the UI with the exact name?
@randr97 For security reasons, we should only display database entries in the Web UI. The entries that are configured in the database are user-controlled entries and the user can fully manage them.
@JeffryMAC will be created but never used, because backend entries with higher priority will be used. https://github.com/apache/airflow/blob/c58d60635dbab1a91f38e989f72f91645cb7eb62/airflow/configuration.py#L985-L1001 https://github.com/apache/airflow/blob/c58d60635dbab1a91f38e989f72f91645cb7eb62/airflow/secrets/__init__.py#L29-L32 https://github.com/apache/airflow/blob/c58d60635dbab1a91f38e989f72f91645cb7eb62/airflow/models/connection.py#L386-L397
Yes we should definitely not display Connections and Variable coming from Secrets Backend, I am happy with us showing just the keys for debugging but not values
+1. It would be nice to prevent creating one if there is a secret backend one already but it's not really necessary
@blag will take care of it for 2.3.0 if no-one does it by then
Hello,
Currently, you can define a new connection/variable in several ways.
However, only the connections defined with the Metabase are visible from the Web UI. This is surprising among users because a natural way to check connection/variable configuration is to use the Web UI, which may not show complete information. I would be happy if there was a warning stating that not all connections / variables are visible when the user has a configured secret backend or when the
AIRFLOW__CONN_*
/AIRFLOW__VAR_*
environment variable is defined. This should appear above the list of connections/variables.This change is intended to improve the user experience.
Best regards, Kamil Breguła