Skip to content

feat: implement Crove Sign deployment, OIDC SSO, and Hybrid Org Sync - #1

Merged
JOY (JOY) merged 11 commits into
mainfrom
dev
Aug 23, 2026
Merged

feat: implement Crove Sign deployment, OIDC SSO, and Hybrid Org Sync#1
JOY (JOY) merged 11 commits into
mainfrom
dev

Conversation

@JOY

@JOY JOY (JOY) commented Aug 22, 2026

Copy link
Copy Markdown

Summary

  • Infrastructure & Deployment: Add standalone docker-compose configuration for Crove Sign on VM (crover-server / crove-os).
  • Database Schema Isolation: Fix Prisma migrations to eliminate hardcoded public schema references and support isolated custom schemas (sign).
  • SSO-First Authentication: Enable native OpenID Connect (OIDC) via DOS.Me ID (id.dos.me) with PKCE and auto-account linking.
  • Phase 1 JIT Sync: Auto-sync Avatar from URL, sync Display Name, and JIT provision organizations/teams on OIDC login/link.
  • Phase 2 Real-Time Webhook: Add /api/webhooks/dos-org-sync endpoint with HMAC-SHA256 signature verification (X-DOS-Signature) for real-time organization, membership, and user profile synchronization.
  • System Architecture: Provide comprehensive architecture documentation in docs/ARCHITECTURE.md.

Test plan

  • Verified compose configuration format and schema.
  • Verified deployment directory and container startup on VM.
  • Verified Supabase isolated schema sign database access and 163 migrations.
  • Verified OIDC login redirect flow to DOS ID.
  • Verified JIT Profile/Avatar and Org sync handlers.
  • Verified HMAC-SHA256 signature validation logic.

Note

High Risk
Touches OIDC login, org membership, and org deletion via a new webhook. Signature checks are skipped when the webhook secret is unset, and architecture docs include live infra identifiers.

Overview
Adds hybrid DOS.Me identity sync: OIDC callbacks now pull avatar and org claims and JIT-provision users, orgs, memberships, and a default team. A new POST /api/webhooks/dos-org-sync handler applies create/update/delete and member events (HMAC-SHA256 when a secret is set).

Also ships Crove deploy pieces: GHCR image workflow, compose for crove-sign, Docker heap bump, Prisma migrations that work on a non-public sign schema, and architecture/runbook docs.

Reviewed by Cursor Bugbot for commit 5e56e5d. Bugbot is set up for automated code reviews on this repo. Configure here.

JOY (JOY) and others added 7 commits August 22, 2026 09:29
Provide docker compose configuration for running Crove Sign on the crove-prod VM.

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

Allow migration to run cleanly on custom isolated schemas such as sign.

Co-authored-by: Cursor <cursoragent@cursor.com>
Ensure container runs with fixed schema-independent migrations.

Co-authored-by: Cursor <cursoragent@cursor.com>
Ensure pgcrypto gen_random_bytes in extensions schema is always accessible.
Document infrastructure, database isolation, OIDC SSO, organization sync, and operations runbook.
@cursor

cursor Bot commented Aug 22, 2026

Copy link
Copy Markdown

Bugbot couldn't run - usage limit reached

Bugbot is counted against Cursor usage for this user or team, and this run hit a usage or spend limit.

A user or team admin can review and increase usage limits in the Cursor dashboard.

(requestId: serverGenReqId_543c2ea9-7a9f-4859-8a1f-a514cad6b496)

- Phase 1: Auto-sync avatar, display name, and JIT provision organizations on OIDC login/signup.
- Phase 2: Add secure webhook endpoint /api/webhooks/dos-org-sync with HMAC-SHA256 verification for real-time organization and member sync.
@cursor

cursor Bot commented Aug 22, 2026

Copy link
Copy Markdown

Bugbot couldn't run - usage limit reached

Bugbot is counted against Cursor usage for this user or team, and this run hit a usage or spend limit.

A user or team admin can review and increase usage limits in the Cursor dashboard.

(requestId: serverGenReqId_d82a5141-200c-4a34-8eeb-7e8bfe18d784)

@JOY JOY (JOY) changed the title feat(docker): add crover-server standalone deployment compose file feat: implement Crove Sign deployment, OIDC SSO, and Hybrid Org Sync Aug 22, 2026
Prevent JS heap out of memory during TypeScript and React Router production build.
@cursor

cursor Bot commented Aug 22, 2026

Copy link
Copy Markdown

Bugbot couldn't run - usage limit reached

Bugbot is counted against Cursor usage for this user or team, and this run hit a usage or spend limit.

A user or team admin can review and increase usage limits in the Cursor dashboard.

(requestId: serverGenReqId_257b1bc4-105b-4558-a09a-705bf1ce843f)

Automate building and pushing ghcr.io/dos/crove-sign:dev and ghcr.io/dos/crove-sign:latest.
@cursor

cursor Bot commented Aug 22, 2026

Copy link
Copy Markdown

Bugbot couldn't run - usage limit reached

Bugbot is counted against Cursor usage for this user or team, and this run hit a usage or spend limit.

A user or team admin can review and increase usage limits in the Cursor dashboard.

(requestId: serverGenReqId_a03da9fa-b8bd-4cad-be9d-5af5f9b1aa9d)

@cursor

cursor Bot commented Aug 22, 2026

Copy link
Copy Markdown

Bugbot couldn't run - usage limit reached

Bugbot is counted against Cursor usage for this user or team, and this run hit a usage or spend limit.

A user or team admin can review and increase usage limits in the Cursor dashboard.

(requestId: serverGenReqId_65e0991d-70f3-4cb0-972a-4d00d1b66d32)

@JOY
JOY (JOY) merged commit 3ec09bc into main Aug 23, 2026
13 of 16 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant