Skip to content

fix(ci): disable OCM signed requests for federated share tests#5799

Draft
elzody wants to merge 2 commits into
mainfrom
fix/federated-ci-ocm-signing
Draft

fix(ci): disable OCM signed requests for federated share tests#5799
elzody wants to merge 2 commits into
mainfrom
fix/federated-ci-ocm-signing

Conversation

@elzody

@elzody elzody commented Jun 26, 2026

Copy link
Copy Markdown
Collaborator

The federated editing Cypress tests were failing because self-federated OCM share notifications were being rejected due to RFC 9421 signature verification failures. The CI server runs over plain HTTP, but OCMSignatoryManager::fetchJwks() hardcodes https:// for JWKS URLs, causing the fetch to fail. This results in confirmSignedOrigin() throwing "instance is supposed to sign its request" and returning HTTP 400, so the pending share is never created for the recipient and document.odt never appears in the files list.

Set ocm_signed_request_disabled=true to bypass the signing requirement in the HTTP test environment, where inter-server TLS is unavailable. Also add an early assertion in shareFileToRemoteUser() so any future federation setup failures produce a clear Cypress error rather than silently cascading into a timeout on cy.openFile().

Assisted-by: ClaudeCode:claude-sonnet-4-6

  • Resolves: #
  • Target version: main

Summary

TODO

  • ...

Checklist

  • Code is properly formatted
  • Sign-off message is added to all commits
  • Documentation (manuals or wiki) has been updated or is not required

The federated editing Cypress tests were failing because self-federated
OCM share notifications were being rejected due to RFC 9421 signature
verification failures. The CI server runs over plain HTTP, but
OCMSignatoryManager::fetchJwks() hardcodes https:// for JWKS URLs,
causing the fetch to fail. This results in confirmSignedOrigin()
throwing "instance is supposed to sign its request" and returning
HTTP 400, so the pending share is never created for the recipient and
document.odt never appears in the files list.

Set ocm_signed_request_disabled=true to bypass the signing requirement
in the HTTP test environment, where inter-server TLS is unavailable.
Also add an early assertion in shareFileToRemoteUser() so any future
federation setup failures produce a clear Cypress error rather than
silently cascading into a timeout on cy.openFile().

Assisted-by: ClaudeCode:claude-sonnet-4-6
Signed-off-by: Elizabeth Danzberger <elizabeth@elzody.dev>
@elzody elzody requested a review from emberfiend June 26, 2026 18:19
@elzody elzody self-assigned this Jun 26, 2026
@elzody elzody added the 2. developing Work in progress label Jun 26, 2026
…abled

config:app:set does not accept --type bool; pass --value="true" instead,
which getValueBool() resolves correctly.

Assisted-by: ClaudeCode:claude-sonnet-4-6
Signed-off-by: Elizabeth Danzberger <elizabeth@elzody.dev>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

2. developing Work in progress

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant