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

Attach the X-Sentry-Auth header to /envelope requests #709

Merged
merged 4 commits into from
Sep 4, 2023
Merged

Conversation

cleptric
Copy link
Member

@cleptric cleptric commented Sep 4, 2023

After internal discussions, we're adding back the X-Sentry-Auth header to requests to the /envelope endpoint as it's more efficient than the envelope header auth.

Comment on lines +215 to +216
auth := fmt.Sprintf("Sentry sentry_version=%s, "+
"sentry_client=%s/%s, sentry_key=%s", apiVersion, event.Sdk.Name, event.Sdk.Version, dsn.publicKey)
Copy link
Member Author

Choose a reason for hiding this comment

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

I removed sentry_timestamp, according to https://develop.sentry.dev/sdk/overview/#authentication

This key is effectively deprecated, and it is ignored on the receiving side. Use the sent_at envelope header instead.

@codecov
Copy link

codecov bot commented Sep 4, 2023

Codecov Report

Patch coverage is 72.72% of modified lines.

Files Changed Coverage
sentry.go ø
transport.go 72.72%

📢 Thoughts on this report? Let us know!.

@cleptric cleptric marked this pull request as ready for review September 4, 2023 12:17
@cleptric cleptric requested a review from tonyo September 4, 2023 12:17
@cleptric cleptric changed the title Attach the X-Sentry-Auth header to /envelope requests Attach the X-Sentry-Auth header to /envelope requests Sep 4, 2023
@cleptric cleptric merged commit bee7c46 into master Sep 4, 2023
16 of 17 checks passed
@cleptric cleptric deleted the auth-headers branch September 4, 2023 12:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants