feat(filters): support RFC 9530 Digest Fields in HTTP (Content-Digest / Repr-Digest)

Open
#4,292 8 comments 0 reactions 0 assignees View on GitHub

Maintainers usually reply within 1 day

Nobody has claimed this yet.

Assessment

Difficulty
4/5
Estimated time
3-5 days
Newbie friendliness
45/100
Issue type
Feature
Clarity
Clearly specified
Activity status
Active
Tech stack
go
Domain
api, backend, security

Research direction

The existing rfc9421 package and httpMessageSignature filter are the starting point. Look at the filters/builtin or filters/rfc/ directories to understand the pattern. The new filters need to compute and parse RFC 8941 Structured Field byte sequences using crypto/subtle for constant-time verification. Check the linked issue #4209 for context. 'Done' means the filters contentDigest and verifyContentDigest are implemented and tested.

Written by the indexing model from the issue text.

Description

Is your feature request related to a problem? Please describe.

RFC 9421 (HTTP Message Signatures) defers body integrity to RFC 9530 (Digest Fields in HTTP) via content-digest and repr-digest. Skipper currently lacks built-in support to compute or verify RFC 9530 digest fields, preventing complete message body verification in signing workflows.

  • #4209

Describe the solution you would like

  1. Add rfc/rfc9530 to compute and parse RFC 8941 Structured Field byte sequences (sha-256, sha-512) with constant-time verification (crypto/subtle).
  2. Add filters:
    • contentDigest("sha-256"): Computes body digest and sets Content-Digest.
    • verifyContentDigest("sha-256"): Rejects requests with missing or invalid digests (400 Bad Request).

Describe alternatives you've considered (optional)

  • Ad-hoc hash computation in custom Lua filters.
  • A routing predicate ContentDigestValid("sha-256") instead of, or in addition to, the filter.

Additional context (optional)

Complements the existing rfc9421 package and httpMessageSignature filter. Maintainer feedback is welcome on filter package placement (filters/builtin vs. filters/rfc/ vs. filters/digest).

Would you like to work on it?

Yes

Dominant language
Go
Stars
3.3k
Forks
410
Avg merge
3d 16h
Merged PRs (30d)
32

Getting set up

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from zalando/skipper

All issues in zalando/skipper

Similar issues

More Go issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.