ACL token not being passed
haf opened this issue · comments
Henrik Feldt commented
If you set it in the configuration, it will only be passed to the KV module.
Only usage:
let private mkReq methd (state: FaktaState) (kvp: KVPair) fUri (opts: WriteOptions) (body: RequestBody) =
UriBuilder.ofKVKey state.config kvp.key
|> UriBuilder.mappendRange (configOptKvs state.config)
|> UriBuilder.mappendRange (writeOptsKvs opts)
|> fUri
|> UriBuilder.toUri
|> basicRequest state.config methd
|> Request.body body
Instead, if FaktaConfig
contains a Some consulToken
value, use it with X-Consul-Token
headers when talking to consul and X-Vault-Token
when talking to Vault.