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.
If you set it in the configuration, it will only be passed to the KV module.
Only usage:
Instead, if
FaktaConfigcontains aSome consulTokenvalue, use it withX-Consul-Tokenheaders when talking to consul andX-Vault-Tokenwhen talking to Vault.