@norskvideo/ctl-product-template-schema 0.1.82 → 0.1.84
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/migration-socket.d.ts +1 -1
- package/migration-socket.js +1 -1
- package/package.json +1 -1
- package/secrets/obfuscation.js +6 -0
package/migration-socket.d.ts
CHANGED
|
@@ -9,7 +9,7 @@ export declare const JOB_SOCKET_CONTAINER_HOST = "host.docker.internal";
|
|
|
9
9
|
* so placement can require it for a handover target. */
|
|
10
10
|
export declare const JOB_SOCKET_CAPABILITY = "norsk.io/job-socket";
|
|
11
11
|
/** The two reserved env names a job reads. Absent when the worker runs
|
|
12
|
-
* without a listener (
|
|
12
|
+
* without a listener (an older worker), which is what `connectMigration`
|
|
13
13
|
* turns into its no-op client. */
|
|
14
14
|
export declare const JOB_SOCKET_ENV: {
|
|
15
15
|
readonly url: "NORSK_WORKER_WS_URL";
|
package/migration-socket.js
CHANGED
|
@@ -26,7 +26,7 @@ export const JOB_SOCKET_CONTAINER_HOST = "host.docker.internal";
|
|
|
26
26
|
* so placement can require it for a handover target. */
|
|
27
27
|
export const JOB_SOCKET_CAPABILITY = "norsk.io/job-socket";
|
|
28
28
|
/** The two reserved env names a job reads. Absent when the worker runs
|
|
29
|
-
* without a listener (
|
|
29
|
+
* without a listener (an older worker), which is what `connectMigration`
|
|
30
30
|
* turns into its no-op client. */
|
|
31
31
|
export const JOB_SOCKET_ENV = {
|
|
32
32
|
url: "NORSK_WORKER_WS_URL",
|
package/package.json
CHANGED
package/secrets/obfuscation.js
CHANGED
|
@@ -4,6 +4,12 @@
|
|
|
4
4
|
// ticket or an agent reading the file does not show the value; GCM's tag also
|
|
5
5
|
// rejects a damaged record. A later version whose key comes from a real key
|
|
6
6
|
// source takes the next version slot (RFC 0011 §3.4).
|
|
7
|
+
//
|
|
8
|
+
// The Norsk Manager opens and writes this envelope too (norsk
|
|
9
|
+
// `server/src/Norsk/Manager/SecretRefs.erl`): it resolves
|
|
10
|
+
// `secretref:norsk:<name>` from norsk-mgr's records in its key/value store,
|
|
11
|
+
// for the secrets it uses itself (a microVM host agent's token). Its test
|
|
12
|
+
// opens an envelope written here; change the format in both places.
|
|
7
13
|
import { createCipheriv, createDecipheriv, hkdfSync, randomBytes } from "node:crypto";
|
|
8
14
|
import { err, tryResult } from "@norskvideo/ctl-foundation";
|
|
9
15
|
export const OBFUSCATED_PREFIX = "nsob:v1:";
|