Skip to content

Commit

Permalink
clean documentation
Browse files Browse the repository at this point in the history
  • Loading branch information
chrira committed Mar 12, 2024
1 parent c5bb4b4 commit a7a06a0
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 12 deletions.
11 changes: 0 additions & 11 deletions vault-kv/README.md

This file was deleted.

6 changes: 5 additions & 1 deletion vault-kv/main.go
Original file line number Diff line number Diff line change
@@ -1,13 +1,16 @@
// Vault kv (Key-Value) secrets engine module
//
// Uses the Vault commands (CLI) to communicate with the Vault instance.
//
// Check the original documentation: https://developer.hashicorp.com/vault/docs/commands/

package main

import (
"context"
)

// Contains the Vault K/V command options.
type VaultKv struct {
// Vault address
Address string
Expand Down Expand Up @@ -53,5 +56,6 @@ func (c *VaultKv) GetKV(
WithEnvVariable("VAULT_ADDR", c.Address).
WithEnvVariable("SKIP_SETCAP", "1").
WithExec([]string{"vault", "login", "-non-interactive", c.Token}).
WithExec([]string{"vault", "kv", "get", "-mount", mount, "-field", field, path}).Stdout(ctx)
WithExec([]string{"vault", "kv", "get", "-mount", mount, "-field", field, path}).
Stdout(ctx)
}

0 comments on commit a7a06a0

Please sign in to comment.