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 déclarationsSELECT 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.

Appliquer 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 imports

@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
Votre vue

Make room for your context.

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

Votre contexte

The different parts of you

Choose a starting point

Un mélange utile de contexte, de visuels et de guidage discret.

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

Confort de lecture

Choisir votre langue

La langue de l’interface change uniquement le texte. Les marchés, les prix et les parcours conservent leurs propres paramètres.

Couverture des traductions

Une partie du contenu est affichée en anglais.

Navigation151
Graphe616
Catégories378
Portfolio833
Exemples2 035
Aperçu de la source1 542

D’autres traductions seront ajoutées à mesure que le contenu sera relu.

Cette préférence est enregistrée dans ce navigateur.

Rechercher sur le site

Des points de départ utiles

Aucun résultat. Essayez une expression plus courte, un nom d’opération ou un autre périmètre de recherche.

UN PEU DE PLACE POUR EXPLORER

Trouvez quelque chose à explorer.

Ouvrez un aperçu détaillé sur cette page, essayez une autre perspective ou suivez le détail vers sa propre page.

Fonctionnement des aperçus et des commandes
01

Regarder avant de partir

Survolez un lien ou sélectionnez-le avec Tab pour voir un aperçu. Cliquer sur le lien d’origine ou appuyer sur Entrée ouvre toujours sa destination.

02

Rester dans le contexte

Entrez dans l’aperçu pour explorer ses sections. Depuis un lien sélectionné, utilisez Alt + ↓ pour y entrer au clavier. Échap le ferme.

03

Ouvrir les possibilités

Les lignes dépliables, les choix de perspective et les commandes mises en évidence révèlent davantage. Votre vue adapte le confort de lecture et le contexte exploré.

Un bouton séparé pour voir de plus près

Affichez de petits boutons d’aperçu à côté des liens quand l’espace le permet. Touchez l’œil pour examiner ou le lien pour y aller directement. Ce choix reste dans cet onglet.

Aucun historique de navigation n’est collecté. La réduction des animations suit votre appareil et Votre vue.