End-user database Workflow¶
Here is an example workflow for connecting to a database:
- 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>
- Get a short-lived SSO password for a database from the SIA service:
ark exec sia sso short-lived-password
- Log in directly to the database:
psql "host=mytenant.postgres.cyberark.cloud user=user@cyberark.cloud.12345@postgres@mypostgres.fqdn.com"