Skip to content

Commit b5102e7

Browse files
Potential fix for code scanning alert no. 95: Clear-text logging of sensitive information
Co-authored-by: Copilot Autofix powered by AI <62310815+github-advanced-security[bot]@users.noreply.github.com>
1 parent 699808f commit b5102e7

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

services/web/server/src/simcore_service_webserver/garbage_collector/_tasks_api_keys.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,8 @@
2121
async def _prune_expired_api_keys(app: web.Application):
2222
if deleted := await api_keys_service.prune_expired_api_keys(app):
2323
# broadcast force logout of user_id
24-
for api_key in deleted:
25-
_logger.info("API-key %s expired and was removed", f"{api_key=}")
24+
for _ in deleted:
25+
_logger.info("Expired API key was removed")
2626

2727
else:
2828
_logger.info("No API keys expired")

0 commit comments

Comments
 (0)