Skip to content

[confmap] Restrict characters in environment variable URIs even more! #9531

Closed
@mx-psi

Description

@mx-psi

In #5706, we discussed restricting URIs in characters for all providers. We ended up disallowing $ in #6268 for the recursive implementation done later.

I think we should restrict the character set even more for the env provider, in particular by following the restrictions defined by the OpenTelemetry Configuration Working Group (see here). While, as mentioned in #5706 (comment), there are more characters allowed on both Windows and Linux, the set of environment variable names allowed by the spec is reasonable and (pressumably!) what the vast majority of users use.

We should probably restrict it also on the expandconverter while it exists

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    Status

    Done

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions