vault-tool-server-0.0.0.3: Utility library for spawning a HashiCorp Vault process

Safe HaskellNone
LanguageHaskell2010

Network.VaultTool.VaultServerProcess

Synopsis

Documentation

type VaultBackendConfig = Value Source #

The ""backend"" section of the Vault server configuration.

See https://www.vaultproject.io/docs/config/index.html

{
  "consul": {
    "address": "127.0.0.1:8500",
    "path": "vault"
  }
}
{
  "file": {
    "path": "vault-storage"
  }
}

withVaultConfigFile :: VaultConfig -> (FilePath -> IO a) -> IO a Source #

vaultAddress :: VaultConfig -> VaultAddress Source #

Get the address that can be used to connect to a running Vault server launched with the specified config.

The returned value will begin with ""http://"" or ""https://"" (depending on the config)

readVaultUnsealKeys :: FilePath -> IO [VaultUnsealKey] Source #

File should have one line per key (blank lines are ignored)