What is identity and access management?

Identity and access management, IAM for short, is the discipline of giving the right people and services the right access to the right systems, and nothing more.

What are the building blocks of IAM?

Identities, authentication, authorisation and auditing. An identity represents a person, a service or a device. Authentication proves an identity is who it claims, with passwords, keys, tokens or biometrics. Authorisation decides what that identity may do once proven. Auditing records what it actually did. Weakness in any one undermines the others: strong authentication is wasted if every account is an administrator, and fine-grained roles mean little without logs to check them.

Which authentication methods are strongest?

Phishing-resistant ones based on public-key cryptography. Passkeys and hardware security keys using FIDO2 cannot be tricked into signing in to a fake site, unlike one-time codes typed by hand. App-based codes are far better than passwords alone; text message codes are the weakest second factor. For servers, SSH keys protected by a passphrase or held on a hardware key are the standard, and SSH certificates signed by a central authority scale better than copying public keys around.

MethodPhishing resistanceTypical use
Password onlyNoneAvoid for anything important
Password plus SMS codeLowBetter than nothing
Password plus authenticator appMediumCommon baseline
Passkey or hardware key (FIDO2)HighAdministrators, finance, everyone where possible
SSH key on a hardware tokenHighServer administration

How is authorisation usually modelled?

With roles, and sometimes attributes. Role-based access control groups permissions into roles such as "billing reader" or "deployer" and assigns people to roles, which keeps reviews manageable. Attribute-based control adds conditions, such as allowing access only from the company VPN or during working hours. Whatever the model, apply least privilege: start with nothing and add only what a job requires, with time-limited elevation for rare administrative tasks.

What does single sign-on add?

One strong login for many applications, and one place to switch access off. With an identity provider speaking OpenID Connect or SAML, users authenticate once with strong factors and receive tokens for each application. When someone leaves, disabling one account removes access everywhere. Self-hosted options such as Keycloak, Authentik and Zitadel run well on a small server, for example ESSENTIAL-2 at $43.20 a month, and connect to Git hosting, dashboards, wikis and admin panels.

How should access to servers be managed?

With personal accounts, keys and an audit trail, never a shared root password. Each administrator logs in as themselves with an SSH key, uses sudo for privileged commands, and every action is logged with their name. SSH certificates make this tidy: a small certificate authority signs each person's key for a few hours, and servers trust the authority rather than individual keys.

# on the CA host: sign Ana's key for 8 hours, valid only as user 'ana' and 'deploy'
ssh-keygen -s /etc/ssh/ops_ca -I ana@laptop -n ana,deploy -V +8h ana_ed25519.pub
# on every server: trust the CA, refuse passwords and direct root logins
printf '%s\n' 'TrustedUserCAKeys /etc/ssh/ops_ca.pub' 'PasswordAuthentication no' 'PermitRootLogin no' \
  | tee /etc/ssh/sshd_config.d/20-ca.conf && sshd -t && systemctl reload ssh

Our servers are delivered with root access; create named accounts and disable direct root login as part of the first steps described in First steps with a new server.

What about service accounts and machine identities?

They need the same discipline, and often get less. Give each service its own credentials with the narrowest permissions, store them in a secrets manager, rotate them on a schedule and avoid long-lived keys where short-lived tokens are possible. Workload identity systems such as SPIFFE issue short-lived certificates to services automatically. Unused service accounts are a favourite foothold for attackers, so review them as you would people.

What is identity life cycle management?

The joiner, mover and leaver process. New staff receive the roles for their job on day one; people changing jobs lose old access when they gain new; leavers lose everything on their last day, including SSH keys, API tokens and shared secrets they knew. Quarterly access reviews, where managers confirm who should still have what, catch what slips through. Our Data security article covers protecting the data these identities reach.

Where does IAM go wrong most often?

In shared accounts, standing administrator rights and forgotten leavers. A single shared admin login makes auditing impossible; permanent admin rights for everyone turn any phishing success into a full breach; a former contractor's key still on a server months later is an open door. Fixing those three issues removes much of the real-world risk. Our Cyber security article sets IAM within the wider programme.

Related pages

Data security

Protecting information through its life cycle: classification, access control, encryption, logging, retention and deletion, with controls for data on rented servers.

Read more

Cyber security

Protecting systems, networks and data from digital attack: the threat landscape, core principles, layered controls and a realistic programme for a small team.

Read more

Create SSH keys

Generate an Ed25519 key pair on Windows, macOS or Linux, add it to your account before ordering, and manage keys on a running server.

Read more

First steps with a new server

The first hour after delivery: log in, check the hardware matches the order, update, add a user, lock down SSH and set a firewall.

Read more

Questions and answers

What does IAM stand for?

Identity and access management: the processes and tools that control which people and services can access which systems and data.

What is the strongest form of multi-factor authentication?

Phishing-resistant methods based on public-key cryptography, such as passkeys and FIDO2 hardware security keys.

Should administrators share the root password of a server?

No. Each administrator should log in with a personal account and SSH key, use sudo for privileged commands, and direct root login should be disabled.

Can I run single sign-on on my own server?

Yes. Open-source identity providers such as Keycloak, Authentik and Zitadel run on a small dedicated server and support OpenID Connect and SAML.

What is least privilege?

Giving each person or service only the access needed for its job, and nothing more, with temporary elevation for rare tasks.