Skip to content

[configtls] Validate MinVersion and MaxVersion #9475

Closed
@mx-psi

Description

@mx-psi

We effectively restrict the allowed versions to the set defined here:

var tlsVersions = map[string]uint16{

We should validate for it! This can be done after 1.0 per the rules we have here

* **Making validation rules more strict**. A valid configuration struct as defined by its `Validate` method return value
must continue to be valid after a change to the validation rules, except when the configuration struct would cause an error
on its intended usage (e.g. when calling a method or when passed to any method or function in any module under opentelemetry-collector).

Still, it would be nice to have before 1.0 IMO

Metadata

Metadata

Assignees

Type

No type

Projects

Status

Done

Relationships

None yet

Development

No branches or pull requests

Issue actions