* [COMPLIANCE] Update Copyright and License Headers * chore: make gen to generate files with copyright headers * chore: update missed copyright headers --------- Co-authored-by: hashicorp-copywrite[bot] <110428419+hashicorp-copywrite[bot]@users.noreply.github.com> Co-authored-by: Justin Nguyen <justin.nguyen@hashicorp.com>
56 lines
1.2 KiB
Bash
56 lines
1.2 KiB
Bash
# Copyright IBM Corp. 2020, 2025
|
|
# SPDX-License-Identifier: BUSL-1.1
|
|
|
|
load _authorized_actions
|
|
|
|
function create_vault_ssh_certificate_library() {
|
|
boundary credential-libraries \
|
|
create vault-ssh-certificate $@
|
|
}
|
|
|
|
function update_vault_ssh_certificate_library() {
|
|
boundary credential-libraries \
|
|
update vault-ssh-certificate $@
|
|
}
|
|
|
|
function create_vault_generic_library() {
|
|
boundary credential-libraries \
|
|
create vault-generic $@
|
|
}
|
|
|
|
function create_vault_ldap_library() {
|
|
boundary credential-libraries \
|
|
create vault-ldap $@
|
|
}
|
|
|
|
function update_vault_ldap_library() {
|
|
boundary credential-libraries \
|
|
update vault-ldap $@
|
|
}
|
|
|
|
|
|
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 -format json
|
|
}
|
|
|
|
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\"]")
|
|
}
|