Skip to content

Commit

Permalink
adds 'engine' (#10)
Browse files Browse the repository at this point in the history
  • Loading branch information
mical authored Aug 3, 2023
1 parent e7fd271 commit b79c73b
Show file tree
Hide file tree
Showing 8 changed files with 13 additions and 13 deletions.
6 changes: 3 additions & 3 deletions .goreleaser.yml
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
project_name: vault-plugin-secrets-buddy
project_name: vault-plugin-secrets-engine-buddy
builds:
- env:
- CGO_ENABLED=0
main: ./cmd/vault-plugin-secrets-buddy/main.go
main: ./cmd/vault-plugin-secrets-engine-buddy/main.go
mod_timestamp: '{{ .CommitTimestamp }}'
flags:
- -trimpath
Expand Down Expand Up @@ -38,6 +38,6 @@ signs:
release:
github:
owner: buddy
name: vault-plugin-secrets-buddy
name: vault-plugin-secrets-engine-buddy
changelog:
skip: true
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
TOOL?=vault-plugin-secrets-buddy
TOOL?=vault-plugin-secrets-engine-buddy
BUILD_TAGS?=${TOOL}
GOFMT_FILES?=$$(find . -name '*.go' | grep -v vendor)
BUDDY_GET_TOKEN?=curl
Expand Down
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,22 +2,22 @@

## Binaries

Pre-built binaries for Linux, macOS and Windows can be found in the [releases directory](https://github.com/buddy/vault-plugin-secrets-buddy/releases). For other platforms, there are currently no pre-built binaries available.
Pre-built binaries for Linux, macOS and Windows can be found in the [releases directory](https://github.com/buddy/vault-plugin-secrets-engine-buddy/releases). For other platforms, there are currently no pre-built binaries available.

To compile a new binary, clone this repository and run `make` from the project directory.

## Vault installation

The HashiCorp Vault plugin system is documented on the HashiCorp's [Vault documentation site](https://www.vaultproject.io/docs/internals/plugins.html).

To install the vault, define the plugin directory using the `plugin_directory` configuration directive and place the `vault-plugin-secrets-buddy` executable in that directory.
To install the vault, define the plugin directory using the `plugin_directory` configuration directive and place the `vault-plugin-secrets-engine-buddy` executable in that directory.

Example commands for registering and starting the plugin:

```sh
$ vault plugin register \
-sha256=$(openssl sha256 < vault-plugin-secrets-buddy) \
-command="vault-plugin-secrets-buddy" \
-sha256=$(openssl sha256 < vault-plugin-secrets-engine-buddy) \
-command="vault-plugin-secrets-engine-buddy" \
secret buddy
Success! Registered plugin: buddy

Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
package main

import (
buddysecrets "github.com/buddy/vault-plugin-secrets-buddy"
buddysecrets "github.com/buddy/vault-plugin-secrets-engine-buddy"
"github.com/hashicorp/vault/api"
"github.com/hashicorp/vault/sdk/plugin"
"log"
Expand Down
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
module github.com/buddy/vault-plugin-secrets-buddy
module github.com/buddy/vault-plugin-secrets-engine-buddy

go 1.19

Expand Down
2 changes: 1 addition & 1 deletion scripts/build.sh
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#!/usr/bin/env bash

TOOL=vault-plugin-secrets-buddy
TOOL=vault-plugin-secrets-engine-buddy

# This script builds the application from the source for the provided platform.

Expand Down
2 changes: 1 addition & 1 deletion scripts/dev.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
set -e

MNT_PATH="buddy"
PLUGIN_NAME="vault-plugin-secrets-buddy"
PLUGIN_NAME="vault-plugin-secrets-engine-buddy"

DIR="$(cd "$(dirname "$(readlink "$0")")" && pwd)"

Expand Down
2 changes: 1 addition & 1 deletion tests/run.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
set -e

VAULT_IMAGE=vault:1.13.2
PLUGIN_NAME="vault-plugin-secrets-buddy"
PLUGIN_NAME="vault-plugin-secrets-engine-buddy"
MNT_PATH="buddy"
DIR="$(cd "$(dirname "$(readlink "$0")")" && pwd)"
PLUGINS="$DIR/tmp/plugins"
Expand Down

0 comments on commit b79c73b

Please sign in to comment.