feat(cli): Add vault ssh certificate credential library

This commit is contained in:
Timothy Messier committed 2023-02-02 17:43:17 +00:00
1 parent 43f0ba89cf
commit 89a55632ba
14 files changed
+1376 -34

No files matched your search

@@ -0,0 +1,36 @@
load _authorized_actions
function create_vault_ssh_certificate_library() {
boundary credential-libraries \
create vault-ssh-certificate $@
}
function create_vault_generic_library() {
boundary credential-libraries \
create vault-generic $@
}
function create_vault_library() {
boundary credential-libraries \
create vault $@
}
function read_credential_library() {
boundary credential-libraries read -id $1 -format json
}
function delete_credential_library() {
boundary credential-libraries delete -id $1
}
function list_credential_libraries() {
local csid=$1
boundary credential-libraries list -credential-store-id $1 -format json
}
function credential_library_id() {
local name=$1
local csid=$2
strip $(list_credential_libraries $csid | jq -c ".items[] | select(.name | contains(\"$name\")) | .[\"id\"]")
}