Move module to github.com/IUCLabs and use neutral example identities
This commit is contained in:
+2
-2
@@ -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 <test@unkin.net>",
|
||||
"identity": "Test Key <test@example.com>",
|
||||
})
|
||||
}
|
||||
|
||||
@@ -169,7 +169,7 @@ func TestExportImportRoundtrip(t *testing.T) {
|
||||
|
||||
do(t, b, s, logical.CreateOperation, "keys/src", map[string]interface{}{
|
||||
"algorithm": "ed25519",
|
||||
"identity": "Exportable <e@unkin.net>",
|
||||
"identity": "Exportable <e@example.com>",
|
||||
"exportable": true,
|
||||
})
|
||||
|
||||
|
||||
@@ -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() {
|
||||
|
||||
@@ -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
|
||||
|
||||
|
||||
+1
-1
@@ -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,
|
||||
|
||||
+1
-1
@@ -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 <ben@unkin.net>". Defaults to the key name.`,
|
||||
Description: `OpenPGP User ID for the key, e.g. "Jane Doe <jane@example.com>". Defaults to the key name.`,
|
||||
},
|
||||
"exportable": {
|
||||
Type: framework.TypeBool,
|
||||
|
||||
+1
-1
@@ -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 <app@unkin.net>')"
|
||||
pub="$(ex write -field=public_key "${MOUNT}/keys/app" algorithm=rsa-2048 identity='App <app@example.com>')"
|
||||
printf '%s' "${pub}" | grep -q 'BEGIN PGP PUBLIC KEY BLOCK' || fail "[${engine}] no armored public key returned"
|
||||
green "[${engine}] key generated; public key exported"
|
||||
|
||||
|
||||
Reference in New Issue
Block a user