Release notes
1.2.0
Behaviour change: a client that declares no scopes is issued openid alone
In product mode a client whose oauthAllowedScope lists nothing, typically
one that registered itself (RFC 7591) without a scope member, is now
issued openid and nothing else. Every other scope it asks for is refused
invalid_scope (STS-OAUTH-0578) until it is declared. Until 1.2.0 such a
client got openid, profile, email, address, phone,
offline_access and the realm’s OpenID4VCI scopes, so a client nobody had
thought about could hold refresh tokens that outlive the person’s session
(ASVS 5.0.0 10.4.11).
oauth2.undeclaredClientScopes chooses the set: openid (the default),
identity (the identity scopes, never offline_access), or legacy (the
old set). Development mode still issues any scope a client asks for. This
service’s own clients declare their scopes and are not affected. A client’s
OAuth tab now names the set it gets when it declares none.
Upgrading from 1.1. Run the upgrade script before starting the 1.2.0
image (The audit log is append-only
says why it must come first). It stores legacy for a store that holds any
application and has no value of its own, so every existing client keeps the
scopes it had. A second run writes nothing. A store still on 1.0.0 runs
upgrade-1.0.0.sql first.
docker compose exec -T postgres \
psql -U sts -d sts -v ON_ERROR_STOP=1 \
-f - < postgres/upgrade-1.1.0.sql
mariadb --abort-source-on-error -u root -p sts \
< mariadb/upgrade-1.1.0.sql
A store that is only in memory starts fresh and gets the default. Without a
database (the LDIF store), or in a cell or tier database that does not hold
both the directory and the settings, set oauth2.undeclaredClientScopes to
legacy yourself. While it is legacy or identity, /admin/mode reports
ASVS 5.0.0 10.4.11 as not met. Declare in each client’s oauthAllowedScope
the scopes it needs, then set the setting to openid.
Behaviour change: a password reset signs you out everywhere
Setting a new password from a reset link a person asked for at
/portal/forgot-password now ends every session they had, on every device,
as a reset an administrator issues already did. A reset usually follows a
password somebody else may know, and a session opened with it should not
outlive the new one (ASVS 5.0.0 7.4.3). The page that confirms the new
password says so. If the sessions cannot be ended, the password is still set
and STS-PORTAL-0638 is logged.
Behaviour change: S/MIME mail is authenticated encryption
Mail encrypted to a person’s S/MIME certificate is now a CMS
AuthEnvelopedData (RFC 5083) under AES-256-GCM (RFC 5084), sent as
application/pkcs7-mime; smime-type=authEnveloped-data as S/MIME 4.0
(RFC 8551) asks, so the recipient can tell the message was not changed on
the way (ASVS 5.0.0 11.3.3). Until 1.2.0 it was an EnvelopedData under
AES-256-CBC (smime-type=enveloped-data), which has no integrity
protection. RSA, EC and ML-KEM certificates are handled as before; only the
content encryption and its container changed.
Upgrading. Nothing to run: an existing deployment sends GCM from the
first message after the upgrade, retries of mail already queued included.
For a recipient whose mail client cannot read AuthEnvelopedData, set
mail.smimeContentEncryption to aes256-cbc (in the realm, or
STS_MAIL_SMIME_CONTENT_ENCRYPTION) to send exactly what 1.1 sent. While it
is aes256-cbc in product mode, /admin/mode reports ASVS 5.0.0 11.3.3 as
not met. See OpenPGP and S/MIME.
Behaviour change: three report sources need REPORT_ADMIN
The report sources auditEvents, authActivity and credentialHolders
hold who did what, from where, and who holds which credential, which the
console keeps behind Admin Read. A report over one of them now needs
REPORT_ADMIN (ASVS 5.0.0 8.2.3, #2126). A caller holding only
REPORT_USE is refused (forbidden, STS-REPORT-0061) a query, a job, a
saved definition, a run and a download over them; every other source is
unchanged. The catalog marks the three adminOnly, the page offers them
only to a caller who may use them, and the access-control policy decides
them too, with reportAdminSources for sources a realm adds.
Upgrading. Nothing is removed. A definition a report user saved over one
of these sources stays visible to its owner, who may change its source or
delete it; its runs and its schedule are refused with STS-REPORT-0061
(each skipped occurrence noted on the definition) until its owner holds
REPORT_ADMIN. A realm that overrides access-control keeps its override:
the catalog’s check refuses these sources without it, and rebuilding the
override from the template adds the rule to the policy. See
Reports and
Field access.
Behaviour change: CSV exports neutralise spreadsheet formulas
A report exported as CSV, and the passkey report’s CSV export, now put a
single quote (') in front of any text value whose first character is
=, +, -, @, a tab, a carriage return or NUL, so a value someone
chose (a username, a display name) cannot run as a formula when the file
is opened in a spreadsheet (ASVS 5.0.0 1.2.10). The quote is visible in
the cell. Numbers are not touched: a negative count is still a number.
Until 1.2.0 a report’s CSV quoted only per RFC 4180, and the passkey
export did not catch a leading NUL. A program that reads these files and
compared a text cell starting with one of those characters byte for byte
now sees the quote in front. See Reporting.
Behaviour change: an uploaded sign-in logo loses its metadata
A realm’s sign-in logo is shown to everybody who opens a sign-in page, so
it is now cleaned before it is kept, as profile photos already were: a
JPEG’s EXIF (a GPS position, a camera, a date), XMP and comments, a PNG’s
text chunks and animation frames, a WebP’s EXIF and XMP chunks, and
anything after the end of the image are removed (ASVS 5.0.0 14.2.8). The
pixels are not changed. The digest, size and sides the console and GET
/admin-api/branding show describe the cleaned file. A file that cannot be
read to the end of its image is refused with STS-AUTHN-0624.
Profile photos use the same code, and two things changed for them: a JPEG now ends at its first end-of-image marker, so a second image a phone appends after it (a Multi-Picture Format depth or gain map, which carries its own EXIF) is no longer kept, and an APP2 segment is kept only when it is an ICC colour profile.
Upgrading. Nothing to run. A logo uploaded before 1.2.0 is served as it was stored, metadata included, until it is uploaded again; upload it again to clean it. See Sign-in appearance.
Behaviour change: a password an administrator types is temporary
In product mode, a password an administrator types for somebody must now
be changed at that person’s next sign-in, as a generated one already had
to be (ASVS 5.0.0 6.4.6). The administrator knows it, so it should not stay
the person’s password. This covers POST /admin-api/users/set-password with
password (the console’s Set password), a person created with
credential: "password", and an administrator’s LDAP modify or add of
somebody else’s userPassword. Each sets pwdReset. The sign-in screen
asks for a new password, and the doors that cannot ask (an LDAP bind, the
password grant, WS-Trust, Kerberos, SCIM Basic) refuse it until the person
has chosen one (STS-AUTHN-0142). Typed passwords are still accepted, and
the answer says the password is temporary. Three cases are not affected: a
service account, whose password is a program’s; a person changing their own
password; and development mode.
Reset password and download keytab no longer cancels a change the
person already owes. In product mode it is refused for such a person
(STS-ADMIN-0969) and changes nothing, because the KDC would refuse the
keytab. It still does not make the person change the password it sets,
because that would end the keytab.
Upgrading. Nothing to run. Passwords set before the upgrade are not changed. A script that creates people with a typed password and then signs in as them (an LDAP bind, the password grant, WS-Trust or Kerberos) must first sign in once at the sign-in screen and choose a new password. Or it can use a service account, if the account is a program.
Behaviour change: more administrator acts need a recent sign-in
Until now, only changing a person’s credentials through the console or
/admin-api asked an administrator to have signed in within
account.recentAuthMinutes (15 minutes in product mode). The same is now
asked for granting or removing a role, an administrator role included;
creating, changing or removing a trust realm; every PKI act, including a
CA, an Intermediate, a certificate, a revocation and the signer truststore;
the signing keys, the data keys and the key-encryption key; the TLS client
truststore; the secret push destinations; the krbtgt key and a person’s
keytab; every setting, the mode among them; and every change only a
Security Administrator may make (ASVS 5.0.0 7.5.3). The console asks for
the sign-in again and carries on. The API answers 401 with RFC 9470’s
insufficient_user_authentication and max_age (STS-API-0145).
Upgrading. Nothing to run. A program calling /admin-api with its own
client credentials is not asked. A script that uses a person’s token for
these acts must sign that person in again when it gets the 401. Development
mode does not ask, since account.recentAuthMinutes is 0 there.
Behaviour change: a signed-in person’s own budgets on the account and report APIs
In product mode a signed-in caller now has a budget of its own, counted by the access token’s subject rather than by address (ASVS 5.0.0 2.4.2):
/account-api: every change to the person’s own account (every operation that takes a token and is not aGET: profile edits, credentials enrolled or removed, consents withdrawn, device changes) counts againstaccount.writesPerSubjectinaccount.writeWindowS, 300 in ten minutes by default./report-api: an ad hoc query or preview, a job queued, a saved definition run and a result downloaded count againstreport.actsPerSubjectinreport.actWindowS, 240 in ten minutes by default.
Past it the act is refused with HTTP 429 and Retry-After until the window
passes (STS-ACCOUNT-0024, STS-REPORT-0062); reads, other people and
other callers are not affected. The refusal carries messages, and the
portal and the reports page draw it in their own language. Until 1.2.0 these
acts were bounded only by the per-address ceiling,
security.requestsPerAddressPerMinute. Both budgets are off (0) in
development mode, as that ceiling is.
Upgrading. Nothing to run. The defaults are far above what a person does; a program that writes to a person’s account or runs reports for one subject faster than that should spread its work out or have the setting raised. See Account API and Reports.
Behaviour change: an anonymous wallet keeps the scopes its offer named
A Credential Offer’s pre-authorized code may be redeemed by a wallet that
names no client (OpenID4VCI 1.0 section 6.1). Its access token now carries
the scopes of the configurations the offer named, read from the offer and
not from the request, and keeps them in product mode, where the change above
would otherwise have issued that absent client openid alone. Without them
the credential was issued but not recorded for the person: /portal/wallet
did not list it and it could not sign them in. Until 1.2.0 such a token
always carried identity_credential, whichever configuration was offered.
A wallet that names a client is still issued only what that client
declares.
Behaviour change: this service declares the scopes it asks a partner for
Where this service is the relying party and registers itself, it now
declares the scopes it will ask for, so a partner that issues a client only
what it declared (this service’s own OP, in product mode, since the change
above) issues them. A relationship with fedRegister sends its fedScope
as the RFC 7591 registration’s scope, and a realm’s Entity Configuration
publishes, as its openid_relying_party metadata’s scope, every scope its
OpenID Federation relationships (fedTrustAnchor) ask for. Until 1.2.0
neither carried a scope, and such a partner refused everything past
openid (invalid_scope). A partner that limits the scopes a client may
register may now refuse or trim the registration; set the relationship’s
fedScope to what the partner offers.
Upgrading. Nothing to run. A relationship already registered with
fedRegister keeps its registration, which declared nothing; clear its
fedClientId (or press Register at the partner) to register again with
its scopes. An automatic OpenID Federation registration picks the scope up
when the OP registers the realm again, once the earlier registration ends.
Behaviour change: client secrets expire after a year by default
oauth2.clientSecretLifetimeDays now defaults to 365 (it was 0, never),
for ASVS 5.0.0 13.3.4. Every client secret minted or given from now on,
including a dynamically registered client’s, carries an expiry one year out,
and RFC 7591’s client_secret_expires_at says so. A secret that already
exists keeps the expiry it has: the lifetime is stamped on each secret when
it is made and never recalculated. In product mode an expired secret is
refused at the token endpoint, so rotate secrets before they expire (an
application’s Client secrets list shows each one’s expiry). Set the
setting to 0 to keep secrets that never expire. The secrets this service
uses for its own clients are unaffected: they hold none.
Behaviour change: in product mode, administrators need a compliant registered device
In product mode, a person’s token for the admin console, or any token
carrying an admin:* scope for /admin-api, is now issued only from a
compliant registered device of their own (ASVS 5.0.0 8.4.2). The check is
made at the token endpoint, on every grant and every refresh. A refusal is
access_denied, recorded as STS-DEVICE-0054. The new setting
devices.requireCompliantDeviceForAdmin controls it: auto (the default)
is on in product and off in development, and on and off force it.
Programs that use their own client credentials are not affected.
Upgrading. Nothing to run, and nobody is locked out. The requirement
starts unarmed in every realm, so every administrator signs in exactly as
before. It arms itself the first time a console administrator signs in from
a compliant registered device. Directory → Devices says which state a realm
is in. Before that first sign-in, register your administrators’ devices,
have them marked compliant, and sign them in with the passkey or
certificate on the device. Devices has the steps, and the way
back in if every administrator loses their device. A realm that keeps its
own role-issuance document must rebuild it from the template to get the
rule. To keep the 1.1 behaviour, set the setting to off.
This repository’s own test stacks run with the setting off
(docker-compose-run-tests.yml), because their browser-driven console jobs
sign in from browsers that hold no registered device. One job,
tests/protocol/sts_admin_device_requirement.js, turns it on in a realm of
its own and checks the rule end to end.
Behaviour change: the console, portal and reports sign in with read scopes
The admin console, the user portal and the reports application used to ask
for every scope they might ever use on every sign-in, so somebody who only
looked at a page held admin:write and admin:security (ASVS 5.0.0
10.2.3). Each now signs in with read scopes only: the console with openid
admin:read admin:console, the portal with openid account:read owner:read,
and the reports application with report:read. The first time a page
saves something, the API refuses the read token with insufficient_scope
naming the scope it needs, and the page asks for it by a second
authorization in a small window: silently (prompt=none) while the sign-on
session lasts, and for admin:security only on a sign-in less than five
minutes old (max_age=300), asking you to sign in again otherwise. The change
waits in memory and is sent once the scope is in hand. The write token is
used for changes only, is never refreshed, and is dropped after ten minutes
or at its expiry; reads keep the read token. A browser that blocks the
window gets a bar with a Continue button.
A service administrator working on another realm’s pages through the realm switcher is asked for the write scope by the realm they signed in at, where their account is, not by the realm on screen; and the pages that draw their own write controls (Sign-out’s end-session buttons, the roles page) draw them from the roles the person holds, as the rest of the console does, while the change itself still needs the scope (#2200).
Two new read scopes: account:read (/account-api, GETs only) and
report:read (/report-api, GETs only, authorized by REPORT_USE or
REPORT_ADMIN). /admin-api now names the missing scope on its
refusals (WWW-Authenticate: … error="insufficient_scope" on
STS-API-0005 and STS-API-0138; the status, code and body are
unchanged), and GET /admin-api/me gains holds, the roles the caller may
be issued a token for.
Upgrading. Nothing to run. On the first start, sts-user-portal and
sts-report are given the delegated permission grants and global consent
of the new read scopes, and sts-account-api and sts-report-api define
them. Tokens carrying account:manage, report:use, report:admin or
admin:write work exactly as before, so programs and the protocol suite’s
clients need no change. See Admin console,
Account API and Reporting.
Behaviour change: an application’s Shared Signals stream is about the people signed in to it
A stream an application owns (created with its client credentials, its GNAP
key or its TLS client certificate) now carries a CAEP or RISC event about a
person only while that person has an active session on that
application: a live sign-on session it is a relying party of (OpenID
Connect or OAuth client, SAML 2.0 or 1.1 service provider, WS-Federation
relying party), or a live GNAP grant the person approved to it. It used to
be sent every person’s events in the realm. The event that ends such a
session (a sign-out’s session-revoked, a RISC account-disabled or
account-purged about the same act) still reaches the application whose
session it ended. Events with no subject, and events about the application
itself or another non-person, are unchanged. Add Subject naming a person
with no active session on the application answers 403 (STS-SSF-0164).
ssf.applicationStreamScope: all restores the old behaviour per realm. See
Shared Signals.
Behaviour change: A very large groups claim is referenced instead of carried
An access token or ID Token whose groups claim would be over
groups.claimMaxBytes (new, 4096 bytes by default) no longer carries the
list. It carries OpenID Connect Core section 5.6.2’s distributed claim instead:
_claim_names maps the claim’s name (groups by default) to sts-groups, and
_claim_sources.sts-groups.endpoint is the realm’s new /oauth2/groups. A
relying party or resource server presents the access token there (Bearer or
DPoP, as at UserInfo) and gets the list back as a signed JWT with iss,
sub, aud, iat, exp and the claim. The list is never cut short. Only
an access token that itself carries the reference may ask, and it gets
exactly what it would have carried below the cap, after its client’s own
group settings and release filter, and nothing more.
Below the cap nothing changes, and 4096 bytes is about 150 group names or 60
DNs. Until now a person in a few hundred groups got a token over 8 KiB, which
most servers refuse with 431 (Node.js refuses one over 16 KiB). UserInfo
responses and SAML assertions still carry the whole list, because neither
travels in a header. Set groups.claimMaxBytes to 0 for the old behaviour
(ASVS 5.0.0 4.2.5).
Security: Certificates, CAs and signing and decryption keys are renewed on a schedule
Five keys and certificates that were renewed only at a restart or by hand now
have scheduler jobs, each on /admin/scheduler, with its own settings, audit
rows and error codes.
- The listener certificate (main port, LDAPS, the debugger) is renewed
over the same key without a restart by
tls.server-certificate-renew, in every node’s front process, once less than a third of its validity is left (tls.serverCertificateRenewal,tls.serverCertificateRenewLeadDays). - The Root, Intermediate and Issuing CAs are renewed over the same key and
subject by the daily
pki.ca-renew, the Root first (pki.caRenewal,pki.rootRenewalLeadDays,pki.caRenewalLeadDays). Everything they signed keeps verifying and a pin on a CA’s key holds. A renewed Root is published beside the one it replaced, at/pki/ca/service/root-previous.cer, until that one expires. - This service’s own Kerberos acceptor key is rotated by
krb5.service-key-rotate, keeping the previous key for the tickets already issued (krb5.serviceKeyRotationIntervalDays). A service key whose keytab was handed to another service is reported as due, not rotated. - The dedicated credential signers move to a new key per family with
keys.credential-signer-rotate(keys.credentialSignerRotationIntervalDays). The old key stays published, so every credential it signed keeps verifying. - The request object encryption keys, the OpenID4VCI request-encryption key
and the KEM decryption keys are replaced by
keys.encryption-key-rotate(keys.encryptionKeyRotationIntervalDays). The new key is published at once, and the old one still decrypts forkeys.encryptionKeyOverlapDays.
An upgrade rotates nothing on its first start: the key schedules count from when they first see a key, and the Kerberos one from the key’s own creation. The key schedules run in product mode only. No upgrade script is needed.
Security: Limits and timeouts on everything the service connects to
Every outbound HTTP call now shares one keep-alive connection pool per
process, capped per destination (federation.outboundMaxSockets, 64) and in
all (federation.outboundMaxTotalSockets, 1024), and has an overall deadline
(federation.outboundDeadlineMs, 2 minutes) and a connect timeout
(federation.outboundConnectTimeoutMs, 10 s) beside its inactivity timeout.
Ordinary database statements run under persistence.statementTimeoutMs
(5 minutes); the start’s migrations and restore are not under it. The pool’s
size and waits are settings (persistence.poolSize, persistence.poolWaitMs,
persistence.connectTimeoutMs, persistence.idleTimeoutMs), as is an
attribute source’s pool (attributeSources.poolSize). The secret store and
the cloud key services get each SDK’s own timeout and retry bound
(keys.storeTimeoutMs, keys.storeAttempts); HSM operations a timeout and a
queue limit (keys.pkcs11TimeoutMs, keys.pkcs11QueueLimit); malware scans a
concurrency limit and queue (malwareScan.concurrency,
malwareScan.queueLimit, refused 503 past it); and an inter-cell answer a
size cap (cells.maxAnswerBytes). The mail outbox’s first attempt is held to
mail.concurrency, and a message that would take the pending rows past
mail.maxRows is refused (STS-MAIL-0244) instead of growing the outbox
without bound. Every default is above what normal traffic uses. See
Dependencies, limits and timeouts.
Security: Shared secrets, the database password, client secrets, the cell key and the DKIM key can be rotated
The shared secrets that are keys (the CSRF, ACME nonce, Shared Signals
receiver, OpenID Federation page, sign-out result and DBSC keys) now rotate
every cluster.secretRotationDays (90) on a store shared through the
database. A new value is published before it is used, and the old one is
still accepted for cluster.secretOverlapS (one day). A value stored by an
earlier release is first rotated that many days after the upgrade, never at
it. The pairwise subject secret is an identifier and never rotates, and the
generated bootstrap administrator’s name now comes from a secret of its own,
seeded from the CSRF key’s current value, so the name does not change.
The database password is read again from its secret store every
persistence.databasePasswordRefreshS (an hour) and when the database
refuses a login, and new connections use it without a restart. Rotating it
at the database is still your secret store’s or your job.
An application listed in oauth2.clientSecretAutoRotate has its client
secret rotated oauth2.clientSecretAutoRotateDays (30) before it expires,
with the new secret pushed to its secret destination first or read from its
RFC 7592 configuration. The management API client’s secret can now be
rotated while adminApi.clientSecret pins it, a changed setting is adopted
at start with an overlap, and a newly seeded secret expires after
oauth2.clientSecretLifetimeDays.
A cell’s key-encryption key can be rotated with the new
keys.previousCellKek* settings. The DKIM key can be rotated under a new
selector with mail.dkimNextSelector, mail.dkimNextKeyField and
mail.dkimSwitchAt; signing moves only once DNS publishes the new key. The
mail transport reads its secrets again at least once an hour.
Security: The supply-chain gaps on the risky components page are closed
The service image no longer carries xml-crypto, which only the tests use, and
its npm install runs no package’s install script. Every package the images
install that has had no release for three years, and the node-ldapjs fork,
is listed on the Risky third-party components page with its
last release, why it is kept and what would replace it, and a test fails when
one is missing. The remote PEP’s Cargo.lock is audited against the RustSec
advisories every day, its image carries a CycloneDX SBOM that names the
OpenSSL built into it, and it moves to url 2.5.9 for RUSTSEC-2026-0592. The
ICAP adapter’s c-icap packages are pinned. The daily image scan now covers the
remote PEP, the ICAP adapter and ClamAV as well as the service.
Security: LDAP messages have a maximum size, and regular expressions are bounded
An LDAP message is held to a maximum size before any of it is read. The
directory reads each message’s BER header on 389 and 636 before the LDAP
library buffers anything, and closes a connection whose next message declares
more than ldap.maxMessageBytesBeforeBind (128 KiB) before a bind, or
ldap.maxMessageBytes (5 MiB) after one, or uses BER’s indefinite length
(STS-LDAP-0227). Search results are not counted.
A regular expression somebody else wrote is bounded. The check federation
already applied to fedSubjectPattern (no backreference, no quantifier on a
group that is itself quantified or an alternation, a length limit) now
applies to:
- XACML’s six
*-regexp-matchfunctions: a policy whose literal pattern fails it is refused when saved (STS-XACML-0338), and at evaluation such a pattern, or a value longer than 4096 characters, is Indeterminate (STS-XACML-0339). The remote PEP’s engine decides the same way. spiffe.httpChallengeAllowedDnsPatternsandspiffe.dockerSigstoreAllowedIdentities, refused at a save (STS-CORE-0183) and warned about at startup when set in the environment or an appconfig file (STS-CORE-0184).- An RFC 9396 access type’s definition: its
schemais held to the keyword subset alimitsschema uses, and everypatternto the same bound, when it is written (STS-REG-0374).
What is stored is still read. A policy, a setting or an access type
stored before 1.2.0 still loads. An access type is still used as written,
marked on its application’s Access types tab and listed on /admin/mode’s
new access-type-schemas row; a setting is refused only at its next save. A
policy is the one behaviour change: it still loads and decides, its unsafe
pattern is listed among its problems on the Policies page, and the
regexp-match holding that pattern is Indeterminate rather than evaluated.
Security: More administrator changes need a recent sign-in, and administrators have a write budget
Two changes to /admin-api and the admin console, from the ASVS 5.0.0
Level 3 re-sweep.
A recent sign-in for every change that decides who signs in (7.5.3).
Since 1.2.0’s #2161 a role grant, a trust realm, the PKI, the keys and any
setting needed a sign-in within account.recentAuthMinutes (15 minutes in
product). The same now holds for the access policies (XACML and ALFA, the
PEPs, AuthZEN), applications (secrets, certificates, redirect addresses,
client authentication, grant types, scopes, claims), federation
relationships, SAML service providers, authorization servers, OpenID
Federation, SPIFFE registrations, named policies, delegated permission
grants and global consent, owners, groups, devices, token lifetimes, the
claims and attributes tokens carry, outbound SCIM clients, risk datasets,
UMA, ACME, EST and SCEP, attribute sources, hardware tokens, mail-encryption
keys, cross-realm Kerberos trusts, claim providers, Shared Signals streams,
the listeners, the audit export and mail templates; on a person, an
activation link, MFA no longer required, a certificate added, the
service-account settings, who may act for them and a CIBA answer; and
restoring a revoked token. A stale sign-in is answered 401 with RFC 9470’s
insufficient_user_authentication, and the console asks you to sign in
again and carries on. Programs using their own credentials are not asked.
A write budget per administrator (2.4.2). In product mode one person may
make 1200 changes through /admin-api (the console included) in ten minutes,
counted by their token’s subject rather than by address
(adminApi.writesPerSubject in adminApi.writeWindowS). Past it a change is
refused with HTTP 429 and Retry-After (STS-API-0148); reading goes on.
Programs — client_credentials tokens and service accounts — are counted
only against adminApi.programWritesPerSubject, which is 0 (no limit) by
default in every mode, because provisioning bursts are legitimate. The person
budget is off (0) in development.
Upgrading. Nothing to run. An administrator working for more than 15
minutes since signing in is asked to sign in again at the next of these
changes, once per window. A script that drives /admin-api with a person’s
token faster than two changes a second should use a program’s credentials,
or have adminApi.writesPerSubject raised.
Security: An application can be held to the response modes it needs
A new application attribute, oauthResponseMode, lists the response_mode
values a client may use: query, fragment, form_post, and JARM’s jwt,
query.jwt, fragment.jwt and form_post.jwt. With a list, the authorization
endpoint refuses any other mode with unauthorized_client (STS-OAUTH-1016).
A request that names no mode is judged by its response type’s default
(query for code, fragment otherwise). Empty, the default, restricts
nothing beyond the server’s response_modes_supported, so existing clients are
unchanged. Set it on the console’s application editor or through
POST /admin-api/applications/add (ASVS 5.0.0 10.4.12).
Security: A person is reminded before a certificate of theirs expires
A person is now mailed before a certificate they hold expires: one this
realm issued over ACME, EST or SCEP, a PIV smart card certificate, an S/MIME
certificate, a TLS client certificate from the portal, or one stored on
their entry for certificate sign-in (ASVS 5.0.0 6.4.5). They are reminded 30,
7 and 1 days before by default, once at each, with every certificate due in
one message saying when it expires and how to renew it. It is a security
notice, on by default wherever a mail transport is configured:
mail.expiryReminders, mail.expiryReminderDays and
mail.expiryReminderKinds set it per realm. The new mail.credential-expiry
scheduler job sends them, reading an index of expiry dates kept in step with
every write of a person’s entry; certificates held before the upgrade are
added to it a slice of the realm’s people per run. The new message,
credential-expiring, is translated into every built-in mail language. See
the Mail page.
Security: A file an administrator names is checked on the descriptor it is read through
In product mode a file a setting or an administrator names (a CA file, a
truststore’s setting file, the DKIM key, a SPIFFE attestor’s token or
credentials file, AuthZEN’s external PDP keys) must be inside a directory
security.fileRoots lists. Until 1.2.0 the path was checked and then opened
again, so a symbolic link swapped in between could be followed out of those
directories. The file is now opened once, and the open file itself is
checked (a regular file, its real path inside a listed directory) before it
is read through that same descriptor (ASVS 5.0.0 15.4.2). A link inside the
directories to a file inside them, such as /etc/ssl/certs or a Kubernetes
secret volume, still reads as before, and the refusal sentences and error
codes are unchanged. The GCP instance-identity attestor’s service account
key file is now read by the service and handed to the Google client as its
contents when it is JSON. Development mode confines nothing, as before.
Security: PKCE is compared in constant time, and outbound requests are bounded
The token endpoint now compares a code_verifier with its challenge in
constant time (ASVS 5.0.0 11.2.4); plain is still refused wherever RFC 9700
mode is in force. An outbound request whose path and query are over 8 KiB
(STS-HTTP-0035), or whose header fields come to more than 16 KiB
(STS-HTTP-0036), is no longer sent, and the call fails as a network failure
naming the bound (ASVS 5.0.0 4.2.5). No call this service makes comes near
either bound.
Security: Every TLS listener staples an OCSP response
The main port, LDAPS 636, the debugger listener and every custom listener now
answer a client that asks for the certificate status (RFC 6066
status_request, TLS 1.2 and 1.3) with a stapled OCSP response: the answer
this service’s own OCSP responder gives for the listener certificate, made in
the process holding the socket with no network fetch, and refreshed by the new
per-process job tls.ocsp-staple-refresh before its nextUpdate (and at once
when the certificate is renewed or revoked in that process). The new setting
tls.ocspStapling is auto (on in product mode, off in development); on
and off force it. A certificate from an outside authority is not stapled, a
staple that cannot be made never fails a handshake (STS-TLS-0079), and one
that says revoked is logged (STS-TLS-0080). The issued certificates carry
no must-staple extension. ASVS 5.0.0 12.1.4; the TLS page’s OCSP stapling
section has the rest.
New: dynamic selectable roles
A role can be dynamic selectable: nobody is a member of it, and a person
chooses it at sign-in for the application they are signing in to, from the
roles that role’s own XACML policy permits them. A role marked required
must be chosen. The choice is kept on the sign-on session, is asked of each
role’s policy again at every issuance, and appears in the roles claim and
the SAML 2.0, SAML 1.1 and WS-Federation roles attribute for that
application only. Single sign-on into another application carries no
choice: the portal’s Sign in again asks for a fresh sign-in, and an
application that requires a role the session did not choose for it sends
the person to sign in again. Flows with no sign-in screen (the password
grant, token exchange, the assertion grants, the device grant, CIBA,
WS-Trust, Kerberos and LDAP) never carry a chosen role, and are refused
where a role is required (STS-XACML-0332). See
Dynamic selectable roles.
New: the audit log is append-only in the database
Where the audit log is stored (product mode on PostgreSQL or MariaDB, or
any deployment with request workers or several nodes), each event is now one
sealed row of a table of its own, sts_audit. The database role the service
connects as may add rows and read them, and may not change or delete one
(ASVS 5.0.0 16.4.2). Until 1.2.0 the log was kept with sessions and tokens,
where that role could rewrite it: the keyed checksums showed a change, and
nothing stopped one.
Old rows leave through two functions the table’s owner owns. Retention runs
every ten minutes (the audit.retain scheduler job), removes what is past
each realm’s audit.maxEvents, and keeps at least 1000 rows per realm
whatever the service asks. A removed realm’s rows go once the realm is gone.
The audit page shows each realm’s newest audit.maxEvents events across
every process.
A data key that audit rows are sealed under is no longer destroyed while they remain, because those rows cannot be re-encrypted. Retention removes them, and then the key can go.
If the service’s role can still change the table (it owns it, or holds
UPDATE, DELETE or TRUNCATE on it), the service starts, logs
STS-AUDIT-0019, and /admin/mode reports the requirement as not met.
Upgrading from 1.1. Run the upgrade script as the table owner before
starting the 1.2.0 image. It creates sts_audit and its two functions,
gives the application role SELECT and INSERT on it and nothing more, and
records schema version 33. On MariaDB it also replaces the application
account’s database-wide grant with one grant per table, because MariaDB
cannot take one table out of a database grant. A 1.2.0 image started first
does not start: its role cannot create the table (STS-STORE-0029, naming
the script). At its first start the 1.2.0 service copies the audit rows the
old log held into sts_audit, with their checksums, and removes the old
rows. The commands are the ones under the scopes change.
A new install gets everything from postgres/schema.sql or
mariadb/schema.sql.
New: WS-Trust message integrity, and signed answers
A WS-Trust application can require its requests signed and name what the
signature must cover (wstrustSignRequest, wstrustSignRequestElements),
and can have its answers signed with the realm’s XML signing key over a
wsu:Timestamp and the Body or the elements it names
(wstrustSignResponse, wstrustSignResponseElements). With encryption
also on, wstrustResponseProtectionOrder chooses sign-then-encrypt or
encrypt-then-sign, and wstrustEncryptSignature encrypts the signature
too. Each has a realm setting beside it (wstrust.signRequest,
wstrust.signResponse, wstrust.responseProtectionOrder,
wstrust.encryptSignature), all off by default. The WSDL’s binding carries
sp:IncludeTimestamp while the realm signs its answers. On the
application’s WS-Trust tab, Body and Header checkboxes write the
common expressions into the four encryption and signing maps, replacing
what a map held and putting it back when the last box is unticked, and an
XPath builder writes one for an element clicked in a sample message.
Putting a map to use turns its switch on, and giving it back turns the
switch back.
The tab has a simplified and an advanced view, the advanced one in General,
Message encryption and Message signing sections, each split into request
and response processing. Each field that holds XPath expressions has a
button that opens the XPath builder for that field in a window over the
page, where a list of expressions is built and added to it.
The XPath subset gains not(…). New refusals: STS-WSTRUST-0084,
0085, 0086 and 0087. See Message integrity.
New: a WS-Trust answer encrypted to the request’s signing certificate
wstrustRecipientIgnoresKeyUsage (the realm’s wstrust.recipientIgnoresKeyUsage,
off by default) lets an application’s answers be encrypted to a certificate whose
keyUsage does not permit encryption, such as the request’s signing certificate:
this realm’s message-signing certificates permit digitalSignature only. Only that
check is waived; the certificate’s validity, path and revocation are still checked.
It is in the Message encryption → Response message processing section of the
application’s WS-Trust tab. See WS-Trust.
New: named truststores
Every place the service checks a signature, a certificate chain or the
certificate of a server it connects to is now a use case that trusts a
list of named truststores: node’s default store (system), this
service’s Root, the shipped vendor roots, the signer and client-certificate
truststores, what each older anchor or CA setting names, SPIFFE trust domain
bundles, and truststores you create. Protocols → PKI trust gains
Truststores, Use cases and System truststore tabs, and
/admin-api/truststores is the same controls. Nothing changes on upgrade:
each use case’s default list names exactly what it trusted before, and every
older setting and page keeps working. A use case’s truststores are consulted
in development as well as product mode; paranoid PKI mode decides only what
is checked. Two defects are fixed on the way: a CA file named for an outbound
family or the SMTP relay no longer drops the signer truststore under paranoid
PKI mode, and PKINIT can be given an outside smart-card CA. New refusals:
STS-PKI-0300 to 0307. See Truststores.
New: PKINIT checks Microsoft’s paChecksum2
The KDC now checks MS-PKCA’s paChecksum2 — the request body’s SHA-256,
SHA-384 or SHA-512 — whenever a PKINIT client sends one, beside RFC 4556’s
SHA-1 paChecksum, which stays required. A mismatch is refused
(STS-KRB-0261), and so is one over SHA-1 in product mode or over an
unlisted digest (STS-KRB-0260). The new setting
krb5.pkinitRequirePaChecksum2 (off by default, because MIT Kerberos does
not send one) refuses a request without it (STS-KRB-0262). See
Kerberos.
New: a realm may override an outbound use case’s truststores
A trust realm may now give an outbound service-wide use case (a federation
partner, a mail relay, a SCIM target, an audit destination and the like) a
truststore list of its own, used for the connections made from that realm
(#2148). A realm with no override keeps trusting the default realm’s list,
so nothing changes until an administrator sets one. GET
/admin-api/truststores reports overridable and realmOverride for every
use case.
New: key sets as truststores
A truststore may now hold a key set bound to one party: a client, a
federation relationship or a claims provider, as pasted public keys or a
jwks_uri (#2149). Four new use cases, client-jws, federation-jwt,
ssf-set and claims-provider-jwt, decide which keys verify a JSON Web
Token or signature from each kind of party. Each defaults to
registered-keys, each party’s own registration, so nothing changes until
an administrator assigns a key set. A key set is never shared between
parties. POST /admin-api/truststores/create takes kind, party,
jwks and jwksUri, and the new POST /admin-api/truststores/set-keys
replaces a key set’s keys.
New: OpenID Federation Trust Anchors from truststores
A realm’s OpenID Federation Trust Anchors may now come from key-set
truststores bound to oidfed-anchor:<entity id>, named by the new
oidfed-anchor use case (#2150). Its default, registered-keys, keeps
the anchors registered under OpenID Federation, so nothing changes until
an administrator assigns a key set. An anchor’s key set is always pasted
keys, never a jwks_uri.
New: SSH certificate authorities as truststores
A truststore may now hold SSH certificate authority public keys (#2151).
The new use case spiffe-sshpop, which the SPIFFE sshpop node attestor
checks host certificates against, defaults to the setting
spiffe.sshpopCertAuthorities, so nothing changes until an administrator
assigns a truststore. POST /admin-api/truststores/create and set-keys
take sshKeys.
New: Sigstore trust material as truststores
The SPIFFE Docker workload attestor’s cosign public keys, pinned Sigstore
trusted root and TUF root may now come from truststores (#2152): three
new use cases, sigstore-cosign-key, sigstore-trusted-root and
sigstore-tuf-root, each defaulting to today’s setting, so nothing
changes until an administrator assigns a truststore. Several trusted roots
are combined; a TUF root is one. POST /admin-api/truststores/create and
set-keys take document.
New: a person is mailed about an unusual sign-in
A sign-in that succeeds looking unusual is now mailed to the person (ASVS 5.0.0
6.3.5). Unusual means a new device or browser, a new country, an anonymising
network such as Tor, refused passwords just before, or a risk level at or
above mail.signInAlertLevel (MEDIUM). The message gives the time, roughly
where, the browser or device, the method, and a link to Recent sign-ins,
where saying it was not them signs every session out. A run of refused
passwords on the account is mailed too, at the sign-in limit’s own count,
whether or not anybody signed in. Each kind is mailed at most once in
mail.signInAlertWindowS (a day).
Upgrading. Nothing to run. The alerts are on wherever a mail transport is
configured. Set mail.signInAlerts to false to keep the old behaviour. See
Risk scoring.
New: a person is mailed when a credential of theirs is added or removed
Until now only a password change was mailed. A person is now also told when any of these is added or removed (ASVS 5.0.0 6.3.7):
- a passkey or security key, an authenticator app or an app password
- a one-time code token or a YubiKey OTP
- a set of recovery codes, a certificate or a certificate sign-in binding
- an S/MIME certificate or an OpenPGP key
The message says what changed, when, and whether the person or an
administrator did it, and what to do if it was not them. Several changes made
by one act, such as an administrator removing every second factor, are one
message. Assigning an OATH or YubiKey OTP token through /admin-api, and
retiring a lost token’s one-time code credentials, now also send a CAEP
credential-change event, as the other doors already did.
Upgrading. Nothing to run. The notices are on wherever a transport is
configured. To keep the old behaviour, set mail.credentialChangeNotices to
false. See Mail.
Content Security Policy violations are reported
Every page’s Content Security Policy now names a report endpoint
(report-uri and report-to, with a Reporting-Endpoints header), and
browsers report what the policy blocked to POST /web/csp-report (ASVS
5.0.0 3.4.7). The endpoint needs no credential, reads at most 16 KiB, takes
60 reports a minute from one address, records the directive, the page’s
path without its query and the blocked origin, and logs each report as
STS-HTTP-0027. Monitoring → CSP reports counts them per realm, and
cspReports.forwardUrl (off by default) forwards each to a collector. See
OAuth security.
Upgrading. Nothing to run. A proxy or a firewall in front of the service
that allows only listed paths needs POST /web/csp-report (and
/realm/<id>/web/csp-report) added, or the reports stop there.
HSTS can be preloaded
A new setting, security.hstsPreload (off by default), adds preload to
the Strict-Transport-Security header product mode sends, so the domain
can be submitted to the browsers’ HSTS preload list (ASVS 5.0.0 3.7.4). It
is sent only while security.hstsIncludeSubDomains is on; with that off
the header carries no preload, /admin/mode says so and the log records
STS-CORE-0181. Preloading binds the whole registrable domain and takes
months to undo: see Preloading.
Upgrading. Nothing changes until the setting is turned on.
New: two-person approval for high-risk administrator acts
A realm can now require a second administrator for its highest-risk acts
(ASVS 5.0.0 2.3.5). This is new setting admin.dualControl, off by default
and per realm. While it is on, these acts wait on a new console page,
Pending approvals (/admin/approvals):
- removing a realm
- granting an administrator role
- re-keying or revoking a CA
- replacing a trust anchor
- rotating, importing or retiring a signing key
- rotating the key-encryption key
- turning the setting off
A second, different administrator with the same authority approves the act,
and it then runs as the first administrator’s act, or refuses it. The
requester may withdraw it. Undecided, it expires after
admin.dualControlLifetimeHours (default 24).
The management API answers a held act with HTTP 202 and the request’s id,
and adds GET /admin-api/approvals and POST /admin-api/approvals/{approve,
refuse, withdraw}. When fewer than two people could decide an act, it runs
and is recorded as STS-ADMIN-0976, so a realm can never be locked out. The
Mode page shows whether the control is in force.
Upgrading. Nothing to run. With the setting off, which is the default, nothing changes. The held acts are kept in the existing store, so there is no schema change. See Two-person approval.
New: cross-origin isolation headers on every response
Every response now carries Cross-Origin-Resource-Policy (same-site;
profile photos and the sign-in logo stay cross-origin), and every HTML page
carries Cross-Origin-Opener-Policy: same-origin (ASVS 5.0.0 3.4.8 and
3.5.8). The pages a relying party may open in a popup (the authorization
endpoint and the sign-in, consent, SAML, WS-Federation, GNAP, federation and
sign-out pages) carry no COOP, as before, so popup sign-ins keep working. See
The other response headers.
New: an option to issue only sender-constrained access tokens
oauth2.accessTokenRequireSenderConstraint, off by default. On, the token
endpoint issues an access token only to a request that binds it, by a DPoP
proof or the connection’s client certificate (ASVS 5.0.0 10.3.5 and
10.4.14), and the authorization endpoint refuses a token response type. It
is for a realm whose every client can bind its tokens; most cannot. New
refusals: STS-OAUTH-1013, 1014.
New: an option to accept authorization_details only in a pushed request
oauth2.authorizationDetailsRequirePar, off by default. On, the
authorization endpoint refuses a request that carries RFC 9396
authorization_details and did not come through /oauth2/par, so a rich
authorization request never travels in the browser’s address (ASVS 5.0.0
10.4.15). Requests without authorization_details are unaffected;
oauth2.requirePushedAuthorizationRequests still makes every request
pushed (10.4.13). New refusal: STS-OAUTH-1015.
New: risky components and dangerous functionality, documented
Risky third-party components lists the third-party components that carry more risk than the rest, with what each is used for, how its use is contained and how it is kept current (ASVS 5.0.0 15.1.4). Dangerous functionality is one inventory of the parts of the service that parse hostile formats, fetch what others name, take files, run processes or native code, or run rules an administrator wrote, with their controls (ASVS 5.0.0 15.1.5) (#2204).
New: dependencies, limits and timeouts, and a rotation schedule
A new page, Dependencies, limits and timeouts, lists every system iya-sts connects to. For each one it gives the connection limit, what happens at the limit, the timeouts, the retries, and what a caller sees when the system is down (ASVS 5.0.0 13.1.2, 13.1.3). Key management now has a rotation schedule for every key and secret (ASVS 5.0.0 13.1.4). Both pages end with the gaps they found.
New documentation: a post-quantum migration plan and browser requirements
Post-quantum migration plan sets out, surface by surface, what is post-quantum today, what the ecosystem still prevents and the order a realm moves in (ASVS 5.0.0 11.1.4). Browser requirements lists the browser features the console, portal, reports application and sign-in screens need, and what a person sees when one is missing (ASVS 5.0.0 3.1.1) (#2206).
New: Post-quantum: ML-KEM S/MIME certificates issued, LDAPS serves ML-DSA, key exchange counted, SLH-DSA in the HSM and in OpenPGP
Five post-quantum gaps of the migration plan are closed (#2220, section E).
ML-KEM S/MIME certificates are issued, not only uploaded: on
/portal/openpgp (the account API’s smime-kem-challenge and
smime-kem-issue) a person sends an ML-KEM public key, the service
encapsulates to it, and on the secret coming back (the
challenge-response proof of possession of RFC 9810 section 5.2.8.3.3,
KEMKPOPChallengeResp in section 5.2.8.4) the realm’s EST Issuing CA issues an
email-profile certificate with keyEncipherment alone (RFC 9935), which
becomes their S/MIME certificate (STS-OPENPGP-0035 to -0039). LDAPS on
636 serves every listener certificate, so tls.certificateAlgorithms
rsa,ml-dsa-65 offers RSA and ML-DSA side by side there as on the main
port. The key exchange each TLS handshake negotiated is counted per
listener and group, read from the session OpenSSL holds:
/admin/crypto-metadata’s Post-quantum tab and the new
GET /admin-api/tls/key-exchange draw the counts, and GET
/admin-api/tls-connection gains connection.keyExchange. With keys in an
HSM, the realm’s published ML-DSA and SLH-DSA keys are made in the module
when it offers PKCS#11 3.2’s CKM_ML_DSA or CKM_SLH_DSA (and in software
otherwise; the composites always), and an ML-DSA key in the module now signs
a JWS. OpenPGP accepts SLH-DSA (RFC 9980 section 7: SLH-DSA-SHAKE-128s,
-128f and -256s on v6 keys), added to the default openpgp.algorithms; a
realm that set its own list keeps it. Every remaining Future step on the
post-quantum migration page names its trigger: the specification or library
release it waits on, and what iya-sts does when it arrives.
New: The database connection can authenticate with a client certificate
persistence.databaseTlsClientCertFile and persistence.databaseTlsClientKeyFile name a PEM client certificate and its key, and the service presents them on every connection it makes to PostgreSQL or MariaDB: the pools, the LISTEN and liveness connections, the read replica, a cell’s global tier and the command-line tools. The database may authenticate the service by the certificate alone (PostgreSQL’s cert method, MariaDB’s REQUIRE X509), with no password, or by the certificate and the password together (clientcert=verify-full). The files are read again every persistence.databasePasswordRefreshS, so a renewed certificate is used for new connections without a restart. A pair that cannot be read, or whose key is not the certificate’s, stops the service at start (STS-STORE-0180). Both settings are empty by default, which keeps the password-only connection. The compose postgres container can require one with POSTGRES_CLIENT_CERT. See Persistence.
New: every specification listed, on one page
A new page, Specifications, names every specification
the service implements, grouped, and the README carries the same list.
/admin/sts-metadata and GET /admin-api/sts-metadata now list ten that the
service already implemented but did not name there, each with its coverage:
RFC 4121 (the Kerberos GSS-API mechanism), RFC 4880 (OpenPGP v4 keys),
RFC 9629 (KEM recipients in CMS), RFC 9935 (ML-KEM in X.509), ALFA for XACML,
FIDO U2F, PKCS #11 3.2, RFC 7512 (PKCS #11 URIs), and OpenSSH’s certificate
keys and key revocation lists. Nothing the service does changes.
New: Smart cards: a central section, the standards involved and a guide
Smart cards gathers everything iya-sts does with PIV, CAC and other X.509 smart cards: the kinds of card it handles, every place a card is used, a table from “I want to …” to the section that covers it, and what it does not do. A page for each standard involved sits beside it (PIV and YubiKey PIV attestation, Client certificates in TLS, Kerberos PKINIT, PKCS #11, Card-held keys), and the Smart-card guide has step-by-step recipes: outside federal PIV and CAC cards, your own YubiKey PIV certificates, card sign-in to an application, PKINIT, a card for administrators, a proxy in front, renewal and a lost card. The pages link to the existing sections rather than repeating them.
Truststores gains the
use cases a card’s certificate is checked under, and its
Scope section now says
which service-wide use cases a realm may override, what STS-PKI-0302
refuses, and that a setting: view is read in the realm that asks.
New: A page on phishing-resistant sign-in
New documentation: Phishing-resistant sign-in
gathers what iya-sts implements against phishing, with the specification
behind each. It covers passkeys and their origin binding, attestation and
policy; OpenID Connect EAP’s phr and phrh and how each protocol asks for
them; smart cards; account recovery; Device Bound Session Credentials;
sender-constrained tokens; the authorization request’s integrity; and
detection. It ends with what is not implemented. Documentation only: no
setting or behaviour changes.
Create pages mark what the create requires
Each Directory object has a create page that marks a field required exactly when the create refuses it empty. New user marks the owners required while Service account is ticked, and the push destination and the secret’s name each once the other is filled in. New policy no longer marks a field the save accepts empty, such as the passkey policy’s sign-in hints or the attribute policy’s required attributes.
A policy save through the management API that leaves profile out still
edits the default profile, as in 1.0.0. A save whose profile is empty or
null, and the console’s new-policy form without a name, are refused with
“A name is required.” (STS-ADMIN-0549). A named authentication policy
saved without a name is refused with STS-AUTHN-0532, as before.
Changed: the image’s optional SDKs come from a lockfile
The Vault client every image carries, and the SDKs the STS_CLOUD_SDKS build
argument adds, were installed with a bare npm install: the newest version the
registry had that day, with install scripts on. They are now pinned in the
repository’s sdk/ directory, one npm workspace per SDK, and installed from
sdk/package-lock.json with npm ci --ignore-scripts (ASVS 5.0.0 15.2.4).
STS_CLOUD_SDKS takes the same package names as before. A name the lockfile
does not pin, or a name@version whose version it does not hold, now fails the
build instead of installing something unpinned; to move a pin, change it in
sdk/packages/ and run npm install --package-lock-only --ignore-scripts in
sdk/.
The advisory check every CI run makes (tests/tools/dependency-windows.js) now
audits sdk/package-lock.json as well, under the same windows, and names the
lockfile of each finding. Its first run found ten vulnerable packages under
dbus-next, reached through its optional usocket and node-gyp 7 (request,
form-data, qs, tough-cookie, uuid, tar) and its xml2js; none is in
an image built without STS_CLOUD_SDKS=dbus-next. sdk/package.json now
overrides usocket to 1.1.0 and xml2js to 0.6.2, and npm audit there
reports nothing.
Changed: product mode keeps the build to administrators
In product mode the page footer no longer shows the version and its build
line, the sign-in (/authn-api) and portal (/account-api) OpenAPI documents
give info.version as 1, the front page’s, portal’s and reports’ answers
carry an empty version, and the User-Agent of the requests this service makes
to partners is sts (<component>) without /<version> (ASVS 5.0.0 13.4.6).
The console and /admin-api show the build as before, and development mode is
unchanged. A page’s cached files are now keyed by a random key the image build
draws rather than by the build instant and commit. The new setting
security.publishBuildInfo (auto, on, off; environment
STS_SECURITY_PUBLISH_BUILD_INFO) puts the build back everywhere with on.
Changed: the daily dependency review checks security advisories only
The daily dependency workflow (.github/workflows/dependency-windows.yml)
now checks only the security advisory windows of
SECURITY.md:
7 days for critical, 30 for high and 90 for moderate, over both lockfiles
(the root’s and sdk/’s) and the image. The 90-day update review runs only
when someone asks for it, by dispatching the workflow with updates or by
running node tests/tools/dependency-windows.js --updates. It reads the
root lockfile only. The optional SDKs pinned in sdk/ are still held to
the advisory windows, but an SDK that falls behind with no advisory
against it no longer fails the day. See
Risky third-party components.
Changed: Making a person a service account clears a password change they owed
POST /admin-api/users/set-service-account (and the console’s
Service account tab) now clears a pending password change (pwdReset)
on the account it makes a service account. In product mode a password an
administrator types for an ordinary person is temporary (#2160), and a
service account’s password belongs to a program, which has no sign-in screen
to choose a new one at: until now such an account’s right password was
refused at every door it uses (STS-AUTHN-0142). The audit row of the act
records passwordResetCleared when it clears one.
Fixed: WS-Trust requests signed by Apache WSS4J or CXF
A WS-Security signature carrying an InclusiveNamespaces prefix list on its
SignedInfo, which WSS4J and Apache CXF write by default, was refused as a
signature that does not verify (STS-KEYS-0012). It is now verified as its
signer made it.
Fixed: pep-policies-changed reaches an embedded PEP when the service runs workers or nodes
An embedded PEP’s pep-policies-changed Shared Signals event was lost
whenever the policy change was made in a different request worker or cluster
node from the one that had answered the PEP’s last policy pull: what each PEP
was last sent was remembered in that one process only. It is now kept in the
store, so the event is sent whichever worker or node makes the change. A
single-process service was not affected.
Fixed: a WS-Trust answer element encrypted by a custom expression
A response encryption expression naming an element below the top of the
answer, such as //wst:RequestedSecurityToken or //wst:Lifetime, was
encrypted as text declaring that element’s namespace prefix twice. That is
not well-formed XML, and a receiver that parses what it decrypts strictly,
such as Apache WSS4J, could not read the answer. The Body and Header
presets were not affected. Each prefix is now declared once.
Fixed: a password check takes as long for an account that does not exist
In product mode, a password presented for a name with no stored password, for an account holding a stored value this service cannot read, for a disabled account, or for a service account at a door its policy closes was refused at once, while a wrong password for a real person took one password-hash computation. The response time said which accounts exist (ASVS 5.0.0 6.3.8). Those refusals now verify the presented password against a hash nobody holds, made once per process at the password policy’s current parameters, and discard the result, so every refusal costs the same. What is refused, and the error code recorded for it, are unchanged. This applies at every door that checks a person’s password: the sign-in screen, the password grant, an LDAP bind, a WS-Trust UsernameToken, SCIM, SSF and EST HTTP Basic.
Fixed: an LDAP substring filter cannot stall the directory
An LDAP search’s substring assertion ((cn=*smith*)) is matched in one
linear pass instead of by a regular expression, which a filter such as
(cn=*a*a*a*...*b) against a long value made backtrack for a very long time
(ASVS 5.0.0 1.3.12, #2137). Ordinary filters match exactly what they matched
before; a value holding a line break is now matched across it, as RFC 4517
asks. A search whose substring assertion holds more than 32 components is
refused with adminLimitExceeded (11), recorded as STS-LDAP-0226. See
LDAP.
Fixed: federated sign-ins no longer pile up cookies
In product mode each federated sign-in sets a cookie that binds it to the
browser that started it (sts_fed_flow_…). Until 1.2.0 none was ever
cleared, so a person who started many sign-ins within ten minutes could fill
their Cookie header until the service answered 431 (ASVS 5.0.0
4.2.5, #2139). The cookie is now cleared by the partner’s answer, whether it signs
the person in or is refused, and one browser holds at most eight: a ninth
start clears the oldest. Nothing to configure; a cookie set by an earlier
build still binds its sign-in.
Fixed: the console, portal and reports say why they cannot open without WebCrypto
The admin console, the user portal and the reports application sign in with
the browser’s WebCrypto, which a browser offers only to a page opened over
HTTPS (or localhost). Opened over plain HTTP, or in a browser too old to have
WebCrypto, each one used to stop with a blank page. Each now checks before it
signs in and, where WebCrypto is missing, shows one sentence in the page’s
language saying that this browser cannot run the page securely, usually
because the page was not opened over HTTPS or the browser is too old.
Fixed: GNAP macaroon and jwt-encrypted tokens survive a signing rotation
A signing rotation no longer stops GNAP macaroons and jwt-encrypted
tokens issued before it from verifying (#2212). They are verified under
every replaced realm secret the rotation keeps, and it keeps one for at
least the longest GNAP access-token lifetime. A resource server’s
gnapMacaroonKey is rewritten when the first macaroon for it is minted
after a rotation. Tokens issued before the upgrade keep verifying.
Nothing needs an upgrade script.
Fixed: Every page says what this browser lacks, in the reader’s language
A browser that cannot run this service’s pages is now told so instead of
showing a blank page. Every page’s document runs a small check written in
ECMAScript 5, /web/browser-check.js, before its main script. Where fetch,
TextEncoder, URL or ECMAScript 2022 is missing, the check shows a notice
that the server drew in the reader’s language, and the page’s script does not
start. The console, the portal and the reports application also check
sessionStorage before they sign in (“This browser cannot sign you in
here”). The portal and the console’s passkey upgrade check for WebAuthn
before a ceremony (“This browser cannot use passkeys”). The <noscript>
notices are drawn in the request’s language. The console’s “sign-in window
was blocked” message is translated. The portal and the reports application
now keep the page’s choices when a browser without window.open or
BroadcastChannel has to leave the page for permission. The portal’s
Copy falls back to execCommand('copy') and says when it fails. Each
notice links to a new section for people,
For people using this service.
No setting and no endpoint behaviour changes; the one new route is the check
script. ASVS 5.0.0 3.1.1.
Fixed: A console token is no longer revoked by the Kerberos keys of the password just chosen
In product mode, a person who chose their password at the sign-in screen
(or on the portal) could find the console’s or the portal’s token refused
moments later (STS-API-0122, and its refresh STS-OAUTH-0214). The
Kerberos keys derived from the new password sent their own CAEP
credential-change, as system and dated after the sign-in, and the
console, which acts on every credential change that is not the person’s
own, revoked the token it had just been issued. The keys’ event now carries
the password act’s initiating_entity and event_timestamp, so a change the
person made themselves ends nothing. Seen intermittently in the single-node,
mariadb and cluster test modes (#2105).
Fixed: EST answers fit libest’s sixteen header lines again
Cisco’s libest estclient, the reference EST client, reads at most sixteen
header lines of an answer and counts the rest as the body. Since the CSP
reporting header (#2164) and Cross-Origin-Resource-Policy (#2181) were added
to every response, a product deployment with request workers answered
/.well-known/est/cacerts with seventeen, and estclient failed with
“Content Length and body length mismatch”. A certificate or CMS body (EST,
SCEP, ACME, CRLs, OCSP) is no longer treated as a page: it gets the narrower
policy without style-src and img-src, and no Reporting-Endpoints. EST
answers also no longer carry an ETag, which validated nothing on a
no-store answer. Nothing else in what EST answers changed.
Fixed: A trust realm’s own administrators are treated as administrators
Three checks that treat console administrators differently looked the person up on the default realm’s console roster even when they were signing in to another trust realm. Each now reads the roster of the realm the person is signing in to. The default realm behaves as before.
- The console’s compliant-device requirement
(
devices.requireCompliantDeviceForAdmin) is armed the first time one of a realm’s console administrators signs in from their own compliant registered device. A trust realm was never armed, so it kept admitting administrators with no device, and a person with the same name on the default realm’s roster could have armed it. - The second factor for administrators (the authentication policy’s
requireSecondFactorForAdministrators) was never offered to, or required of, a trust realm’s own administrators. It was offered to a person with the same name as a default-realm administrator. - A remembered browser never skips the second factor for an administrator. In a trust realm it could skip it for that realm’s own administrators, and it was refused to a person with the same name as a default-realm administrator.
1.1.0
1.1.0 upgrades a deployment that is already running 1.0.0. Keep the database volume. The 1.0.0 service can keep answering while the database is upgraded. Start the 1.1.0 image after the upgrade script exits 0.
A store that is only in memory has nothing to upgrade. A database whose schema version is below 31 is a pre-release build, and the script refuses it. Those builds are covered under Not backwards compatible with earlier builds.
PostgreSQL
Release 1.0.0’s database is schema version 31. 1.1.0 adds two indexes on
sts_sessions and records schema version 32 beside it:
sts_sessions_started, so the console’s session pages can list sessions newest first without sorting the whole table.sts_sessions_subject_band, used by the per-subject session sweep.
The script also stores xacml.pepAuthentication = either in every realm
that has a registered remote PEP and no value of its own, so PEPs that
authenticate by client certificate keep working on 1.1.0’s new default,
token (The remote PEP authenticates with its key).
It prints what it stored. That step needs the directory and the settings
in the same database; in a cell or tier database that lacks either, it
writes nothing and says so.
Run the script as the table owner, from a checkout of 1.1.0. On the
compose stack the owner is sts. The application role sts_app cannot
create an index.
docker compose exec -T postgres \
psql -U sts -d sts -v ON_ERROR_STOP=1 \
-f - < postgres/upgrade-1.0.0.sql
Against a database you reach directly:
psql -v ON_ERROR_STOP=1 -f postgres/upgrade-1.0.0.sql \
"postgres://owner@host:5432/sts"
Do not pass --single-transaction. The indexes are built with
CREATE INDEX CONCURRENTLY, which PostgreSQL refuses inside a
transaction. For a large sts_sessions table,
-v sts_maintenance_work_mem=1GB gives this session more memory for the
build and does not change the server. -v sts_schema=sts selects the
schema and is the default.
Then start the 1.1.0 image. If it starts before the script has run, it still starts and answers every request; the session pages and the per-person session sweep are slower until the indexes exist:
- As the application role (
sts_app, the normal case), which cannot create an index, it logsSTS-STORE-0172once, naming the two indexes and this script. Run the script; nothing needs restarting afterwards. - As a role that owns
sts_sessions, it builds the missing indexes itself, in the background, withCREATE INDEX CONCURRENTLY, without holding up writes or its own start. A build that fails logsSTS-STORE-0173and is tried again at the next start.
Replacing the image before the script does not damage the volume.
Leave the volume in place. docker compose down -v deletes the
directory, the realm registry and the setting overrides, and in product
mode the sealed signing keys and everything minted under them.
Do not run postgres/schema.sql again for this upgrade. On a 1.0.0
database that script rebuilds sts_ldap_entries_asked_names, which
version 31 already has, and sets the application role’s password again.
postgres/upgrade-1.0.0.sql does neither.
A second run finds the indexes already valid and changes nothing else. If the script stops because an index of one of those names has the wrong definition, drop that index and run the script again. An index left invalid by an interrupted build is dropped and built again by the script.
Returning to the 1.0.0 image ignores both indexes. Leave them.
PostgreSQL schema records what version 32 adds.
MariaDB
MariaDB is the second engine.
Its upgrade adds sts_sessions_started, records schema version 32, and
stores xacml.pepAuthentication = either in each realm with a registered
remote PEP, as the PostgreSQL script does.
sts_sessions_subject_band is PostgreSQL only. The build does not block
writers. Run it as an account that can ALTER the table,
in the service’s database, and pass --abort-source-on-error:
mariadb --abort-source-on-error -u root -p sts \
< mariadb/upgrade-1.0.0.sql
sts is that database’s name. Use the name from the connection string
when it differs (sts_store in the MariaDB example). The same cautions
apply: leave the database in place, and do not run mariadb/schema.sql
again, which sets the application account’s password on every run. A
second run inserts nothing. A valid index of the wrong shape is left as
it is; drop it and run the script again, then start the 1.1.0 image.
A 1.1.0 image started first still starts: an account that may not alter
the table logs STS-STORE-0172, and one that may builds the index in
place in the background (STS-STORE-0173 if that fails).
Behaviour changes: a deleted object leaves nothing behind
1.1.0 makes a delete complete. An application, person or group created again under a deleted one’s identifier, username or DN inherits nothing from it. Each of these changes what 1.0.0 did:
- Over LDAP, a group may not list a member that does not exist. An
add or modify that names a
member,uniqueMemberormemberUidwith no entry behind it is refused with result code 19 (constraintViolation). 1.0.0 accepted it. A script that adds a group’s members before their entries must create the entries first. A dangling member that a 1.0.0 directory already holds is kept, and the console still reports it. - A delete takes the deleted entry’s references with it. A deleted person, group or application is taken out of every group that listed it and every role it was a member of. A deleted application no longer confers any role, and a deleted person or group is no longer an owner of any role, group, application or service account. 1.0.0 left these references in place, so whatever was next created under the same name or DN got them. Each removal is written to the audit log.
- Deleting an application deletes the roles it owns. A role made for
one application (
<role>@<application>, itsroleApplicationnaming that application) is deleted with it, as the console’s Delete role deletes one, with aroles.deleteaudit row for each. Its members and permissions go with it. A role owned by another application, and a realm-wide role, are not touched. In 1.0.0 these roles stayed, and an application registered again under the same identifier found them waiting, members included. If you still need such a role, create it again once the new application exists.
None of these changes the stored data or needs a migration step. They
apply to deletes made after the 1.1.0 image starts. References a 1.0.0
service left behind before the upgrade stay until you remove them on the
console or through /admin-api.
Behaviour changes: a service account is for good
1.1.0 holds three rules about service accounts
at every door: the console, /admin-api and an LDAP modify. Each changes
what 1.0.0 did:
- A service account cannot be made an ordinary person again.
POST /admin-api/users/set-service-accountwithserviceAccount: falseon a service account is answered 400 (STS-SVCACCT-0060), and an LDAP modify that deletes or replacesstsServiceAccountis refused with result code 19 (STS-SVCACCT-0064). 1.0.0 cleared the flag, the owners, the destination and the rotation state. The console’s Make them an ordinary person button is gone, and its Make them a service account button now asks you to confirm that it cannot be undone. Deleting the entry is still allowed. - A service account that has an owner always keeps one, whatever the
policy’s
requireOwnersays. Removing the last owner, sendingowners: [], or an LDAP modify deleting the laststsServiceAccountOwneris refused (STS-SVCACCT-0061,STS-SVCACCT-0065). In 1.0.0 this was allowed whilerequireOwnerwas off. An account made with no owner underrequireOwneroff can still be edited without naming one. - An owner cannot remove themselves. Taking your own DN off an
account’s owners, or the group that is your only way of owning it, is
refused (
STS-SVCACCT-0062,STS-SVCACCT-0063; over LDAP, for the bound DN,STS-SVCACCT-0066,STS-SVCACCT-0067). Another administrator may remove you. - Deleting an account’s last owner makes the realm’s administrator the
owner. When the person or group that is a service account’s only owner
is deleted (SCIM
DELETE, an LDAP delete), the realm’s Admin Write group becomes its owner, or the realm’s bootstrap administrator if there is no such group. Anadmin.service-account.owner-addedrow bysystemsays so. In 1.0.0 the account was left with no owner. If the realm has neither, it still is, andSTS-SVCACCT-0068is logged.
Existing service accounts are unchanged, and nothing needs a migration step. A script that un-made a service account, or emptied its owners, gets the refusal instead.
AuthZEN ignores members it does not define
In 1.0.0, an AuthZEN request carrying a member that AuthZEN
1.0 does not define was refused with 400. In 1.1.0 it is accepted, and the
member is ignored, as AuthZEN 1.0 section 10.1.1 requires (“receivers MUST
ignore unknown fields”). This covers every request under /access/v1:
an evaluation, an evaluations batch, the three searches and an access
request. It applies at the top level and inside subject, action,
resource, page and options. An Action Search’s action, which the
search does not define, is ignored too.
Nothing else about a request changes. A defined member is still checked
for type and presence. A property inside properties or context still
needs a conversion rule. BULK’s items on an access request is still
refused. A request that worked in 1.0.0 gets the same answer.
STS-AUTHZEN-0009 is retired. Other APIs still refuse members they do not
declare. The remote PEP’s AuthZEN endpoint in the xacml-pep container
follows the same rule.
AuthZEN requires Content-Type: application/json
AuthZEN 1.0 section 10.1 says a request MUST carry Content-Type:
application/json. In 1.0.0 the evaluation, the evaluations batch and the
three searches read any body as JSON, whatever it was labelled. In 1.1.0
a request labelled anything else, or not labelled at all, is answered
415 Unsupported Media Type (STS-AUTHZEN-0117) once the caller is
admitted. A charset parameter is accepted. A caller that sent JSON as
text/plain, or with no Content-Type, has to send the header. The
remote PEP’s AuthZEN endpoint is unchanged.
An AuthZEN resource search names the policy’s resource ids
In 1.0.0 a Resource Search for a resource type
this service has no objects of (anything but application, api and
delegation) answered no results, whatever the policy permitted. In
1.1.0 its candidates are the resource ids the realm’s policies compare
resource-id with, and each is a result only where the policy permits
it as that type. Section 8.5 asks for every resource of the type the
subject may act on. The three types this service has objects of answer as
before.
Policies can be exported and imported, whole or one at a time
New in 1.1.0: Directory → Policies has an Export and import tab, and
/admin-api has POST /admin-api/policies/transfer/export, inspect and
import with GET /admin-api/policies/transfer beside them. An export is a
JSON document signed under the realm’s new Policy Export Signing CA, with the
signer’s whole chain inside it. An import from another realm asks whether to
trust that realm’s signer first. An export may carry every policy the realm
stores or only the ones named, each by its kind and name, and every stored
policy has an Export button of its own. An import may write every policy in
the document or only the ones ticked. Policies
has the details.
A federated OpenID Provider may leave out its issuer
This applies to a federation relationship that finds its OpenID Provider
through an OpenID Federation Trust Anchor
(fedTrustAnchor). In 1.0.0, the sign-in was refused with STS-FED-0149
when the provider’s resolved openid_provider metadata had no issuer.
In 1.1.0 an absent issuer is read as the provider’s Entity Identifier.
OpenID Federation for OpenID Connect 1.1 section 5.1.2 allows no other
value. An issuer that is present and names another entity is still
refused. The ID Token’s iss is still checked against the Entity
Identifier. Nothing this service publishes changes.
New: export and import a person as LDIF
A person’s page under Directory → Users has an Import / export tab,
the one an application’s page has had since 1.0.0. Export saves the
person as an LDIF file of one record: the attributes a create takes, and,
only when its box is ticked, their credentials unencrypted (the
password as its stored hash, the authenticator app, passkeys, recovery
codes, app passwords and stored certificates). Import creates a person
from such a file in the realm the console is in, and never overwrites one
who is already there. Both need Admin Write and a recent sign-in. The API
is POST /admin-api/users/export-ldif and /import-ldif; see
Exporting and importing a person as LDIF.
Nothing that existed in 1.0.0 changes.
An ISO mdoc is issued
The issuer offers IdentityCredentialMdoc (mso_mdoc). It is signed with
COSE ES256 (-7) or ESP256 (-9) by a document signer that chains to an
ECDSA Issuing Authority CA this realm mints on first use
(GET /oid4vci/mdoc-iaca, and GET /admin-api/mdoc-iaca). The credential
names GET /oid4vci/status-lists/mdoc. A wallet sign-in accepts an mdoc
only when this realm issued it. The Digital Credentials API still does not
carry one, and the Mobile Security Object is not signed with a post-quantum
algorithm.
The verifier’s default document type and namespace are now the type this
realm issues (urn:iya:sts:mdoc:identity, urn:iya:sts:mdoc), not the
mobile driving licence. A deployment that asked for
org.iso.18013.5.1.mDL sets oid4vp.expectedDoctype and
oid4vp.mdocNamespace.
bbs-2023 is the W3C cryptosuite
Until 1.1.0 an ldp_vc this service issued was labelled bbs-2023 but
used a private format: no W3C bbs-2023 implementation could verify it, and
the Verifier could verify no other issuer’s. It now follows W3C Data
Integrity BBS Cryptosuites v1.0 (baseline), in issuance, presentation and
verification (Verifiable credentials).
- The base proof is the specification’s: blank nodes relabelled by HMAC,
the statements named by the configuration’s mandatory JSON pointers hashed
into the BBS header, and the other statements signed as messages
(
oid4vci.ldpVcMandatoryPointers,oid4vci.ldpVcDidMandatoryPointers; default/issuer,/type,/validFrom,/validUntil). The proof carries nocreated. - A presentation is a reveal document, the credential with only what the
holder reveals, carrying a derived
DataIntegrityProof. Presented on its own, its presentation header must be the request’s nonce; inside aVerifiablePresentation, the presentation’s proof carries the nonce as itschallengeand the client as itsdomain(OpenID4VP 1.0 B.1.3.2.5), and the header may be the nonce or empty. - The BBS key is published as the specification’s Multikey:
publicKeyMultibaseiszand base58btc of0xeb01and the 96-byte key, at/bbs/keys/{kid}and in the DID document. It wasuand the raw bytes. - Credentials issued by 1.0.x cannot be presented by default. Their
proofs are in the old, non-standard format and cannot be turned into the
new one, so a realm refuses a presentation in it, naming it as the pre-W3C
format (
STS-VC-0181). Holders need their credential issued again: a refresh or a new issuance from 1.1.0 gives a W3C one. A 1.0.x credential expires afteroid4vci.credentialLifetimeS(thirty days by default) anyway. oid4vc.bbs2023LegacyFormat(per realm, defaultfalse) makes a realm use the old format again: it issues itsldp_vccredentials in it and accepts presentations in it, as well as W3C ones. Turn it on only while a wallet that has not moved to W3C bbs-2023 is in use, and off once it has; a credential issued under it cannot be presented once it is off. The old format is namediya-bbs-2023-legacyin the metadata and in the credential, neverbbs-2023, and every use is logged (STS-VC-0182for a presentation,STS-VC-0183for an issuance).
The remote PEP authenticates with its key; the client certificate is retired
A remote XACML PEP authenticates every call it makes to the service — the
registration, the pulls, the heartbeat, the PIP, the decision records and
the AuthZEN forward — with a DPoP-bound access token from an RFC 7523
assertion it signs with its own key (PEP_ASSERTION_KEY). The key is
generated where the PEP runs and certified with issue-pep-credential; the
service never holds it (How the PEP authenticates to the service).
xacml.pepAuthenticationdefaults totoken. A PEP that presents only a client certificate is refused (401,STS-XACML-0289).eitherandcertificatestay available for an older PEP image or another implementation.- The 1.1.0 upgrade script keeps a 1.0.0 deployment’s PEPs working.
Every PEP 1.0.0 registered authenticated by its client certificate, so
postgres/upgrade-1.0.0.sqlandmariadb/upgrade-1.0.0.sqlstorexacml.pepAuthentication=eitherin every realm with at least one registered remote PEP (an entry under itsou=peps), only where the realm stores no value. When the default realm has a PEP itseitheris service-wide, so the script also storestokenin each other realm with no PEP and no value. A realm with no PEP, and a new installation, gettoken. - Then move each realm to
token: give each PEP its key (issue-pep-credential, thenPEP_ASSERTION_KEYon the 1.1.0 PEP image), and once every PEP in the realm holds its tokens, setxacml.pepAuthenticationtotokenor reset it (Upgrading a deployment whose PEPs use a certificate). Without the script (the LDIF store, or a split cell database), seteitheryourself before the PEPs reconnect. If a PEP is refused anyway, the 401 says thateitherwould accept its certificate, and the service logs a warning underSTS-XACML-0289once per realm. - The PEP ignores
PEP_TLS_CERTand says so once at start (STS-XPEP-0135).PEP_TLS_KEYis still read as the assertion key whilePEP_ASSERTION_KEYis unset.GET /’scredential.clientCertificateis alwaysfalse. - The CRL-only plain listener binds only with
PEP_CRL_HTTP=true. It served the client certificate’s CRLs. A PEP with a CRL directory and no switch says once that it is not bound (STS-XPEP-0136). - An anonymous request to
/xacml/pep/*is now a 401 (STS-XACML-0289) in a realm on the default, where it was the access policy’s 403. - The seeded client
sts-remote-pepno longer declares certificate-bound tokens; an entry a pre-release build seeded with the flag has it removed at the next start (audited asapplication.update). A token request through it with no DPoP proof isSTS-OAUTH-1012. - The test stacks and the AWS suite runner mint no client certificate for the PEP and post no trust anchor for it.
A remote PEP’s directory entry is a service account
The entry a remote XACML PEP’s client certificate maps to is now a service account, owned by the realm’s Admin Write group, or by its bootstrap administrator where that group does not exist (details).
- When it happens. An entry becomes one when it joins
remote-peps. The seededremote-pep-1and every entry already in the group become one at the next start, so an existing deployment needs no step of its own. - What changes. The PEP’s connection is unaffected: mutual TLS is not a service-account door. A browser sign-in as the entry is now refused (STS-SVCACCT-0010) unless the realm’s service-account policy allows it.
- When it waits. A realm with no Admin Write group and no bootstrap administrator leaves the entry as it is and logs STS-SVCACCT-0051: a service account is never made without an owner.
- The console and the API. The PEP’s Overview tab shows it, with the
owners and a link to the person’s Service account tab. Each row of
GET /admin-api/xacml/pepscarriesidentityAccount. The change is additive.
The remote PEP binds no plain-HTTP listener by default
The remote XACML PEP container (iyasec/iya-sts-xacml-pep) no longer binds
its plain-HTTP decision API on 9090 or its plain-HTTP reverse proxy on 9180
unless you ask for them. Over HTTPS, 9443 and 9543 behave as before.
- To keep the old behaviour, add
PEP_HTTP=true(the API) andPEP_PROXY_HTTP=true(the proxy) to the container’s environment. Withdocker-compose.yml, setXACML_PEP_HTTP=trueandXACML_PEP_PROXY_HTTP=trueon the host. - A container that sets
PEP_PORTorPEP_PROXY_PORTwithout the switch logsSTS-XPEP-0106once at start, naming the line that brings the listener back. A switch set to anything other thantrueorfalseleaves the listener off and logsSTS-XPEP-0107. - The image’s healthcheck probes
/healthcheckover HTTPS onPEP_HTTPS_PORTwhen plain HTTP is off. A PEP with no HTTPS pair yet reports itself unhealthy until it has one. If something gates on that health, turnPEP_HTTP=trueon. docker-compose.yml’s defaultPEP_NOTIFY_URLis nowhttps://xacml-pep:9443/notify. The oldhttp://default was refused unlessxacml.pepNotifyAllowHttpwas on.- The client credential’s CRL stays reachable. A credential minted with
tests/tools/pep-credential.js --crl-base=http://<pep>:9090/crlnames the PEP’s plain port, and with plain HTTP off nothing answered there, so the service could not fetch the list and refused every pull as unauthenticated. WithPEP_HTTPoff the PEP now bindsPEP_PORTforGET /crl/<name>and nothing else, whenever it has a CRL directory to serve.PEP_CRL_HTTP=falseturns it off andPEP_CRL_HTTP=truebinds it even with no directory; a value that is neither logsSTS-XPEP-0115. Since the client certificate was retired (above), onlyPEP_CRL_HTTP=truebinds it. Anything else asked of that port is a 404 (STS-XPEP-0114). The Listener tab shows it as listening, CRLs only. - Admin console: the remote PEP’s Listener tab shows the two listeners as off, each with its switch. A listener the PEP reports off no longer holds its port, so a listener defined on the tab may use 9090. A listener the PEP has not reported, or reported with no state, reads not reported (it read listening before), and an environment plain-HTTP listener with no report reads as its default, off.
The nudge to a remote PEP is HTTPS only, and verifies with no setting
The service sends a remote PEP’s “pull now” nudge over HTTPS only, in every mode, and always verifies the PEP’s certificate.
- Trust with nothing set. The PEP’s HTTPS listener certificate is issued
by the realm’s Remote PEP listeners (
pep-tls) Issuing CA, and the nudge verifies against that chain by default, with the host checked against the notify URL’s. A certificate from this service’s Root but another Issuing CA (another realm’s PEP, a custom listener) is refused (STS-XACML-0260).xacml.pepNotifyCaFileis still read, as an additional anchor for a PEP certified elsewhere. The nudge that 8081 refused with “self-signed certificate in certificate chain” (STS-XACML-0070) is delivered. xacml.pepNotifyAllowHttpandxacml.pepNotifySkipTlsVerificationare retired. Both are still accepted, so a configuration naming them keeps starting, and both are ignored; one that is on logsSTS-XACML-0258once per process. Remove them.GET /admin-api/xacml/peps’notify.transportreportsallowHttpandskipTlsVerificationasfalse.- A PEP registered with an
http://notify URL is shown with that URL unusable, plain http, the nudge is sent over HTTPS only, and goes on converging by polling. Set its notify URL tohttps://<host>:<PEP_HTTPS_PORT>/notify(the PEP’s Settings tab now refuses anhttp://one,STS-XACML-0239).STS-XACML-0259is recorded for a nudge refused that way;STS-XACML-0073andSTS-XACML-0074are retired. - The PEP answers
POST /notifyon its HTTPS listener only (a 404 over plain HTTP,STS-XPEP-0112), and rejects anhttp://PEP_NOTIFY_URL, or anhttp://notifyUrlan older service stored (STS-XPEP-0113, at ERROR, once per value). A rejected URL means the PEP advertises no notify URL at all, not the derived one, until it is fixed or unset. It is reported withrejected: true(peps[].settingsInUse.values.notifyUrl.rejectedonGET /admin-api/xacml/peps), and the PEP’s Settings tab and Notify column say it is rejected. - Admin console: the Notify column of the Remote PEPs tab, and the PEP’s Overview, show usable, unusable with a one-line reason, or none, and two words about the last nudge; the full sentences are under Details.
- The PEP derives its notify URL when none is set. With neither the
PEP’s Settings tab
notifyUrlnorPEP_NOTIFY_URLset, the PEP advertiseshttps://<host>:<PEP_HTTPS_PORT>/notify.<host>is the DNS name in the HTTPS listener certificate it serves that equals its hostname, else the certificate’s first DNS name, elsePEP_NAMEif that is a DNS name, else the container’s hostname. So a certificate naming the PEP’s registered name first andxacml-pepsecond, on a container namedxacml-pep, givesxacml-pep. A PEP with no HTTPS certificate yet advertises none until it has one, and a new certificate derives the URL again. The PEP logs the derived URL at INFO, and reports its source asderived(GET /admin-api/xacml/peps’peps[].settingsInUse.values.notifyUrl.source). The Notify column says derived by the PEP from its HTTPS listener certificate. The service still checks the URL as before: https only, the certificate verified, and the host checked against it.docker-compose.ymland the test stack no longer set a notify URL, so they derive it.XACML_PEP_NOTIFY_URLstill sets one, and an empty one now means unset. - The PEP reports its hostname, and the realm’s default certificate names
it. The PEP sends
hostname(the value the derivation reads) on its registration and heartbeat. The service stores it and adds it to the default names of the PEP’s HTTPS listener certificate, beside the registered name and the notify host, for both the environment pair and a defined listener’s certificate. So on a fresh install the derived notify URL uses the hostname with no names added by hand. The PEP’s Overview tab andGET /admin-api/xacml/peps(peps[].hostname) show it. The service accepts only a DNS name, never an IP address, and refuses anything else with 400 (STS-XACML-0261). A PEP that reports none keeps today’s defaults, and an older service ignores the member. A certificate issued before this does not name the hostname: issue it again, or let a defined listener renew.
The reverse proxy’s fixes from the 8081 demonstration
- The service’s cookies never reach the application. A browser sends
cookies by host, not port, so where the service and the proxy share a host
__Host-sts_sessionand the rest were forwarded upstream. The proxy now strips every cookie the service names on the pull (realm.serviceCookiePrefixes:sts_*,__Host-sts_*,__Secure-sts_*), and the managed settingproxyStripCookies(PEP_PROXY_STRIP_COOKIES) adds names, a trailing*for a prefix. The application’s own cookies are untouched. A service older than this sends no list, and the PEP strips the same three prefixes. - An identity header with no value is not sent. A person in no group sent
an empty
X-Iya-Groups; an empty string or list now sends no header, for every identity header. X-Iya-Amris sent. The identity endpoint answered every proxy session’s access token with noamr; it now reads the token’s ownamr,acrandauth_time.- A proxy session a CAEP signal ended clears its cookie on the redirect to sign in, as the documentation said.
- Between a sign-out and its signal, a browser whose identity the service refused because its session had ended got a 403; it is now sent to sign in with the proxy session ended, and anything else gets a 401.
- The account chooser shows usernames. The service’s ID Token carries no
preferred_username, so an account was labelled by itsurn:uuidsubject; the sign-in now asks the service’s session endpoint, whose answer also carries the person’s display name (name), shown beside it. - A route’s identity is edited on the route’s own page. The Reverse
proxy tab drew a How route … forwards the identity form under its table
for every route; that is now only the identity part of the route page’s
form, which the route id in the table links to.
POST /admin-api/xacml/set-pep-route-identityis unchanged. /admin-api/xacml/*PEP acts takepepas well asname, the nameGET /admin-api/xacml/pepstakes as?pep=.namestill works; both naming different PEPs is refused (STS-XACML-0038).
Plain HTTP is off by default has the precedence and the reasons.
New: a remote PEP route’s own page, and several accounts in one browser
- Each reverse-proxy route has a console page of its own, where every value can be edited and the route renamed (A route’s own page).
- A session route can let one browser hold several signed-in accounts and
switch between them (
multipleAccounts, off by default; the bound isproxyMaxAccounts,PEP_PROXY_MAX_ACCOUNTS, default 5; Several accounts in one browser).
Changed: every reverse-proxy route is authorized by its own policy
- Every request on every route is decided in XACML by that route’s own
policy, never by the realm’s root. Each route makes one
authorizationchoice: an existing policy, a simple generated policy (a resource, CRUD or read/write, and the roles for each action), or Public, which generates a policy too (Authorizing a route). The route forms draw the choice as one selector, with a search for the policy and for each action’s roles. - An empty methods list is deny-all, and a route takes any method by
listing all seven. Every route states its
methods. - Not compatible with the proxy documents of earlier builds, which the
proxy feature’s unreleased state allows:
public,resourceandactionare refused as members,methodsandauthorizationare required, and a remote PEP and the service upgrade together. Save each route’s choice again (or edit the document) after the upgrade.
Credentials are signed by a key of their own, whose certificate names the issuer
Until now, a dc+sd-jwt or jwt_vc_json credential and its Token Status
List Token were signed with the realm’s general JOSE key. That key also
signs ID Tokens, access tokens, metadata and Security Event Tokens, and its
certificate named no issuer. A wallet following HAIP 1.0 section 6.1.1 had
nothing in x5c to compare the credential’s iss with
(Verifiable credentials).
- Each realm signs its credentials and their status lists with a
dedicated key for each algorithm family (RSA, each curve, each
post-quantum algorithm). That key signs nothing else. It is made the first
time a credential needs it, is published in
/oauth2/jwksand in the DID document, and is accepted by this realm’s Verifier. It is not accepted for any of the realm’s other tokens. - Its certificate binds the issuer. The subjectAltName holds one
uniformResourceIdentifierfor every issuer identifier the realm answers to, plus thedid:webof each. Withglobal.publicBaseUrl(or the credential application’s listener) pinned, that is exactly one issuer. Otherwise it is eachtls.hostnamesandtls.ipsname on the main port. The extended key usage isid-kp-documentSigning(RFC 9336). There is no DNS name and no TLS usage, so no TLS stack takes the certificate for a server certificate. keyUsage isdigitalSignaturealone. A post-quantum key, ML-DSA included, has a certificate over itself, never over a partner’s key. - It is re-issued when the issuer identifiers change (a new
global.publicBaseUrl, a listener, a host name), at the next credential. The certificate it replaces is not revoked, so credentials issued under it keep verifying. - Revoking the live certificate takes effect at once.
- After
superseded,affiliationChangedorcessationOfOperation, the same key gets a new certificate. - After any other reason, including
keyCompromiseandcertificateHold, the next credential is signed by a new key. The old key is no longer published or accepted while the revocation stands (STS-PKI-0287).
- After
- A credential whose
issthe certificate does not name is still issued with itsx5c. That happens when a request reaches the service by a name nobody configured. The service logs a warning once per realm and address (STS-PKI-0283), and a strict wallet refuses the credential. Pinglobal.publicBaseUrl, or add the name totls.hostnames. keys.credentialSigner(STS_KEYS_CREDENTIAL_SIGNER):dedicated, the default, orrealm-key, which keeps 1.0.0’s behaviour for a deployment whose verifiers pinned the realm’s general key. Credentials already issued verify either way.ldp_vcandmso_mdocare not affected, and neither is the trusted list, which its scheme operator signs.
WS-Trust uses XML Encryption selected by an XPath expression map; ?encrypt=1 is retired
POST /sts?encrypt=1 encrypted the issued SAML 2.0 assertion to the
requester’s certificate. That query parameter was this service’s own test
control. It was never part of WS-Trust, and it is retired. A request that
still carries encrypt=1 is handled as if the parameter were absent:
nothing is encrypted because of it, and the parameter alone is not a fault.
XML Encryption of a WS-Trust message is now chosen per application, once
for the request and once for the response. Each direction is a checkbox
and an XPath expression map: a list of expressions, one per value, naming
what must be element-encrypted. An expression may select a SOAP header,
the SOAP body, or any other element, so a SAML assertion, a JWT, a
username token and any other token are covered by the same map. Each
selected element is replaced by xenc:EncryptedData with Type
http://www.w3.org/2001/04/xmlenc#Element, and the key sits inside that
element. The response is not wrapped in saml:EncryptedAssertion.
This does not use the SAML assertion settings.
saml2.encryptAssertion, saml2.encryptionAlgorithm,
saml2.keyTransportAlgorithm and samlEncryptionCertificate are
unchanged and apply to SAML only. WS-Trust has its own settings and its
own attributes.
- Each direction has a checkbox and its XPath map. Both checkboxes
default to off, and an application may override either.
wstrust.encryptRequest(wstrustEncryptRequest) requires every expression inwstrustEncryptRequestElementsto arrive as XML Encryption. The service verifies a WS-Security signature on the message as it arrived, then decrypts those elements with the realm’s XML private keys.wstrust.encryptResponse(wstrustEncryptResponse) replaces every match ofwstrustEncryptResponseElementsin the response.- A switch that is on with an empty map is a fault. An expression that matches nothing is a fault. Either one stops processing at once and returns that fault: nothing is issued, and the clear response is not sent.
- An expression is a stated subset of XPath. It may use
/and//,*, an element name,prefix:local, a union with|, and the predicateslocal-name(),namespace-uri()and@attr, joined byand. Any other expression iswst:RequestFailed(STS-WSTRUST-0079). Writelocal-name()andnamespace-uri()when one expression should match SOAP 1.1 and SOAP 1.2. A prefix is resolved from the namespaces declared on the element, and from SOAP 1.1, SOAP 1.2, WS-Addressing, WS-Security, WS-Security Utility, WS-Trust, SAML, XML Signature and XML Encryption. - The algorithms are WS-Trust settings, overridable per application.
wstrust.encryptionAlgorithm(wstrustEncryptionAlgorithm) defaults toaes256-gcm.aes128-gcmis also available, andaes256-cbcandaes128-cbconly where broken algorithms are allowed.wstrust.keyTransportAlgorithm(wstrustKeyTransportAlgorithm) defaults torsa-oaep-mgf1p.rsa-oaepis also available, andrsa-1_5only where broken algorithms are allowed. Where legacy hashes are not allowed,rsa-oaep-mgf1pis used asrsa-oaep. An elliptic-curve recipient uses ECDH-ES whatever the key transport says. - The response is encrypted to one recipient, and a configured step
that cannot be used does not fall through to the next.
wstrustEncryptionCertificateon the application, when it is set: base64 DER or PEM. A value that cannot be used is a fault.- Otherwise
wstrustResponseRecipientXPath: the firstds:X509Certificateor#X509v3BinarySecurityTokenthat expression selects in the request. An expression that is set and matches nothing, or that selects an element that is not one of those two, iswst:InvalidRequest(STS-WSTRUST-0076). A certificate element whose text is not a certificate iswst:RequestFailed(STS-WSTRUST-0077). The next source is not tried. - Otherwise the first signer certificate element the request’s
WS-Security signature names, in document order. That is the
#X509v3BinarySecurityTokenthe signature’s reference points at, or ads:X509Certificatein that signature’sKeyInfo. A thumbprint, Subject Key Identifier or issuer-serial that does not carry the certificate element is not a recipient. A certificate inside an assertion, or insideOnBehalfOforActAs, is not the signer’s. With response encryption on and no recipient, the fault iswst:InvalidRequest(STS-WSTRUST-0076) in both modes. A cipher failure, a response expression that matches nothing, or a certificate the encryption-recipient check refuses iswst:RequestFailed(STS-WSTRUST-0077). Under paranoid PKI mode the certificate must permitkeyEnciphermentorkeyAgreement. A message-signing certificate permitsdigitalSignatureonly, so setwstrustEncryptionCertificatewhen the signer’s certificate cannot be an encryption recipient. A certificate with nokeyUsagemay encrypt (RFC 5280).
- A request element the map requires, sent in clear, is refused in both
modes. After decryption every request expression must select at least
one node, and every selected node must be one restored from ciphertext
or inside one. A clear match, a miss, or a decrypt that fails is
wsse:FailedCheck(STS-WSTRUST-0075), WS-Security 1.1’s code. Development mode no longer answers in clear when encryption was required and could not be done. - Arbitrary ciphertext is a setting, off by default. With
wstrust.acceptEncryptedElements(an application’swstrustAcceptEncryptedElements) on, an encrypted element anywhere in a request is opened: anEncryptedDataof type Element or Content, a WS-Security 1.1EncryptedHeader, its key in its ownKeyInfoor in anEncryptedKeyin the security header that lists it. Off, ciphertext is accepted only where the request map names it, and anything else isSTS-WSTRUST-0080. A ciphertext must open with this realm’s keys either way. A signature is verified in the order the security header gives, so a request signed before it was encrypted verifies, and what opens outside the signed Body isSTS-WSTRUST-0046in product. - A map’s prefixes are the service’s.
wst,wsa,samland the rest mean what WS-Trust lists, whatever the request declares. - An encrypted answer announces itself. Its
EncryptedKeyandReferenceListare in awsse:Securityheader, so WSS4J and WCF decrypt it in their own security processing. - A recipient expression selects only what the signature covers. The
certificate
wstrustResponseRecipientXPathselects must be the signer’s own token or inside a part the accepted signature references, or the request isSTS-WSTRUST-0081. - The WSDL describes it (the metadata document).
The message signature is an
sp:AsymmetricBindingundersp:Basic256Sha256on the eight ports, and under this service’s own suite,urn:iya-sts:ws-securitypolicy:algorithm-suite:1Basic256GcmRsaOaepSha256(AES-256-GCM, RSA-OAEP over SHA-256, RSA-SHA256), on eight moreIyaSuiteports. A request may sign every header and the Body, and may be encrypted where the realm accepts it under the port’s suite; an answer may be encrypted where the service-wide cipher is that suite’s. Each choice is optional. Ansp:IssuedTokennow carries the nestedwsp:PolicyWS-SecurityPolicy requires; without it Apache CXF would not load the WSDL. - The encryption certificate as each port’s identity is a setting, off by
default. With
wstrust.advertiseEndpointIdentityon, every port carries the realm’s encryption certificate in awsa:EndpointReference/wsid:Identity, where WCF reads it. That element is from WS-AddressingIdentity, a Microsoft specification that was never standardised, so the WSDL does not carry it by default. Off, a client is configured with the certificate from/saml2/metadata(The encryption certificate). - An RST may name a cipher only inside the application’s policy.
Absent
wst:EncryptionAlgorithmandwst:EncryptWith, the application’s settings are used as they stand. Either element may name a cipher only when response encryption is already on and the name is the configured algorithm. Anything beyond that iswst:InvalidRequest(STS-WSTRUST-0078).wst:UseKeyandwst:ProofEncryptionstay unimplemented, because this service issues bearer tokens. STS-WSTRUST-0012andSTS-WSTRUST-0013are retired. They named the query parameter. A fault response is not encrypted.
To encrypt the issued SAML 2.0 assertion, set wstrustEncryptResponse
to true and add this as one value of
wstrustEncryptResponseElements:
//*[local-name()='Assertion' and namespace-uri()='urn:oasis:names:tc:SAML:2.0:assertion']
Callers that looked for EncryptedAssertion find EncryptedData.
Nothing already stored has to be migrated, and there is no upgrade-script
step. Both switches default to off, so a deployment that never sent
?encrypt=1 is unchanged. A caller that did has to set the application
as above. The query parameter no longer encrypts the assertion.
New: an application’s own WS-Trust decryption key pair
An application may now hold a decryption key pair of its own, so a request for it is encrypted to its certificate rather than to the realm’s XML Encryption certificate (#1668). On the application’s Credentials tab, WS-Trust decryption key pair, and through three new management API operations:
- Issue one from the realm’s certificate authority
(
POST /admin-api/applications/issue-wstrust-decryption-key): thekey-enciphermentprofile,rsa-3072orec-p256, subjectCN=<application>-encryptwith the realm’s organisation. - Upload a PEM certificate and its unencrypted private key
(
upload-wstrust-decryption-key). The key must be the certificate’s, RSA of 2048 bits or more or EC on P-256, P-384 or P-521; each refusal has its code,STS-ADMIN-0946to0950. - Remove it (
remove-wstrust-decryption-key).
The private key is sealed where keys persist and is never shown, answered
or logged. The certificate is on the page, with a download, and in
credentials.wstrustDecryption of GET /admin-api/applications?application=.
The WSDL does not name it: configure the client out of band.
A request is opened with the key its EncryptedKey names, so a request
whose AppliesTo is inside the ciphertext still opens. Ciphertext opened
with an application’s key in another application’s request is
wsse:FailedCheck (STS-WSTRUST-0082), and a request for an application
with its own key encrypted to the realm’s key is STS-WSTRUST-0083. An
application without one is unchanged. Four new directory attributes carry
it (wstrustDecryptionCertificate, wstrustDecryptionCertificateChain,
wstrustDecryptionPrivateKey, wstrustDecryptionKeySource); nothing
existing has to be migrated, and there is no upgrade-script step.
1.0.0
1.0.0 is the first release of iya-sts. Every build before it was a pre-release.
SAML service provider metadata written through the API is read
Writing an application’s samlSpMetadata through POST /admin-api/applications/set
or add, or through the console’s field grid, now reads the document the way
creating the application or uploading the document always has: its assertion
consumer services, their bindings and its certificates are registered. Until
1.1.0 those doors stored the text and registered nothing, so a SAML 1.1 relying
party updated that way was answered with the Browser/POST profile at a consumer
its metadata declares for Browser/Artifact.
A document that does not describe the application is now refused with HTTP 400
and nothing is written, as the create and upload doors already refuse it
(STS-ADMIN-0935). Writing an empty value still clears it.
An inbound OpenID Connect ID Token’s iat is held to the sign-in
A federation relationship that signs people in from an OpenID Connect partner
now refuses an ID Token whose iat is before the sign-in started or after now,
each end widened by oauth2.clockSkewS (OpenID Connect Core 3.1.3.7, step 10;
STS-FED-0253). Nothing is redeemed and UserInfo is not asked after the
refusal. Until 1.1.0 any iat was accepted, so an ID Token issued a week
earlier signed a person in. This applies to every relationship, not only the
FAPI profiles. A partner whose clock is behind this service’s by more than the
skew is now refused; raise oauth2.clockSkewS for it.
Not backwards compatible with earlier builds
1.0.0 is not backwards compatible with the pre-release builds that came before it. Moving an existing deployment from a pre-release build to 1.0.0 works in many situations, but there are edge cases with no clean upgrade path. Stored settings, directory entries, persisted data or client configurations created by an earlier build may need to be recreated rather than carried forward.
This is deliberate. The earlier builds were pre-release versions, and we are not attempting to keep 1.0.0 compatible with them.
If this causes you trouble, open an issue on the GitHub repository: github.com/rcbj/iya-sts/issues. Say which build you are moving from and what did not carry over.
Backwards compatibility from here on
Our goal is backwards compatibility going forward. Releases after 1.0.0 are intended to upgrade cleanly from 1.0.0 and from each other. The steps from a running 1.0.0 deployment to 1.1.0 are in 1.1.0 above. Where a later release cannot upgrade cleanly, its notes on this page will say so and describe the path.
Version numbers
A build reports its version as M.N.O.<build>. M.N.O is the release, and
for 1.0.0 the release build is 1.0.0.0. Other builds of the same code carry
the UTC time they were built as their build number. After 1.0.0, each change
published from main is the next patch release (1.0.1, 1.0.2, …), and a new
minor or major release starts when the repository’s VERSION file is set to
it. A release that needs an upgrade script is a minor (or major) release,
never a patch: going from one patch release to the next never asks you to
run anything against your database. That is why the release after 1.0.0 is
1.1.0. The running service shows its version on the admin console and in its
metadata.
Release candidates. Before a release is published, its candidate may be:
iyasec/iya-sts:1.1.0-candidate and iyasec/iya-sts-xacml-pep:1.1.0-candidate
(also on ghcr.io/rcbj), each beside its full 1.1.0.<build> tag. A candidate
is for testing. It reports its version as 1.1.0.<build> like any other build,
and it is not the release: :1.1.0 and :latest are published only by the
release itself. A newer candidate replaces the -candidate tag.