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KHT
Ngz9/1zRV6UCmQxS7BRDgz12evReu6UyJE81YbpDlBe3JuuSxARQNS02V4Df4AWFcTlRMo
Ynsz5pX8QebYgjXYCgge5VnZwn8tBgFCdURne6T+qBCRlkpGSErdGKN+cRzW2Ej7Ue+yuG
Fb17E/PKOD3ygQ==
-----END SSH SIGNATURE-----
Bug Fixes
-
Forward termination signals to the CLI binary (#462) (4b2a699):
The npm launcher spawned the Ory CLI binary with spawnSync and installed no
signal handlers, so a SIGINT/SIGTERM/SIGHUP delivered to the launcher ended
the launcher alone and orphaned the binary.ory tunnelandory proxy
create a temporary Ory Network API key and delete it in their graceful
shutdown handler; an orphaned process never runs that handler, so the key
lingered until its expiry and the running proxy kept serving.Spawn the binary asynchronously and forward SIGINT, SIGTERM and SIGHUP to
it, then exit with the child's status — or, when the child was killed by a
signal, re-raise that signal on the launcher so callers observe the same
termination as before. This restores the behaviour callers had when they
ran the binary directly.Add npm/run.test.js (node:test) covering argument passthrough, exit-status
propagation, signal forwarding, signal-based termination, and the
missing-binary error, wired into CI as the test-launcher job. The test file
is excluded from the published package by the existingfilesallowlist.
Code Generation
-
Pin v1.3.3 release commit (da08c71):
Bumps from v1.3.3-pre.0
Changelog
- da08c71 autogen: pin v1.3.3 release commit
- 4b2a699 fix: forward termination signals to the CLI binary (#462)
Artifacts can be verified with cosign using this public key.