integrationPackage manifestv2.0.5

integration.governed-product-data-postgres

Product-local encrypted PostgreSQL persistence for governed projection copies.

@lssm-tech/integration.governed-product-data-postgres
Source, release and verification context

Source snapshot bcc79fcc · Declared package version 2.0.5. This page combines the checked-in package guide and manifest; commands and runtime behavior were not executed in this review.

Package source ↗ Manifest ↗
serverbunnode
EXPLORE THE PACKAGE

See where this package fits.

Follow a declared connection, inspect an import, then open the source guide when you need the detail.

THIS PACKAGEintegration.governed-product-data-postgresintegrations

Arrows point from a package to its direct dependency. Each count is derived from the captured manifests.

5 declaracionesSELECT TO INSPECT

@lssm-tech/integration.governed-product-data-postgres

Product-local PostgreSQL persistence for encrypted governed projection copies. It is deliberately separate from the central grant/catalog database: each product or customer-hosted vertical binds its own database, runtime role, region, and key service.

The adapter stores authenticated ciphertext supplied by the product host. It does not encrypt, decrypt, or retain source credentials. Every row is scoped to one RP-specific pairwise subject with forced RLS. Revocation and erasure delete the exact local materialization, verify its absence, and durably record an idempotent payload-free receipt in the same transaction.

PostgresGovernedProductMaterializationPort accepts one schema-valid encrypted dispatch and returns a stable payload-free stored/replayed receipt. It persists the exact purpose, lawful-basis reference, consent receipt reference when required, receiver region, expiry, retention horizon, fields, watermark, and receiver key reference alongside ciphertext. Direct persistence after grant or retention expiry is rejected. Once revocation or erasure is acknowledged, a durable grant/projection block prevents rematerialization under a fresh record identifier.

PostgresGovernedProductRecoveryPort implements the product side of createGovernedRecoveryIngress. Export is fail-closed until the source product injects an authoritative export port that has already stored a user-retrievable artifact and returns its durable evidence reference. An exact retry reuses the durable export receipt before invoking that artifact producer again; a changed request under the same job id is an idempotency conflict. Because separate workers can race before the first receipt commits, the injected artifact port must also make storage idempotent by the governed export job id.

createPostgresGovernedProductDataIngresses composes both ports. Recovery may remain independently active, but materialization is created only when an exact consumer region and a non-empty, unique source-binding registry are supplied. Each source binding uses its own bearer; there is no ecosystem-wide delivery token.

Application hosts should use createConnectedPostgresGovernedProductDataIngresses when starting from connection settings. It owns raw PostgreSQL provider construction inside this integration and returns only the bounded recovery/materialization ingress surface.

Aplicar migratePostgresGovernedProductData with a migration role before binding the least-privilege runtime role. Production activation requires independent security review and an end-to-end revoke/erasure/export rehearsal.

Isolated live qualification

bun run qualify:live installs the canonical central metadata and product-copy schemas in the dedicated EU qualification project, creates three hardened no-login roles, and runs a synthetic store/replay/isolation/revocation/erasure rehearsal plus an injected export callback, export-receipt replay, transaction rollback, and zero-row cleanup proof. It fails closed unless every explicit environment value identifies the non-production billowing-queen-67154386 project, its lssm_governed_data database, and its migration owner.

Obtain the direct connection string without printing or persisting it, then pass it only to the child process:

sh
qualification_url="$(bunx --bun neonctl@latest connection-string \
  --project-id billowing-queen-67154386 \
  --database-name lssm_governed_data \
  --role-name lssm_governed_migration \
  --no-pooled --ssl require --no-color)"

GOVERNED_DATA_QUALIFICATION_AUTHORIZED=1 \
GOVERNED_DATA_QUALIFICATION_DATABASE_URL="$qualification_url" \
GOVERNED_DATA_QUALIFICATION_PROJECT_ID=billowing-queen-67154386 \
GOVERNED_DATA_QUALIFICATION_REGION=aws-eu-central-1 \
bun run qualify:live

The receipt contains only counts and boolean lifecycle results. The workflow never binds a product, copies real identity data, provisions a key service, or qualifies durable user-retrievable artifact storage. Production still requires a separate database/runtime role/region/key boundary for each receiver plus independent worker, artifact delivery, restoration, and rollback evidence.

Declared capabilities.

Encrypted governed product projections

Persist encrypted, product-local governed projection copies with subject-scoped RLS, revocation, erasure, and durable recovery receipts.

Use it to

  • Materialize a governed ecosystem projection inside a receiving product database
  • Prove revocation or erasure only after the exact product-local copy is absent

Requires

  • PostgreSQL
  • governed projection ports
  • external key custody

Choose another boundary when

  • The product needs to own consent, central grants, source records, or encryption keys; those authorities stay outside this integration.
  • The storage design cannot enforce subject-scoped PostgreSQL RLS and encrypted-at-rest projection payloads.

@lssm-tech/integration.governed-product-data-postgres

@lssm-tech/integration.governed-product-data-postgres/ingress-runtimecreateConnectedPostgresGovernedProductDataIngresses

Imports and export paths.

15 entries

These are package-manifest entry points. Named symbols listed above come from the capability catalogue; this is not an exhaustive TypeScript symbol reference.

15 importaciones

@lssm-tech/integration.governed-product-data-postgres
@lssm-tech/integration.governed-product-data-postgres/database
@lssm-tech/integration.governed-product-data-postgres/store

Dependencies and related packages.

Runtime dependencies 5
Development dependencies 5
@electric-sql/pglite
catalog:data
@types/bun
catalog:types
typescript
catalog:

Package scripts.

Commands declared by this package. Review its setup requirements before running them; no command here was executed by this review.

buildcontractspec-bun-build build
build:bundlecontractspec-bun-build transpile
build:typescontractspec-bun-build types
cleanrimraf dist .turbo
lint:checknode ../../../scripts/biome.cjs check .
lint:fixnode ../../../scripts/biome.cjs check --write .
prebuildcontractspec-bun-build prebuild
qualify:livebun scripts/qualify-live.ts
testbun test
typechecktsgo --noEmit && tsgo --noEmit -p tsconfig.qualification.json
Tu vista

Make room for your context.

Shape the presentation around this moment. You can change it whenever you need.

Tu contexto

The different parts of you

Choose a starting point

Una mezcla útil de contexto, imágenes y orientación discreta.

Tune each dimension
Each dimension can change independently. Product permissions and available actions stay unchanged.

Support the way you begin and return

Tune your support

Comodidad de lectura

Elige tu idioma

El idioma de la interfaz solo cambia el texto. Los mercados, precios y flujos de trabajo conservan sus propios ajustes.

Cobertura de traducción

Parte del contenido se muestra en inglés.

Navegación151
Grafo616
Categorías188
Portafolio332
Ejemplos2035
Vista previa de la fuente41

Se añadirán más traducciones a medida que se revise el contenido.

Esta preferencia se guarda en este navegador.

Buscar en el sitio web

Puntos de partida útiles

Sin resultados. Prueba una frase más corta, un nombre de operación u otro ámbito de búsqueda.

UN POCO DE ESPACIO PARA EXPLORAR

Encuentra algo que explorar.

Abre una vista detallada en esta página, prueba otra perspectiva o sigue el detalle a su propia página.

Cómo funcionan las vistas previas y los controles
01

Mirar antes de salir

Pasa el cursor por un enlace o enfócalo con Tab para ver una vista previa. Hacer clic en el enlace original o pulsar Intro siempre abre su destino.

02

Mantener el contexto

Entra en la vista previa para explorar sus secciones. Usa Alt + ↓ desde un enlace enfocado para entrar con el teclado. Escape la cierra.

03

Abrir las posibilidades

Las filas desplegables, las perspectivas y los controles destacados revelan más. Tu vista cambia la comodidad de lectura y el contexto que exploras.

Un botón separado para mirar más de cerca

Muestra pequeños botones de vista previa junto a los enlaces donde haya espacio. Toca el ojo para inspeccionar o el enlace para ir directamente. Esta elección permanece en esta pestaña.

No se recoge historial de navegación. El movimiento reducido sigue tu dispositivo y Tu vista.