From 84dabd8a7931248194f9765667f26db7cd7d4ccf Mon Sep 17 00:00:00 2001 From: unkin-agent Date: Mon, 16 Nov 2026 23:12:28 +1100 Subject: [PATCH] Move module to github.com/IUCLabs and use neutral example identities --- backend_test.go | 4 ++-- cmd/vault-plugin-secrets-gpg/main.go | 2 +- go.mod | 2 +- path_config.go | 2 +- path_keys.go | 2 +- scripts/e2e.sh | 2 +- 6 files changed, 7 insertions(+), 7 deletions(-) diff --git a/backend_test.go b/backend_test.go index 4f1ec41..cf5bb57 100644 --- a/backend_test.go +++ b/backend_test.go @@ -41,7 +41,7 @@ func createKey(t *testing.T, b logical.Backend, s logical.Storage, name, algorit t.Helper() return do(t, b, s, logical.CreateOperation, "keys/"+name, map[string]interface{}{ "algorithm": algorithm, - "identity": "Test Key ", + "identity": "Test Key ", }) } @@ -169,7 +169,7 @@ func TestExportImportRoundtrip(t *testing.T) { do(t, b, s, logical.CreateOperation, "keys/src", map[string]interface{}{ "algorithm": "ed25519", - "identity": "Exportable ", + "identity": "Exportable ", "exportable": true, }) diff --git a/cmd/vault-plugin-secrets-gpg/main.go b/cmd/vault-plugin-secrets-gpg/main.go index 9e4acda..b3445c1 100644 --- a/cmd/vault-plugin-secrets-gpg/main.go +++ b/cmd/vault-plugin-secrets-gpg/main.go @@ -7,7 +7,7 @@ import ( "github.com/hashicorp/vault/api" "github.com/hashicorp/vault/sdk/plugin" - gpg "git.unkin.net/unkin/vault-plugin-secrets-gpg" + gpg "github.com/IUCLabs/vault-plugin-secrets-gpg" ) func main() { diff --git a/go.mod b/go.mod index 98b88ab..60d2869 100644 --- a/go.mod +++ b/go.mod @@ -1,4 +1,4 @@ -module git.unkin.net/unkin/vault-plugin-secrets-gpg +module github.com/IUCLabs/vault-plugin-secrets-gpg go 1.25.0 diff --git a/path_config.go b/path_config.go index 2b52293..f44c64f 100644 --- a/path_config.go +++ b/path_config.go @@ -22,7 +22,7 @@ func pathKeyConfig(b *gpgBackend) *framework.Path { }, "min_decryption_version": { Type: framework.TypeInt, - Description: "Minimum key version usable for decryption and verification. Versions below this can no longer open data.", + Description: "Minimum key version usable for decryption. Versions below this can no longer open data.", }, "deletion_allowed": { Type: framework.TypeBool, diff --git a/path_keys.go b/path_keys.go index a77b30b..a1de57d 100644 --- a/path_keys.go +++ b/path_keys.go @@ -29,7 +29,7 @@ func pathKeys(b *gpgBackend) *framework.Path { }, "identity": { Type: framework.TypeString, - Description: `OpenPGP User ID for the key, e.g. "Ben Vincent ". Defaults to the key name.`, + Description: `OpenPGP User ID for the key, e.g. "Jane Doe ". Defaults to the key name.`, }, "exportable": { Type: framework.TypeBool, diff --git a/scripts/e2e.sh b/scripts/e2e.sh index 33c8fe5..cc48a84 100755 --- a/scripts/e2e.sh +++ b/scripts/e2e.sh @@ -53,7 +53,7 @@ run_engine() { # --- generate a key --- local pub - pub="$(ex write -field=public_key "${MOUNT}/keys/app" algorithm=rsa-2048 identity='App ')" + pub="$(ex write -field=public_key "${MOUNT}/keys/app" algorithm=rsa-2048 identity='App ')" printf '%s' "${pub}" | grep -q 'BEGIN PGP PUBLIC KEY BLOCK' || fail "[${engine}] no armored public key returned" green "[${engine}] key generated; public key exported"