Skip to content

Commit 2231f30

Browse files
committed
Keys can be listed and created with a key_bits parameter
With Vault 0.9.4 and the gRPC backend the key_bits can be specified as an int as expected.
1 parent 65e7e98 commit 2231f30

File tree

2 files changed

+1
-5
lines changed

2 files changed

+1
-5
lines changed

README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ This endpoint creates a new named GPG key.
6262
{
6363
"real_name": "John Doe",
6464
"email": "[email protected]",
65-
"key_bits": "4096"
65+
"key_bits": 4096
6666
}
6767
```
6868

main.go

-4
Original file line numberDiff line numberDiff line change
@@ -17,10 +17,6 @@ func main() {
1717
tlsConfig := apiClientMeta.GetTLSConfig()
1818
tlsProviderFunc := pluginutil.VaultPluginTLSProvider(tlsConfig)
1919

20-
// Fail the version check, falling back to netRPC
21-
// Workaround hashicorp/vault#3873
22-
os.Unsetenv("VAULT_VERSION")
23-
2420
err := plugin.Serve(&plugin.ServeOpts{
2521
BackendFactoryFunc: gpg.Factory,
2622
TLSProviderFunc: tlsProviderFunc,

0 commit comments

Comments
 (0)