Wrapper type for data that should never be logged#11545
Wrapper type for data that should never be logged#11545bors merged 10 commits intorust-lang:masterfrom
Conversation
|
r? @weihanglo (rustbot has picked a reviewer for you, use r? to override) |
|
r? @Eh2406 |
|
This is more general than I had in mind. I would love to see what you end up doing with it. I was imagining a new type around |
|
Thanks for taking a look! Sounds good, I'll give it a shot like this for now, but keeping the newtype approach in mind if things get hard (or if we decide that having this be generic is unnecessary). |
…w more needed utility methods
|
I added the wrapper to most of the interfaces in |
Eh2406
left a comment
There was a problem hiding this comment.
Looks good! Ping me when you are ready for me to look again.
7468e68 to
76859f8
Compare
… wrapping in Secret
76859f8 to
efb972a
Compare
|
Hi! I changed back to using I also noticed a few places where |
|
Thank you! This looks good. @bors r+ ( ^ Tells our CI to run a few more checks and then merger this PR. ) |
Wrapper type for data that should never be logged Fixes #11519. So far this is just creating the new wrapper type. If this looks okay, I'll start adding this wrapper in places where tokens and secret keys are held or passed.
|
💔 Test failed - checks-actions |
|
@bors retry |
|
☀️ Test successful - checks-actions |
3 commits in 50eb688c2bbea5de5a2e8496230a7428798089d1..985d561f0bb9b76ec043a2b12511790ec7a2b954 2023-01-19 10:09:05 +0000 to 2023-01-20 14:39:28 +0000 - Stabilize sparse-registry (rust-lang/cargo#11224) - Wrapper type for data that should never be logged (rust-lang/cargo#11545) - Add semver rule for lints (rust-lang/cargo#11596)
Update cargo 3 commits in 50eb688c2bbea5de5a2e8496230a7428798089d1..985d561f0bb9b76ec043a2b12511790ec7a2b954 2023-01-19 10:09:05 +0000 to 2023-01-20 14:39:28 +0000 - Stabilize sparse-registry (rust-lang/cargo#11224) - Wrapper type for data that should never be logged (rust-lang/cargo#11545) - Add semver rule for lints (rust-lang/cargo#11596) r? `@ghost`
Fixes #11519.
So far this is just creating the new wrapper type. If this looks okay, I'll start adding this wrapper in places where tokens and secret keys are held or passed.