Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ACL token not being passed #35

Open
haf opened this issue Feb 22, 2018 · 0 comments
Open

ACL token not being passed #35

haf opened this issue Feb 22, 2018 · 0 comments

Comments

@haf
Copy link
Member

haf commented Feb 22, 2018

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant