Do not expose the rustls_pki_types::CertificateDer
object inside of public API
#347
Labels
rustls_pki_types::CertificateDer
object inside of public API
#347
Description
The
ManualTrustRoot
struct leaks therustls_pki_types::CertificateDer
type inside of its public API.Should we use instead the
sigstore::registry::config::Certificate
type?If we were to make this change, we would have to update also the
sigstore::trust::ManualTrustRoot
trait, since it's leaking this type too.Moreover, the
rustls_pki_types::CertificateDer
has also an explicit lifetime, which leads all the structs embedding it to have a lifetime, which introduces complexity for the end users of the library.If we end up replacing the
rustls_pki_types::CertificateDer
type, we might use something that doesn't have an explicit lifetime.Another possibility would be to leave the
rustls_pki_types::CertificateDer
, but re-export it. Right now downstream consumers of thesigstore-rs
library have to introduce an explicit dependency against therustls_pki_types
crate to be able to interact with this type.The text was updated successfully, but these errors were encountered: