Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 0 additions & 7 deletions .changeset/postgres-entra-auth.md

This file was deleted.

8 changes: 8 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,13 @@
# @cosyte/pathways

## 0.0.9

### Patch Changes

- 970fe83: A `storage.postgres` block now takes `auth: entra`, which signs in to Azure Database for PostgreSQL with a Microsoft Entra ID access token from Azure's default chain (a managed identity, with `AZURE_CLIENT_ID` naming a user-assigned one) in place of a password, for both `pathways start` and `pathways migrate`.

The connection URL names the database user and holds no password, such as `postgres://<database_user>@<host>:5432/pathways`. Each new connection signs in with a token for `https://ossrdbms-aad.database.windows.net/.default`, reused until 5 minutes before it expires and then asked for again. No token reaches a log or an error: when none can be had, the connection fails with the code `ERR_PATHWAYS_ENTRA_TOKEN`. It needs the optional peer dependency `@azure/identity`, which the Docker image carries. Without `auth`, or with `auth: password`, a block signs in with the login its URL holds, as before.

## 0.0.8

### Patch Changes
Expand Down
9 changes: 0 additions & 9 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,6 @@ version is 0.0.x, and a release may still change a key or an API, which its chan
- [Why this exists](#why-this-exists)
- [Status](#status)
- [What the latest release ships](#what-the-latest-release-ships)
- [In the next release](#in-the-next-release)
- [Install](#install)
- [Usage](#usage)
- [Documentation](#documentation)
Expand Down Expand Up @@ -182,19 +181,11 @@ What follows is in the latest release, the one on npm:
- **Two engines started at once agree on a node id.** When two engines start together in a project
that sets no `node.id`, the second now takes the id the first writes, where it used to run under
one of its own that was never saved.

---

## In the next release

These are on `main` and land in the next release:

- **PostgreSQL sign-in with Microsoft Entra ID.** `auth: entra` in a `storage.postgres` block signs
in to Azure Database for PostgreSQL with an access token for the managed identity Pathways runs
as, in place of a password, for `pathways start` and `pathways migrate`. The URL names the
database user and holds no password; a token is asked for again before it expires, and none
reaches a log or an error.
<!-- changesets: postgres-entra-auth -->

---

Expand Down
2 changes: 1 addition & 1 deletion docs-content/api/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -8901,7 +8901,7 @@ The code a transform fails with when `ctx.route` names no channel with a `channe

### VERSION

> `const` **VERSION**: `string` = `"0.0.8"`
> `const` **VERSION**: `string` = `"0.0.9"`

The version of `@cosyte/pathways`, kept equal to `package.json#version` (a test fails when they
differ).
Expand Down
2 changes: 1 addition & 1 deletion docs-content/example-file-to-sftp.md
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ Its messages are synthetic, made by `@cosyte/synth`, and are on GitHub with the
"test": "pathways test"
},
"devDependencies": {
"@cosyte/pathways": "^0.0.8"
"@cosyte/pathways": "^0.0.9"
}
}
```
Expand Down
2 changes: 1 addition & 1 deletion docs-content/example-filter-and-route.md
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ Its messages are synthetic, made by `@cosyte/synth`, and are on GitHub with the
"test": "pathways test"
},
"devDependencies": {
"@cosyte/pathways": "^0.0.8"
"@cosyte/pathways": "^0.0.9"
}
}
```
Expand Down
2 changes: 1 addition & 1 deletion docs-content/example-hl7-to-fhir.md
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ Its messages are synthetic, made by `@cosyte/synth` (the patient in `a04.hl7` wa
"test": "pathways test"
},
"devDependencies": {
"@cosyte/pathways": "^0.0.8"
"@cosyte/pathways": "^0.0.9"
}
}
```
Expand Down
2 changes: 1 addition & 1 deletion docs-content/example-mllp-to-http.md
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,7 @@ Its messages are synthetic, made by `@cosyte/synth`, and are on GitHub with the
"test": "pathways test"
},
"devDependencies": {
"@cosyte/pathways": "^0.0.8"
"@cosyte/pathways": "^0.0.9"
}
}
```
Expand Down
2 changes: 1 addition & 1 deletion docs-content/example-replay-after-failure.md
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,7 @@ Its messages are synthetic, made by `@cosyte/synth`, and are on GitHub with the
"test": "pathways test"
},
"devDependencies": {
"@cosyte/pathways": "^0.0.8"
"@cosyte/pathways": "^0.0.9"
}
}
```
Expand Down
2 changes: 1 addition & 1 deletion docs-content/example-vet-lab-to-fhir.md
Original file line number Diff line number Diff line change
Expand Up @@ -148,7 +148,7 @@ Its messages are synthetic, made by `@cosyte/synth`, and are on GitHub with the
"@cosyte/transform": "^0.2.4"
},
"devDependencies": {
"@cosyte/pathways": "^0.0.8"
"@cosyte/pathways": "^0.0.9"
}
}
```
Expand Down
2 changes: 1 addition & 1 deletion docs-content/example-vet-lab-to-v2-xml.md
Original file line number Diff line number Diff line change
Expand Up @@ -149,7 +149,7 @@ Its messages are synthetic, made by `@cosyte/synth`, and are on GitHub with the
"@cosyte/hl7": "^0.2.0"
},
"devDependencies": {
"@cosyte/pathways": "^0.0.8"
"@cosyte/pathways": "^0.0.9"
}
}
```
Expand Down
2 changes: 1 addition & 1 deletion examples/file-to-sftp/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,6 @@
"test": "pathways test"
},
"devDependencies": {
"@cosyte/pathways": "^0.0.8"
"@cosyte/pathways": "^0.0.9"
}
}
2 changes: 1 addition & 1 deletion examples/filter-and-route/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,6 @@
"test": "pathways test"
},
"devDependencies": {
"@cosyte/pathways": "^0.0.8"
"@cosyte/pathways": "^0.0.9"
}
}
2 changes: 1 addition & 1 deletion examples/hl7-to-fhir/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,6 @@
"test": "pathways test"
},
"devDependencies": {
"@cosyte/pathways": "^0.0.8"
"@cosyte/pathways": "^0.0.9"
}
}
2 changes: 1 addition & 1 deletion examples/mllp-to-http/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,6 @@
"test": "pathways test"
},
"devDependencies": {
"@cosyte/pathways": "^0.0.8"
"@cosyte/pathways": "^0.0.9"
}
}
2 changes: 1 addition & 1 deletion examples/replay-after-failure/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,6 @@
"test": "pathways test"
},
"devDependencies": {
"@cosyte/pathways": "^0.0.8"
"@cosyte/pathways": "^0.0.9"
}
}
2 changes: 1 addition & 1 deletion examples/vet-lab-to-fhir/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,6 @@
"@cosyte/transform": "^0.2.4"
},
"devDependencies": {
"@cosyte/pathways": "^0.0.8"
"@cosyte/pathways": "^0.0.9"
}
}
2 changes: 1 addition & 1 deletion examples/vet-lab-to-v2-xml/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,6 @@
"@cosyte/hl7": "^0.2.0"
},
"devDependencies": {
"@cosyte/pathways": "^0.0.8"
"@cosyte/pathways": "^0.0.9"
}
}
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@cosyte/pathways",
"version": "0.0.8",
"version": "0.0.9",
"description": "A code-first healthcare integration engine for Node.js: channels in YAML, transforms in TypeScript.",
"keywords": [
"healthcare",
Expand Down
2 changes: 1 addition & 1 deletion src/version.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,4 @@
* console.log(VERSION);
* ```
*/
export const VERSION: string = "0.0.8";
export const VERSION: string = "0.0.9";
Loading