Skip to content

submission: stop logging secret names at INFO#169

Open
KartikP wants to merge 1 commit into
mainfrom
kp/log-suppress-secret-name
Open

submission: stop logging secret names at INFO#169
KartikP wants to merge 1 commit into
mainfrom
kp/log-suppress-secret-name

Conversation

@KartikP

@KartikP KartikP commented Jun 23, 2026

Copy link
Copy Markdown
Contributor

Container scoring logs were printing the AWS secret name on every db connect (3 call sites in endpoints.py + 3 lines in utils.get_secret). The name isn't the value, but exposing it leaks deployment topology (prod vs staging) to anyone with build-log access. Demote to DEBUG everywhere.

The secret name (not value) was being logged from multiple endpoints
and from get_secret(). Demote to DEBUG so it stays available locally
without leaking the deployment topology to anyone with build-log access.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant