Skip to content
This repository has been 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

Open
v0lkan opened this issue Jul 18, 2023 · 0 comments
Open
Labels
enhancement New feature or request
Milestone

Comments

@v0lkan
Copy link
Contributor

v0lkan commented Jul 18, 2023

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.

@v0lkan v0lkan added this to Aegis Jul 18, 2023
@v0lkan v0lkan converted this from a draft issue Jul 18, 2023
@v0lkan v0lkan added the enhancement New feature or request label Jul 18, 2023
@v0lkan v0lkan added this to the v0.19.0 milestone Jul 18, 2023
@v0lkan v0lkan moved this from 🆕 New to Enhancements in Aegis Jul 18, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
enhancement New feature or request
Projects
Status: Enhancements
Development

No branches or pull requests

1 participant