End-user database Workflow¶
Here is an example workflow for connecting to a psql DB via ark CLI, which assumes a DB was already onboarded:
- Install Ark SDK:
Make sure that the PATH environment variable points to the Go binary. For example:
go install github.com/cyberark/ark-sdk-golang
export PATH=$PATH:$(go env GOPATH)/bin
- Create a profile:
- Interactively:
ark configure
- Silently:
ark configure --silent --work-with-isp --isp-username myuser
- Interactively:
- Log in to Ark:
ark login --silent --isp-secret <my-ark-secret>
- Connect to postgres using the CLI with an MFA caching token behind the scenes:
ark exec sia db psql --target-address myaddress.com --target-user myuser