This repository was archived by the owner on Aug 7, 2026. It is now read-only.
Repository navigation
Tags
Tags
chore(release): v1.4.1 — security patch, reliability, SDK parity
Security:
- Admin auth: timingSafeEqual + dedicated ADMIN_JWT_SECRET (independent rotation)
- 2FA OTP: crypto.randomInt replaces Math.random (CSPRNG-backed)
- 2FA fail-open: Redis failure now returns 503 instead of silently issuing JWT
- Upload size: 20 MB cap on sign, verify, batch items (413)
- Webhook SSRF: isPrivateUrl() blocks RFC-1918/loopback/link-local/CGNAT, https only
- Analytics: record ownership verified via GeneratorModel join (was always matching)
- Stripe webhooks: Redis dedup (stripe_event:{id}, 72h TTL) prevents double-billing
Reliability:
- Watermark: unified toRgb() path — embed and extract now both use native resolution
(Sharp resize was destroying DCT coefficients, breaking extraction on images >1024px)
- Quota: atomic findOneAndUpdate replaces non-atomic findOne+updateOne TOCTOU pair
- Registration: OrgModel+UserModel creates wrapped in withTransaction
- Invite acceptance: UserModel create + InviteModel update wrapped in withTransaction
SDK:
- JS SDK (@certivu/sdk): getAnalyticsOverview, getRecordAnalytics, listWebhooks,
createWebhook, deleteWebhook — bumped to 1.4.1
- Python SDK (certivu): same 5 methods + AnalyticsOverview, RecordAnalytics,
WebhookEndpoint, WebhookListResponse models — bumped to 1.4.1
- JS SDK README rewritten (removed stale privateKey references from v1.2.x era)
Bug fix:
- Web→dashboard login: session now passed via base64 hash fragment (#session=)
to bridge cross-origin localStorage isolation between certivu.ai and dashboard.certivu.ai
user_id and role now included in session payload
Docs:
- whats-new.mdx: v1.4.1 entry
- sdk-usage.mdx: analytics + webhooks sections
- python-sdk.mdx: analytics + webhooks sections
- OpenAPI spec: version bumped to 1.4.1
- README.md, POST_MVP.md, CLAUDE.md: build status updated
Versions bumped: api@1.4.1, dashboard@1.4.1, @certivu/types@1.4.1,
@certivu/sdk@1.4.1, certivu (python)@1.4.1
feat(v1.4.0): analytics, tamper alerts, digest, webhooks, admin dashb…
…oard
Analytics:
- VerificationAnalytic model (90-day TTL), logVerification on every verify call
- GET /v1/analytics/overview (free capped at 7d), GET /v1/analytics/records/:id
(Growth+)
- Fixed plan gate: was only blocking free, now correctly blocks free+starter
Tamper alerts:
- sendTamperAlert email (Starter+, 1hr Redis dedup per org+record)
- Dashboard alert banner + tamper rate in overview
Monthly digest:
- sendMonthlyDigest: 3-column stats, ASCII quota bar, upgrade CTA ≥80% (Starter+)
- In-process cron scheduler — fires at UTC midnight, self-reschedules
Webhooks (Growth+):
- WebhookEndpoint + WebhookDelivery models (30-day delivery TTL)
- dispatchWebhookEvent: HMAC-SHA256 signing, 10s timeout, auto-disable at 5
failures
- Full CRUD + delivery log + per-delivery retry
- Events: record.created, verify.attempted, verify.tamper_detected, quota.warning,
quota.limit, generator.revoked
Admin dashboard (internal):
- POST /v1/admin/auth → 8h JWT via ADMIN_SECRET env var
- GET /v1/admin/stats: org/user/record counts + estimated MRR
- GET/PATCH/DELETE /v1/admin/orgs: search, plan override, quota reset, GDPR delete
- Dashboard: AdminLogin, AdminOverview, AdminOrgs, AdminOrgDetail
Docs:
- guides/webhooks.mdx: full setup guide, HMAC verification, idempotency, local
testing
- whats-new.mdx: v1.4.0 changelog entry
-
Jun 12, 2026 - c6f5d1e
- zip
- 8000 tar.gz
feat(signing): v1.3.1 — server-side watermark+sign, SDK simplified, d…
…ashboard UX fixes
BREAKING CHANGE: Signing is now fully server-side. Private keys are generated and
stored encrypted (AES-256-GCM) by the API. SDKs no longer accept or require privateKey.
API changes:
- POST /v1/sign — new multipart endpoint: accepts image+model+generator_id, returns
watermarked+XMP-signed image bytes with X-Certivu-Token/X-Certivu-Record-Id headers
- POST /generators — public_keys now optional; omitting triggers server-side keypair
generation (private key encrypted at rest with SIGNING_KEY_SECRET env var)
- watermark/index.ts — add embedWatermarkNoXmp() for two-phase sign/hash flow
- crypto/keys.ts — encryptPrivateKey / decryptPrivateKey (AES-256-GCM)
- generator.model.ts — add private_key_enc field
- services/image.service.ts — new: watermark+sign+store+XMP in one server-side op
- routes/image.ts — new: POST /v1/sign handler
@certivu/sdk 1.0.0 → 1.1.0:
- sign() is now a multipart upload to /v1/sign — no crypto, no sharp dependency
- SignResponse adds watermarkedContent: Uint8Array (serve this, not the original image)
- ClientConfig and SignInput: privateKey removed
- SDK has no client-side signing whatsoever
certivu (Python) 1.1.0 → 1.2.0:
- sign() posts multipart to /v1/sign, returns watermarked_content: bytes
- private_key removed from CertivuClient and sign()
- sign_batch() calls sign() per item (sync) or asyncio.gather (async)
- GeneratorKeypair removed from public exports
@certivu/cli 1.1.3 → 1.2.0:
- certivu sign: --private-key removed, --output added
- writes watermarked image to <file>.signed.<ext> by default
Dashboard:
- GeneratorWizard: simplified to 2 steps — name → create → show generator ID
(private key step removed, no key management needed)
- Generators list: copy button on generator_id column
- AuditTable: click any row to expand full event JSON
feat(image-pipeline): v1.3.0 — PNG/WebP support, spread spectrum wate… …rmark, pHash, C2PA packages/crypto: - watermark.ts: spread-spectrum DCT (4 coefficients/block, majority vote; 4× resilience) - xmp.ts: format-aware embed/extract/strip — JPEG APP1, PNG tEXt chunk (CRC32), WebP XMP RIFF - phash.ts: 64-bit DCT perceptual hash, hammingDistance, PHASH_MATCH_THRESHOLD=10 apps/api: - c2pa.service.ts: reads C2PA manifests on verify, exports C2PA-compatible manifest JSON - GET /v1/records/:id/c2pa: public C2PA manifest endpoint (Cache-Control: max-age=3600) - verify.service.ts: 4th verify path — pHash fuzzy lookup (Hamming ≤ 10) - signing.service.ts: stores phash if provided - schemas/record.schema.ts: optional phash field (16-char hex) - watermark/index.ts: format-preserving pipeline (PNG→PNG, WebP→WebP) - openapi/spec.ts: bumped to 1.3.0, phash field, c2pa field, token_source phash, new C2PA endpoint packages/types: - signature.ts: optional phash field on ProvenanceRecord - verify.ts: phash_match signal, c2pa field, token_source phash Fix: remove duplicate Mongoose index definitions on org.model.ts and invite.model.ts docs/web: - whats-new.mdx: v1.3.0 entry - sign.mdx, verify.mdx: pHash and C2PA documentation - Features.tsx: expanded to 9 features - security.astro: spread spectrum, pHash, format support sections Test: infra/scripts/v130-test.ts — 28 tests (no server required) BREAKING: DCT watermark algorithm changed. Pre-v1.3.0 watermarks will not extract. XMP/token path is unaffected.
feat(teams): v1.2.0 — RBAC, email invites, per-member API keys - OrgRole (owner/admin/user) on User; plan-gated seat limits enforced at API - 7-day email invites via /accept-invite with password-set and auto-login - Per-member API keys: create/revoke in Settings, audit-attributed in logs - Team page: member table, role management, invite form, pending invites - All team routes use requireSession() — JWT-only, no org-key access - Fixed org.name TypeError on invite route (requireSession doesn't set org ctx) - Pricing page updated with team seat limits per plan
fix(lint): resolve all biome errors across web and dashboard
- RegisterForm.tsx: fix noNonNullAssertion (plan()! → local var),
add rel=noreferrer to target=_blank links, reformat long lines
- docs.astro: collapse ternary to one line per biome format rules
- dashboard/api.ts: wrap long fetch URL string per biome line length
PreviousNext