1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
sets:
- name: provider
scope: kcp
summary: the socialweb provider workspace, its cluster, identity, contract and ComputeVM schemas and exports, the policy schema files and export, the policy binding in root, and the account, cluster and application WorkspaceTypes (was install-provider.sh)
values: None
phases:
- name: workspace
workspace: root
files:
- path: workspace-socialweb-provider.yaml
after:
- kind: Workspace
for: Ready
- name: schemas
workspace: root:socialweb-provider
files:
- path: cluster-apiresourceschema.yaml
- path: node-apiresourceschema.yaml
- path: nodeclaim-apiresourceschema.yaml
- path: clusterlink-apiresourceschema.yaml
- path: clusterclientcertificate-apiresourceschema.yaml
- path: atprotoidentity-apiresourceschema.yaml
- path: cluster-apiexport.yaml
- path: atprotoidentity-apiexport.yaml
- path: service-apiresourceschema.yaml
- path: exposure-apiresourceschema.yaml
- path: componentlink-apiresourceschema.yaml
- path: service-apiexport.yaml
- path: remotepds-apiresourceschema.yaml
- path: remotepds-apiexport.yaml
- path: eventstream-apiresourceschema.yaml
- path: eventsource-apiresourceschema.yaml
- path: pdseventsource-apiresourceschema.yaml
- path: relayeventsource-apiresourceschema.yaml
- path: jetstreameventsource-apiresourceschema.yaml
- path: eventstream-apiexport.yaml
- path: marketidentity-apiresourceschema.yaml
- path: atprotorecord-apiresourceschema.yaml
- path: atprotorecordwatch-apiresourceschema.yaml
- path: marketidentity-apiexport.yaml
- path: computecontract-apiresourceschema.yaml
- path: infra-apiresourceschema.yaml
- path: ephemeralinfra-apiresourceschema.yaml
- path: infracollection-apiresourceschema.yaml
- path: ephemeralinfracollection-apiresourceschema.yaml
- path: contractevent-apiresourceschema.yaml
- path: computecontract-apiexport.yaml
- path: computevm-apiresourceschema.yaml
- path: firecrackervm-apiresourceschema.yaml
- path: bid-apiresourceschema.yaml
- path: guestidentitygrant-apiresourceschema.yaml
- path: computevm-apiexport.yaml
- name: policy
workspace: root:socialweb-provider
files:
- path: policyengine-apiresourceschema.yaml
- path: policyworkflow-apiresourceschema.yaml
- path: policyworkflowrun-apiresourceschema.yaml
- path: policytrigger-apiresourceschema.yaml
- path: policyengine-apiexport.yaml
after:
- kind: APIExport
name: policy
for: IdentityValid
- name: bindings
workspace: root
files:
- path: policy-binding.yaml
- path: exposures-binding.yaml
- path: pds-binding.yaml
- path: events-binding.yaml
after:
- kind: APIBinding
for: Ready
- name: workspacetypes
workspace: root
files:
- path: workspacetype-account.yaml
- path: workspacetype-cluster.yaml
- path: workspacetype-application.yaml
after:
- kind: APIExport
name: clusters
workspace: root:socialweb-provider
for: IdentityValid
- kind: APIExport
name: atprotoidentities
workspace: root:socialweb-provider
for: IdentityValid
- kind: APIExport
name: policy
workspace: root:socialweb-provider
for: IdentityValid
- kind: APIExport
name: exposures
workspace: root:socialweb-provider
for: IdentityValid
- kind: APIExport
name: pds
workspace: root:socialweb-provider
for: IdentityValid
- kind: APIExport
name: events
workspace: root:socialweb-provider
for: IdentityValid
- kind: APIExport
name: computevms
workspace: root:socialweb-provider
for: IdentityValid
- name: permission-inventory
scope: kcp
summary: the four provider ServiceAccounts, then their ClusterRoles and bindings named to the live provider cluster (was apply-permission-inventory.sh)
values: PermissionInventory
phases:
- name: provider-cluster
workspace: root
before:
- kind: Workspace
name: socialweb-provider
for: Ready
capture:
into: ProviderCluster
from: LogicalCluster
- name: subjects
workspace: root:socialweb-provider
files:
- path: permission-inventory.yaml
kinds: [ServiceAccount]
- name: grants
workspace: root:socialweb-provider
files:
- path: permission-inventory.yaml
exceptKinds: [ServiceAccount]
- name: bidder
summary: the ComputeVM, Bid and GuestIdentityGrant schemas and their export (computevms) beside the provider's, the bidder WorkspaceType binding computevms and hostprocesses (plan 0007 M1-API), and the computevms binding in root that the ComputeVM controller of a bidder application instance applies with it (plan 0007 M2-CONTROLLER); needs the provider workspace and the hostprocesses set
values: None
phases:
- name: schemas
workspace: root:socialweb-provider
files:
- path: computevm-apiresourceschema.yaml
- path: firecrackervm-apiresourceschema.yaml
- path: bid-apiresourceschema.yaml
- path: guestidentitygrant-apiresourceschema.yaml
- path: computevm-apiexport.yaml
after:
- kind: APIExport
name: computevms
for: IdentityValid
- kind: APIExport
name: hostprocesses
for: IdentityValid
- name: workspacetypes
workspace: root
files:
- path: workspacetype-bidder.yaml
- name: bindings
workspace: root
files:
- path: computevms-binding.yaml
after:
- kind: APIBinding
for: Ready
- name: hostprocesses
summary: the HostProcess, Postgres and OpenBaoServer schemas and their export in the provider workspace and its binding in root, applied by every core so the application's own kcp holds its host processes, the bootstrap mirrors, its postgres servers and its OpenBao servers (plan 0006 M2-HOSTPROCESS-KIND, M2-POSTGRES, M2-OPENBAO-SERVER); needs the provider workspace
values: None
phases:
- name: schemas
workspace: root:socialweb-provider
files:
- path: hostprocess-apiresourceschema.yaml
- path: postgres-apiresourceschema.yaml
- path: openbaoserver-apiresourceschema.yaml
- path: remoteopenbao-apiresourceschema.yaml
- path: vault-apiresourceschema.yaml
- path: hostprocess-apiexport.yaml
after:
- kind: APIExport
name: hostprocesses
for: IdentityValid
- name: bindings
workspace: root
files:
- path: hostprocesses-binding.yaml
after:
- kind: APIBinding
for: Ready
- name: dev-host
scope: kcp
summary: the dev-instances and dev-instance WorkspaceTypes and the root:dev workspace of a dev host, whose root:dev:<instance> workspaces hold each child instance's HostProcess objects (plan 0006 M4-DEV-PARENT-KCP); needs the hostprocesses set
values: None
phases:
- name: workspacetypes
workspace: root
before:
- kind: APIExport
name: hostprocesses
workspace: root:socialweb-provider
for: IdentityValid
files:
- path: workspacetype-dev-instance.yaml
kinds: [WorkspaceType]
- name: workspace
workspace: root
files:
- path: workspacetype-dev-instance.yaml
kinds: [Workspace]
after:
- kind: Workspace
name: dev
for: Ready
- name: market-identity
summary: the MarketIdentity schema and export in an application's own workspace (plan 0007 M1-MARKET-IDENTITY)
values: MarketIdentity
phases:
- name: schemas
workspace: "{{.Workspace}}"
files:
- path: marketidentity-apiresourceschema.yaml
- path: atprotorecord-apiresourceschema.yaml
- path: atprotorecordwatch-apiresourceschema.yaml
- path: marketidentity-apiexport.yaml
after:
- kind: APIExport
name: marketidentities
for: IdentityValid
- name: applications
summary: the MarketNetwork, MarketBidder, MarketRequester, Gateway and SshGateway and component schemas and their export in the provider workspace and its binding in root, applied by every core so each application's root object and components live in its own kcp (plan 0006 M2-APP-CONTROLLER); needs the provider workspace
values: None
phases:
- name: schemas
workspace: root:socialweb-provider
files:
- path: marketnetwork-apiresourceschema.yaml
- path: marketbidder-apiresourceschema.yaml
- path: marketrequester-apiresourceschema.yaml
- path: gateway-apiresourceschema.yaml
- path: sshgateway-apiresourceschema.yaml
- path: bidder-apiresourceschema.yaml
- path: guestcontrolplane-apiresourceschema.yaml
- path: pds-apiresourceschema.yaml
- path: requester-apiresourceschema.yaml
- path: gatewayapi-apiresourceschema.yaml
- path: sshserver-apiresourceschema.yaml
- path: plc-apiresourceschema.yaml
- path: relay-apiresourceschema.yaml
- path: ingressproxy-apiresourceschema.yaml
- path: dispatchertls-apiresourceschema.yaml
- path: marketpresence-apiresourceschema.yaml
- path: kcpinstallation-apiresourceschema.yaml
- path: hostinstall-apiresourceschema.yaml
- path: hostrelease-apiresourceschema.yaml
- path: childapplication-apiresourceschema.yaml
- path: atprotorepo-apiresourceschema.yaml
- path: localrepo-apiresourceschema.yaml
- path: remoterepo-apiresourceschema.yaml
- path: pdsaccount-apiresourceschema.yaml
- path: atprotosession-apiresourceschema.yaml
- path: plcidentity-apiresourceschema.yaml
- path: portlease-apiresourceschema.yaml
- path: subnetlease-apiresourceschema.yaml
- path: clusterroll-apiresourceschema.yaml
- path: relaystatus-apiresourceschema.yaml
- path: vaultcredential-apiresourceschema.yaml
- path: vaultcertificate-apiresourceschema.yaml
- path: statesync-apiresourceschema.yaml
- path: marketnetwork-apiexport.yaml
after:
- kind: APIExport
name: applications
for: IdentityValid
- name: bindings
workspace: root
files:
- path: applications-binding.yaml
- path: policy-binding.yaml
- path: exposures-binding.yaml
- path: pds-binding.yaml
- path: events-binding.yaml
after:
- kind: APIBinding
for: Ready
- name: market-bidder
summary: the components of a MarketBidder application in its own kcp - the MarketIdentity schema bound in root (the bidder signs in through its MarketIdentity bidder in every profile), its own OpenBaoServer and the account that reads it in root, the root:app workspace and, per profile (prod-qr, market-network, dev-local), the bidder's own PDS pds (its repo, its AtprotoRecord objects, the association; deploy/apps/repo-pds, shared with any application that owns a PDS; plan 0018), the bidder and its guest-kcp (the provider relay, OIDC issuer, POST /v1/events, GET /v1/downloads and compute.guest.subscribeEvents; plans 0007 M5-BIDDER-COMPONENTS and 0034) (a phase named <component>@<profile> belongs to that profile only); applied by internal/appctl (plan 0007 M5-RUN-BIDDER)
values: MarketBidder
phases:
- name: identity-schemas
workspace: root:socialweb-provider
files:
- path: marketidentity-apiresourceschema.yaml
- path: atprotorecord-apiresourceschema.yaml
- path: atprotorecordwatch-apiresourceschema.yaml
- path: marketidentity-apiexport.yaml
after:
- kind: APIExport
name: marketidentities
for: IdentityValid
- name: identity-binding
workspace: root
files:
- path: apps/gateway/marketidentities-binding.yaml
after:
- kind: APIBinding
for: Ready
- name: vault
workspace: root
files:
- path: apps/market-bidder/vault.yaml
after:
- kind: OpenBaoServer
name: bidder
for: Ready
- name: pds-rbac
workspace: root
files:
- path: apps/repo-pds/rbac.yaml
- name: workspace
workspace: root
files:
- path: apps/workspace-app.yaml
after:
- kind: Workspace
for: Ready
- name: rbac
workspace: root:app
before:
- kind: APIBinding
for: Ready
files:
- path: market-network/10-rbac.yaml
- path: apps/repo-pds/components-rbac.yaml
- name: association-watch@market-network
workspace: root
files:
- path: apps/repo-pds/association-watch.market-network.yaml
- name: association-watch@prod-qr
workspace: root
files:
- path: apps/repo-pds/association-watch.prod.yaml
- name: association-watch@dev-local
workspace: root
files:
- path: apps/repo-pds/association-watch.market-network.yaml
- name: gateway
summary: the components of a Gateway application in its own kcp - the root:app workspace, the MarketIdentity schema bound there (one MarketIdentity per web app account) and, per profile, the socialweb-computer-k8s web app, the requester's own PDS pds (deploy/apps/repo-pds; its repo holds every market record the requester writes, associated once by the operator's claim record that its AtprotoRecordWatch association verifies; plan 0018) and the requester (a phase named <component>@<profile> belongs to that profile only); its root vault is the OpenBaoServer root-vault the app controller declares; applied by internal/appctl
values: Gateway
phases:
- name: computevms
workspace: root:socialweb-provider
files:
- path: computevm-apiresourceschema.yaml
- path: firecrackervm-apiresourceschema.yaml
- path: bid-apiresourceschema.yaml
- path: guestidentitygrant-apiresourceschema.yaml
- path: computevm-apiexport.yaml
after:
- kind: APIExport
name: computevms
for: IdentityValid
- name: computevms-binding
workspace: root
files:
- path: computevms-binding.yaml
after:
- kind: APIBinding
for: Ready
- name: workspace
workspace: root
files:
- path: apps/workspace-app.yaml
after:
- kind: Workspace
for: Ready
- name: rbac
workspace: root:app
before:
- kind: APIBinding
for: Ready
files:
- path: apps/gateway/web-app-rbac.yaml
- path: apps/gateway/requester-rbac.yaml
- path: apps/repo-pds/rbac.yaml
- name: identity-schemas
workspace: root:socialweb-provider
files:
- path: marketidentity-apiresourceschema.yaml
- path: atprotorecord-apiresourceschema.yaml
- path: atprotorecordwatch-apiresourceschema.yaml
- path: marketidentity-apiexport.yaml
- path: computecontract-apiresourceschema.yaml
- path: infra-apiresourceschema.yaml
- path: ephemeralinfra-apiresourceschema.yaml
- path: infracollection-apiresourceschema.yaml
- path: ephemeralinfracollection-apiresourceschema.yaml
- path: contractevent-apiresourceschema.yaml
- path: computecontract-apiexport.yaml
after:
- kind: APIExport
name: marketidentities
for: IdentityValid
- kind: APIExport
name: computecontracts
for: IdentityValid
- name: identity-binding
workspace: root
files:
- path: apps/gateway/marketidentities-binding.yaml
- path: apps/gateway/computecontracts-binding.yaml
after:
- kind: APIBinding
for: Ready
- name: association-watch@prod
workspace: root:app
files:
- path: apps/repo-pds/association-watch.prod.yaml
- name: association-watch@market-network
workspace: root:app
files:
- path: apps/repo-pds/association-watch.market-network.yaml
- name: market-requester
summary: the components of a MarketRequester application (one `run request` invocation) in its own kcp - the ComputeContract and MarketIdentity schemas bound in root, its own OpenBaoServer and the account the requester reads its objects with, the root:app workspace and, per profile, the requester; applied by internal/appctl (plan 0008 M4-RUN-REQUEST)
values: MarketRequester
phases:
- name: schemas
workspace: root:socialweb-provider
files:
- path: computecontract-apiresourceschema.yaml
- path: infra-apiresourceschema.yaml
- path: ephemeralinfra-apiresourceschema.yaml
- path: infracollection-apiresourceschema.yaml
- path: ephemeralinfracollection-apiresourceschema.yaml
- path: contractevent-apiresourceschema.yaml
- path: computecontract-apiexport.yaml
- path: marketidentity-apiresourceschema.yaml
- path: atprotorecord-apiresourceschema.yaml
- path: atprotorecordwatch-apiresourceschema.yaml
- path: marketidentity-apiexport.yaml
after:
- kind: APIExport
name: computecontracts
for: IdentityValid
- kind: APIExport
name: marketidentities
for: IdentityValid
- name: bindings
workspace: root
files:
- path: apps/market-requester/bindings.yaml
after:
- kind: APIBinding
for: Ready
- name: vault
workspace: root
files:
- path: apps/market-requester/vault.yaml
after:
- kind: OpenBaoServer
name: requester
for: Ready
- name: workspace
workspace: root
files:
- path: apps/workspace-app.yaml
after:
- kind: Workspace
for: Ready
- name: rbac
workspace: root:app
before:
- kind: APIBinding
for: Ready
files:
- path: market-network/10-rbac.yaml
- name: ssh-gateway
summary: the components of an SshGateway application (socialweb-computer run gateway ssh) in its own kcp - its own OpenBaoServer holding the OAuth sessions and keys and the account that reads it, the iroh dialer HostProcess (internal iroh-dial, the only process that runs dumbpipe), the ComputeContract schema bound in root (every held ssh session is a contract the requester holds), the root:app workspace and, per profile, the hono-socialweb-computer-ssh service; applied by internal/appctl (plan 0008 M4-RUN-GATEWAY-SSH)
values: SshGateway
phases:
- name: identity-schemas
workspace: root:socialweb-provider
files:
- path: marketidentity-apiresourceschema.yaml
- path: atprotorecord-apiresourceschema.yaml
- path: atprotorecordwatch-apiresourceschema.yaml
- path: marketidentity-apiexport.yaml
after:
- kind: APIExport
name: marketidentities
for: IdentityValid
- name: identity-binding
workspace: root
files:
- path: apps/gateway/marketidentities-binding.yaml
after:
- kind: APIBinding
for: Ready
- name: vault
workspace: root
files:
- path: apps/ssh-gateway/vault.yaml
after:
- kind: OpenBaoServer
name: ssh-gateway
for: Ready
- name: iroh-dial
workspace: root
files:
- path: apps/ssh-gateway/iroh-dial.yaml
- name: workspace
workspace: root
files:
- path: apps/workspace-app.yaml
after:
- kind: Workspace
for: Ready
- name: bindings
workspace: root
files:
- path: apps/gateway/computecontracts-binding.yaml
after:
- kind: APIExport
name: computecontracts
workspace: root:socialweb-provider
for: IdentityValid
- kind: APIBinding
for: Ready
- name: rbac
workspace: root:app
before:
- kind: APIBinding
for: Ready
files:
- path: market-network/10-rbac.yaml
- name: market-network
scope: kcp
summary: the shared services of a MarketNetwork application - its OpenBaoServer network (the PKI the services' certificates come from, through a client that holds only that policy), PLC, relay, dispatcher and its TLS front, two PDSes and the verifier - applied by its reconciler (internal/appctl); the bidders are child applications with their own kcp; needs the provider workspace and the hostprocesses set
values: MarketNetwork
phases:
- name: vault
workspace: root
files:
- path: market-network/05-vault.yaml
after:
- kind: OpenBaoServer
name: network
for: Ready
- name: workspaces
workspace: root
files:
- path: market-network/00-workspaces.yaml
after:
- kind: Workspace
for: Ready
- name: rbac-global
workspace: root:global
before:
- kind: APIBinding
for: Ready
files:
- path: market-network/10-rbac.yaml
- name: rbac-relay
workspace: root:relay
before:
- kind: APIBinding
for: Ready
files:
- path: market-network/10-rbac.yaml
- name: rbac-alice
workspace: root:alice
before:
- kind: APIBinding
for: Ready
files:
- path: market-network/10-rbac.yaml
- name: rbac-bob
workspace: root:bob
before:
- kind: APIBinding
for: Ready
files:
- path: market-network/10-rbac.yaml
unapplied:
- path: sets.yaml
why: this index
- path: audit-policy.yaml
why: an audit.k8s.io Policy file a k3s apiserver reads at start through --audit-policy-file, never an object
- path: kcp-audit-policy.yaml
why: the Policy file kcp reads at start through --audit-policy-file (run-kcp-instance.sh, the image), never an object
- path: tenant-grant.yaml
why: applied into each tenant k3s cluster by internal/clusterprovider (tenant.go) with its owner placeholder rewritten, never into kcp
- path: eso/cluster-secret-store.yaml
why: applied into each tenant k3s cluster by internal/eso with its vault values rewritten, never into kcp
- path: eso/external-secret.yaml
why: applied into each tenant k3s cluster by internal/eso, never into kcp