github-advanced-security[bot] commented on code in PR #57372:
URL: https://github.com/apache/airflow/pull/57372#discussion_r2466989919
##########
providers/edge3/src/airflow/providers/edge3/cli/worker.py:
##########
@@ -176,7 +176,19 @@
return EdgeWorkerState.IDLE
@staticmethod
- def _run_job_via_supervisor(workload) -> int:
+ @cache
+ def _execution_api_server_url() -> str:
+ """Get the execution api server url from config or environment."""
+ api_url = conf.get("edge", "api_url")
+ execution_api_server_url = conf.get("core",
"execution_api_server_url", fallback="")
+ if not execution_api_server_url and api_url:
+ # Derive execution api url from edge api url as fallback
+ execution_api_server_url =
api_url.replace("edge_worker/v1/rpcapi", "execution")
+ logger.info("Using execution api server url: %s",
execution_api_server_url)
Review Comment:
## Clear-text logging of sensitive information
This expression logs [sensitive data (secret)](1) as clear text.
This expression logs [sensitive data (secret)](2) as clear text.
[Show more
details](https://github.com/apache/airflow/security/code-scanning/541)
--
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]