rust-lang / cargo

The Rust package manager
https://doc.rust-lang.org/cargo
Apache License 2.0
12.28k stars 2.32k forks source link

A new type for data that should never be logged. #11519

Closed Eh2406 closed 1 year ago

Eh2406 commented 1 year ago

Cargo occasionally deals with secrets. We should have a new type that does not implement Display that is used in the type system to mark "this value is secret and should not be printed". Types that should be converted are plaintext tokens and PASETO after they've been generated.

cc:

kylematsuda commented 1 year ago

@rustbot claim