logibit / Fakta

A Consul + Vault F# library – service discovery and secret management for your F# apps and services.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

ACL token not being passed

haf opened this issue · comments

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.