From a026f5ea7cdc01e41656807deca5e11743175afb Mon Sep 17 00:00:00 2001 From: Daniel Berteaud Date: Tue, 5 Mar 2024 14:34:39 +0100 Subject: [PATCH] Update rendered example --- example/smtp-relay.nomad.hcl | 2 +- example/vault/policies/smtp-relay.hcl | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/example/smtp-relay.nomad.hcl b/example/smtp-relay.nomad.hcl index b508a98..060febb 100644 --- a/example/smtp-relay.nomad.hcl +++ b/example/smtp-relay.nomad.hcl @@ -77,7 +77,7 @@ job "smtp-relay" { data = <<_EOF # SMTP Auth SMTP_USERNAME=smtp@example.org -SMTP_PASSWORD={{ with secret "/kv/service/smtp-relay" }}{{ .Data.data.pwd }}{{ end }} +SMTP_PASSWORD={{ with secret "kv/service/smtp-relay" }}{{ .Data.data.pwd }}{{ end }} _EOF destination = "secrets/env" uid = 100000 diff --git a/example/vault/policies/smtp-relay.hcl b/example/vault/policies/smtp-relay.hcl index 86a9cfc..381ab93 100644 --- a/example/vault/policies/smtp-relay.hcl +++ b/example/vault/policies/smtp-relay.hcl @@ -1,3 +1,3 @@ -path "/kv/data/service/smtp-relay" { +path "kv/data/service/smtp-relay" { capabilities = ["read"] }