Advertise jwksUri in /.well-known/ocm with the http-sig capability (#1070 follow-up) #1090

Open
opened 2026-11-03 05:32:44 +00:00 by Cordy · 0 comments
Owner

Problem. Cairn advertises http-sig in /.well-known/ocm but gives no jwksUri. Draft-07 §5 says implementations that advertise http-sig MUST provide that URL. Nextcloud discovers /.well-known/ocm first, so it cannot find Cairn's signing key there. It then accepts Cairn's requests as unsigned unless its admin enforces signing.

Today. internal/ocm/discovery.go OurDiscovery has no jwksUri. Cairn already serves /.well-known/jwks.json.

Proposal. Add "jwksUri": "<base>/.well-known/jwks.json" whenever http-sig is advertised. Then check that Nextcloud 35 verifies Cairn's signed requests.

Acceptance.

  • A discovery test asserts the field.
  • Interop CI fetches the URL from discovery and finds an RSA key.
  • Live check: Nextcloud with enforce_signed_ocm_request on still accepts Cairn's shares and notifications.

Refs: #1070, research-1070.md §4.9, draft-07 §5.

**Problem.** Cairn advertises `http-sig` in `/.well-known/ocm` but gives no `jwksUri`. Draft-07 §5 says implementations that advertise `http-sig` MUST provide that URL. Nextcloud discovers `/.well-known/ocm` first, so it cannot find Cairn's signing key there. It then accepts Cairn's requests as unsigned unless its admin enforces signing. **Today.** `internal/ocm/discovery.go` `OurDiscovery` has no `jwksUri`. Cairn already serves `/.well-known/jwks.json`. **Proposal.** Add `"jwksUri": "<base>/.well-known/jwks.json"` whenever `http-sig` is advertised. Then check that Nextcloud 35 verifies Cairn's signed requests. **Acceptance.** - A discovery test asserts the field. - Interop CI fetches the URL from discovery and finds an RSA key. - Live check: Nextcloud with `enforce_signed_ocm_request` on still accepts Cairn's shares and notifications. Refs: #1070, research-1070.md §4.9, draft-07 §5.
Sign in to join this conversation.
No labels
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference: Cordy/Cairn#1090
No description provided.