mirror of
https://github.com/documenso/documenso.git
synced 2026-06-22 04:12:06 +10:00
d5ce222482
Adds Cloud Signature Consortium (CSC) integration for AES/QES signing against a configured TSP. v1 ships as instance-wide configuration via environment variables, with per-envelope signature level selection, license gating, and an OAuth-driven signing flow (capture + FIFO signers, SAD session, blocking/in-progress recipient pages). Includes signature level compatibility checks (role, signing order, dictate next signer), envelope mutability assertions, Prisma migration for signature level and CSC tables, and docs for the new signing certificate options.
17 lines
556 B
TypeScript
17 lines
556 B
TypeScript
import type { logger } from '@documenso/lib/utils/logger';
|
|
|
|
/**
|
|
* CSC subapp Hono context. Mirrors the subset of `apps/remix/server/router.ts`
|
|
* `HonoEnv` that CSC handlers actually read. Duplicated (rather than imported
|
|
* from `apps/remix/`) to keep the `packages/ee` → `apps/remix` dep direction
|
|
* unidirectional.
|
|
*
|
|
* Runtime contract: the remix host's middleware sets `logger` on every request
|
|
* before the CSC subapp runs; the CSC subapp does not set it itself.
|
|
*/
|
|
export type HonoCscEnv = {
|
|
Variables: {
|
|
logger: typeof logger;
|
|
};
|
|
};
|