Skip to content

Avoid logging OAuth1 access tokens#17

Open
Audacity88 wants to merge 1 commit into
xdevplatform:masterfrom
EyrieCommander:codex/fix-oauth-token-log
Open

Avoid logging OAuth1 access tokens#17
Audacity88 wants to merge 1 commit into
xdevplatform:masterfrom
EyrieCommander:codex/fix-oauth-token-log

Conversation

@Audacity88
Copy link
Copy Markdown

Summary

Stop logging the OAuth1 access token value at INFO level after the browser OAuth flow completes.

Why

The existing log line persists a long-lived credential in normal logs for users who run the server under log redirection, containers, process supervisors, or hosted logging pipelines. The token is only needed to construct the OAuth1 client and does not need to be emitted for normal diagnostics.

Fixes #12.

Validation

  • python3 -c 'compile(open("server.py", encoding="utf-8").read(), "server.py", "exec")'
  • git diff --check

@CLAassistant
Copy link
Copy Markdown

CLAassistant commented May 18, 2026

CLA assistant check
All committers have signed the CLA.

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.

server.py: LOGGER.info leaks OAuth1 access token to logs at default log level

2 participants