Skip to content

Notification token is not masked when log is set to debug level #4475

@annamauhaydh

Description

@annamauhaydh

Checklist:

  • I've included steps to reproduce the bug.
  • I've included the version of argo rollouts.

Describe the bug

To Reproduce

  • set the slack notification with slack token
  • set the log level in argo-rollout deployment to debug
  • trigger the notification (e.g. change the image tag)

Expected behavior

Notification token should be empty or masked in the logs

Screenshots

Version

v1.8.3

Logs

time="2025-10-01T13:34:33Z" level=debug msg="Sending request: POST /api/chat.postMessage HTTP/1.1\r\nHost: slack.com\r\nContent-Type: application/x-www-form-urlencoded\r\n\r\
...
plain_text<text>&channel=<channel>&text=<text>&token=<token> service=slack

Paste the logs from the rollout controller

Logs for the entire controller:

kubectl logs -n argo-rollouts deployment/argo-rollouts

Logs for a specific rollout:

kubectl logs -n argo-rollouts deployment/argo-rollouts | grep rollout=<ROLLOUTNAME


---
<!-- Issue Author: Don't delete this message to encourage other users to support your issue! -->
**Message from the maintainers**:

Impacted by this bug? Give it a 👍. We prioritize the issues with the most 👍.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions