Skip to content

Add :url Validator to Enforce HTTP/HTTPS URI Schemes Only #164

@alexskr

Description

@alexskr

Feature request:
Add a new :url validator type to Goo::Validators::DataType that ensures user-supplied URIs are http or https schemes only.

Use case:
The current :uri validator accepts all valid RDF::URIs, which can include schemes like file:, ftp:, data:, or javascript:. While technically valid, these can introduce security risks. Restricting to HTTP(S) schemes mitigates SSRF and URI injection vulnerabilities.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions