jscheffl commented on code in PR #59998:
URL: https://github.com/apache/airflow/pull/59998#discussion_r2655949515
##########
airflow-core/src/airflow/api_fastapi/core_api/services/public/config.py:
##########
@@ -25,20 +25,16 @@
def _check_expose_config() -> bool:
- display_sensitive: bool | None = None
if conf.get("api", "expose_config").lower() == "non-sensitive-only":
expose_config = True
- display_sensitive = False
else:
expose_config = conf.getboolean("api", "expose_config")
- display_sensitive = True
if not expose_config:
raise HTTPException(
status_code=status.HTTP_403_FORBIDDEN,
detail="Your Airflow administrator chose not to expose the
configuration, most likely for security reasons.",
)
- return display_sensitive
Review Comment:
Sorry, please read a bit more context of the code and understand the
structure. Then make a proposal please how to fix.
If you miss understanding of the context or how to fix, please take another
issue to fix.
--
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]