kiddouk / vault-kotlin

Hashicorp Vault client library written in Kotlin

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

vault-kotlin

Kotlin Build Status License

Hashicorp Vault client library written in Kotlin

Install

Gradle:

./gradlew install

Basic Usage

val conf = VaultConfiguration("https://vault:8200", "vault token")
val vault = Vault(conf)

vault.logical.write("/secret/hello", listOf("value" to "world"))
val secret = vault.logical.read("/secret")

if (secret.data["value"] == "world") {
  println("It works!")
}

For more examples please take a look at the tests.

Note: This library is still under heavy development and the API is not yet stable. Use at your own risk! Once it has stabilized I'll begin publishing artifacts.

Contributions are welcome.

About

Hashicorp Vault client library written in Kotlin

License:Apache License 2.0


Languages

Language:Kotlin 100.0%