ist-dsi / scala-vault   0.13.4

MIT License GitHub

A pure functional Scala client for HashiCorp's Vault implemented using Http4s client.

Scala versions: 2.13

scala-vault license

Scaladoc Latest version

Build Status Codacy Badge BCH compliance

The Scala client for HashiCorp's Vault.

Currently supported endpoints:

  • Auth Methods:
    • AppRole
    • Token
  • Secret Engines:
    • Consul
    • Databases
      • Elasticsearch
      • MongoDB
      • MySQL
    • Identity
    • KeyValue versions 1 and 2
    • PKI
  • Sys:
    • Auth mounts
    • Generate Root
    • Health
    • Init
    • Keys (rotate and key status)
    • Leader (status and step down)
    • Leases
    • Mounts
    • Plugin Catalog
    • Policy
    • Rekey
    • Seal (status, seal, and unseal)

Latest scaladoc documentation

Install

Add the following dependency to your build.sbt:

libraryDependencies += "pt.tecnico.dsi" %% "scala-vault" % "0.0.0"

We use semantic versioning.

How to Release

  1. Launch the vault docker with the following command docker run --cap-add IPC_LOCK -d --name=dev-vault -p 8200:8200 vault.
  2. Ensure your PGP key is added to your agent.
  3. Create the file ~/.sbt/1.0/credentials.sbt with:
```
credentials += Credentials(
  "Sonatype Nexus Repository Manager",
  "oss.sonatype.org",
  "<your sonatype username>",
  "<your sonatype password>"
)
```
  1. Run sbt release

License

scala-vault is open source and available under the MIT license.