Skip to content

Add encrypted pathway payload envelopes#94

Merged
jbiskur merged 1 commit into
mainfrom
codex/encrypted-pathway-payloads
Jul 3, 2026
Merged

Add encrypted pathway payload envelopes#94
jbiskur merged 1 commit into
mainfrom
codex/encrypted-pathway-payloads

Conversation

@jbiskur

@jbiskur jbiskur commented Jul 3, 2026

Copy link
Copy Markdown
Contributor

Summary

  • add symmetric whole-payload encryption for pathways marked encrypted
  • use Flowcore-compatible { encryptedPayload } envelope plus metadata markers
  • decrypt marked events before schema validation, handlers, subscribers, and routing

Why

Flowcore ingest and event-source APIs require event payloads to be objects, so encrypted payloads need an object envelope instead of a raw string body.

Validation

  • deno fmt --check src/pathways/encryption.ts src/pathways/types.ts src/pathways/builder.ts tests/pathway-encryption.test.ts
  • deno check src/mod.ts tests/pathway-encryption.test.ts
  • deno lint
  • deno test -A tests/pathway-encryption.test.ts
  • deno test -A tests/postgres-pathway-state.test.ts tests/postgres-pump-state.test.ts with repo Postgres helper

Full deno test -A was also attempted. It is blocked locally by a pre-existing listener on port 3001 used by tests/server.test.ts.

@jbiskur jbiskur requested a review from suuunly July 3, 2026 15:36
@jbiskur jbiskur merged commit 1a12521 into main Jul 3, 2026
1 check passed
@jbiskur jbiskur deleted the codex/encrypted-pathway-payloads branch July 3, 2026 15:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants