Skip to content

Commit 4029e30

Browse files
committed
services/nomad/infrastructure: Resolve broken htpasswd auth
1 parent 620c291 commit 4029e30

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

services/nomad/infrastructure/terrastate.nomad

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -46,16 +46,15 @@ job "terrastate" {
4646
driver = "docker"
4747

4848
config {
49-
image = "ghcr.io/the-maldridge/terrastate:v1.2.3"
49+
image = "ghcr.io/the-maldridge/terrastate:v1.2.4"
5050
init = true
5151
}
5252

5353
env {
54-
AUTHWARE_BASIC_MECHS="netauth"
55-
TS_AUTH = "htpasswd:netauth"
54+
AUTHWARE_BASIC_MECHS = "htpasswd:netauth"
55+
AUTHWARE_HTPASSWD_FILE = "/secrets/.htpasswd"
56+
AUTHWARE_HTGROUP_FILE = "/secrets/.htgroup"
5657
TS_BITCASK_PATH = "/data"
57-
TS_HTGROUP_FILE = "/secrets/.htgroup"
58-
TS_HTPASSWD_FILE = "/secrets/.htpasswd"
5958
TS_STORE = "bitcask"
6059
}
6160

@@ -75,6 +74,7 @@ job "terrastate" {
7574
_terraform:{{ with nomadVar "nomad/jobs/terrastate" }}{{ .hashed_passwd }}{{ end }}
7675
EOF
7776
destination = "${NOMAD_SECRETS_DIR}/.htpasswd"
77+
change_mode = "signal"
7878
}
7979

8080
template {

0 commit comments

Comments
 (0)