Secret render interval

Is it possible to configure the time interval when the secrets get re-rendered?

The closest thing I could find was the vault agent config but couldn’t find anything similar on the nomad documentation/configuration.

Btw this template stanza below already works and it is being re-rendered at least every 5min, but I would like to be able to control the interval (in this case decreasing it)

      vault {
        policies    = ["tst-nomad-read"]
        change_mode = "restart"
      }

      template {
        data                          = <<EOH
          SECRET="{{ with secret "tst/data/nomad/demo-app"}}{{.Data.data.super}}{{ end}}"
        EOH
        destination                   = "secrets/file.env"
        env                           = true
      }

Can someone point me in the correct direction :pray:?

1 Like