Identity: single sign-on and provisioning
Enterprise customers have one directory and expect every application to use it: people sign in with the company identity, join and leave through the directory, and an auditor can see who could reach what and when it changed. CoverOps does that through two standards and nothing proprietary:
- OpenID Connect for sign-in, once for the installation: Microsoft Entra ID (Azure AD), Okta, Keycloak, Auth0, Ping, Google Workspace, AD FS 2016+, or any OIDC provider.
- SAML 2.0 for sign-in, per account: each account (the person who owns the projects) can bring its own IdP, on the hosted service as on-prem. See SAML 2.0 below.
- SCIM 2.0 for provisioning: accounts created when assigned, switched off when removed, by the IdP itself.
Groups in the IdP decide roles in CoverOps, re-read on every sign-in. There is no LDAP binding: an on-premises Active Directory with no cloud tenant is federated through AD FS or Keycloak (both speak OIDC or SAML to CoverOps and LDAP/Kerberos to the directory), which is how every modern application reaches such a directory.
Roles
| Role | Can |
|---|---|
| Admin | everything in a project: members, agents, settings, quality gates |
| Member | read everything, change what their work needs (runs, flaky tests, notes) |
| Viewer | read-only, for auditors and stakeholders |
| Super admin (flag) | the operator of the deployment: every project, the platform page, and the one account that may still use a password when SSO is required |
Roles live per project; the super-admin flag is granted only by another super admin and never by signing up.
1. Register CoverOps at the identity provider
Create an OIDC application (web / confidential client). What CoverOps needs from it: the issuer URL, a client id and a client secret. What it needs from you: the redirect URI
https://<COVEROPS_HOST>/v1/auth/sso/callback
and the scopes openid email profile. CoverOps uses the authorization-code
flow with PKCE and reads the email from userinfo; the groups claim is read
from the id token or userinfo, whichever carries it.
Microsoft Entra ID (Azure AD)
- App registrations → New registration. Redirect URI (Web): the callback above. Note the Application (client) ID and Directory (tenant) ID.
- Certificates & secrets → New client secret. Copy it now.
- Token configuration → Add groups claim → Security groups (or Groups
assigned to the application, which is better hygiene), emitted as Group
ID in the ID token. For a small, named set of groups you may instead
use App roles and set the groups claim to
roles. - Issuer:
https://login.microsoftonline.com/<tenant-id>/v2.0. - Optionally Enterprise applications → your app → Properties → Assignment required = Yes, so only assigned users and groups can sign in at all.
Entra sends group object ids in the claim, not names. Paste the object ids into Admin groups / Allowed groups in CoverOps. (If you chose App roles, paste the role values.)
Okta
- Applications → Create App Integration → OIDC, Web Application. Sign-in redirect URI: the callback. Assign the groups that may use it.
- Sign On → OpenID Connect ID Token → Groups claim filter:
groups, Matches regex.*(or a prefix for your CoverOps groups). - Issuer:
https://<org>.okta.com(or the custom authorization server's issuer). Okta sends group names.
Keycloak (and an on-premises AD behind it)
- Clients → Create client, OpenID Connect, client authentication on, valid redirect URI: the callback.
- Client scopes → dedicated scope → Add mapper → Group Membership, token
claim name
groups, Full group path off. - Issuer:
https://<keycloak>/realms/<realm>. - To reach an Active Directory: User federation → LDAP (or Kerberos) in the same realm; groups come through the group-ldap-mapper. People then sign in with their AD credentials through Keycloak's page, and CoverOps sees an OIDC token like any other.
AD FS 2016 or later
- Application Groups → Add → Server application with the callback as the redirect URI; note client id and generate a secret. Add a Web API to the same group with the client id as its identifier.
- Issue a Group claim: issuance transform rule Send Group Membership as
a Claim (or Send LDAP Attributes → Token-Groups – Unqualified Names →
outgoing claim type
groups). - Issuer:
https://<adfs-host>/adfs.
Google Workspace
Standard OIDC app in Google Cloud Console; issuer https://accounts.google.com.
Google does not emit groups in the id token; use Allowed email domain and
manage roles in CoverOps, or front it with a provider that does.
2. Configure CoverOps
Team → Single sign-on (OIDC) (administrators only):
| Field | Set to |
|---|---|
| Issuer | the issuer URL. On save, CoverOps fetches /.well-known/openid-configuration and fills the three endpoints; type them only if discovery is blocked. |
| Client ID / Client secret | from the registration. The secret is write-only; leave it blank to keep the stored one. |
| Allowed email domain | optional first fence: only @example.com may sign in |
| Groups claim | groups (Entra, Okta, Keycloak, AD FS) or roles (Entra app roles) |
| Admin groups | members sign in as Admin; leaving the group demotes to Member on the next sign-in. Empty = SSO never changes roles. |
| Allowed groups | optional: anyone outside these groups is refused at sign-in |
| Enabled | shows Sign in with SSO on the login page |
| Required | password sign-in is refused for everyone except a super admin |
Test with a second browser before ticking Required. The break-glass
account (the bootstrap administrator, flagged super admin) keeps a password
so an outage at the IdP does not lock the operator out; keep that password in
a vault and watch its use in the audit log (auth.login with that email).
What happens at sign-in: the token exchange (with PKCE), the email from
userinfo, the groups from the claim; a first sign-in creates the account
(role from the groups, member otherwise); later sign-ins update the role;
a disabled account is refused whatever the IdP says. Every step is an audit
event: auth.sso.login, auth.sso.login.failed with the reason.
SAML 2.0 single sign-on (per account)
OpenID Connect above is the installation's: one IdP for everybody, set by an administrator account. SAML is the account's: the owner of an account (the person who owns its projects, the same unit a package belongs to) connects the company's IdP, and it signs people in to that account's projects only. Several accounts on one installation can each have their own, including two that use the same IdP. Nothing here needs an outbound connection: the IdP's metadata can be pasted, so it works air-gapped; only Fetch and import calls the metadata URL, once, when the owner presses it.
What is implemented: SP-initiated sign-in over the HTTP-Redirect binding (AuthnRequests signed with RSA-SHA256), responses over HTTP-POST, signed assertions (required), encrypted assertions (optional, to the SP certificate), and IdP-initiated sign-in when the owner turns it on. Single logout is not implemented: signing out of CoverOps ends the CoverOps session only.
What to give the IdP
Team → Single sign-on (SAML 2.0) → Set up SAML (the account owner only; the section is shown on the Team page of a project you own). Under 1. Give your identity provider:
| Value | Example |
|---|---|
| Entity ID (audience, identifier) | https://<COVEROPS_HOST>/v1/auth/saml/<connection-id>/metadata |
| ACS URL (reply URL, single sign-on URL) | https://<COVEROPS_HOST>/v1/auth/saml/<connection-id>/acs |
| SP metadata | the entity ID above; most IdPs can import it |
| SP certificate | Download the SP certificate: for IdPs that check signed requests or encrypt assertions |
| Sign-in link | https://<COVEROPS_HOST>/v1/auth/saml/<connection-id>/start: the link people use |
The host is COVEROPS_PUBLIC_API_URL when set, otherwise the dashboard address
(COVEROPS_DASHBOARD_URL, or COVEROPS_HOST in the on-prem kit). Set it before
registering the application: the entity ID and ACS URL are part of every
assertion, and changing the address means updating the IdP.
| IdP | Where |
|---|---|
| Entra ID | Enterprise applications → New application → Create your own (non-gallery) → Single sign-on → SAML: Upload metadata file (the SP metadata) or Identifier + Reply URL. Under Attributes & Claims add a group claim if roles should follow groups (Entra sends group object ids). App Federation Metadata Url is the IdP metadata. |
| Okta | Applications → Create App Integration → SAML 2.0: Single sign-on URL = ACS URL, Audience URI = entity ID, Name ID = EmailAddress; Attribute statements email, displayName; Group attribute statement groups. View SAML setup instructions → IdP metadata. |
| AD FS | Relying Party Trusts → Add → import the SP metadata URL (or enter the ACS and identifier); claim rules: Send LDAP Attributes (E-Mail-Addresses → E-Mail Address, Display-Name → Name) and Send Group Membership. IdP metadata: https://<adfs>/FederationMetadata/2007-06/FederationMetadata.xml. |
| Keycloak | Clients → Import client → the SP metadata; mappers for email, displayName, and a Group list mapper named groups. IdP metadata: https://<keycloak>/realms/<realm>/protocol/saml/descriptor. |
| Google Workspace | Admin console → Apps → Web and mobile apps → Add custom SAML app: ACS URL, Entity ID, Name ID = Primary email; download the IdP metadata. |
Configure CoverOps
- 2. Import the identity provider: paste or upload the IdP metadata XML, or give its URL and press Fetch and import. CoverOps takes the entity ID, the HTTP-Redirect sign-in URL and every signing certificate (several during a rollover), and shows each certificate's fingerprint and expiry. A document with a DOCTYPE is refused.
- 3. Attributes: leave blank for the usual names (
email,mail, the…/claims/emailaddressclaim,urn:oid:0.9.2342.19200300.100.1.3; a NameID of format emailAddress or unspecified as a last resort), or name yours. - 4. Who gets in, with which role: admin groups, viewer groups, allowed groups and the default role.
- 5. Email domains for new accounts: claim each domain, publish its DNS TXT record and press Verify (see Email domains).
- Test sign-in: a real round trip to the IdP that signs nobody in; the section then shows the address, name, groups and NameID the IdP sent, the role they would get, and what a real sign-in would do. It works before Enabled is ticked.
- Tick Enabled and give people the sign-in link (or add it as a bookmark app at the IdP).
Who can be signed in
A SAML connection signs in only people linked to it:
- New people, just in time. An address no CoverOps account uses yet, in one of the connection's verified email domains, gets an account at first sign-in, linked to the connection and added to every project the account owns. It has no password. A verified domain belongs to one account's SAML on the whole installation, and public mail providers (gmail.com, outlook.com, …) cannot be claimed. With no verified domain, SAML creates no accounts.
- People who already have a CoverOps login link it themselves: Account → Single sign-on → Link (offered for the accounts whose projects they are on). The IdP must return the same address they are signed in with.
- Never: an existing account that is not linked (an IdP asserting an address does not take that account over), an account linked to another account's SAML, a super administrator, the licence's support account.
Roles are on the account's projects only, never the installation-wide role: members of an admin group get Admin, of a viewer group Viewer, everyone else the default role. With no admin or viewer group set, SAML never changes a role (as with OIDC). Groups are re-read on every sign-in, so leaving the admin group demotes at the next sign-in; with allowed groups, anyone outside them is refused. The account owner's own role is never touched. Removing a person from a project is undone at their next SAML sign-in; remove them at the IdP (or from the allowed groups) instead.
Required turns password sign-in off for the people linked to this connection. The account owner keeps the password as the account's break-glass key, as a super admin does for the installation. People not linked are not affected.
Allow sign-in started at the IdP (off by default) accepts unsolicited responses, for IdP app tiles. Such a response was not requested by the browser that receives it, so it cannot be tied to that browser (login CSRF); every other check still applies, and each assertion is accepted once. Leave it off unless people start from the IdP.
Email domains, proven in DNS
A domain creates accounts only once the account has shown it controls the domain's DNS. Otherwise any account could claim another company's domain and mint accounts in its name.
-
Claim the domain under 5. Email domains for new accounts. The claim is pending and gets its own random token.
-
Publish a TXT record at the domain's DNS host:
_coverops-challenge.example.com. TXT "coverops-verification=<token>"The same value on
example.comitself is accepted too, for DNS hosts that make underscore names awkward. -
Press Verify. The server also looks by itself: after 1, 5 and 15 minutes, 1, 3 and 6 hours, then every 12 hours, for 14 days.
The record name follows the IETF DNSOP Domain Control Validation using DNS
draft (an underscored, service-specific label with an unguessable token, like
ACME's _acme-challenge and GitHub's _github-challenge-…); the apex is where
Google Workspace, Atlassian, Slack and Microsoft 365 put theirs. Like
Atlassian's, the record stays in place: it is how the domain stays verified.
| Pending | creates no accounts and keeps nobody out: other accounts may claim the same domain. Removed after 14 days if never verified |
| Verified | creates accounts just in time; while it is verified, no other account may claim or verify the domain. Other accounts' unverified claims on it are removed when it is verified |
| Re-check | every 7 days. When the record is missing, the owner gets an email (and the audit log an entry) once; the domain is looked up daily and stays verified for a 7-day grace. Still missing after that, it lapses back to pending (another email), with 14 days to restore the record before the claim expires; meanwhile another account can verify it |
| Release | the owner may release a claim at any time, verified or not |
| Verify presses | 10 per account per 10 minutes (per API replica) |
People a domain already created stay linked to the connection and keep signing in when the domain lapses or is released: sign-in goes by the link, never by the domain. Only new accounts depend on a verified domain.
Lookups use Node's resolver (node:dns, TXT only) with a timeout; nothing else
is called. Set COVEROPS_SAML_DNS_SERVERS (comma-separated IPs) to use
particular resolvers instead of the system's — for example a public resolver,
when the company's internal DNS answers its own domain differently
(split-horizon) from the world.
Claims made before verification existed (CoverOps before November 2026)
became unverified-legacy on upgrade: the people they created or linked keep
signing in, but no new account is created until the owner publishes the
record shown next to the domain and presses Verify (the server also looks by
itself for 14 days after the upgrade). They block nobody and do not expire.
Under the trust setting below they are verified at start instead.
Air-gapped and on-prem: trusting declared domains
COVEROPS_SAML_DOMAIN_VERIFICATION:
| Value | |
|---|---|
auto (default) | trust on a licensed (on-prem) installation, dns everywhere else, the hosted service included |
dns | every domain proves itself with the TXT record |
trust | a domain is verified the moment an account owner adds it, without DNS — still one account per domain, still no public mail providers |
Why trust on a licensed installation by default: every account on it belongs
to the licensee's own company, its operator decides who may register, and many
such installations cannot reach public DNS at all (or see a split-horizon
answer), where dns would leave single sign-on unable to create anyone. An
on-prem installation that does reach DNS and hosts several independent
organisations should set dns. When trust is turned off, claims verified by
trust stop creating accounts at once and go back to pending on the API's next
pass (within 5 minutes), to prove themselves with DNS.
What CoverOps checks
Every response, before anyone is signed in. Signature checking is node-saml (MIT) with xml-crypto, pinned, never hand-written XML signature code:
| Check | |
|---|---|
| Signature | the assertion must be signed by one of the connection's IdP certificates; an unsigned assertion is refused even inside a signed response; one assertion per response |
| Issuer | equals the IdP entity ID |
| Audience | equals this connection's entity ID: an assertion made for another account's connection fails here, even from the same IdP |
| Destination / Recipient | the response's Destination (when present) and the bearer confirmation's Recipient equal this connection's ACS URL |
| Time | NotBefore / NotOnOrAfter with 60 seconds of clock skew |
| InResponseTo | an SP-initiated response must answer a request this connection sent in the last 10 minutes and that is not used yet; on https the request is also bound to the browser by a cookie |
| Replay | each request answered once, each assertion ID accepted once (kept in the database until the assertion expires, so every API replica agrees) |
| XML | DOCTYPE refused before parsing (no entities, no XXE), responses capped at 1.5 MB |
Each connection's own RSA-3072 key signs AuthnRequests and decrypts encrypted
assertions; it is sealed at rest with COVEROPS_SECRETS_KEY like other
credentials and never leaves the server. The certificate is self-signed, valid
10 years.
Audit
auth.saml.config.create, auth.saml.config.update (changed fields with
before/after; certificates as fingerprints), auth.saml.metadata.import,
auth.saml.config.delete, auth.saml.test, auth.saml.link,
auth.saml.link.failed, auth.saml.login (with created for a just-in-time
account), auth.saml.login.failed with the reason. Email domains:
auth.saml.domain.claim, auth.saml.domain.verify (with ok, the status
before and after, and the reason when not found; by the background check with
via: saml-domain-check), auth.saml.domain.release,
auth.saml.domain.expire, auth.saml.domain.superseded (another account
verified it), auth.saml.domain.recheck.failed,
auth.saml.domain.recheck.recovered, auth.saml.domain.lapse,
auth.saml.domain.trust / auth.saml.domain.untrust (the trust setting
applied). The token is never logged. They are filed on the account's first
project, so its team's audit log shows them.
When it fails
The sign-in page shows the reason (SSO sign-in failed: …), and the audit log
has it:
| Reason | Fix |
|---|---|
audience mismatch | the IdP's identifier is not this connection's entity ID |
Unknown SAML issuer | re-import the IdP metadata |
Invalid signature | the IdP signs only the response, or rolled its certificate: sign the assertion (Okta: Assertion Signature: Signed; Entra: Sign SAML assertion) and re-import |
not addressed to this service (Recipient) | the IdP's ACS / reply URL is not this connection's |
started in another browser | the sign-in began in another browser or the cookie was blocked; start again from the link |
already exists … link single sign-on under Account | the person has a password login: they link it under Account |
creates accounts only for … / no verified email domain | claim and verify the domain under Email domains, or the address is not the company's |
… is not verified yet | publish the domain's TXT record and press Verify (see the error next to the domain) |
already verified by another account | another account holds the domain; it must release it first |
turned off (IdP-initiated) | start from the CoverOps sign-in link, or allow IdP-initiated sign-in |
3. Provisioning and deprovisioning (SCIM 2.0)
SSO alone creates accounts when people first sign in; it does not remove them when they leave. SCIM does: the IdP calls CoverOps when a user is assigned or unassigned.
Team → Single sign-on → Provisioning → Mint a SCIM token. The token is shown once. Give the IdP:
- Tenant / base URL:
https://<COVEROPS_HOST>/scim/v2 - Secret token: the minted value (sent as
Authorization: Bearer …)
| IdP | Where |
|---|---|
| Entra ID | Enterprise applications → your app → Provisioning → Automatic; Tenant URL + Secret Token → Test Connection → map userPrincipalName → userName, objectId → externalId, displayName → displayName, Switch([IsSoftDeleted]…) → active (the defaults) → Start provisioning. Entra syncs every 40 minutes. |
| Okta | Applications → your app → Provisioning → Integration → SCIM 2.0, base URL, HTTP Header auth, enable Create / Update / Deactivate Users. |
| Keycloak | no native SCIM client; use the SCIM-for-Keycloak extension or rely on SSO + the allowed-groups fence (a user removed from every allowed group is refused at the next sign-in). |
What CoverOps implements: /Users with GET (filter by userName,
externalId, emails.value), POST, PUT, PATCH (active,
displayName, externalId), DELETE; /ServiceProviderConfig, /Schemas,
/ResourceTypes. Groups are not managed over SCIM; roles come from the
token's groups claim at sign-in, which keeps one source of truth.
Deprovisioning disables, never deletes. active: false (or DELETE)
sets the account's disabled mark: every session it holds is refused on the
next request (within five seconds), sign-in and refresh are refused, and the
row stays so the audit log keeps its author. A mistaken removal is one PATCH
away from undone. Every SCIM change is an audit event (scim.user.create,
scim.user.disable, scim.user.enable, scim.user.update) with the IdP as
the actor.
Rotating the token: mint a new one (the old stops at once) and update the IdP the same day; revoking it stops provisioning without touching accounts.
4. Local accounts, API tokens, and what is not SSO
- Agent tokens are not people. They are minted per project on the Agents page, hashed at rest, shown once, rotated from the same page, and every use is in the access log with the agent's id.
- Link tokens (ReplayOps ↔ CoverOps pairing) likewise.
- Self-registration exists for evaluations; with SSO Required it is moot, since a registered account cannot use its password.
- MFA is the identity provider's job and is enforced there (conditional access, Okta policies); CoverOps never sees the second factor and does not weaken it.
5. Checklist to send the identity team
- Create the OIDC app with the callback URL; send us issuer, client id, secret (through your secrets channel, never email). For SAML, create the SAML app with the entity ID and ACS URL from the Team page and send us the IdP metadata (XML or URL).
- Emit a groups claim; tell us the claim name and the ids/names of the CoverOps-Admins and CoverOps-Users groups.
- Enable SCIM provisioning with the base URL and token we send back.
- Confirm assignment is required at the IdP so the IdP, not CoverOps, is the gate.
- Agree who holds the break-glass password and where it is kept.