Skip to content
This repository was archived by the owner on Jul 25, 2023. It is now read-only.
This repository was archived by the owner on Jul 25, 2023. It is now read-only.

a command line utility to do replacements on any file talking to Aegis Safe #482

@v0lkan

Description

@v0lkan

Well, this is a twisted setup since only a workload can fetch variables from Aegis safe.

So for this PoC to work, we’ll need a workload that has access to a set of secrets.

Let’s say we have this template file

grafana:
  replicaCount: 2
  image:
    pullSecrets:
      - registrycredentials
  config:
    grafanaIniConfigMap: grafana-ini
    useGrafanaIniFile: true
  extraEnvVars:
    env:
      - name: GF_SECURITY_ADMIN_PASSWORD
        value: "{{GF_SECURITY_ADMIN_PASSWORD}}"
      - name: GF_PATHS_PLUGINS
        value: "{{GF_PATH_PLUGINS}}"

then the variable values will be read from what Aegis Safe provides and will be replaced accordingly.

A command would be

tplsub -t ./grafana-tpl.yaml -o ./grafana-prod.yaml

or somewhere along those lines.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    Status

    Enhancements

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions