DOCUMENTATION

Credential lifecycle: check-out, certificates, temporary rights, discovery and your own vault

How Captivo Access keeps privileged credentials from standing around: hand a shared password to one person at a time, sign in with two-minute SSH certificates, give each database connection its own user, grant administrator rights only while a session is open, find the accounts you forgot, and keep the secret in the vault you already run.

Which feature solves which problem

All of these are settings on a resource (Infrastructure → Resources, then the resource's edit page). They build on each other: a saved password is sealed to the connector, rotation changes it, and the features below decide who may see it, for how long, and where it lives at all.

ProblemFeatureConnector
Someone needs the real password for a console or a tool that cannot go through CaptivoPassword check-outany current
A Linux server should have no password or key for Captivo to leakSSH certificate2.69.0
One shared database login for everybodySession role2.70.0
Accounts that are administrators all day, used for ten minutesAdministrator rights during sessions2.71.0 Linux native SSH, 2.75.0 the rest
Nobody knows which accounts a server really hasAccounts on this server2.72.0 to 2.77.0 by platform
The policy says secrets stay in HashiCorp, CyberArk, Azure or AWSWhere the credential lives2.66.0 / 2.67.0
The Connector column is the oldest connector that can do it. A resource served by a connector that is too old shows a red note on the form, and the console refuses to save a setting the connector cannot carry out. Update the connector first (Infrastructure → Connectors).

Password check-out

Most work should go through Captivo, where the person never sees the password. Sometimes that is impossible: a vendor console that only speaks to a vendor tool, an out-of-band repair during an outage. Check-out lets a person with an active grant take the saved password for a limited time, for a stated reason, one person at a time. When the time is up the password is changed, so what they took is worthless afterwards.

Turn it on

  1. Open the resource under Infrastructure → Resources and switch on Password check-out. The switch exists for remote desktop (RDP), SSH and database resources.
  2. Pick Longest check-out: 1, 4, 8 or 24 hours (the default is 4 hours). It ends sooner if the person's grant ends first.
  3. Tick May see the password on the grant of each person who may take it: the New grant and Edit grant dialogs offer it for resources that have check-out on, with For how long to give that person a shorter check-out than the resource's longest (never a longer one). It is off unless you tick it. A grant made without it, a request an admin approves and a grant that comes from a directory group never carries the password. Grants made before this existed keep working as they did.
  4. Make sure the account has password rotation set up. Without it the check-out works, but nothing changes the password afterwards and the admins get a notification saying it still stands.

Worked example

The vendor engineer vendor@acme.example has a grant on the Windows server db01.corp.example and needs to run the vendor's own repair tool against it. On the My access page she presses Check out on the resource, types a reason of at least 10 characters ("Console access during the outage, ticket #4821") and confirms. The password is opened in her browser only, shown once, with a copy button and the time it is hers until. She can press Give it back now at any moment; otherwise it ends at the chosen time. Either way rotation then sets a new password.

What you see, what the audit shows

  • While it is out, the resource's Password rotation panel shows who holds it, until when and why, with an End now button for admins. Scheduled rotation is paused for the account until the check-out is over.
  • The audit log gets credential.checkout ("Checked out the password of root@db01.corp.example on ... until ...: reason") and, at the end, credential.checkin saying how it ended (returned, expired, revoked or admin) and whether the password is being changed. Admins also get a bell notification when it is taken.

Limits

  • One person at a time; a second person sees who has it and until when.
  • The person is asked for a reason of at least 10 characters. Policy → Access → Require a reason for password check-out turns that off for workspaces where the grant itself is the justification; every check-out stays in the audit log either way.
  • Only a password can be checked out: not an SSH key, a Kubernetes token or a web app. A resource that needs a moderator, one whose credential lives in your own vault, one signing in with an SSH certificate, and one with a session role (no shared password exists) are refused; the form says so and leaves the switch off on save.
  • The password is sealed to a key that only the person's browser holds, so it never passes through the console in the clear. Use a current Chrome, Edge, Firefox or Safari.
  • The time is checked by the platform's health cron, so an expired or revoked check-out may be tidied a short while after its end time.

SSH certificates instead of passwords

With certificate sign-in the resource has no password or key anywhere. The connector keeps a certificate authority key (ed25519); your server trusts its public half; and for every session the connector signs a certificate that is valid for two minutes, for that one account, and signs in with it. A stolen copy of Captivo's data contains nothing that opens the server, and the server's own log says who each sign-in was for.

Turn it on

  1. Update the connector to 2.69.0 or later; it reports its CA public key to the console.
  2. On the SSH resource turn on Native SSH client and session recording (or require recording in Policy). Certificates are used only by the recorded native SSH path.
  3. Under Where the credential lives choose SSH certificate. The form prints three commands that make the server trust the connector. Run them once as an administrator on the server:
bash
echo 'ssh-ed25519 AAAA... (the line the form shows)' | sudo tee /etc/ssh/captivo_ca.pub >/dev/null
echo 'TrustedUserCAKeys /etc/ssh/captivo_ca.pub' | sudo tee /etc/ssh/sshd_config.d/captivo-ca.conf >/dev/null
sudo sshd -t && sudo systemctl reload sshd

The account must already exist on the server under the user name of the resource. Then press Check now in the resource's Password rotation panel: it makes a real sign-in and tells you whether the server accepts the connector's certificate.

Worked example

Resource web01, account deploy. The vendor requests the ssh command in the portal and connects through the jump host. The connector signs a certificate with principal deploy and key ID captivo:vendor@acme.example, valid for two minutes (plus one minute of clock skew), and the session is recorded as usual. In /var/log/auth.log the sign-in names that key ID, so the server's own log shows the person, not a shared account.

Limits

  • SSH resources only, and only the recorded native SSH path. The browser terminal cannot present a certificate; an unrecorded native session is the user's own sign-in.
  • There is nothing to rotate, check out or reveal, and those controls stay away from the resource. The sshd host must allow certificate sign-in through TrustedUserCAKeys (OpenSSH). An account whose password field is locked with ! is refused by OpenSSH even for certificates; use * (or a real hash) in the password field instead.
  • In a connector group every member has its own CA; the setup command lists all their keys, so whichever member carries the session is trusted. Add a member, then run the command again.

A database user per connection

A database resource normally signs everybody in as one saved account. With a Session role the connector instead creates a throwaway user for every connection, gives it the role you named and nothing else, and drops it when the connection closes. The saved account only provisions users and is never used by anyone, so the database's own logs show a distinct user for each connection and no standing login exists to steal.

Turn it on

  1. Create the role on the database with exactly the privileges users should have, for example app_readonly (SELECT only).
  2. On the resource (engines PostgreSQL and MySQL, MariaDB included) fill Session role with that role name. The form shows the grants the provisioning account needs; copy and run them. For PostgreSQL:
sql
ALTER ROLE captivo_provisioner CREATEROLE;
GRANT app_readonly TO captivo_provisioner WITH ADMIN OPTION;
  1. The connector must be 2.70.0 or later. Save and press Check now or open a session.

Each user is named captivo_tmp_<unix time>_<random>, so its age is in its name. On PostgreSQL it can sign in for only 10 minutes after it is made (VALID UNTIL), which is enough to open the connection. A leftover older than 6 hours, for instance after a connector crash, is dropped by the next provisioning.

Limits

  • PostgreSQL, MySQL and MariaDB only. SQL Server, Redis and MongoDB keep the shared account.
  • Password check-out is switched off for such a resource: there is no shared password. MariaDB needs the extra UPDATE on mysql.* that the form prints.
  • On MySQL, cancelling a running query with Ctrl-C from a second connection (KILL) cannot reach another user's thread; close the connection instead.

Temporary administrator rights

Zero standing privilege: the account users sign in with is an ordinary user all day. While someone has a session on it, the connector gives it administrator rights; when the last session closes, it takes them away again. A connector that stops in between removes them at its next start, and a leftover older than 24 hours is swept.

Turn it on

On the resource's edit page, below the resource form, open the Administrator rights during sessions panel (SSH and RDP resources with a saved password). First add the Administrator account: Add administrator account asks for the user and its password or SSH key, sealed in your browser to the connector. On Linux this is root or an account that may use sudo; on Windows the built-in Administrator or a domain account in the Administrators group. It is the same account rotation uses to reset passwords. Then switch on Give administrator rights during sessions.

  • Linux. The connector writes /etc/sudoers.d/captivo-<user> (checked with visudo before it is put in place):
sudoers
# Captivo Access: administrator rights for the length of a session
deploy ALL=(ALL:ALL) NOPASSWD: ALL
  • Windows. The account is added to the local Administrators group over SMB (port 445 must be reachable from the connector) and removed afterwards. A local account or a domain account works; the account must not be the built-in Administrator itself.

Worked example

Resource web01 signs vendors in as deploy, an ordinary user, with root as administrator account. Vendor opens a recorded native SSH session: the connector adds the sudoers entry, the session shows a banner line saying it has administrator rights, and sudo systemctl restart app works. A second vendor joins the same account: the entry is counted, not duplicated. When the last session ends the file is gone and sudo asks for a password again. What was done with the rights is on the recording.

Audit and limits

  • Changing the switch or the account is audited as resource.elevation_update. The rights themselves show in the recording and the session banner, not as separate audit lines.
  • The resource's own account must be an ordinary user: on Linux lower-case letters, digits, _ and -, and not root; on Windows not the built-in Administrator.
  • A user's own SSH or Remote Desktop app that Captivo does not carry (unrecorded) signs in by itself, so there is no session to give rights to: turn session recording on or the native client off.
  • Connectors: 2.71.0 for recorded native SSH on Linux; 2.75.0 for browser sessions (SSH and RDP), recorded native RDP and Windows. If the connector lacks the administrator account's seal, the session is refused and the form asks you to enter the account again.

Account discovery and take-over

Servers collect accounts nobody remembers: old admins, service logins with passwords from 2019. The Accounts on this server panel lists what a server really has, flags the risky ones, and can take chosen accounts over: Captivo creates a resource for each, sets a new random password that only Captivo knows, and from then on rotation keeps it fresh.

Use it

  1. On the resource that signs in to the server, add a Reconcile account in the Password rotation panel (an administrator that may change other accounts' passwords). The Accounts on this server panel appears below it. Redis and MongoDB list with the resource's own account and need the reconcile account only for the take-over.
  2. Press Scan this server. Each row shows the name, uid and shell (RID on Windows), and flags such as administrator, no password, password locked or disabled, password 1,900 days old, no shell. Nothing is changed by looking and password hashes never leave the server.
  3. Tick up to 20 accounts, tick the confirmation (Captivo sets a new random password, and anything else that signs in with the old one, a service or a script, stops working) and press Take over. Each becomes a resource named <resource> · <user>, copied from the source, and rotation resets its password immediately.
PlatformNeedsConnector
Linux (SSH)root or a sudo account as reconcile account2.72.0
Windowslocal accounts over SMB, port 4452.75.0
PostgreSQL, MySQL, MariaDBan account that can read the user catalogue; PostgreSQL take-over needs CREATEROLE with ADMIN OPTION or a superuser2.76.0
SQL Server, Redis, MongoDBRedis and MongoDB list only; take-over needs a reconcile account2.77.0 (Redis/MongoDB take-over: 2.78.0)

Audit and limits

  • A scan is audited as resource.discovery_scan ("Listed the accounts of db01.corp.example (14) ..."); each take-over as resource.create ("Created resource ... by taking over ... (account discovery on ...)"), followed by the usual rotation entries.
  • Refused with a reason shown on the row: the administrator account Captivo signs in with (changing it would lock Captivo out), root, accounts with no shell or that cannot sign in, the built-in Windows Administrator and Guest, accounts that are already a resource, and multi-host MySQL users.
  • Taken-over resources start with the native SSH client off: a native client needs a password the user knows.
  • The scan is not offered on Windows resources signed in with a domain account.

Keep the credential in your own vault

If your policy says secrets live in HashiCorp Vault, CyberArk, Azure Key Vault or AWS Secrets Manager, give the resource a reference instead of a password. Each time a session needs the credential, the connector asks your vault, uses the value for that sign-in and keeps nothing; nobody in the console ever sees it, and Captivo does not store it.

Turn it on

On the resource form, under Where the credential lives, choose HashiCorp Vault, CyberArk, Azure Key Vault or AWS Secrets Manager instead of Captivo. What you enter is sealed in your browser to the connector, like a password; a reference is never kept readable on the server. The connector must reach the vault address, and the connector's egress rules apply to it.

ProviderFields on the formConnector
HashiCorp VaultVault address, Secret path (servers/web01), KV mount (secret), Field (password), Namespace; sign-in: Token or AppRole (Role id, Secret id, AppRole mount); KV version v2 or v12.66.0
CyberArk, Central Credential ProviderVault address, Application id, Safe, Object, Folder, optional client certificate and key2.66.0
CyberArk, REST API (PVWA)Sign-in type (CyberArk, LDAP, RADIUS), User, Password, Safe plus Account name, or Account id, Reason2.67.0
Azure Key VaultKey Vault URL, Secret name, Version, Tenant id, Application (client) id, Client secret2.67.0
AWS Secrets ManagerRegion, Secret name or ARN, Field (JSON secret), Endpoint, Access key id, Secret access key, Session token2.67.0

The vault's certificate is set separately: Public CA, Our CA (paste your CA) or Don't check. Leave AWS keys empty to use the connector's own AWS_ACCESS_KEY_ID environment.

Worked example

Database crm-db keeps its password in HashiCorp Vault at secret/servers/crm-db, field password. The connector signs in to https://vault.corp.example:8200 with AppRole. You pick HashiCorp Vault, fill the address, path, role id and secret id, save, then press Check now in the Password rotation panel: the connector asks the vault and says whether it hands the credential out. When your vault team rotates the secret the next session simply gets the new value.

Audit and limits

  • Saving is audited as resource.vault_update, Check now as resource.vault_check ("Checked the HashiCorp Vault credential of ...: the vault hands it out"). Error messages never echo the value.
  • Captivo does not rotate such a credential, does not show it and offers no check-out for it: the vault owns it. Rotate it in the vault. The rotation panel shows only Check now.
  • Not supported: writing a new password back to the vault, SSH-key references, other providers. If the PVWA account asks for a reason it is given the one on the form; accounts that need dual control or a ticket cannot be fetched unattended.
  • Needs the connector to reach the vault at session time: a vault outage is a session failure. Use it with access reviews and tickets for who may reach the resource; for scripts and pipelines see the agent API.

Sealing, connector groups and what stays out of Captivo

Every secret in this topic (a password, an administrator account, a vault reference) is sealed in the browser to the public key of the connector that will use it, and only that connector can open it. When a resource is served by a connector group, the browser seals one copy per member, and a member added later receives a copy automatically (the audit log shows connector.vault_reshare), so you do not re-enter every password when a second connector joins. Checked-out passwords are re-sealed to the requesting person's browser key instead.

Common problems

  • The Check out button is missing or says it is not available. The switch is off, the credential is not sealed to a connector yet, it lives in your vault, or the resource needs a moderator. The message in the dialog names the reason.
  • The SSH certificate is refused. Check the three server commands ran and sshd was reloaded, the account exists under that exact name, and for a connector group the file holds every member's key. Check now shows the failure.
  • Session role: the connection fails right away. The provisioning account lacks the grants the form printed, or the connector is older than 2.70.0.
  • The administrator rights panel asks you to enter the account again. The connector holding the session has no seal of that account (a new group member, a re-paired connector). Use Change and enter it again.
  • A taken-over account cannot sign in elsewhere any more. That is the point of the take-over: it has a new random password only Captivo knows. Move the service that used the old password to its own account first.

Related: password rotation, databases, native RDP and SSH, recording and monitoring, connector groups and updates.

Was this article helpful?