diff --git a/features.md b/features.md index 18642283..f9aa986f 100644 --- a/features.md +++ b/features.md @@ -72,6 +72,11 @@ `GET /{{databasePath}}/creds/{{name}}` +## vault.raftJoin + +`POST /sys/storage/raft/join` + + ## vault.unmount `DELETE /sys/mounts/{{mount_point}}` diff --git a/package.json b/package.json index 0731590b..2ecf8861 100644 --- a/package.json +++ b/package.json @@ -59,6 +59,7 @@ "contributors": [ "Adam Kelsall (https://github.com/adamkelsall)", "Alex Early (https://github.com/aearly)", + "Benjamin Neumann (https://github.com/naimo84)", "Brandon Ros (https://github.com/brandonros)", "Charles Phillips (https://github.com/doublerebel)", "David Drewery (https://github.com/EXPEddrewery)", diff --git a/src/commands.js b/src/commands.js index 90e013c4..84ed50b4 100644 --- a/src/commands.js +++ b/src/commands.js @@ -135,6 +135,14 @@ module.exports = { type: 'integer', minimum: 1, }, + recovery_shares: { + type: 'integer', + minimum: 1, + }, + recovery_threshold: { + type: 'integer', + minimum: 1, + }, pgp_keys: { type: 'array', items: { @@ -142,8 +150,7 @@ module.exports = { }, uniqueItems: true, }, - }, - required: ['secret_shares', 'secret_threshold'], + }, }, res: { type: 'object', @@ -334,6 +341,10 @@ module.exports = { method: 'GET', path: '/{{databasePath}}/creds/{{name}}', }, + raftJoin:{ + method: 'POST', + path: '/sys/storage/raft/join' + }, unmount: { method: 'DELETE', path: '/sys/mounts/{{mount_point}}',