Skip to content

Validate directory uri#84

Merged
thibmeu merged 9 commits into
cloudflare:mainfrom
thibmeu:validate-directory-uri
Jun 1, 2026
Merged

Validate directory uri#84
thibmeu merged 9 commits into
cloudflare:mainfrom
thibmeu:validate-directory-uri

Conversation

@thibmeu

@thibmeu thibmeu commented May 26, 2026

Copy link
Copy Markdown
Collaborator

Adds a dedicated /debug page for Web Bot Auth debugging.

Screenshot 2026-05-26 at 12-19-00 Debug HTTP Message Signatures

Changes

  • Moves directory validation off the main explainer page.
  • Adds /debug with:
    • key directory validation
    • fetched directory JSON display
    • autofill from directory validation into signature verification
    • local signature-header verification UI
  • Keeps directory proxy logic out of index.ts.
  • Fixes /.well-known/http-message-signatures-directory response signing.
  • Makes Turnstile rendering conditional so missing site key does not break /debug.

Test

  • npm run test -w verification-workers -- --run
  • npm exec prettier -- --check ...
  • npm exec eslint -- ...

Closes #37

For the reviewer

While the behaviour mayn appear to be similar to #83, the implementation is quite distinct. The client uses a proxy only to fetch the directory data. All informations are still validated locally. We don't overload the index page. We also require a captcha to arbitrarily fetch an external directory

@thibmeu thibmeu requested a review from AkshatM May 26, 2026 10:21
@thibmeu thibmeu self-assigned this May 26, 2026
@thibmeu thibmeu added the enhancement New feature or request label May 26, 2026
@thibmeu thibmeu merged commit 04979c4 into cloudflare:main Jun 1, 2026
4 checks passed
@thibmeu thibmeu deleted the validate-directory-uri branch June 1, 2026 14:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Verification website should be able to validate directory

2 participants