@stackbone/cli 0.3.2 → 0.3.3
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/CHANGELOG.md +72 -0
- package/main.js +842 -417
- package/migrations/0046_runtime_identity_control_plane.sql +28 -0
- package/package.json +1 -1
- package/stackbone-cli-0.3.3.tgz +0 -0
- package/stackbone-cli-0.3.2.tgz +0 -0
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
-- 0046_runtime_identity_control_plane.sql — the identity the CONTROL PLANE knows
|
|
2
|
+
-- this box by (STA-594).
|
|
3
|
+
--
|
|
4
|
+
-- A box mints its own installation id on first boot (0033) and that value is
|
|
5
|
+
-- entirely its own: nobody outside the container picks it. The control plane
|
|
6
|
+
-- separately keeps an installation row, with its own id, for the same box. The
|
|
7
|
+
-- box never knew that second id, so it could not check a token minted for it.
|
|
8
|
+
--
|
|
9
|
+
-- It learns the pair during registration — the one moment both sides are
|
|
10
|
+
-- connected, mutually authenticated and cannot disagree — and keeps it here.
|
|
11
|
+
--
|
|
12
|
+
-- WHY A SEPARATE TABLE instead of two more columns on `runtime_identity`.
|
|
13
|
+
-- The box's own installation id namespaces its Connect grants and its storage
|
|
14
|
+
-- keys, so overwriting it orphans live OAuth grants with no visible error at
|
|
15
|
+
-- all. Two tables share no writable column, which makes "the learned value never
|
|
16
|
+
-- touches the minted one" a property of the schema rather than a discipline the
|
|
17
|
+
-- next UPDATE's column list has to remember.
|
|
18
|
+
--
|
|
19
|
+
-- One row, like `runtime_identity` (0033) and `workspace_settings` (0029): this
|
|
20
|
+
-- describes THE runtime, not a collection of anything. NO seed — the row's
|
|
21
|
+
-- absence is exactly what "nobody has told this box what it answers for" means,
|
|
22
|
+
-- and that absence is what the boot log reports.
|
|
23
|
+
CREATE TABLE IF NOT EXISTS stackbone_platform.runtime_control_plane_identity (
|
|
24
|
+
id int PRIMARY KEY DEFAULT 1 CHECK (id = 1),
|
|
25
|
+
installation_id uuid NOT NULL,
|
|
26
|
+
organization_id uuid NOT NULL,
|
|
27
|
+
learned_at timestamptz NOT NULL DEFAULT now()
|
|
28
|
+
);
|
package/package.json
CHANGED
|
Binary file
|
package/stackbone-cli-0.3.2.tgz
DELETED
|
Binary file
|