Skip to content

[TLS, V3] Add env var for --tls-ca flags #26253

@mgattozzi

Description

@mgattozzi

This is a follow up issue to #26246.

We introduced the --tls-ca flag to most of the commands for Core/Enterprise. We want to add an env var as well to make it easy for people to not have to set the flag on every single invocation, especially if they require a custom CA.

For every single command with this flag:

    /// An optional arg to use a custom ca for useful for testing with self signed certs
    #[clap(long = "tls-ca")]
    ca_cert: Option<PathBuf>,

We need to change it to say:

    /// An optional arg to use a custom ca for useful for testing with self signed certs
    #[clap(long = "tls-ca", env = "INFLUXDB3_TLS_CA")]
    ca_cert: Option<PathBuf>,

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions