abedra / libvault

A C++ library for Hashicorp Vault
MIT License
34 stars 25 forks source link

Support alternative PKI mount #69

Closed othi closed 3 years ago

othi commented 3 years ago

Thank you for your useful library.

Currently, in the PKI engine, the mount is hardcoded to pki:

Vault::Url Vault::Pki::getUrl(const Path &path) const {
  return client_.getUrl("/v1/pki/", path);
}

As the mount paths are configurable, and multiple PKI engines can be created in Vault (https://www.vaultproject.io/docs/secrets/pki#setup) , this should be a configurable parameter to the engine.