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

Add a bit more context to the debugging for failing signature verify #2926

Merged
merged 1 commit into from
Aug 8, 2024

Conversation

wolfeidau
Copy link
Contributor

Description

Working with customers to debug signature verification and one issue found was it could be hard to locate debug messages which highlight specific failure cases.

Context

This is security code, so we need to be suitably vague when reporting errors while in production, however for those looking to enable debugging and troubleshoot issues it would be good to provide some consistent patterns to look for in logs.

Changes

Following existing log messages within the agent I have added a bit more context to the debug logging prefix making it easier to filter and locate in logs.

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 ./...)

@wolfeidau wolfeidau force-pushed the make_verification_failures_debugging_clearer branch from b16399f to 27be01b Compare August 8, 2024 01:51
@wolfeidau wolfeidau force-pushed the make_verification_failures_debugging_clearer branch from 27be01b to 117aafd Compare August 8, 2024 01:53
Copy link
Contributor

@DrJosh9000 DrJosh9000 left a comment

Choose a reason for hiding this comment

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

@wolfeidau wolfeidau merged commit 5f6491b into main Aug 8, 2024
1 check passed
@wolfeidau wolfeidau deleted the make_verification_failures_debugging_clearer branch August 8, 2024 02:13
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.

2 participants