Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Redact Job API token like other env vars #2834

Merged
merged 2 commits into from
Jun 13, 2024
Merged

Conversation

DrJosh9000
Copy link
Contributor

Description

Reduce confusion around having a _TOKEN env var around that should be redacted as configured, even though the risks associated with it leaking should be minimal.

Context

https://linear.app/buildkite/issue/PS-71/job-api-token-not-redacted-is-confusing-customers

Changes

  • Add the Job API token to the redactors if the name would have matched the configured redacted vars patterns
  • Move tests

Testing

  • Tests have run locally (with go test ./...). Buildkite employees may check this if the pipeline has run automatically.
  • Code is formatted (with go fmt ./...)

Copy link
Contributor

@wolfeidau wolfeidau left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks great 🚀

@DrJosh9000 DrJosh9000 merged commit 207dbc5 into main Jun 13, 2024
1 check passed
@DrJosh9000 DrJosh9000 deleted the redact-jobapi-token branch June 13, 2024 01:50
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.

None yet

2 participants