Repo for the lazy to run vesctl from docker (or someone who doesn't want to add an untrusted code signing cert to MacOS).
docker run kreynoldsf5/vesctl:latest --help
Follow the instructions here to grab API credentials from VoltConsole. Export the P12 password. Write a config file.
$ export VES_P12_PASSWORD=myp12password
$ cat $HOME/.vesconfig
server-urls: https://acmecorp.ves.console.volterra.io/api
p12-bundle: /root/acmecorp.ves.volterra.io.api-creds.p12
Note that my p12 is stored locally and .vesconfig specifies the file's path as the target of a volume mount.
Alias vesctl
to a docker run
command that passes in the local ENV variable for your P12 password, volume mounts for vesconfig
and your p12 cert.
alias vesctl='docker run \
--env VES_P12_PASSWORD \
-v ~/.vesconfig:/root/.vesconfig \
-v ~/Downloads/acmecorp.ves.volterra.io.api-creds.p12:/root/acmecorp.ves.volterra.io.api-creds.p12 \
--rm -it \
kreynoldsf5/vesctl:latest'
Make your alias permanent by adding it to your $SHELLrc (.bashrc, .zshrc. etc).
$vesctl configuration get user -n system
system
+-----------+-----------------------+--------+
| NAMESPACE | NAME | LABELS |
+-----------+-----------------------+--------+
| system | [email protected] | <None> |
+-----------+-----------------------+--------+