Skip to content

Provide job id and namespace for secrets plugins #27015

@olljanat

Description

@olljanat

Proposal

Provide NOMAD_JOB_ID and NOMAD_NAMESPACE environment variables always for secrets plugins and do not allow user to overwrite them.

Use-cases

Nomad variables are automatically available for jobs based on their name and id like documented to here and as result of #25871 it is possible to create variables which are available for all jobs in namespace.

Secrets plugins can implement same logic if they know job id and namespace those requests are coming from and can trust to that information.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    Status

    Needs Roadmapping

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions