choo121600 commented on issue #59298:
URL: https://github.com/apache/airflow/issues/59298#issuecomment-3673303629
After looking into the issue, it seems that the CLI and the UI have
different causes.
The issue I found is in the connections_get and connections_test CLI
commands. These commands were not setting the `_AIRFLOW_PROCESS_CONTEXT=server`
environment variable.
This variable is used by the Secrets Backend system to decide whether to use
the MetastoreBackend (server context) or another backend (client context).
Because the process context was not set correctly, the CLI ended up using
the wrong Secrets Backend.
In the CLI, this issue can be fixed by setting
`_AIRFLOW_PROCESS_CONTEXT=server`.
I created PR #59624 to fix this issue.
For the UI, this looks like a separate problem related to masking("***"), so
it would be better to handle it in a different PR.
I plan to work on that as a follow-up.
--
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]