mirror of
https://github.com/hashicorp/vault.git
synced 2026-05-04 20:06:27 +02:00
Update examples to use sha256 (#5468)
sha_256 is supported but not referenced in our API docs.
This commit is contained in:
parent
b39b944c0d
commit
238a93d23d
@ -81,7 +81,7 @@ supplied name.
|
||||
|
||||
```json
|
||||
{
|
||||
"sha_256": "d130b9a0fbfddef9709d8ff92e5e6053ccd246b78632fc03b8548457026961e9",
|
||||
"sha256": "d130b9a0fbfddef9709d8ff92e5e6053ccd246b78632fc03b8548457026961e9",
|
||||
"command": "mysql-database-plugin"
|
||||
}
|
||||
```
|
||||
|
||||
@ -178,7 +178,7 @@ for your server at `path/to/plugins`:
|
||||
```text
|
||||
$ vault write sys/plugins/catalog/azure-auth \
|
||||
command="vault-plugin-auth-azure" \
|
||||
sha_256="..."
|
||||
sha256="..."
|
||||
```
|
||||
|
||||
1. Enable the azure auth method as a plugin:
|
||||
|
||||
@ -73,7 +73,7 @@ An example plugin submission looks like:
|
||||
|
||||
```
|
||||
$ vault write sys/plugins/catalog/myplugin-database-plugin \
|
||||
sha_256=<expected SHA256 Hex value of the plugin binary> \
|
||||
sha256=<expected SHA256 Hex value of the plugin binary> \
|
||||
command="myplugin"
|
||||
Success! Data written to: sys/plugins/catalog/myplugin-database-plugin
|
||||
```
|
||||
|
||||
@ -102,7 +102,7 @@ this your token will need sudo permissions.
|
||||
|
||||
```text
|
||||
$ vault write sys/plugins/catalog/myplugin-database-plugin \
|
||||
sha_256="..." \
|
||||
sha256="..." \
|
||||
command="myplugin"
|
||||
Success! Data written to: sys/plugins/catalog/myplugin-database-plugin
|
||||
```
|
||||
|
||||
@ -49,7 +49,7 @@ you will need to enable ipc_lock capabilities for the plugin binary.
|
||||
|
||||
```text
|
||||
$ vault write sys/plugins/catalog/oracle-database-plugin \
|
||||
sha_256="..." \
|
||||
sha256="..." \
|
||||
command=vault-plugin-database-oracle
|
||||
```
|
||||
|
||||
|
||||
@ -70,7 +70,7 @@ $ shasum -a 256 /etc/vault/vault_plugins/my-mock-plugin
|
||||
2c071aafa1b30897e60b79643e77592cb9d1e8f803025d44a7f9bbfa4779d615 /etc/vault/vault_plugins/my-mock-plugin
|
||||
|
||||
$ vault write sys/plugins/catalog/my-mock-plugin \
|
||||
sha_256=2c071aafa1b30897e60b79643e77592cb9d1e8f803025d44a7f9bbfa4779d615 \
|
||||
sha256=2c071aafa1b30897e60b79643e77592cb9d1e8f803025d44a7f9bbfa4779d615 \
|
||||
command=my-mock-plugin
|
||||
Success! Data written to: sys/plugins/catalog/my-mock-plugin
|
||||
```
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user