Skip to content

fix: redact credentials in log messages #64

Closed

Description

@uniqueg

Some log messages include whole objects, and with them their credentials:

  • POST /repositories logs the new repository, including its access_token (pubgrade/modules/endpoints/repositories.py).
  • POST /users/register logs the new user, including its user_access_token (pubgrade/modules/endpoints/users.py).
  • Debug messages while storing subscriptions and builds include the subscription's access_token and the build's dockerhub_token (subscriptions.py, builds.py).
  • Creating a build pod logs the created pod, whose environment holds the repository's access token, and errors of the Kubernetes API log the whole response (builds.py).

Log messages should name objects by their identifiers only, and Kubernetes API errors by status and reason.

Done when no log message contains access tokens or other credentials, with tests that check the log records of these paths.

Activity

  1. added
    priority: medium
    status: in progress
    type: bug
    workload: hours
    on Nov 6, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    priority: mediumstatus: in progresstype: bugworkload: hours

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions