Most teams buy their first credential tool to get passwords out of a spreadsheet. Then they stretch it to cover the root login on the database host and the API key in the CI pipeline. The password manager vs PAM question usually starts when an auditor asks who ran a command as root last Tuesday, and the vault can only say who copied the password. The three categories exist because credentials have three kinds of holder, and each needs a different control.
We split the decision by who holds the secret: people sharing logins (password manager), people with privileged access that must be brokered and recorded (PAM), and processes that need short-lived credentials (secrets manager). Each split is backed by a lab on one Ubuntu VM: a Passbolt shared folder with per-user rights, a Teleport SSH session recorded and played back, and an OpenBao database credential that disappears after two minutes. The behavior described here was checked against OpenBao 2.7.2, Teleport 18.10.0 and Passbolt CE 5.17 in October 2026, and every output below comes from that VM.
Password manager vs PAM vs secrets manager
A password manager stores secrets a person reads, a PAM tool controls what a privileged person does with access, and a secrets manager issues credentials to software that has no person behind it. That one sentence settles most arguments, because each category is built around a different audit question. The password manager can tell you who opened an entry. PAM can tell you what happened during the session. A secrets manager can tell you which workload held which credential and when it stopped working.
| Password manager | PAM | Secrets manager | |
|---|---|---|---|
| Who uses the credential | People, for everyday logins | People with admin or root rights | Applications, pipelines, scripts, AI agents |
| How the secret lives | Long-lived, rotated by hand | Vaulted, rotated by the tool, often never shown to the user | Issued on demand with a lease, revoked when it ends |
| How access happens | User copies or autofills the secret | Session goes through a broker or proxy | API call with a machine identity |
| What gets audited | Who viewed, shared or changed an entry | Who connected where, plus a recording of the session | Which identity read which secret, lease issue and revoke |
| Lab example | Passbolt CE shared folder | Teleport Community Edition | OpenBao database secrets engine |
The last row matters more than it looks. All three lab tools ran on the same 4 vCPU VM with 8 GB of RAM, which tells you the split is not about scale or budget. It is about the shape of the access. The diagram shows the three paths side by side, with the ports each one used in the lab.

Notice that only the left path ever puts a secret in front of a human. In the middle path, Teleport signs a short-lived certificate after an MFA login, so the admin never sees a reusable SSH password or key. In the right path, the report job asks OpenBao for a database login, uses it, and the login stops existing two minutes later whether or not anyone remembers to clean up.
What a password manager does for teams
A team password manager is an encrypted vault that lets people share logins without pasting them into chat, with rights set per person or group. The value is in sharing, not storage: one engineer leaves, you remove their access to the folder, and you know exactly which entries they could read and should rotate. Everything here is still a human workflow. A person opens the entry, copies the password or lets the browser extension fill it, and logs in as themselves or as the shared account.
In the lab, the admin gedion created a Passbolt folder called Production databases holding two database logins and shared it with two colleagues on different terms. Amina runs operations and can change the entries. Brian is a contractor and can only read them. The share dialog shows the whole access model on one screen:

- 1Amina: can update
- 2Brian: can read only
- Amina: can update: she can read, use, edit and delete the entries in the folder.
- Brian: can read only: he can see and use the passwords, but cannot change them or reshare them.
Passbolt’s third level, “is owner”, adds the right to manage who the folder is shared with, and only an owner can open this dialog. The folder’s rights flow down to every entry inside it. We queried Passbolt’s MariaDB permissions table after saving, and each password carries the same three rows as the folder (Passbolt stores read as 1, update as 7 and owner as 15):
+----------------------+----------+--------------------+------+--------+
| object | kind | who | perm | level |
+----------------------+----------+--------------------+------+--------+
| mariadb-replica root | Resource | [email protected] | 15 | owner |
| mariadb-replica root | Resource | [email protected] | 7 | update |
| mariadb-replica root | Resource | [email protected] | 1 | read |
| pg-primary admin | Resource | [email protected] | 15 | owner |
| pg-primary admin | Resource | [email protected] | 7 | update |
| pg-primary admin | Resource | [email protected] | 1 | read |
| Production databases | Folder | [email protected] | 15 | owner |
| Production databases | Folder | [email protected] | 7 | update |
| Production databases | Folder | [email protected] | 1 | read |
+----------------------+----------+--------------------+------+--------+
Logged in as each colleague, the same folder looks different. Brian’s toolbar offers only Copy and an overflow menu, with no Edit or Delete button. Amina’s adds Edit and Delete but still no Share, so “can update” does not let her pass the folder on to someone else. That is a clean model for people, and it is also where the category stops. Brian’s “can read” still means he sees the plaintext database password. Once it is on his clipboard, Passbolt has no say in what he does with it, how long he keeps it or which commands he runs on the database. Nothing rotates the password when his contract ends unless someone remembers to. A password manager answers “who could see this secret?”, which is a necessary question but not the one an incident review asks.
How PAM brokers privileged sessions
Privileged access management puts a broker between the admin and the target, so the organisation controls the credential and keeps a record of what the admin did with it. NIST defines a privileged user as one “authorized (and therefore, trusted) to perform security-relevant functions that ordinary users are not authorized to perform”, and that trust is the reason PAM exists: you cannot take it back after the fact, so you watch it while it happens. The typical PAM feature list (credential vaulting and rotation, just-in-time elevation, session brokering, session recording) all serves that one goal.
We used Teleport Community Edition as the broker because it records SSH sessions at the node and replays them without extra setup. The cluster ran auth, proxy and SSH services on the one VM, with local users and OTP as the second factor. After an MFA login, the admin gedion opened an interactive session to node-a through the proxy and ran four commands. Teleport listed the session as soon as it ended:
sudo tctl recordings ls
Both sessions from the lab show up with the user, the target node and a start time, and the session ID is what you pass to the player:
ID Type Participants Target Timestamp
------------------------------------ ---- ------------ ------ ------------------------
c571d2f2-361b-4a95-9614-88dc88d4d246 ssh gedion node-a Oct 30 2026 23:36:37 UTC
fe006f48-eb01-4ee6-9f88-7db3c44a91e2 ssh gedion node-a Oct 30 2026 23:36:17 UTC
Playing a recording back as text is one command. This is the evidence a password manager cannot produce, because a password manager stops being involved the moment the password is copied:
tsh play --format=text fe006f48-eb01-4ee6-9f88-7db3c44a91e2
The replay returns every command and every line of output from the 18-second session, including the sudo calls. We masked the key fingerprint in the journal line:
gedion@node-a:~$ whoami
gedion
gedion@node-a:~$ hostname
node-a
gedion@node-a:~$ sudo systemctl is-active teleport
active
gedion@node-a:~$ sudo journalctl -u ssh -n 3 --no-pager
Oct 30 23:35:49 node-a sshd-session[41156]: pam_unix(sshd:session): session opened for user gedion(uid=1000) by gedion(uid=0)
Oct 30 23:35:53 node-a sshd-session[41210]: Accepted publickey for gedion from 10.0.1.5 port 43962 ssh2: ED25519 SHA256:<masked>
Oct 30 23:35:53 node-a sshd-session[41210]: pam_unix(sshd:session): session opened for user gedion(uid=1000) by gedion(uid=0)
gedion@node-a:~$ exit
logout
Those Accepted publickey journal lines are our own lab SSH logins on port 22, which we kept open to drive the VM. They are exactly the path a real PAM rollout removes: once the broker is in place, sshd on the target either closes to everything but the proxy or stops listening, so the recorded route is the only route.
The audit log holds the structured side of the same story: a session.start and session.end event per session, each with the Teleport user, the Unix login, the target host and the session ID that links back to the recording. That pairing (who, where, and a replayable record of what) is what an auditor means by privileged session evidence. The web UI shows the same recordings under Audit, Session Recordings, with a thumbnail of the last terminal state (the browser ran in UTC+3, so 23:36 UTC shows as 02:36):

- 1Recorded SSH session, click to play
- 2User and target node
- 3Session duration
- Recorded SSH session, click to play: each brokered session becomes a row, and the row opens the player.
- User and target node: the Teleport identity, not a shared Unix account, so the action is attributable to a person.
- Session duration: 18 seconds for the session we replayed.
Our first attempt is the upper row, and it is a useful failure. We drove that session through script with piped input, the shell never got a proper terminal, and the thumbnail reads “Failed to launch: shell”. It still produced a 2 minute 44 second recording. A PAM tool records the session whether it succeeds or not, which is exactly what you want when someone claims they “only logged in to look”. Opening the 18-second session plays it back with a timeline of terminal states underneath:

- 1Recorded commands, replayed
- 2Progress bar and playback position
- 3Timeline of terminal states
- Recorded commands, replayed: the terminal as the admin saw it, paused at 0:11 after the third command.
- Progress bar and playback position: drag it to jump to any moment of the session.
- Timeline of terminal states: thumbnails of the screen at each point, so a reviewer can find the interesting minute of a long session.
Recording is in Teleport’s free Community Edition, along with per-session MFA and structured audit logs. Session moderation, dual authorization and access lists are Enterprise features, and the Community Edition can only request roles through the CLI. Commercial PAM suites add password rotation for the target accounts and approval workflows on top of the same broker model. If you want to run this part yourself, our guide to running Teleport with Docker Compose is the quickest start.
How a secrets manager expires credentials
A secrets manager is an API that gives software the credentials it needs, ideally ones generated for that request and revoked on a timer. The point is that a pipeline or service never holds a long-lived password at all. GitGuardian’s 2026 State of Secrets Sprawl report counted 28.65 million new hardcoded secrets in public GitHub commits during 2025, a 34% rise on the year before, and found that internal repositories are about six times more likely than public ones to contain them. A static password that sits in a repository stays valid until someone rotates it. A dynamic one is dead by the time anyone finds it.
The OpenBao database secrets engine does exactly that for PostgreSQL. We ran OpenBao in dev mode next to a PostgreSQL 18 container and used the bao CLI inside the OpenBao container, with BAO_ADDR and the dev root token exported and pg as the PostgreSQL container’s name on a shared Docker network (the commands are identical with HashiCorp Vault’s vault binary). First, enable the engine and point it at the database with an admin connection that only OpenBao knows:
bao secrets enable database
bao write database/config/appdb plugin_name=postgresql-database-plugin allowed_roles=report-reader connection_url='postgresql://{{username}}:{{password}}@pg:5432/appdb?sslmode=disable' username=postgres password=pg-admin-lab
Policy lives in the role. Each read creates a PostgreSQL role with SELECT only, a default lease of 2 minutes and a hard ceiling of 5 minutes:
bao write database/roles/report-reader db_name=appdb creation_statements="CREATE ROLE \"{{name}}\" WITH LOGIN PASSWORD '{{password}}' VALID UNTIL '{{expiration}}'; GRANT SELECT ON ALL TABLES IN SCHEMA public TO \"{{name}}\";" default_ttl=2m max_ttl=5m
Now the report job asks for a login. Nothing existed in PostgreSQL for it a second earlier:
bao read -format=json database/creds/report-reader
The response carries a generated username and password plus a lease of 120 seconds. That lease ID is the handle OpenBao uses to renew or revoke the credential later:
{
"request_id": "b7140267-d3fd-490e-4e4c-5e0debb8fb69",
"lease_id": "database/creds/report-reader/x3ExrbNmyoUFQMfXFCbtWY1n",
"lease_duration": 120,
"renewable": true,
"data": {
"password": "<generated, masked>",
"username": "v-token-report-r-eDwG0VR3OPFJ8swoZxgn-1793402894"
},
"warnings": null
}
We logged in with that pair at 23:28:14 UTC and read the invoices table, then checked the role from the PostgreSQL side as the postgres superuser:
psql -U postgres -d appdb -c "SELECT rolname, rolvaliduntil FROM pg_roles WHERE rolname LIKE 'v-%';"
OpenBao wrote the expiry into the role itself through VALID UNTIL, so PostgreSQL would refuse the password even if OpenBao were down:
rolname | rolvaliduntil
--------------------------------------------------+------------------------
v-token-report-r-eDwG0VR3OPFJ8swoZxgn-1793402894 | 2026-10-30 23:30:19+00
(1 row)
Two minutes and seventeen seconds later, at 23:30:31, we repeated the login with the same generated pair:
psql "postgresql://v-token-report-r-eDwG0VR3OPFJ8swoZxgn-1793402894:<generated>@localhost:5432/appdb" -c "SELECT 1;"
It failed, and the error deserves a close read because it is not “password expired”. The role no longer exists, since OpenBao’s revocation dropped it when the lease ended:
psql: error: connection to server at "localhost" (::1), port 5432 failed: FATAL: role "v-token-report-r-eDwG0VR3OPFJ8swoZxgn-1793402894" does not exist
OpenBao forgot the lease too, so the lookup that worked two minutes earlier now returns invalid lease. We also asked for a 1-hour renewal on a fresh credential, and OpenBao capped it at the role’s max_ttl of 5 minutes with a warning, which is the guard you want when a job tries to hold on to access longer than the policy allows. That pattern (generate, use, let it die) is what no password vault offers, because a password vault stores a secret and has no way to make it stop working.
Do you need PAM if you already have a password manager?
You need PAM when someone must prove what a privileged user did, not only who held the password. If the answer to “who ran that command as root?” has to come from evidence (a regulator, a customer security review, an incident), a password manager cannot give it, because its audit trail ends when the secret leaves the vault. If your admins are three engineers who all have root anyway and nobody outside the team asks, a password manager with MFA, tight folder permissions and SSH keys is a reasonable place to stop.
Three concrete signals push a team from one to the other:
- Shared root or admin accounts: several people use one privileged identity, so the password manager’s “who viewed it” log cannot attribute an action to a person.
- Contractors and vendors with production access: access has to be granted for a window and recorded, then removed without rotating every password they saw.
- Compliance controls that name privileged actions: NIST SP 800-53 control AC-6(9) reads “Log the execution of privileged functions”, and a vault access log does not record what was executed.
Two or more of these and the password manager is doing a job it was not built for. The reverse question (do you need a password manager if you have PAM?) usually answers itself: PAM tools are priced and designed for a few hundred privileged accounts, not for every SaaS login in the company.
Which tool your team needs
Our recommendation is the matrix below, built from the lab and from what each category is designed for. It reads by row: find the team that looks like yours and the workload that worries you most.
| Team and situation | Password manager | PAM | Secrets manager |
|---|---|---|---|
| Under 10 people, no servers of your own | Yes, first and only tool | No | Not yet, your platform’s built-in secrets store is enough |
| 10 to 50 people, a few servers, one CI pipeline | Yes | Not yet, SSH keys plus MFA and logs | Yes, as soon as CI holds a production credential |
| 50 to 250 people, shared admin accounts or contractors | Yes | Yes, start with session brokering and recording | Yes, with dynamic database credentials |
| Regulated (PCI DSS, SOC 2, ISO 27001, HIPAA) | Yes | Yes, recording and approval workflows are audit evidence | Yes, with audit logging of every read |
| Platform team running Kubernetes and many services | Yes, for the humans | Yes, for kubectl and node access | Yes, this is the main workload |
Two things stand out in that table. The password manager column never says no, because every team has people with logins, so it is always the first purchase. And the secrets manager arrives before PAM for most engineering teams: one production credential in a CI variable is a bigger and more common risk than an unrecorded root shell, and GitGuardian’s finding that about 28% of leak incidents start outside code repositories (in Slack, Jira and Confluence) shows where those credentials end up when there is no API to fetch them from.
Tools in this space
These are real, current products in each category, listed alphabetically within each group and not ranked. We ran Passbolt CE, Teleport Community Edition and OpenBao for this article; the others are described from their vendors’ documentation.
- Bitwarden: an open source password manager for teams with a cloud or self-hosted server, plus a separate Bitwarden Secrets Manager for machine credentials. The site has guides for its command line client and for self-hosting the Vaultwarden server.
- Passbolt: an open source team password manager with end-to-end OpenPGP encryption and per-user sharing rights, available as a free self-hosted Community Edition and as paid Pro and Cloud editions. See how to install Passbolt on Ubuntu.
- Delinea Secret Server: a commercial PAM vault for admin, root, service and application accounts with discovery, rotation and session monitoring.
- Securden Unified PAM: a commercial PAM suite offered on-premises or as SaaS, covering password vaulting, just-in-time privileged access and recording of access to critical systems.
- Teleport: an access platform for SSH, Kubernetes, databases and desktops that issues short-lived certificates and records sessions. The Community Edition is free for companies under 100 employees and US$10M revenue. Our guide covers securing Linux and Kubernetes access with Teleport.
- HashiCorp Vault: the secrets manager that popularised dynamic secrets, now owned by IBM, which completed its HashiCorp acquisition in February 2025. Start with installing a Vault server on Linux.
- OpenBao: an open source, community-driven fork of Vault under the Linux Foundation’s OpenSSF, with the same CLI and API shape, including the database secrets engine used above.
- Infisical: an open source secrets manager with a web UI, CLI and SDKs aimed at application teams. We have a walkthrough to self-host Infisical.
Cloud teams already have a secrets manager in their provider account. AWS Secrets Manager, for example, bills $0.40 per secret per month and $0.05 per 10,000 API calls, which is cheap for a handful of service credentials and adds up once every microservice stores its own copies.
Where the three-way split breaks down
The categories are clean on paper and messy in vendor catalogues. Most large vendors now sell into at least two of them: Bitwarden and 1Password both offer machine-credential products next to their password managers, Keeper markets one platform spanning PAM and secrets, and Delinea’s vault stores service and application accounts as well as admin ones. A suite can be the right buy, but check which leg was built first, because the add-on leg is usually thinner. A password manager that “also stores API keys” rarely issues dynamic credentials, and a PAM vault that “also does DevOps secrets” may expect a human-shaped workflow that a pipeline cannot follow.
The most common misconception runs the other way: storing a service account password in the team password manager and calling it secrets management. It works until the script that reads it needs the vault’s master password in a config file, which puts a long-lived secret back in plain text one level up. The second is treating session recording as PAM by itself. Teleport’s recording proves what happened, but without short-lived access and approvals the same admin can still do the same damage. The mental model that holds up is the one in the first table: ask who holds the credential, then buy the control that fits that holder.
Sources
- NIST CSRC glossary, privileged user (from SP 800-53 Rev. 5).
- NIST SP 800-53 Rev. 5, security and privacy controls, control AC-6(9) log use of privileged functions.
- Securden, Unified PAM product page.
- GitGuardian, The State of Secrets Sprawl 2026 (28.65 million secrets, 34% growth, 6x internal repositories, 28% of incidents outside code).
- OpenBao documentation, database secrets engine.
- Teleport documentation, session recording architecture and feature matrix and Community Edition licence.
- Passbolt documentation, sharing a resource (read, update and owner permissions).
- IBM, IBM completes acquisition of HashiCorp (27 February 2025).
- AWS, AWS Secrets Manager pricing.
Lab outputs (OpenBao, Teleport and Passbolt) were captured on a single Ubuntu 26.04 VM in October 2026; vendor products we did not run are described from the pages above and their official sites.