slok/alertgram

Using secret to set token

budarin opened this issue · 2 comments

Could you provide token via secret

slok commented

I'm sorry I don't understand what do you mean, could you explain a little bit the problem?

Are we talking about Kubernetes here? Because you have an example here:

apiVersion: v1
kind: Secret
type: Opaque
metadata:
name: alertgram
namespace: monitoring
labels:
app: alertgram
stringData:
ALERTGRAM_TELEGRAM_API_TOKEN: "CHANGE_ME_TELEGRAM_API_TOKEN"
ALERTGRAM_TELEGRAM_CHAT_ID: "CHANGE_ME_TELEGRAM_CHAT_ID"

usually secrets are used to configure services with sensitive information such as tokens or passwords

https://docs.docker.com/engine/swarm/secrets/