Encryption and secrets
Named database fields are encrypted. Five kinds of credential are stored only as hashes.
What is encrypted
RealmSSO encrypts these database fields, with AES-256-GCM: a connection's OIDC client secret, the identity provider's SAML signing certificate, and the private key behind a customer-issued SAML certificate. RealmSSO always generates the signing key. An encryption key is generated by RealmSSO or uploaded by the customer. The API never returns either key. The sign-in service holds its own working copy of each key.
The API never returns the OIDC client secret. The sign-in service holds its own working copy of it.
What is hashed
RealmSSO stores only a SHA-256 hash of each credential below. It does not store the credential itself.
| Credential | What RealmSSO stores | Lifetime and use |
|---|---|---|
| API key | A SHA-256 hash and an 8-character prefix | The key is ss_ followed by 64 hex characters. It appears once, when you create it. |
| SCIM token | A SHA-256 hash | Your customer chooses it. It has 32 characters or more. Each account has one SCIM token. |
| Dashboard sign-in link | A SHA-256 hash | It works once and lasts 15 minutes. Only the newest link works. |
| Refresh token | A SHA-256 hash | It lasts 30 days. Each use issues a new one. |
| Admin Portal invite token | A SHA-256 hash | It works once and lasts 30 minutes. |
What RealmSSO's database does not hold
RealmSSO's database holds no secret for your application's sign-in client, no product client secret and no agent client secret. The sign-in service holds them, and RealmSSO keeps no copy.
The keys
The encryption keys sit in a key ring. Each encrypted value names the key that wrote it.
The ring supports rotation. A rotation adds a new key and moves the stored values onto it.
In transit
The public endpoints use HTTPS with publicly trusted certificates. The API sends an HSTS header with a one-year lifetime.