Skip to content

Add path validation to signers & verifiers #69

@alexheretic

Description

@alexheretic

Since path should always start with / we can validate that this is the case and return a helpful error before an incorrect signature or incorrect verify usage ends in an opaque error.

E.g. trying to use the whole url .path("https://example.com/foo"). We could produce something like an error invalid path "https://example.com/foo" must start with '/'.

We can use the full url scenario as a new test for signing & verifying in all langs.

Checklist:

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions