Skip to content

Commit

Permalink
fix authAcquirer for spruce (#159)
Browse files Browse the repository at this point in the history
* fix spruce config file

* fix authAcquirer for spruce
  • Loading branch information
kcajmagic committed Jun 16, 2020
1 parent 3ca216e commit 6f90a1a
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion deploy/packaging/tr1d1um_spruce.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -270,6 +270,9 @@ requestRetryInterval: "2s"
# case of ephemeral errors
requestMaxRetries: 2

#authtoken used to make spruce work better for authAcquirer
authToken: (( grab $AUTH_TOKEN || "dXNlcjpwYXNz" ))

# authAcquirer enables configuring the JWT or Basic auth header value factory for outgoing
# requests to XMiDT. If both types are configured, JWT will be preferred.
# (Optional)
Expand All @@ -290,4 +293,4 @@ authAcquirer:
# buffer is the length of time before a token expires to get a new token.
buffer: "2m"

Basic: "Basic dXNlcjpwYXNz"
Basic: (( concat "Basic " authToken ))

0 comments on commit 6f90a1a

Please sign in to comment.