Skip to content

Brian's WGLC comment - compression #31

@yaronf

Description

@yaronf

Regarding compression, as stated previously, I believe the current text around compression in JWE is a bit overreaching and lacking in useful guidance about when it is or is not reasonable to use. Section 3.6 has a SHOULD NOT on compressing the JWE payload because it "often reveals information about the plaintext" but nothing about when the recommendation isn't actually applicable. Section 2.4, which points to that 3.6, does have some more text about "Plaintext Leakage through Analysis of Ciphertext Length" but mostly in the context of HTTPS, which is, of course, a completely different protocol with different considerations. I don't claim expertise but the conditions and problems described don't seem applicable to archetypal JW/JWT usage.

I anecdotally understand there's been implementation(s) that dropped support for the zip header, at least in part due to this text in RFC8725, which doesn't seem great for interop. Some recent SDO work like OpenID4VCI do have some "negotiation" capabilities around it but that one is the exception rather than the rule, which again doesn't seem good for interop.

cc: @bc-pi

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions