Skip to content

feat: re-issue Knowhere service JWTs without a session cookie - #98

Merged
suguanYang merged 1 commit into
mainfrom
fix/suguan/knowhere-service-jwt-refresh
Aug 31, 2026
Merged

feat: re-issue Knowhere service JWTs without a session cookie#98
suguanYang merged 1 commit into
mainfrom
fix/suguan/knowhere-service-jwt-refresh

Conversation

@suguanYang

Copy link
Copy Markdown
Contributor

Summary

  • Add public knowhereServiceJwt.refresh so Notebook QStash workflows can re-issue a one-hour Knowhere JWT from a still-signed snapshot (no session cookie).
  • Verify the snapshot with Dashboard JWKS and a seven-day clock tolerance so recently expired tokens can still refresh.

Notebook long parses were dying on the snapshotted 1h JWT (Authentication required) even when Knowhere later finished successfully. Companion: Ontos-AI/knowhere-notebook fix/suguan/refresh-qstash-knowhere-jwt.

Test plan

  • pnpm test covers JWKS verification, the seven-day tolerance, and missing user id
  • POST /api/orpc/knowhereServiceJwt/refresh with a valid or recently expired service JWT returns a new token
  • Unsigned or otherwise invalid tokens return 401
  • Merge and deploy this before the Notebook companion PR

Made with Cursor

Background Notebook workflows cannot call issueServiceJwt, so expired
snapshots need a public refresh that still verifies JWKS.

Co-authored-by: Cursor <cursoragent@cursor.com>
@vercel

vercel Bot commented Aug 31, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
knowhere-dashboard-staging Error Error Aug 31, 2026 5:49am

Request Review

@suguanYang
suguanYang merged commit 51fed96 into main Aug 31, 2026
3 of 4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant