Skip to content

feat(vex): support per-repository TLS configuration for VEX Hub #10019

@knqyf263

Description

@knqyf263

Summary

Add support for per-repository TLS configuration in the VEX Hub configuration file, starting with an insecure option to skip certificate verification for specific repositories.

Motivation

Users with private VEX Hub repositories using self-signed certificates currently have to use the global --insecure flag, which disables certificate verification for all connections. This is not ideal from a security perspective, as users should be able to limit insecure connections only to specific trusted repositories.

Proposed Solution

Add an insecure field to the repository configuration in the VEX Hub config file:

repositories:
  - name: private
    url: https://private-vexhub.example.com
    enabled: true
    insecure: true

This approach is consistent with how other tools handle per-resource TLS configuration (e.g., kubectl, Docker, containerd).

Future Considerations

Support for custom CA certificates (ca-cert or ca-bundle) can be considered in a separate issue if there is demand.

References

Metadata

Metadata

Assignees

No one assigned

    Labels

    kind/featureCategorizes issue or PR as related to a new feature.scan/vulnerabilityIssues relating to vulnerability scanningtarget/container-imageIssues relating to container image scanning

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions