Skip to content

Fulcio API incorrectly specifies support for RSA-PSS #1858

@haydentherapper

Description

@haydentherapper

Fulcio's API specifies that RSA-PSS is a supported algorithm. However, the algorithm field in the API is not used when parsing the public key. The key content is read without the algorithm, parsed, then used to verify a proof of possession signature. Without specifying PSS options for verification, verification fails. Certificate signing will also fail to detect the correct key type without explicitly specifying the signature algorithm on signing.

In the underlying sigstore/sigstore library, there is support for configuring signers and verifiers with RSA-PSS. I propose we:

a) Add a field for RSA-PKCS1v1.5, and use that as the default RSA scheme to align with all Sigstore client implementations
b) When RSA-PSS is set, enable RSA-PSS for signature verification and explicitly set the SignatureAlgorithm. RSA-PSS is not widely supported by Sigstore clients, so I would expect only API users to set this for now.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions