github-advanced-security[bot] commented on code in PR #48827:
URL: https://github.com/apache/airflow/pull/48827#discussion_r2033543387
##########
providers/fab/src/airflow/providers/fab/www/utils.py:
##########
@@ -51,6 +53,20 @@
"DELETE": ACTION_CAN_DELETE,
"MENU": ACTION_CAN_ACCESS_MENU,
}
+log = logging.getLogger(__name__)
+
+
+def get_session_lifetime_config():
+ """Get session timeout configs and handle outdated configs gracefully."""
+ session_lifetime_minutes = conf.get("fab", "session_lifetime_minutes",
fallback=None)
+ minutes_per_day = 24 * 60
+ if not session_lifetime_minutes:
+ session_lifetime_days = 30
+ session_lifetime_minutes = minutes_per_day * session_lifetime_days
+
+ log.debug("User session lifetime is set to %s minutes.",
session_lifetime_minutes)
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/460)
--
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]