Skip to content

[FEATURE] Add Env variables to dynamic secret file variables #5834

@alban-stourbe-wmx

Description

@alban-stourbe-wmx

Describe your feature request

Today, if we want to pass variables to Dynamic Secret Files, we have to hard-code the secret in the model. This can lead to some secrets being pushed to Github, for example.

A simple feature is to allow env variables to pass the secret to Dynamic Secret Files. Until such time as it is directly possible to retrieve secrets via third-party solutions.

Describe the use case of the feature

Handle env variables in dynamic variables field :
Example:

dynamic: 
  - template: path/login.yaml
    input: "https://foorbar.com/login"
    variables:
      - key: username 
        value: $FOO_BAR_USERNAME
      - key: password
        value: $FOO_BAR_PASSWORD
    type: bearertoken
    domains:
      - ".*"
    token: "{{jwt_bearer}}"

Describe alternatives you've considered

No response

Additional context

I made a very simple PR for this feature. #5835

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type: EnhancementMost issues will probably ask for additions or changes.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions