[FEATURE] Read Password/Token from /run/secrets #420
-
|
Is your feature request related to a problem? Please describe. Describe the solution you'd like Describe alternatives you've considered |
Beta Was this translation helpful? Give feedback.
Replies: 4 comments 4 replies
-
|
Found a workaround with a wrapper script: #!/bin/bash
GDG_CONTEXTS__ALL__PASSWORD=$(< "$GF_SECURITY_ADMIN_PASSWORD__FILE") exec /usr/share/grafana/bin/gdg-bin "$@" |
Beta Was this translation helpful? Give feedback.
-
|
I haven't had much experience with this feature in yet. Though, if you can mount a file as a secret, can't you simply mount the importer.yml as a secret and reference it? I'm trying to understand the advantages this feature gives you. All the docs I found basically use the secret to mount the sensitive config, why not simply do this? version: "3.8"
services:
app:
image: ghcr.io/esnet/gdg:0.7.2
command: ["-c", "/run/secrets/config.yml", "tools", "contexts", "show"]
secrets:
- config.yml
secrets:
config.yml:
file: ./importer.ymlI could see more of a use case where the entire I think if we were to add support for this, it would be to look for a grafana_context_auth.json that would override the yaml config you'd store in the importer.yml and maybe add a setting like |
Beta Was this translation helpful? Give feedback.
-
|
Created ticket for related work. #421 feel free to expand on it |
Beta Was this translation helpful? Give feedback.
-
|
@IljaN I released v0.8.0 with docs for how to do what you were asking for: https://software.es.net/gdg/docs/cookbook/docker-compose-example/. Let me know if this work for you. |
Beta Was this translation helpful? Give feedback.
@IljaN I released v0.8.0 with docs for how to do what you were asking for: https://software.es.net/gdg/docs/cookbook/docker-compose-example/. Let me know if this work for you.