News for hackers. Stuff that matters.
Re:Why to not use JWT (2021) by bjt2n3904 on Thursday September 29, 2022 @10:11AM (#33020864)
I was significantly creeped out that my state was issuing COVID passports with JWT.

Especially when I signed the opt out form requesting to not be placed on the database.

Especially 2.0, when I called the database, and was told that my records could not be deleted.

Re:Why to not use JWT (2021) by misnome on Thursday September 29, 2022 @10:18AM (#33020973)
How is issuing a JWT implicitly mean that they are storing it in a database? Couldn't they have just... not stored the data... but can still validate it?
Re:Why to not use JWT (2021) by infamousjoeg on Thursday September 29, 2022 @10:29AM (#33021172)
Exactly this. They just need to validate the JWT signature against a JSON Web Key Set (JWKS). There's no need to store the data.
Re:Why to not use JWT (2021) by stunk on Thursday September 29, 2022 @10:24AM (#33021057)
I was significantly creeped out that my state was issuing COVID passports.
Re:Why to not use JWT (2021) by bhandziuk on Thursday September 29, 2022 @11:34AM (#33022127)
Are you aware governments have been tracking vaccines and issuing vaccine cards for long long before COVID happened?
Re:Why to not use JWT (2021) by eagsalazar2 on Thursday September 29, 2022 @10:53AM (#33021557)
This is actually a decent use of JWTs (and generally I'm in the JWT=='bad' camp). These things don't ever need to be revoked and issuing a JWT means they don't have to store it in their own database. Also 3rd parties checking that passport don't have to implement any kind of database lookup/integration with state APIs. Pretty solid architectural choice IMO.
Re:Why to not use JWT (2021) by quesera on Thursday September 29, 2022 @10:55AM (#33021592)
Exactly. JWTs assert claims.

If your claim is not durable enough for the protocol's expiration setting (e.g. authorization, in some cases), then don't abuse JWTs. Simple!

Re:Why to not use JWT (2021) by eagsalazar2 on Thursday September 29, 2022 @11:56AM (#33022455)
This is really nice way of putting this. Logging in/out is authorization (and authn) so generally if you want to revoke access (log people out), JWTs are possibly the wrong choice (the thing people use JWTs for 99% of the time)
Re:Why to not use JWT (2021) by bjt2n3904 on Thursday September 29, 2022 @11:25AM (#33021995)
Oh yeah, exactly! Perfect application. I hate it.

Makes it really easy to scatter low budget devices across the state that require no Internet connection, and gives a red light/green light on whether you're allowed to go shopping or be out in public that day.

All the infrastructure is right there in place. Didn't get that far.

This time.

Re:Why to not use JWT (2021) by eagsalazar2 on Thursday September 29, 2022 @12:20PM (#33022817)
Businesses have the right to refuse service for any reason that is non-discriminatory. That's a good thing even if you don't agree with their reasons. I know some people do, but I don't count "you can't come in here if you can't prove you aren't going to kill me by negligently infecting me and my customers with covid" as discriminatory. Anyway covid is over so let's all move on.
Re:Why to not use JWT (2021) by marcosdumay on Thursday September 29, 2022 @12:04PM (#33022583)
Most of the "infrastructure" is the store owners and etc complying with the passport system. The technical part is irrelevant.

Anyway, all of that "infrastructure" is people making judgments. It will enable a police state if the people think they should enable it.

Re:Why to not use JWT (2021) by eagsalazar2 on Thursday September 29, 2022 @12:17PM (#33022783)
And you don't need all this tech for a police state anyway. Police states have been around for a long long time. Doomsday worries about hypothetical uses of tech seem yeah very hypothetical. I agree we should fight govt encroachment on our rights, but if you do that with too paranoid of a lens, then we won't have nice things (USA 2022 in a nutshell). How about, let's fight govt oppression when/where they are actually oppressing us.
Re:Why to not use JWT (2021) by xorcist on Thursday September 29, 2022 @10:59AM (#33021649)
> These things don't ever need to be revoked

What would the procedure that can guarantee no mistaken passport will ever get signed look like?

Of course you need some form of revocation, otherwise the first bad apple will spoil the system.

Re:Why to not use JWT (2021) by tylergetsay on Thursday September 29, 2022 @10:20AM (#33021004)
They used "JWTs" as a convience, Smart Health Cards have none of the issues here. Their issuance doesnt require a database either, thats just your healthcare provider.
Re:Why to not use JWT (2021) by adolph on Thursday September 29, 2022 @10:42AM (#33021372)
JWT and SMART Health Cards are similar under the hood. The T part of JWT refers to a Token, which in JWT is a standardized set of claims. Instead of T, SMART Health Cards use S, or Serialization. Instead of a token, the JWS serializes FHIR demographic and necessary medical information about the card bearer. SHC has all the same invalidation and key issue/revoke challenges as JWT.

When the issuer is ready to generate a Health Card, the issuer creates a FHIR payload and packs it into a corresponding Health Card VC (or Health Card Set).

The VC structure (scaffold) is shown in the following example. The Health Cards framework serializes VCs using the compact JWS serialization, where the payload is a compressed set of JWT claims (see Appendix 3 of RFC7515 for an example using ECDSA P-256 SHA-256, as required by this specification). Specific encoding choices ensure compatibility with standard JWT claims, as described at https://www.w3.org/TR/vc-data-model/#jwt-encoding.

https://spec.smarthealth.cards/

Re:Why to not use JWT (2021) by MAGZine on Thursday September 29, 2022 @10:47AM (#33021448)
your vaccination record does not need to be invalidated, so there is no issue.

it's a standard format for transmitting data signed by an entity.