Skip to content

Break after upgrade from v0.8 to v0.9 #329

@Xuanwo

Description

@Xuanwo

Hi, I found a possible break after upgrade from v0.8 to v0.9.

Backgound

I'm maintaining a lib that can generate signed url for google cloud storage services.

The code looks like the following:

https://github.com/Xuanwo/reqsign/blob/a3a6e962d1933fc9abf079ee24cde7873fe32565/src/google/signer.rs#L138-L141

let mut rng = rand::thread_rng();
let private_key = rsa::RsaPrivateKey::from_pkcs8_pem(&cred.private_key)?;
let signing_key = SigningKey::<sha2::Sha256>::new_with_prefix(private_key);
let signature = signing_key.sign_with_rng(&mut rng, string_to_sign.as_bytes());

Problem

After upgrading from version v0.8.1 to v0.9.1, this code became fragile and the related tests failed at a rate of 10%. However, after rolling back to version v0.8.1, it worked stably again.


Do you have any ideas? I'm willing to help get this issue fixed.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions