utkast til doc revokasjon - #662
Open
joergenb wants to merge 1 commit into
Open
Conversation
eriktja
reviewed
Aug 12, 2026
|
|
||
| # Revokering av bevis | ||
|
|
||
| Utstedarar i sandkassa kan no *revokere* bevis dei har utstedt. Revokering brukast når eit bevis ikkje lenger skal vere gyldig — til eksempel fordi grunnlagsdataa har endra seg, brukaren har mista retten til beviset, eller beviset blei utstedt ved ein feil. |
eriktja
reviewed
Aug 12, 2026
|
|
||
| - Alle bevis frå Bevisporten inneheld ein `status`-claim med eit `status_list`-objekt som peikar til ein **Status List Token** via `uri`, og gir bevisets plass i lista via `idx`. | ||
| - Status List Token er ein signert JWT/CWT (media type `application/statuslist+jwt` for SD-JWT-bevis, `application/statuslist+cwt` for mdoc) som samlar statusen for mange bevis i éi komprimert bitliste. | ||
| - I dagens implementasjon brukar Bevisporten 1 bit per bevis: `0` = gyldig, `1` = revokert. Det finst ikkje eigne mellomtilstandar (som «suspendert») i denne versjonen. |
Contributor
There was a problem hiding this comment.
Den er faktisk satt til 2 bits per status. Husker ikke helt hvorfor vi gjorde det.
Det er bare 0 (gyldig) og 1 (revokert) som er i bruk.
Contributor
There was a problem hiding this comment.
det var for å kunne ta høgde for ein reissueanse om ein kjem med ein ny status då, trur eg.
eriktja
reviewed
Aug 12, 2026
| Kort fortalt: | ||
|
|
||
| - Alle bevis frå Bevisporten inneheld ein `status`-claim med eit `status_list`-objekt som peikar til ein **Status List Token** via `uri`, og gir bevisets plass i lista via `idx`. | ||
| - Status List Token er ein signert JWT/CWT (media type `application/statuslist+jwt` for SD-JWT-bevis, `application/statuslist+cwt` for mdoc) som samlar statusen for mange bevis i éi komprimert bitliste. |
Contributor
There was a problem hiding this comment.
p.t har vi kun application/statuslist+jwt
oyri
reviewed
Aug 12, 2026
| 3. Hent Status List Token med eit HTTP GET-kall mot `uri` (`Accept: application/statuslist+jwt` for SD-JWT-bevis, `application/statuslist+cwt` for mdoc). Dette kallet krev ikkje autentisering. | ||
| 4. Valider signaturen på Status List Token-en, og respekter `exp`/`ttl` for cache av responsen. | ||
| 5. Dekomprimer bitlista og les verdien på indeksen `idx`. | ||
| 6. Om verdien er `1`, er beviset revokert og skal avvisast. Om verdien er `0`, er beviset framleis gyldig med tanke på revokering — dei andre valideringssjekkane gjeld framleis. |
Contributor
There was a problem hiding this comment.
noko ala - ver obs på at det kan kome inn ny mellomstatuser seinare på statuslista
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
No description provided.