Skip to content

Conversation

@LawnGnome
Copy link
Contributor

@LawnGnome LawnGnome commented Apr 11, 2025

These get redacted in the Sentry ingest, but why send them at all?

@LawnGnome LawnGnome added C-internal 🔧 Category: Nonessential work that would make the codebase more consistent or clear A-backend ⚙️ labels Apr 11, 2025
@LawnGnome LawnGnome requested a review from Turbo87 April 11, 2025 17:09
@LawnGnome LawnGnome self-assigned this Apr 11, 2025

// Also remove `Authorization`, just so it never even gets sent to Sentry, even if
// they're redacting it downstream.
request.headers.remove(AUTHORIZATION.as_str());
Copy link
Member

Choose a reason for hiding this comment

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

mhhh... is this case-insensitive?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Ugh, no — my brain vapour locked on AUTHORIZATION being HeaderName, never mind that it's obviously becoming a &str to handle the BTreeMap<String, String> that we actually have.

Thanks. Good catch. I'd blame Friday brain, but it's even more Friday for you.

Copy link
Member

Choose a reason for hiding this comment

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

Balmer peak kicked in 😉

Copy link
Member

@Turbo87 Turbo87 left a comment

Choose a reason for hiding this comment

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

hard to review the tests on mobile but the actual code LGTM 👍

@LawnGnome
Copy link
Contributor Author

hard to review the tests on mobile but the actual code LGTM 👍

All good, thanks. Just wanted the basic sanity check after my earlier Friday morning brain.

I owe you a beer or two.

@LawnGnome LawnGnome merged commit addf73a into rust-lang:main Apr 11, 2025
9 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

A-backend ⚙️ C-internal 🔧 Category: Nonessential work that would make the codebase more consistent or clear

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants