End-user database Workflow¶
Here is an example workflow for connecting to a database:
- Install Ark SDK:
pip3 install ark-sdk-python
- 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 DPA service:
ark exec dpa sso short-lived-password
- One of these:
- Log in directly to the database:
psql "host=mytenant.postgres.cyberark.cloud user=user@cyberark.cloud.12345@postgres@mypostgres.fqdn.com"
- Log in to the database from Ark:
ark exec dpa db psql --target-username postgres --target-address mypostgres.fqdn.com
- Log in directly to the database: