Credential status check queries the status list before the expiry check, so expired credentials can end in ERROR
I maintainer di solito rispondono entro 1 giorno
@paullatzelsperger ci sta già lavorando.
Dal 25/11/2026.
Valutazione
- Difficoltà
- 3/5
- Tempo stimato
- 1-2 giorni
- Idoneità per principianti
- 42/100
- Tipo di issue
- Bug
- Chiarezza
- Abbastanza chiara
- Stato di attività
- Attiva
- Stack tecnologico
- java
- Ambito
- authentication
Direzione di ricerca
Start in CredentialStatusCheckServiceImpl.checkStatus (core/identity-hub-core) and follow the order: superseded, status list lookup, then expiry. Read CredentialWatchdog.determineStatus and its ALLOWED_STATES/Javadoc to see how a failed check becomes ERROR and why expired credentials are re-checked each period. The tests checkStatus_expired_becomesRevoked/checkStatus_expired_becomesSuspended (CredentialStatusCheckServiceImplTest.java L268-296) pin the current precedence, so run them first. Done means an expired, non-revoked credential reaches EXPIRED without a status list lookup while revoked-after-expiry still reports REVOKED, with tests updated to match — but the approach is still an open choice for maintainers, so confirm which option they want before editing.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Descrizione
Bug Report
Describe the Bug
CredentialStatusCheckServiceImpl.checkStatus resolves the status list of a credential before it checks the expiration date. The order is: superseded, then the status list lookup (REVOKED, SUSPENDED), then expiry.
As a result, an expired credential still causes a status list lookup. When the status list is not reachable, the credential moves to ERROR instead of EXPIRED.
Expected Behavior
An expired credential that is not revoked moves to EXPIRED and stays there, even when its status list is not reachable. It does not need a network lookup on each watchdog run.
Observed Behavior
- An expired credential still triggers a status list lookup. The unit tests
checkStatus_expired_becomesRevokedandcheckStatus_expired_becomesSuspendedassert this (CredentialStatusCheckServiceImplTest.java#L268-L296). - When the status list lookup fails,
checkStatusreturns a failure, andCredentialWatchdog.determineStatusmaps it toERROR(CredentialWatchdog.java#L188-L193). The credential is expired, but its state isERROR. CredentialWatchdog.ALLOWED_STATESincludesEXPIRED(CredentialWatchdog.java#L76), but the class Javadoc says the watchdog fetches "all non-expired, non-revoked credentials" (L55). So an expired credential that is not superseded is checked again on every watchdog run (edc.iam.credential.status.check.period, default 60 s), with a new status list lookup each time. The extra lookup is a recurring cost, not a one-time cost.
Steps to Reproduce
- Store a holder credential with a status list entry and an
expirationDatein the past. Do not supersede it with a renewed credential. - Make the status list URL unreachable.
- Let the credential watchdog run.
- The credential moves to
ERROR, and the log shows "Error determining status for credential ...". It does not move toEXPIRED. - With the status list reachable, the watchdog fetches the status list for this expired credential on every run.
Context Information
- Used version: IdentityHub v1.0.0-RC7. The check order is the same on
main(checked 2026-11-20). - OS: not relevant
Detailed Description
The check order is in CredentialStatusCheckServiceImpl.java#L48-L71:
if (credential.isSuperseded()) {
return success(VcStatus.EXPIRED);
}
Set<String> statusPurposes;
try {
statusPurposes = fetchStatusPurposes(credential);
} catch (EdcException ex) {
return failure(ex.getMessage());
}
if (statusPurposes.contains(REVOCATION)) {
return success(VcStatus.REVOKED); //irreversible, cannot be overwritten
}
if (statusPurposes.contains(SUSPENSION)) {
return success(VcStatus.SUSPENDED);
}
if (isExpired(credential)) {
return success(VcStatus.EXPIRED);
}
We understand that REVOKED takes precedence on purpose: a revoked credential must show as REVOKED even after it expires, and the tests above confirm this design. This report does not ask to drop that rule. It asks how the cost and the ERROR outcome for expired credentials can be avoided while the rule stays.
Related: #1173 / #1174 fixed the same order problem for superseded credentials: the superseded check now runs before the status list lookup, so a superseded credential stays EXPIRED even when its status list cannot be fetched. Credentials that expired by date but were not superseded still go through the status list lookup first. This issue is about that remaining case.
Also related: #1100 (transient status list failure moved credentials to ERROR permanently).
Possible Implementation
We leave the choice to the maintainers. Some options:
- Check expiry before the status list lookup. This changes the REVOKED-after-expiry outcome, so it may need an exception for credentials that were not yet checked after expiry.
- Keep the order, but on a failed status list lookup for an expired credential, return
EXPIREDinstead of a failure. - Skip the status check for credentials already in
EXPIRED(as the Javadoc already says), so the watchdog checks an expired credential once, not on every run. We did not check whether other watchdog steps, for example renewal, needEXPIREDinALLOWED_STATES. - Add a retention setting after which expired credentials are no longer checked.
- Lingua principale
- Java
- Stelle
- 46
- Fork
- 65
- Merge medio
- 1g 5h
- PR unite (30g)
- 26
Preparare l'ambiente
- Nessun Dockerfile né file Docker Compose
- Nessun modello di pull request
- Leggi la guida per i contributori
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Altre issue di eclipse-edc/IdentityHub
-
triage
Difficoltà 2/5 1-3 ore Idoneità per principianti 78/100
eclipse-edc/IdentityHub#1296 ·
I maintainer di solito rispondono entro 1 giorno
-
triage
Difficoltà 3/5 1-2 giorni Idoneità per principianti 55/100
eclipse-edc/IdentityHub#1297 ·
I maintainer di solito rispondono entro 1 giorno
-
triage
Difficoltà 4/5 1-2 giorni Idoneità per principianti 48/100
eclipse-edc/IdentityHub#1286 · 1 commento ·
I maintainer di solito rispondono entro 1 giorno
-
question triage
Difficoltà 5/5 Più di una settimana Idoneità per principianti 35/100
eclipse-edc/IdentityHub#1271 · 3 commenti ·
I maintainer di solito rispondono entro 1 giorno
-
Issuer: add support for `issuancePolicies`Forse di nuovo libera @paullatzelsperger l’ha presa 545 giorni fa e non c’è nessuna pull request aperta. Apertadcp enhancement
eclipse-edc/IdentityHub#694 · 5 commenti · 1 assegnatario ·
I maintainer di solito rispondono entro 1 giorno
Tutte le issue di eclipse-edc/IdentityHub
Issue simili
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 80/100
cloudfoundry/uaa#4194 ·
I maintainer di solito rispondono entro 1 giorno
-
ui: 進捗状況線ダイアログが日本語表示で英語のままApertaarea: ui priority: medium
Difficoltà 2/5 1-3 ore Idoneità per principianti 83/100
tetsuji16/microProject#1721 ·
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 78/100
I maintainer di solito rispondono entro 2 giorni
-
The engine's "loaded, but had errors" message leaves out which library and line each error is inAperta
Difficoltà 2/5 1-3 ore Idoneità per principianti 76/100
cqframework/clinical_quality_language#1980 ·
I maintainer di solito rispondono entro 3 giorni
-
windows-sys 0.101.0Aperta
Difficoltà 2/5 1-3 ore Idoneità per principianti 61/100