@volvel/docs 0.6.0 → 0.7.0

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.
Files changed (585) hide show
  1. package/THIRD_PARTY_NOTICES.md +21 -3
  2. package/assets/screenshots/administer/access-changes.dark.5bf247ce0f19.png +0 -0
  3. package/assets/screenshots/administer/access-changes.light.ed91948531ce.png +0 -0
  4. package/assets/screenshots/administer/access-end-users.dark.4d9a5acba896.png +0 -0
  5. package/assets/screenshots/administer/access-end-users.light.cef020771af1.png +0 -0
  6. package/assets/screenshots/administer/access-groups.dark.aaf84e089c11.png +0 -0
  7. package/assets/screenshots/administer/sso-audit-filters.dark.9aa82a2ac9c5.png +0 -0
  8. package/assets/screenshots/administer/sso-audit-filters.light.5ecfdb651ace.png +0 -0
  9. package/assets/screenshots/administer/{sso-branding-theme.dark.80bc3ce901a4.png → sso-branding-theme.dark.9a2c0482b3c2.png} +0 -0
  10. package/assets/screenshots/administer/{sso-branding-theme.light.f48bd968481c.png → sso-branding-theme.light.7be432359625.png} +0 -0
  11. package/assets/screenshots/administer/{sso-provider-setup.dark.8834ae797a50.png → sso-provider-setup.dark.bc7d126f135d.png} +0 -0
  12. package/assets/screenshots/administer/sso-provider-setup.light.0cbda9279747.png +0 -0
  13. package/assets/screenshots/administer/sso-workers-pools.dark.43f043620615.png +0 -0
  14. package/assets/screenshots/administer/sso-workers-pools.light.25b0e09b2ff0.png +0 -0
  15. package/assets/screenshots/console/account-sessions.dark.05dbf87d40a9.png +0 -0
  16. package/assets/screenshots/console/account-sessions.light.2ef44c907ee5.png +0 -0
  17. package/{dist/assets/screenshots/console/app-builder-list.dark.48340ac81e11.png → assets/screenshots/console/app-builder-list.dark.124cca05b904.png} +0 -0
  18. package/{dist/assets/screenshots/console/app-builder-list.light.85064d6742d4.png → assets/screenshots/console/app-builder-list.light.082ae0464cbe.png} +0 -0
  19. package/{dist/assets/screenshots/console/apps-list.dark.6580be4c6f17.png → assets/screenshots/console/apps-list.dark.b24bb8a4fe8f.png} +0 -0
  20. package/{dist/assets/screenshots/console/apps-list.light.35ac9711c9a0.png → assets/screenshots/console/apps-list.light.fa8996fe55ff.png} +0 -0
  21. package/assets/screenshots/console/{apps-share.dark.cf87c470cec4.png → apps-share.dark.0bb1a7899419.png} +0 -0
  22. package/{dist/assets/screenshots/console/apps-share.light.eddc9c058c37.png → assets/screenshots/console/apps-share.light.f26f075b3680.png} +0 -0
  23. package/assets/screenshots/console/{basics-workspace-overview.dark.75d4329d6bd9.png → basics-workspace-overview.dark.678c40fa9f2a.png} +0 -0
  24. package/assets/screenshots/console/{basics-workspace-overview.light.0a097241dfcb.png → basics-workspace-overview.light.86f7922860c9.png} +0 -0
  25. package/assets/screenshots/console/configure-alerts-default.dark.8a2c534aa415.png +0 -0
  26. package/{dist/assets/screenshots/console/configure-alerts.dark.3e4b58238bd2.png → assets/screenshots/console/configure-alerts.dark.314fe8d7e0c6.png} +0 -0
  27. package/{dist/assets/screenshots/console/configure-alerts.light.24608f63f849.png → assets/screenshots/console/configure-alerts.light.ff5022a76eca.png} +0 -0
  28. package/assets/screenshots/console/{configure-connection-sheet.dark.a8ae26d592fb.png → configure-connection-sheet.dark.41ba4383632c.png} +0 -0
  29. package/assets/screenshots/console/configure-connections.dark.52147265a170.png +0 -0
  30. package/assets/screenshots/console/{configure-connections.light.c3c1ec8eca52.png → configure-connections.light.8b15826634f1.png} +0 -0
  31. package/{dist/assets/screenshots/console/dashboard-resource.dark.532f219609cc.png → assets/screenshots/console/dashboard-resource.dark.4188f2810be1.png} +0 -0
  32. package/assets/screenshots/console/dashboard-resource.light.8211fe9f380e.png +0 -0
  33. package/{dist/assets/screenshots/console/dashboards-list.light.bb704dd75a30.png → assets/screenshots/console/dashboards-list.light.438e3d23c888.png} +0 -0
  34. package/assets/screenshots/console/extensions-editor.dark.4e5246f282e2.png +0 -0
  35. package/{dist/assets/screenshots/console/extensions-list.light.f65bb930d029.png → assets/screenshots/console/extensions-list.light.a1703d257ceb.png} +0 -0
  36. package/assets/screenshots/console/flow-editor.dark.00229a94001e.png +0 -0
  37. package/assets/screenshots/console/flow-editor.light.5eb68a339e84.png +0 -0
  38. package/assets/screenshots/console/operate-approvals.light.1501cede2f94.png +0 -0
  39. package/assets/screenshots/console/operate-cancel-by-age.dark.419042b822db.png +0 -0
  40. package/assets/screenshots/console/operate-cancel-by-age.light.7d48915e9922.png +0 -0
  41. package/assets/screenshots/console/operate-events.dark.2589975f7f46.png +0 -0
  42. package/assets/screenshots/console/operate-events.light.c4d8d8ae8748.png +0 -0
  43. package/assets/screenshots/console/operate-run-failed.dark.09addb030b58.png +0 -0
  44. package/assets/screenshots/console/{operate-run-failed.light.482db87101aa.png → operate-run-failed.light.6163d2f9d3b3.png} +0 -0
  45. package/assets/screenshots/console/operate-runs.dark.3bf1250f1f59.png +0 -0
  46. package/assets/screenshots/console/{operate-runs.light.bccafcd93196.png → operate-runs.light.235f6baf6f3d.png} +0 -0
  47. package/assets/screenshots/console/page-editor.light.3ec1f9d43475.png +0 -0
  48. package/assets/screenshots/console/queries-editor.dark.ee99f9050a23.png +0 -0
  49. package/assets/screenshots/console/queries-editor.light.67bd22086115.png +0 -0
  50. package/assets/screenshots/console/queries-parameters.light.c471d505bbd1.png +0 -0
  51. package/assets/screenshots/console/{releases-review.dark.34ec540432dc.png → releases-review.dark.091d815aa9c9.png} +0 -0
  52. package/{dist/assets/screenshots/console/releases-review.light.7f7eea72fc90.png → assets/screenshots/console/releases-review.light.a440c30d08b2.png} +0 -0
  53. package/{dist/assets/screenshots/console/script-settings-tab.dark.976df3a2aaf0.png → assets/screenshots/console/script-settings-tab.dark.5e96eedd9889.png} +0 -0
  54. package/assets/screenshots/console/{scripts-test-pane.dark.6112678956ed.png → scripts-test-pane.dark.63dcff509936.png} +0 -0
  55. package/assets/screenshots/console/{scripts-test-pane.light.2e1b637a8c7a.png → scripts-test-pane.light.bcef48f905b0.png} +0 -0
  56. package/assets/screenshots/console/table-definition.light.b97883e1b6e0.png +0 -0
  57. package/assets/screenshots/console/table-help.dark.da3a47215e6b.png +0 -0
  58. package/assets/screenshots/console/table-help.light.07c67e63ef2e.png +0 -0
  59. package/assets/screenshots/console/table-rows-filtered.dark.c61524c872a5.png +0 -0
  60. package/assets/screenshots/console/table-rows-filtered.light.787e71f743dd.png +0 -0
  61. package/assets/screenshots/console/table-rows.dark.19e2afeb688e.png +0 -0
  62. package/assets/screenshots/console/table-rows.light.a9249d7b9bd5.png +0 -0
  63. package/assets/screenshots/console/tut-visit-mix.dark.f1dd71da8937.png +0 -0
  64. package/{dist/assets/screenshots/console/widgets-chart-scatter.light.e57e41675d8d.png → assets/screenshots/console/widgets-chart-scatter.light.85ea38faaed8.png} +0 -0
  65. package/assets/screenshots/console/widgets-phone-page.dark.360a39e459c7.png +0 -0
  66. package/{dist/assets/screenshots/console/workspace-settings.light.3ac3bbfd9f4e.png → assets/screenshots/console/workspace-settings.light.c56e7f5d80f8.png} +0 -0
  67. package/assets/screenshots/docs/draft-conflict.dark.597b616abec7.png +0 -0
  68. package/assets/screenshots/docs/draft-conflict.light.6d326a37e8bc.png +0 -0
  69. package/assets/screenshots/docs/page-details-type.dark.2e382c8f131e.png +0 -0
  70. package/assets/screenshots/index.json +94 -94
  71. package/assets/screenshots/self-host/extensions-component-kit.dark.ba673f636a8f.png +0 -0
  72. package/assets/screenshots/self-host/extensions-component-kit.light.282da6a4c589.png +0 -0
  73. package/assets/screenshots/self-host/instance-audit.dark.21de79247590.png +0 -0
  74. package/assets/screenshots/self-host/instance-audit.light.dba4eaa712ed.png +0 -0
  75. package/assets/screenshots/self-host/instance-branding.dark.0ddd4c2df652.png +0 -0
  76. package/assets/screenshots/self-host/instance-branding.light.c3b7ffef6d4e.png +0 -0
  77. package/assets/screenshots/self-host/instance-databases.dark.dd2403f84456.png +0 -0
  78. package/assets/screenshots/self-host/instance-databases.light.3248546636cf.png +0 -0
  79. package/assets/screenshots/self-host/instance-health.dark.5791805f72b7.png +0 -0
  80. package/assets/screenshots/self-host/instance-health.light.cbfad910fc8e.png +0 -0
  81. package/assets/screenshots/self-host/instance-import-check.dark.11ccf001d9f8.png +0 -0
  82. package/assets/screenshots/self-host/instance-import-check.light.efbbef163d80.png +0 -0
  83. package/assets/screenshots/self-host/instance-members.dark.d9fa55d364fd.png +0 -0
  84. package/assets/screenshots/self-host/instance-members.light.7af6bfa48914.png +0 -0
  85. package/assets/screenshots/self-host/instance-operators.dark.1326e9460224.png +0 -0
  86. package/assets/screenshots/self-host/instance-operators.light.3f2cac001fb5.png +0 -0
  87. package/assets/screenshots/self-host/instance-tenants.dark.ba860dc98c90.png +0 -0
  88. package/assets/screenshots/self-host/instance-tenants.light.6a63877c41b3.png +0 -0
  89. package/assets/screenshots/self-host/instance-triggers.dark.f2bba07895f2.png +0 -0
  90. package/assets/screenshots/self-host/instance-triggers.light.dddb827e214a.png +0 -0
  91. package/assets/screenshots/start/basics-finding-your-way.dark.5cc80a2d591f.png +0 -0
  92. package/assets/screenshots/start/basics-finding-your-way.light.dddf72e4ad38.png +0 -0
  93. package/assets/screenshots/start/tut-approve-step.dark.5b773354ba35.png +0 -0
  94. package/assets/screenshots/start/tut-approve-step.light.b0224c9b1133.png +0 -0
  95. package/assets/screenshots/start/visit-notes-filtered.dark.f6fb7a707e2f.png +0 -0
  96. package/assets/screenshots/start/visit-notes-filtered.light.a4b4d64a7fc2.png +0 -0
  97. package/content/administer/explanation/sso/how-single-sign-on-works.md +2 -0
  98. package/content/administer/how-to/access/invite-end-users.md +8 -0
  99. package/content/administer/how-to/access/rule-rows-by-group-or-attribute.md +7 -0
  100. package/content/administer/how-to/apps/give-an-app-a-hostname.md +1 -1
  101. package/content/administer/how-to/sso/provision-people-with-scim.md +1 -1
  102. package/content/administer/reference/screens/branding.md +1 -1
  103. package/content/administer/reference/screens/end-users.md +3 -1
  104. package/content/administer/reference/screens/overview.md +21 -0
  105. package/content/administer/reference/screens/retention.md +3 -2
  106. package/content/administer/reference/screens/single-sign-on.md +1 -1
  107. package/content/console/how-to/app-builder/publish-an-app.md +0 -1
  108. package/content/console/how-to/data/row-rules.md +1 -0
  109. package/content/console/reference/screens/build/published-apps.md +1 -2
  110. package/content/console/reference/screens/data/tables.md +1 -1
  111. package/content/console/reference/screens/home/tenants.md +1 -1
  112. package/content/develop/explanation/api/how-the-api-knows-who-is-calling.md +10 -3
  113. package/content/develop/explanation/apps/app-access.md +29 -10
  114. package/content/develop/explanation/scripts/how-scripts-run.md +1 -1
  115. package/content/develop/how-to/apps/write-an-app.md +1 -1
  116. package/content/develop/how-to/cli/install-from-source.md +1 -1
  117. package/content/develop/how-to/cli/install-the-cli.md +1 -1
  118. package/content/develop/how-to/cli/test-a-script.md +1 -1
  119. package/content/develop/how-to/configure/set-up-from-a-script.md +1 -1
  120. package/content/develop/reference/access/mcp.md +11 -1
  121. package/content/develop/reference/apps/app-client.md +10 -8
  122. package/content/develop/reference/apps/content-policy.md +8 -3
  123. package/content/develop/reference/queries/data-as-code.md +12 -0
  124. package/content/develop/reference/tenant-widgets/what-a-view-is-given.md +1 -1
  125. package/content/develop/tutorials/cli/quickstart.md +1 -1
  126. package/content/self-host/explanation/access/index.md +1 -0
  127. package/content/self-host/explanation/access/instance-service-accounts.md +66 -0
  128. package/content/self-host/explanation/access/who-runs-what.md +2 -0
  129. package/content/self-host/explanation/running/architecture.md +1 -1
  130. package/content/self-host/explanation/running/egress-and-offline.md +1 -1
  131. package/content/self-host/explanation/running/managed-workers-and-isolation.md +35 -8
  132. package/content/self-host/explanation/running/security-hardening.md +9 -8
  133. package/content/self-host/explanation/running/sizing-and-scaling.md +29 -0
  134. package/content/self-host/how-to/instance/moving-a-tenant.md +12 -0
  135. package/content/self-host/how-to/running/back-up-an-instance.md +1 -1
  136. package/content/self-host/how-to/running/build-the-image.md +1 -1
  137. package/content/self-host/how-to/running/install-on-fly.md +27 -10
  138. package/content/self-host/how-to/running/install-with-compose.md +4 -4
  139. package/content/self-host/how-to/running/monitor-an-instance.md +2 -0
  140. package/content/self-host/how-to/running/put-a-proxy-in-front.md +7 -8
  141. package/content/self-host/how-to/running/restore-an-instance.md +34 -5
  142. package/content/self-host/how-to/running/run-a-standalone-worker.md +2 -2
  143. package/content/self-host/how-to/running/set-up-mail.md +13 -6
  144. package/content/self-host/reference/console/health.md +21 -1
  145. package/content/self-host/reference/running/configuration.md +1 -1
  146. package/content/self-host/reference/running/requirements.md +9 -2
  147. package/content/self-host/reference/running/retention.md +2 -1
  148. package/content/self-host/reference/running/troubleshooting.md +6 -1
  149. package/content/self-host/reference/running/versions-and-support.md +9 -1
  150. package/content/self-host/tutorials/install-on-one-machine.md +1 -1
  151. package/content/start/how-to/example/set-up-the-fernhill-example.md +26 -3
  152. package/content/start/index.md +11 -1
  153. package/content/start/reference/accessibility.md +35 -0
  154. package/content/start/reference/index.md +1 -0
  155. package/content/start/tutorials/index.md +6 -1
  156. package/content/start/tutorials/your-first-script.md +0 -1
  157. package/content/start/tutorials/your-first-table.md +2 -2
  158. package/dist/assets/screenshots/administer/access-changes.dark.5bf247ce0f19.png +0 -0
  159. package/dist/assets/screenshots/administer/access-changes.light.ed91948531ce.png +0 -0
  160. package/dist/assets/screenshots/administer/access-end-users.dark.4d9a5acba896.png +0 -0
  161. package/dist/assets/screenshots/administer/access-end-users.light.cef020771af1.png +0 -0
  162. package/dist/assets/screenshots/administer/access-groups.dark.aaf84e089c11.png +0 -0
  163. package/dist/assets/screenshots/administer/sso-audit-filters.dark.9aa82a2ac9c5.png +0 -0
  164. package/dist/assets/screenshots/administer/sso-audit-filters.light.5ecfdb651ace.png +0 -0
  165. package/dist/assets/screenshots/administer/{sso-branding-theme.dark.80bc3ce901a4.png → sso-branding-theme.dark.9a2c0482b3c2.png} +0 -0
  166. package/dist/assets/screenshots/administer/{sso-branding-theme.light.f48bd968481c.png → sso-branding-theme.light.7be432359625.png} +0 -0
  167. package/dist/assets/screenshots/administer/{sso-provider-setup.dark.8834ae797a50.png → sso-provider-setup.dark.bc7d126f135d.png} +0 -0
  168. package/dist/assets/screenshots/administer/sso-provider-setup.light.0cbda9279747.png +0 -0
  169. package/dist/assets/screenshots/administer/sso-workers-pools.dark.43f043620615.png +0 -0
  170. package/dist/assets/screenshots/administer/sso-workers-pools.light.25b0e09b2ff0.png +0 -0
  171. package/dist/assets/screenshots/console/account-sessions.dark.05dbf87d40a9.png +0 -0
  172. package/dist/assets/screenshots/console/account-sessions.light.2ef44c907ee5.png +0 -0
  173. package/{assets/screenshots/console/app-builder-list.dark.48340ac81e11.png → dist/assets/screenshots/console/app-builder-list.dark.124cca05b904.png} +0 -0
  174. package/{assets/screenshots/console/app-builder-list.light.85064d6742d4.png → dist/assets/screenshots/console/app-builder-list.light.082ae0464cbe.png} +0 -0
  175. package/{assets/screenshots/console/apps-list.dark.6580be4c6f17.png → dist/assets/screenshots/console/apps-list.dark.b24bb8a4fe8f.png} +0 -0
  176. package/{assets/screenshots/console/apps-list.light.35ac9711c9a0.png → dist/assets/screenshots/console/apps-list.light.fa8996fe55ff.png} +0 -0
  177. package/dist/assets/screenshots/console/{apps-share.dark.cf87c470cec4.png → apps-share.dark.0bb1a7899419.png} +0 -0
  178. package/{assets/screenshots/console/apps-share.light.eddc9c058c37.png → dist/assets/screenshots/console/apps-share.light.f26f075b3680.png} +0 -0
  179. package/dist/assets/screenshots/console/{basics-workspace-overview.dark.75d4329d6bd9.png → basics-workspace-overview.dark.678c40fa9f2a.png} +0 -0
  180. package/dist/assets/screenshots/console/{basics-workspace-overview.light.0a097241dfcb.png → basics-workspace-overview.light.86f7922860c9.png} +0 -0
  181. package/dist/assets/screenshots/console/configure-alerts-default.dark.8a2c534aa415.png +0 -0
  182. package/{assets/screenshots/console/configure-alerts.dark.3e4b58238bd2.png → dist/assets/screenshots/console/configure-alerts.dark.314fe8d7e0c6.png} +0 -0
  183. package/{assets/screenshots/console/configure-alerts.light.24608f63f849.png → dist/assets/screenshots/console/configure-alerts.light.ff5022a76eca.png} +0 -0
  184. package/dist/assets/screenshots/console/{configure-connection-sheet.dark.a8ae26d592fb.png → configure-connection-sheet.dark.41ba4383632c.png} +0 -0
  185. package/dist/assets/screenshots/console/configure-connections.dark.52147265a170.png +0 -0
  186. package/dist/assets/screenshots/console/{configure-connections.light.c3c1ec8eca52.png → configure-connections.light.8b15826634f1.png} +0 -0
  187. package/{assets/screenshots/console/dashboard-resource.dark.532f219609cc.png → dist/assets/screenshots/console/dashboard-resource.dark.4188f2810be1.png} +0 -0
  188. package/dist/assets/screenshots/console/dashboard-resource.light.8211fe9f380e.png +0 -0
  189. package/{assets/screenshots/console/dashboards-list.light.bb704dd75a30.png → dist/assets/screenshots/console/dashboards-list.light.438e3d23c888.png} +0 -0
  190. package/dist/assets/screenshots/console/extensions-editor.dark.4e5246f282e2.png +0 -0
  191. package/{assets/screenshots/console/extensions-list.light.f65bb930d029.png → dist/assets/screenshots/console/extensions-list.light.a1703d257ceb.png} +0 -0
  192. package/dist/assets/screenshots/console/flow-editor.dark.00229a94001e.png +0 -0
  193. package/dist/assets/screenshots/console/flow-editor.light.5eb68a339e84.png +0 -0
  194. package/dist/assets/screenshots/console/operate-approvals.light.1501cede2f94.png +0 -0
  195. package/dist/assets/screenshots/console/operate-cancel-by-age.dark.419042b822db.png +0 -0
  196. package/dist/assets/screenshots/console/operate-cancel-by-age.light.7d48915e9922.png +0 -0
  197. package/dist/assets/screenshots/console/operate-events.dark.2589975f7f46.png +0 -0
  198. package/dist/assets/screenshots/console/operate-events.light.c4d8d8ae8748.png +0 -0
  199. package/dist/assets/screenshots/console/operate-run-failed.dark.09addb030b58.png +0 -0
  200. package/dist/assets/screenshots/console/{operate-run-failed.light.482db87101aa.png → operate-run-failed.light.6163d2f9d3b3.png} +0 -0
  201. package/dist/assets/screenshots/console/operate-runs.dark.3bf1250f1f59.png +0 -0
  202. package/dist/assets/screenshots/console/{operate-runs.light.bccafcd93196.png → operate-runs.light.235f6baf6f3d.png} +0 -0
  203. package/dist/assets/screenshots/console/page-editor.light.3ec1f9d43475.png +0 -0
  204. package/dist/assets/screenshots/console/queries-editor.dark.ee99f9050a23.png +0 -0
  205. package/dist/assets/screenshots/console/queries-editor.light.67bd22086115.png +0 -0
  206. package/dist/assets/screenshots/console/queries-parameters.light.c471d505bbd1.png +0 -0
  207. package/dist/assets/screenshots/console/{releases-review.dark.34ec540432dc.png → releases-review.dark.091d815aa9c9.png} +0 -0
  208. package/{assets/screenshots/console/releases-review.light.7f7eea72fc90.png → dist/assets/screenshots/console/releases-review.light.a440c30d08b2.png} +0 -0
  209. package/{assets/screenshots/console/script-settings-tab.dark.976df3a2aaf0.png → dist/assets/screenshots/console/script-settings-tab.dark.5e96eedd9889.png} +0 -0
  210. package/dist/assets/screenshots/console/{scripts-test-pane.dark.6112678956ed.png → scripts-test-pane.dark.63dcff509936.png} +0 -0
  211. package/dist/assets/screenshots/console/{scripts-test-pane.light.2e1b637a8c7a.png → scripts-test-pane.light.bcef48f905b0.png} +0 -0
  212. package/dist/assets/screenshots/console/table-definition.light.b97883e1b6e0.png +0 -0
  213. package/dist/assets/screenshots/console/table-help.dark.da3a47215e6b.png +0 -0
  214. package/dist/assets/screenshots/console/table-help.light.07c67e63ef2e.png +0 -0
  215. package/dist/assets/screenshots/console/table-rows-filtered.dark.c61524c872a5.png +0 -0
  216. package/dist/assets/screenshots/console/table-rows-filtered.light.787e71f743dd.png +0 -0
  217. package/dist/assets/screenshots/console/table-rows.dark.19e2afeb688e.png +0 -0
  218. package/dist/assets/screenshots/console/table-rows.light.a9249d7b9bd5.png +0 -0
  219. package/dist/assets/screenshots/console/tut-visit-mix.dark.f1dd71da8937.png +0 -0
  220. package/{assets/screenshots/console/widgets-chart-scatter.light.e57e41675d8d.png → dist/assets/screenshots/console/widgets-chart-scatter.light.85ea38faaed8.png} +0 -0
  221. package/dist/assets/screenshots/console/widgets-phone-page.dark.360a39e459c7.png +0 -0
  222. package/{assets/screenshots/console/workspace-settings.light.3ac3bbfd9f4e.png → dist/assets/screenshots/console/workspace-settings.light.c56e7f5d80f8.png} +0 -0
  223. package/dist/assets/screenshots/docs/draft-conflict.dark.597b616abec7.png +0 -0
  224. package/dist/assets/screenshots/docs/draft-conflict.light.6d326a37e8bc.png +0 -0
  225. package/dist/assets/screenshots/docs/page-details-type.dark.2e382c8f131e.png +0 -0
  226. package/dist/assets/screenshots/self-host/extensions-component-kit.dark.ba673f636a8f.png +0 -0
  227. package/dist/assets/screenshots/self-host/extensions-component-kit.light.282da6a4c589.png +0 -0
  228. package/dist/assets/screenshots/self-host/instance-audit.dark.21de79247590.png +0 -0
  229. package/dist/assets/screenshots/self-host/instance-audit.light.dba4eaa712ed.png +0 -0
  230. package/dist/assets/screenshots/self-host/instance-branding.dark.0ddd4c2df652.png +0 -0
  231. package/dist/assets/screenshots/self-host/instance-branding.light.c3b7ffef6d4e.png +0 -0
  232. package/dist/assets/screenshots/self-host/instance-databases.dark.dd2403f84456.png +0 -0
  233. package/dist/assets/screenshots/self-host/instance-databases.light.3248546636cf.png +0 -0
  234. package/dist/assets/screenshots/self-host/instance-health.dark.5791805f72b7.png +0 -0
  235. package/dist/assets/screenshots/self-host/instance-health.light.cbfad910fc8e.png +0 -0
  236. package/dist/assets/screenshots/self-host/instance-import-check.dark.11ccf001d9f8.png +0 -0
  237. package/dist/assets/screenshots/self-host/instance-import-check.light.efbbef163d80.png +0 -0
  238. package/dist/assets/screenshots/self-host/instance-members.dark.d9fa55d364fd.png +0 -0
  239. package/dist/assets/screenshots/self-host/instance-members.light.7af6bfa48914.png +0 -0
  240. package/dist/assets/screenshots/self-host/instance-operators.dark.1326e9460224.png +0 -0
  241. package/dist/assets/screenshots/self-host/instance-operators.light.3f2cac001fb5.png +0 -0
  242. package/dist/assets/screenshots/self-host/instance-tenants.dark.ba860dc98c90.png +0 -0
  243. package/dist/assets/screenshots/self-host/instance-tenants.light.6a63877c41b3.png +0 -0
  244. package/dist/assets/screenshots/self-host/instance-triggers.dark.f2bba07895f2.png +0 -0
  245. package/dist/assets/screenshots/self-host/instance-triggers.light.dddb827e214a.png +0 -0
  246. package/dist/assets/screenshots/start/basics-finding-your-way.dark.5cc80a2d591f.png +0 -0
  247. package/dist/assets/screenshots/start/basics-finding-your-way.light.dddf72e4ad38.png +0 -0
  248. package/dist/assets/screenshots/start/tut-approve-step.dark.5b773354ba35.png +0 -0
  249. package/dist/assets/screenshots/start/tut-approve-step.light.b0224c9b1133.png +0 -0
  250. package/dist/assets/screenshots/start/visit-notes-filtered.dark.f6fb7a707e2f.png +0 -0
  251. package/dist/assets/screenshots/start/visit-notes-filtered.light.a4b4d64a7fc2.png +0 -0
  252. package/dist/fields.json +1 -1
  253. package/dist/manifest.json +1 -1
  254. package/dist/md/administer/explanation/sso/how-single-sign-on-works.md +2 -0
  255. package/dist/md/administer/how-to/access/invite-end-users.md +8 -0
  256. package/dist/md/administer/how-to/access/rule-rows-by-group-or-attribute.md +7 -0
  257. package/dist/md/administer/how-to/apps/give-an-app-a-hostname.md +1 -1
  258. package/dist/md/administer/how-to/sso/provision-people-with-scim.md +1 -1
  259. package/dist/md/administer/reference/audit-actions.md +1 -0
  260. package/dist/md/administer/reference/permissions.md +1 -0
  261. package/dist/md/administer/reference/screens/branding.md +1 -1
  262. package/dist/md/administer/reference/screens/end-users.md +3 -1
  263. package/dist/md/administer/reference/screens/overview.md +21 -0
  264. package/dist/md/administer/reference/screens/retention.md +3 -2
  265. package/dist/md/administer/reference/screens/single-sign-on.md +1 -1
  266. package/dist/md/console/how-to/app-builder/publish-an-app.md +0 -1
  267. package/dist/md/console/how-to/data/row-rules.md +1 -0
  268. package/dist/md/console/reference/screens/build/published-apps.md +1 -2
  269. package/dist/md/console/reference/screens/data/tables.md +1 -1
  270. package/dist/md/console/reference/screens/home/tenants.md +1 -1
  271. package/dist/md/develop/explanation/api/how-the-api-knows-who-is-calling.md +10 -3
  272. package/dist/md/develop/explanation/apps/app-access.md +29 -10
  273. package/dist/md/develop/explanation/scripts/how-scripts-run.md +1 -1
  274. package/dist/md/develop/how-to/apps/write-an-app.md +1 -1
  275. package/dist/md/develop/how-to/cli/install-from-source.md +1 -1
  276. package/dist/md/develop/how-to/cli/install-the-cli.md +1 -1
  277. package/dist/md/develop/how-to/cli/test-a-script.md +1 -1
  278. package/dist/md/develop/how-to/configure/set-up-from-a-script.md +1 -1
  279. package/dist/md/develop/reference/access/mcp.md +11 -1
  280. package/dist/md/develop/reference/api/agents.md +27 -1
  281. package/dist/md/develop/reference/api/apps.md +25 -1
  282. package/dist/md/develop/reference/api/end-users.md +71 -6
  283. package/dist/md/develop/reference/api/figures.md +160 -0
  284. package/dist/md/develop/reference/api/identity.md +318 -1
  285. package/dist/md/develop/reference/api/index.md +7 -6
  286. package/dist/md/develop/reference/api/instance.md +59 -1
  287. package/dist/md/develop/reference/api/permissions.md +13 -4
  288. package/dist/md/develop/reference/api/tenancy.md +13 -0
  289. package/dist/md/develop/reference/apps/app-client.md +10 -8
  290. package/dist/md/develop/reference/apps/content-policy.md +8 -3
  291. package/dist/md/develop/reference/errors.md +6 -0
  292. package/dist/md/develop/reference/kinds/dashboard.md +10 -0
  293. package/dist/md/develop/reference/kinds/interface.md +10 -0
  294. package/dist/md/develop/reference/kinds/widget.md +1 -1
  295. package/dist/md/develop/reference/queries/data-as-code.md +12 -0
  296. package/dist/md/develop/reference/sdk/sdk.md +1 -1
  297. package/dist/md/develop/reference/sdk/widgets-page.md +13 -0
  298. package/dist/md/develop/reference/sdk/widgets.md +2 -2
  299. package/dist/md/develop/reference/tenant-widgets/what-a-view-is-given.md +1 -1
  300. package/dist/md/develop/reference/widgets/chart.md +1 -1
  301. package/dist/md/develop/reference/widgets/goal.md +1 -1
  302. package/dist/md/develop/reference/widgets/pivot.md +1 -1
  303. package/dist/md/develop/reference/widgets/stat.md +1 -1
  304. package/dist/md/develop/tutorials/cli/quickstart.md +1 -1
  305. package/dist/md/self-host/explanation/access/index.md +1 -0
  306. package/dist/md/self-host/explanation/access/instance-service-accounts.md +66 -0
  307. package/dist/md/self-host/explanation/access/who-runs-what.md +2 -0
  308. package/dist/md/self-host/explanation/running/architecture.md +1 -1
  309. package/dist/md/self-host/explanation/running/egress-and-offline.md +1 -1
  310. package/dist/md/self-host/explanation/running/managed-workers-and-isolation.md +35 -8
  311. package/dist/md/self-host/explanation/running/security-hardening.md +9 -8
  312. package/dist/md/self-host/explanation/running/sizing-and-scaling.md +29 -0
  313. package/dist/md/self-host/how-to/instance/moving-a-tenant.md +12 -0
  314. package/dist/md/self-host/how-to/running/back-up-an-instance.md +1 -1
  315. package/dist/md/self-host/how-to/running/build-the-image.md +1 -1
  316. package/dist/md/self-host/how-to/running/install-on-fly.md +27 -10
  317. package/dist/md/self-host/how-to/running/install-with-compose.md +4 -4
  318. package/dist/md/self-host/how-to/running/monitor-an-instance.md +2 -0
  319. package/dist/md/self-host/how-to/running/put-a-proxy-in-front.md +7 -8
  320. package/dist/md/self-host/how-to/running/restore-an-instance.md +34 -5
  321. package/dist/md/self-host/how-to/running/run-a-standalone-worker.md +2 -2
  322. package/dist/md/self-host/how-to/running/set-up-mail.md +13 -6
  323. package/dist/md/self-host/reference/console/health.md +21 -1
  324. package/dist/md/self-host/reference/running/configuration.md +1 -1
  325. package/dist/md/self-host/reference/running/requirements.md +9 -2
  326. package/dist/md/self-host/reference/running/retention.md +2 -1
  327. package/dist/md/self-host/reference/running/troubleshooting.md +6 -1
  328. package/dist/md/self-host/reference/running/versions-and-support.md +9 -1
  329. package/dist/md/self-host/reference/settings.md +2 -2
  330. package/dist/md/self-host/tutorials/install-on-one-machine.md +1 -1
  331. package/dist/md/start/how-to/example/set-up-the-fernhill-example.md +26 -3
  332. package/dist/md/start/index.md +11 -1
  333. package/dist/md/start/reference/accessibility.md +35 -0
  334. package/dist/md/start/reference/changelog/0-7-0.md +208 -0
  335. package/dist/md/start/reference/index.md +1 -0
  336. package/dist/md/start/tutorials/index.md +6 -1
  337. package/dist/md/start/tutorials/your-first-script.md +0 -1
  338. package/dist/md/start/tutorials/your-first-table.md +2 -2
  339. package/dist/pages/administer/explanation/sso/how-single-sign-on-works.json +1 -1
  340. package/dist/pages/administer/how-to/access/invite-end-users.json +1 -1
  341. package/dist/pages/administer/how-to/access/rule-rows-by-group-or-attribute.json +1 -1
  342. package/dist/pages/administer/how-to/apps/give-an-app-a-hostname.json +1 -1
  343. package/dist/pages/administer/how-to/sso/provision-people-with-scim.json +1 -1
  344. package/dist/pages/administer/reference/audit-actions.json +1 -1
  345. package/dist/pages/administer/reference/permissions.json +1 -1
  346. package/dist/pages/administer/reference/screens/branding.json +1 -1
  347. package/dist/pages/administer/reference/screens/end-users.json +1 -1
  348. package/dist/pages/administer/reference/screens/overview.json +1 -1
  349. package/dist/pages/administer/reference/screens/retention.json +1 -1
  350. package/dist/pages/administer/reference/screens/single-sign-on.json +1 -1
  351. package/dist/pages/console/how-to/app-builder/publish-an-app.json +1 -1
  352. package/dist/pages/console/how-to/data/row-rules.json +1 -1
  353. package/dist/pages/console/reference/screens/build/published-apps.json +1 -1
  354. package/dist/pages/console/reference/screens/data/tables.json +1 -1
  355. package/dist/pages/console/reference/screens/home/tenants.json +1 -1
  356. package/dist/pages/develop/explanation/api/how-the-api-knows-who-is-calling.json +1 -1
  357. package/dist/pages/develop/explanation/apps/app-access.json +1 -1
  358. package/dist/pages/develop/explanation/scripts/how-scripts-run.json +1 -1
  359. package/dist/pages/develop/how-to/apps/write-an-app.json +1 -1
  360. package/dist/pages/develop/how-to/cli/install-from-source.json +1 -1
  361. package/dist/pages/develop/how-to/cli/install-the-cli.json +1 -1
  362. package/dist/pages/develop/how-to/cli/test-a-script.json +1 -1
  363. package/dist/pages/develop/how-to/configure/set-up-from-a-script.json +1 -1
  364. package/dist/pages/develop/reference/access/mcp.json +1 -1
  365. package/dist/pages/develop/reference/api/agents.json +1 -1
  366. package/dist/pages/develop/reference/api/apps.json +1 -1
  367. package/dist/pages/develop/reference/api/end-users.json +1 -1
  368. package/dist/pages/develop/reference/api/figures.json +1 -0
  369. package/dist/pages/develop/reference/api/identity.json +1 -1
  370. package/dist/pages/develop/reference/api/index.json +1 -1
  371. package/dist/pages/develop/reference/api/instance.json +1 -1
  372. package/dist/pages/develop/reference/api/permissions.json +1 -1
  373. package/dist/pages/develop/reference/api/tenancy.json +1 -1
  374. package/dist/pages/develop/reference/apps/app-client.json +1 -1
  375. package/dist/pages/develop/reference/apps/content-policy.json +1 -1
  376. package/dist/pages/develop/reference/errors.json +1 -1
  377. package/dist/pages/develop/reference/kinds/dashboard.json +1 -1
  378. package/dist/pages/develop/reference/kinds/interface.json +1 -1
  379. package/dist/pages/develop/reference/kinds/widget.json +1 -1
  380. package/dist/pages/develop/reference/queries/data-as-code.json +1 -1
  381. package/dist/pages/develop/reference/sdk/sdk.json +1 -1
  382. package/dist/pages/develop/reference/sdk/widgets-page.json +1 -1
  383. package/dist/pages/develop/reference/sdk/widgets.json +1 -1
  384. package/dist/pages/develop/reference/tenant-widgets/what-a-view-is-given.json +1 -1
  385. package/dist/pages/develop/reference/widgets/chart.json +1 -1
  386. package/dist/pages/develop/reference/widgets/goal.json +1 -1
  387. package/dist/pages/develop/reference/widgets/pivot.json +1 -1
  388. package/dist/pages/develop/reference/widgets/stat.json +1 -1
  389. package/dist/pages/develop/tutorials/cli/quickstart.json +1 -1
  390. package/dist/pages/self-host/explanation/access/index.json +1 -1
  391. package/dist/pages/self-host/explanation/access/instance-service-accounts.json +1 -0
  392. package/dist/pages/self-host/explanation/access/who-runs-what.json +1 -1
  393. package/dist/pages/self-host/explanation/running/architecture.json +1 -1
  394. package/dist/pages/self-host/explanation/running/egress-and-offline.json +1 -1
  395. package/dist/pages/self-host/explanation/running/managed-workers-and-isolation.json +1 -1
  396. package/dist/pages/self-host/explanation/running/security-hardening.json +1 -1
  397. package/dist/pages/self-host/explanation/running/sizing-and-scaling.json +1 -1
  398. package/dist/pages/self-host/how-to/instance/moving-a-tenant.json +1 -1
  399. package/dist/pages/self-host/how-to/running/back-up-an-instance.json +1 -1
  400. package/dist/pages/self-host/how-to/running/build-the-image.json +1 -1
  401. package/dist/pages/self-host/how-to/running/install-on-fly.json +1 -1
  402. package/dist/pages/self-host/how-to/running/install-with-compose.json +1 -1
  403. package/dist/pages/self-host/how-to/running/monitor-an-instance.json +1 -1
  404. package/dist/pages/self-host/how-to/running/put-a-proxy-in-front.json +1 -1
  405. package/dist/pages/self-host/how-to/running/restore-an-instance.json +1 -1
  406. package/dist/pages/self-host/how-to/running/run-a-standalone-worker.json +1 -1
  407. package/dist/pages/self-host/how-to/running/set-up-mail.json +1 -1
  408. package/dist/pages/self-host/reference/console/health.json +1 -1
  409. package/dist/pages/self-host/reference/running/configuration.json +1 -1
  410. package/dist/pages/self-host/reference/running/requirements.json +1 -1
  411. package/dist/pages/self-host/reference/running/retention.json +1 -1
  412. package/dist/pages/self-host/reference/running/troubleshooting.json +1 -1
  413. package/dist/pages/self-host/reference/running/versions-and-support.json +1 -1
  414. package/dist/pages/self-host/reference/settings.json +1 -1
  415. package/dist/pages/self-host/tutorials/install-on-one-machine.json +1 -1
  416. package/dist/pages/start/how-to/example/set-up-the-fernhill-example.json +1 -1
  417. package/dist/pages/start/index.json +1 -1
  418. package/dist/pages/start/reference/accessibility.json +1 -0
  419. package/dist/pages/start/reference/changelog/0-7-0.json +1 -0
  420. package/dist/pages/start/reference/index.json +1 -1
  421. package/dist/pages/start/tutorials/index.json +1 -1
  422. package/dist/pages/start/tutorials/your-first-script.json +1 -1
  423. package/dist/pages/start/tutorials/your-first-table.json +1 -1
  424. package/dist/redirects.json +1 -1
  425. package/dist/search.json +1 -1
  426. package/generated/administer/reference/audit-actions.md +1 -0
  427. package/generated/administer/reference/permissions.md +1 -0
  428. package/generated/develop/reference/api/agents.md +27 -1
  429. package/generated/develop/reference/api/apps.md +25 -1
  430. package/generated/develop/reference/api/end-users.md +71 -6
  431. package/generated/develop/reference/api/figures.md +160 -0
  432. package/generated/develop/reference/api/identity.md +318 -1
  433. package/generated/develop/reference/api/index.md +7 -6
  434. package/generated/develop/reference/api/instance.md +59 -1
  435. package/generated/develop/reference/api/permissions.md +13 -4
  436. package/generated/develop/reference/api/tenancy.md +13 -0
  437. package/generated/develop/reference/errors.md +6 -0
  438. package/generated/develop/reference/kinds/dashboard.md +10 -0
  439. package/generated/develop/reference/kinds/interface.md +10 -0
  440. package/generated/develop/reference/kinds/widget.md +1 -1
  441. package/generated/develop/reference/sdk/sdk.md +1 -1
  442. package/generated/develop/reference/sdk/widgets-page.md +13 -0
  443. package/generated/develop/reference/sdk/widgets.md +2 -2
  444. package/generated/develop/reference/widgets/chart.md +1 -1
  445. package/generated/develop/reference/widgets/goal.md +1 -1
  446. package/generated/develop/reference/widgets/pivot.md +1 -1
  447. package/generated/develop/reference/widgets/stat.md +1 -1
  448. package/generated/openapi.json +4899 -1734
  449. package/generated/self-host/reference/settings.md +2 -2
  450. package/generated/start/reference/changelog/0-7-0.md +208 -0
  451. package/package.json +11 -6
  452. package/assets/screenshots/administer/access-changes.dark.5b3255fafe5c.png +0 -0
  453. package/assets/screenshots/administer/access-changes.light.cff6913107a3.png +0 -0
  454. package/assets/screenshots/administer/access-end-users.dark.c0d4e526952b.png +0 -0
  455. package/assets/screenshots/administer/access-end-users.light.b3368747a4d3.png +0 -0
  456. package/assets/screenshots/administer/access-groups.dark.bff155b79a2c.png +0 -0
  457. package/assets/screenshots/administer/sso-audit-filters.dark.b6a4dc01aa2c.png +0 -0
  458. package/assets/screenshots/administer/sso-audit-filters.light.1a295f8a94ff.png +0 -0
  459. package/assets/screenshots/administer/sso-provider-setup.light.b7e337ee30fb.png +0 -0
  460. package/assets/screenshots/administer/sso-workers-pools.dark.2270cb13aaab.png +0 -0
  461. package/assets/screenshots/administer/sso-workers-pools.light.1efebb29f50c.png +0 -0
  462. package/assets/screenshots/console/account-sessions.dark.678e11711e06.png +0 -0
  463. package/assets/screenshots/console/account-sessions.light.d742e8f3d3d1.png +0 -0
  464. package/assets/screenshots/console/configure-alerts-default.dark.425955f71c50.png +0 -0
  465. package/assets/screenshots/console/configure-connections.dark.7b64ffab4c8c.png +0 -0
  466. package/assets/screenshots/console/dashboard-resource.light.55b36abe8e0e.png +0 -0
  467. package/assets/screenshots/console/extensions-editor.dark.ebb816369d53.png +0 -0
  468. package/assets/screenshots/console/flow-editor.dark.caab11f209cb.png +0 -0
  469. package/assets/screenshots/console/flow-editor.light.bfc7e6b366dc.png +0 -0
  470. package/assets/screenshots/console/operate-approvals.light.36987d0a4c62.png +0 -0
  471. package/assets/screenshots/console/operate-cancel-by-age.dark.2786b42ecfbe.png +0 -0
  472. package/assets/screenshots/console/operate-cancel-by-age.light.8ef6601ebbe7.png +0 -0
  473. package/assets/screenshots/console/operate-events.dark.7067e88d771e.png +0 -0
  474. package/assets/screenshots/console/operate-events.light.b58a8c7f0b04.png +0 -0
  475. package/assets/screenshots/console/operate-run-failed.dark.eb8c52a9fcf7.png +0 -0
  476. package/assets/screenshots/console/operate-runs.dark.ae45d93820b3.png +0 -0
  477. package/assets/screenshots/console/page-editor.light.2023b176d1a0.png +0 -0
  478. package/assets/screenshots/console/queries-editor.dark.b0ef383c3b90.png +0 -0
  479. package/assets/screenshots/console/queries-editor.light.8e413390ad34.png +0 -0
  480. package/assets/screenshots/console/queries-parameters.light.9bca851e025c.png +0 -0
  481. package/assets/screenshots/console/table-definition.light.ff11cce13c18.png +0 -0
  482. package/assets/screenshots/console/table-help.dark.bc35e748426c.png +0 -0
  483. package/assets/screenshots/console/table-help.light.fb1b109ee396.png +0 -0
  484. package/assets/screenshots/console/table-rows-filtered.dark.6fab42faa122.png +0 -0
  485. package/assets/screenshots/console/table-rows-filtered.light.aa9881d95f4d.png +0 -0
  486. package/assets/screenshots/console/table-rows.dark.4ce02d5478c9.png +0 -0
  487. package/assets/screenshots/console/table-rows.light.a1f7d91a9e77.png +0 -0
  488. package/assets/screenshots/console/tut-visit-mix.dark.724c62999f95.png +0 -0
  489. package/assets/screenshots/console/widgets-phone-page.dark.386738c3e5fb.png +0 -0
  490. package/assets/screenshots/docs/draft-conflict.dark.894a4f116020.png +0 -0
  491. package/assets/screenshots/docs/draft-conflict.light.c5187649da9a.png +0 -0
  492. package/assets/screenshots/docs/page-details-type.dark.26fda0943a41.png +0 -0
  493. package/assets/screenshots/self-host/extensions-component-kit.dark.95cf642b62b6.png +0 -0
  494. package/assets/screenshots/self-host/extensions-component-kit.light.d4d7ae43474d.png +0 -0
  495. package/assets/screenshots/self-host/instance-audit.dark.eabb7e1545a2.png +0 -0
  496. package/assets/screenshots/self-host/instance-audit.light.e0704c3e2f3c.png +0 -0
  497. package/assets/screenshots/self-host/instance-branding.dark.65706ba2f266.png +0 -0
  498. package/assets/screenshots/self-host/instance-branding.light.53ef9943efc1.png +0 -0
  499. package/assets/screenshots/self-host/instance-databases.dark.17e36475132c.png +0 -0
  500. package/assets/screenshots/self-host/instance-databases.light.6bd31df9f812.png +0 -0
  501. package/assets/screenshots/self-host/instance-health.dark.7ddc9725c6e5.png +0 -0
  502. package/assets/screenshots/self-host/instance-health.light.5d8697f0135a.png +0 -0
  503. package/assets/screenshots/self-host/instance-import-check.dark.b54f53b17e5e.png +0 -0
  504. package/assets/screenshots/self-host/instance-import-check.light.b33217f8efdf.png +0 -0
  505. package/assets/screenshots/self-host/instance-members.dark.3f319a2912d7.png +0 -0
  506. package/assets/screenshots/self-host/instance-members.light.3f90be8b0556.png +0 -0
  507. package/assets/screenshots/self-host/instance-operators.dark.fb0fcc88cc66.png +0 -0
  508. package/assets/screenshots/self-host/instance-operators.light.038f3f725bec.png +0 -0
  509. package/assets/screenshots/self-host/instance-tenants.dark.1f2501ef99c1.png +0 -0
  510. package/assets/screenshots/self-host/instance-tenants.light.9c1b997a9f5b.png +0 -0
  511. package/assets/screenshots/self-host/instance-triggers.dark.2c3cffed2649.png +0 -0
  512. package/assets/screenshots/self-host/instance-triggers.light.b0a06ee78d65.png +0 -0
  513. package/assets/screenshots/start/basics-finding-your-way.dark.05cc7d67b47c.png +0 -0
  514. package/assets/screenshots/start/basics-finding-your-way.light.45790efbcb57.png +0 -0
  515. package/assets/screenshots/start/tut-approve-step.dark.dc691e002e9e.png +0 -0
  516. package/assets/screenshots/start/tut-approve-step.light.9c219b4d2d1a.png +0 -0
  517. package/assets/screenshots/start/visit-notes-filtered.dark.f26ec0b4168c.png +0 -0
  518. package/assets/screenshots/start/visit-notes-filtered.light.841ac7004f1c.png +0 -0
  519. package/dist/assets/screenshots/administer/access-changes.dark.5b3255fafe5c.png +0 -0
  520. package/dist/assets/screenshots/administer/access-changes.light.cff6913107a3.png +0 -0
  521. package/dist/assets/screenshots/administer/access-end-users.dark.c0d4e526952b.png +0 -0
  522. package/dist/assets/screenshots/administer/access-end-users.light.b3368747a4d3.png +0 -0
  523. package/dist/assets/screenshots/administer/access-groups.dark.bff155b79a2c.png +0 -0
  524. package/dist/assets/screenshots/administer/sso-audit-filters.dark.b6a4dc01aa2c.png +0 -0
  525. package/dist/assets/screenshots/administer/sso-audit-filters.light.1a295f8a94ff.png +0 -0
  526. package/dist/assets/screenshots/administer/sso-provider-setup.light.b7e337ee30fb.png +0 -0
  527. package/dist/assets/screenshots/administer/sso-workers-pools.dark.2270cb13aaab.png +0 -0
  528. package/dist/assets/screenshots/administer/sso-workers-pools.light.1efebb29f50c.png +0 -0
  529. package/dist/assets/screenshots/console/account-sessions.dark.678e11711e06.png +0 -0
  530. package/dist/assets/screenshots/console/account-sessions.light.d742e8f3d3d1.png +0 -0
  531. package/dist/assets/screenshots/console/configure-alerts-default.dark.425955f71c50.png +0 -0
  532. package/dist/assets/screenshots/console/configure-connections.dark.7b64ffab4c8c.png +0 -0
  533. package/dist/assets/screenshots/console/dashboard-resource.light.55b36abe8e0e.png +0 -0
  534. package/dist/assets/screenshots/console/extensions-editor.dark.ebb816369d53.png +0 -0
  535. package/dist/assets/screenshots/console/flow-editor.dark.caab11f209cb.png +0 -0
  536. package/dist/assets/screenshots/console/flow-editor.light.bfc7e6b366dc.png +0 -0
  537. package/dist/assets/screenshots/console/operate-approvals.light.36987d0a4c62.png +0 -0
  538. package/dist/assets/screenshots/console/operate-cancel-by-age.dark.2786b42ecfbe.png +0 -0
  539. package/dist/assets/screenshots/console/operate-cancel-by-age.light.8ef6601ebbe7.png +0 -0
  540. package/dist/assets/screenshots/console/operate-events.dark.7067e88d771e.png +0 -0
  541. package/dist/assets/screenshots/console/operate-events.light.b58a8c7f0b04.png +0 -0
  542. package/dist/assets/screenshots/console/operate-run-failed.dark.eb8c52a9fcf7.png +0 -0
  543. package/dist/assets/screenshots/console/operate-runs.dark.ae45d93820b3.png +0 -0
  544. package/dist/assets/screenshots/console/page-editor.light.2023b176d1a0.png +0 -0
  545. package/dist/assets/screenshots/console/queries-editor.dark.b0ef383c3b90.png +0 -0
  546. package/dist/assets/screenshots/console/queries-editor.light.8e413390ad34.png +0 -0
  547. package/dist/assets/screenshots/console/queries-parameters.light.9bca851e025c.png +0 -0
  548. package/dist/assets/screenshots/console/table-definition.light.ff11cce13c18.png +0 -0
  549. package/dist/assets/screenshots/console/table-help.dark.bc35e748426c.png +0 -0
  550. package/dist/assets/screenshots/console/table-help.light.fb1b109ee396.png +0 -0
  551. package/dist/assets/screenshots/console/table-rows-filtered.dark.6fab42faa122.png +0 -0
  552. package/dist/assets/screenshots/console/table-rows-filtered.light.aa9881d95f4d.png +0 -0
  553. package/dist/assets/screenshots/console/table-rows.dark.4ce02d5478c9.png +0 -0
  554. package/dist/assets/screenshots/console/table-rows.light.a1f7d91a9e77.png +0 -0
  555. package/dist/assets/screenshots/console/tut-visit-mix.dark.724c62999f95.png +0 -0
  556. package/dist/assets/screenshots/console/widgets-phone-page.dark.386738c3e5fb.png +0 -0
  557. package/dist/assets/screenshots/docs/draft-conflict.dark.894a4f116020.png +0 -0
  558. package/dist/assets/screenshots/docs/draft-conflict.light.c5187649da9a.png +0 -0
  559. package/dist/assets/screenshots/docs/page-details-type.dark.26fda0943a41.png +0 -0
  560. package/dist/assets/screenshots/self-host/extensions-component-kit.dark.95cf642b62b6.png +0 -0
  561. package/dist/assets/screenshots/self-host/extensions-component-kit.light.d4d7ae43474d.png +0 -0
  562. package/dist/assets/screenshots/self-host/instance-audit.dark.eabb7e1545a2.png +0 -0
  563. package/dist/assets/screenshots/self-host/instance-audit.light.e0704c3e2f3c.png +0 -0
  564. package/dist/assets/screenshots/self-host/instance-branding.dark.65706ba2f266.png +0 -0
  565. package/dist/assets/screenshots/self-host/instance-branding.light.53ef9943efc1.png +0 -0
  566. package/dist/assets/screenshots/self-host/instance-databases.dark.17e36475132c.png +0 -0
  567. package/dist/assets/screenshots/self-host/instance-databases.light.6bd31df9f812.png +0 -0
  568. package/dist/assets/screenshots/self-host/instance-health.dark.7ddc9725c6e5.png +0 -0
  569. package/dist/assets/screenshots/self-host/instance-health.light.5d8697f0135a.png +0 -0
  570. package/dist/assets/screenshots/self-host/instance-import-check.dark.b54f53b17e5e.png +0 -0
  571. package/dist/assets/screenshots/self-host/instance-import-check.light.b33217f8efdf.png +0 -0
  572. package/dist/assets/screenshots/self-host/instance-members.dark.3f319a2912d7.png +0 -0
  573. package/dist/assets/screenshots/self-host/instance-members.light.3f90be8b0556.png +0 -0
  574. package/dist/assets/screenshots/self-host/instance-operators.dark.fb0fcc88cc66.png +0 -0
  575. package/dist/assets/screenshots/self-host/instance-operators.light.038f3f725bec.png +0 -0
  576. package/dist/assets/screenshots/self-host/instance-tenants.dark.1f2501ef99c1.png +0 -0
  577. package/dist/assets/screenshots/self-host/instance-tenants.light.9c1b997a9f5b.png +0 -0
  578. package/dist/assets/screenshots/self-host/instance-triggers.dark.2c3cffed2649.png +0 -0
  579. package/dist/assets/screenshots/self-host/instance-triggers.light.b0a06ee78d65.png +0 -0
  580. package/dist/assets/screenshots/start/basics-finding-your-way.dark.05cc7d67b47c.png +0 -0
  581. package/dist/assets/screenshots/start/basics-finding-your-way.light.45790efbcb57.png +0 -0
  582. package/dist/assets/screenshots/start/tut-approve-step.dark.dc691e002e9e.png +0 -0
  583. package/dist/assets/screenshots/start/tut-approve-step.light.9c219b4d2d1a.png +0 -0
  584. package/dist/assets/screenshots/start/visit-notes-filtered.dark.f26ec0b4168c.png +0 -0
  585. package/dist/assets/screenshots/start/visit-notes-filtered.light.841ac7004f1c.png +0 -0
@@ -1 +1 @@
1
- {"path":"self-host/explanation/running/managed-workers-and-isolation","title":"Workers, users and what a script can reach","tree":{"type":"root","v":1,"children":[{"type":"paragraph","children":[{"type":"text","value":"A script runs on a worker. For a tenant with work and no worker of its own, the instance starts one. Where that happens is the choice that decides what a script can reach.","line":7}],"line":7},{"type":"heading","depth":2,"id":"the-idea","children":[{"type":"text","value":"The idea","line":9}],"line":9},{"type":"paragraph","children":[{"type":"text","value":"Each attempt of a script is a process of its own. It is ended at its time limit or when canceled, and held to the script's ","line":11},{"type":"inlineCode","value":"memoryMb","line":11},{"type":"text","value":" (512 by default). Volvel does not run each script in a container, and it does not sandbox it. In a worker host it gives each worker a user of its own and a network to stand on; workers started in process mode share one user (see below).","line":11}],"line":11},{"type":"paragraph","children":[{"type":"inlineCode","value":"MANAGED_WORKERS","line":13},{"type":"text","value":" chooses where managed workers run:","line":13}],"line":13},{"type":"table","align":[null,null,null],"children":[{"type":"tableRow","header":true,"children":[{"type":"tableCell","children":[{"type":"text","value":"Value","line":15}]},{"type":"tableCell","children":[{"type":"text","value":"Where","line":15}]},{"type":"tableCell","children":[{"type":"text","value":"Default","line":15}]}],"line":15},{"type":"tableRow","header":false,"children":[{"type":"tableCell","children":[{"type":"inlineCode","value":"host","line":17}]},{"type":"tableCell","children":[{"type":"text","value":"In a worker host: the same image, started as ","line":17},{"type":"inlineCode","value":"volvel-worker-host","line":17},{"type":"text","value":", in a container of its own on the ","line":17},{"type":"inlineCode","value":"execution","line":17},{"type":"text","value":" network.","line":17}]},{"type":"tableCell","children":[{"type":"text","value":"The Compose file.","line":17}]}],"line":17},{"type":"tableRow","header":false,"children":[{"type":"tableCell","children":[{"type":"inlineCode","value":"process","line":18}]},{"type":"tableCell","children":[{"type":"text","value":"Beside the control plane, on its machine and network.","line":18}]},{"type":"tableCell","children":[{"type":"text","value":"The code, when the setting is not set. ","line":18},{"type":"inlineCode","value":"true","line":18},{"type":"text","value":", from before there was a worker host, reads as ","line":18},{"type":"inlineCode","value":"process","line":18},{"type":"text","value":".","line":18}]}],"line":18},{"type":"tableRow","header":false,"children":[{"type":"tableCell","children":[{"type":"inlineCode","value":"false","line":19}]},{"type":"tableCell","children":[{"type":"text","value":"None. Every tenant is served by standalone workers.","line":19}]},{"type":"tableCell","children":[]}],"line":19}],"line":15},{"type":"heading","depth":2,"id":"a-worker-host","children":[{"type":"text","value":"A worker host","line":21}],"line":21},{"type":"paragraph","children":[{"type":"text","value":"The host asks the control plane for a tenant with work, gets a credential for it and starts a worker with it. Each live worker has:","line":23}],"line":23},{"type":"list","ordered":false,"children":[{"type":"listItem","children":[{"type":"text","value":"a user and group of its own: the lowest free one of a range that starts at ","line":25},{"type":"inlineCode","value":"MANAGED_WORKER_UID","line":25},{"type":"text","value":" and ","line":25},{"type":"inlineCode","value":"MANAGED_WORKER_GID","line":25},{"type":"text","value":" (10001) and holds ","line":25},{"type":"inlineCode","value":"MANAGED_WORKER_USERS","line":25},{"type":"text","value":" ids (256). The host never runs more workers at once than that;","line":25}],"line":25},{"type":"listItem","children":[{"type":"text","value":"a directory of its own, mode ","line":26},{"type":"inlineCode","value":"0700","line":26},{"type":"text","value":", that is its ","line":26},{"type":"inlineCode","value":"HOME","line":26},{"type":"text","value":", its ","line":26},{"type":"inlineCode","value":"TMPDIR","line":26},{"type":"text","value":" and its working directory, and is removed when the worker ends.","line":26}],"line":26}],"line":25},{"type":"paragraph","children":[{"type":"text","value":"One worker cannot read, write, list or signal another worker or the host. The host holds only the capabilities ","line":28},{"type":"inlineCode","value":"SETUID","line":28},{"type":"text","value":", ","line":28},{"type":"inlineCode","value":"SETGID","line":28},{"type":"text","value":", ","line":28},{"type":"inlineCode","value":"CHOWN","line":28},{"type":"text","value":", ","line":28},{"type":"inlineCode","value":"DAC_OVERRIDE","line":28},{"type":"text","value":", ","line":28},{"type":"inlineCode","value":"KILL","line":28},{"type":"text","value":" and ","line":28},{"type":"inlineCode","value":"NET_ADMIN","line":28},{"type":"text","value":". It says at start when it lacks ","line":28},{"type":"inlineCode","value":"CAP_KILL","line":28},{"type":"text","value":".","line":28}],"line":28},{"type":"paragraph","children":[{"type":"text","value":"The host and the control plane share ","line":30},{"type":"inlineCode","value":"WORKER_HOST_TOKEN","line":30},{"type":"text","value":". The host never gives it to a worker. Each tenant has at most one managed worker at a time, however many replicas or hosts run.","line":30}],"line":30},{"type":"heading","depth":3,"id":"the-firewall","children":[{"type":"text","value":"The firewall","line":32}],"line":32},{"type":"paragraph","children":[{"type":"text","value":"With ","line":34},{"type":"inlineCode","value":"NET_ADMIN","line":34},{"type":"text","value":", the host adds firewall rules at start. They refuse workers loopback, private and link-local addresses, cloud metadata among them, and the IPv6 forms of those (mapped, NAT64, 6to4, Teredo and site-local). Open to a worker are:","line":34}],"line":34},{"type":"list","ordered":false,"children":[{"type":"listItem","children":[{"type":"text","value":"the control plane's address, from ","line":36},{"type":"inlineCode","value":"VOLVEL_URL","line":36},{"type":"text","value":" or ","line":36},{"type":"inlineCode","value":"--url","line":36},{"type":"text","value":";","line":36}],"line":36},{"type":"listItem","children":[{"type":"text","value":"the container's name servers, IPv4 and IPv6;","line":37}],"line":37},{"type":"listItem","children":[{"type":"text","value":"what ","line":38},{"type":"inlineCode","value":"WORKER_EGRESS_ALLOW","line":38},{"type":"text","value":" lists: networks and host names, comma separated, empty unless you set it.","line":38}],"line":38}],"line":36},{"type":"paragraph","children":[{"type":"text","value":"Names are looked up once, when the host starts, and the rules are made once, for the control plane's address then. Restart the worker host when the control plane's container is recreated with another address.","line":40}],"line":40},{"type":"paragraph","children":[{"type":"text","value":"Without ","line":42},{"type":"inlineCode","value":"NET_ADMIN","line":42},{"type":"text","value":", the host says so in its log, and only the network keeps workers from the instance's services. Block ","line":42},{"type":"inlineCode","value":"169.254.169.254","line":42},{"type":"text","value":" at the machine if the instance runs in a cloud.","line":42}],"line":42},{"type":"paragraph","children":[{"type":"inlineCode","value":"WORKER_EGRESS_ALLOW","line":44},{"type":"text","value":" is not ","line":44},{"type":"inlineCode","value":"EGRESS_ALLOW","line":44},{"type":"text","value":". See ","line":44},{"type":"link","href":"egress-and-offline","children":[{"type":"text","value":"What an instance reaches","line":44}],"line":44},{"type":"text","value":".","line":44}],"line":44},{"type":"heading","depth":3,"id":"stopping","children":[{"type":"text","value":"Stopping","line":46}],"line":46},{"type":"paragraph","children":[{"type":"text","value":"A stopping host asks each worker to finish for up to 30 seconds, ends it, and gives up 10 seconds later with \"a worker could not be stopped and is left running\". The Compose file gives the host ","line":48},{"type":"inlineCode","value":"stop_grace_period: 60s","line":48},{"type":"text","value":" for that.","line":48}],"line":48},{"type":"heading","depth":2,"id":"process-mode","children":[{"type":"text","value":"Process mode","line":50}],"line":50},{"type":"paragraph","children":[{"type":"text","value":"Without a worker host, the control plane starts workers itself. They can reach whatever the control plane reaches. So it starts one only for a tenant whose code only the operator writes. A tenant whose code is written by anyone else, a member or a group with ","line":52},{"type":"inlineCode","value":"code:write","line":52},{"type":"text","value":" who holds no instance-wide role, or any service account, gets none. Its Workers page says it runs on standalone workers only.","line":52}],"line":52},{"type":"paragraph","children":[{"type":"text","value":"Workers in this mode run as a user other than the control plane's where the container may switch users, but one user for all tenants. The image starts the control plane on ","line":54},{"type":"inlineCode","value":"node-cp","line":54},{"type":"text","value":" and workers on plain Node, which cannot switch back. Without ","line":54},{"type":"inlineCode","value":"CAP_SETUID","line":54},{"type":"text","value":" and ","line":54},{"type":"inlineCode","value":"CAP_SETGID","line":54},{"type":"text","value":" it starts the control plane on plain Node, says so, and workers run as the control plane's own user.","line":54}],"line":54},{"type":"paragraph","children":[{"type":"inlineCode","value":"MANAGED_WORKER_USER","line":56},{"type":"text","value":" has two values: ","line":56},{"type":"inlineCode","value":"own","line":56},{"type":"text","value":" (the default) and ","line":56},{"type":"inlineCode","value":"same","line":56},{"type":"text","value":". ","line":56},{"type":"inlineCode","value":"same","line":56},{"type":"text","value":" runs workers as the control plane's user for every tenant. By choosing it you say that everyone who writes code works for you.","line":56}],"line":56},{"type":"paragraph","children":[{"type":"text","value":"With ","line":58},{"type":"inlineCode","value":"own","line":58},{"type":"text","value":", workers run as one user that is not the control plane's, and that same user runs every tenant's workers. Only a worker host gives each worker a user and a directory of its own. In process mode, tenants can therefore signal each other's script processes and read each other's bundle cache directory, so the mode fits a site where everyone who writes code works for you.","line":58}],"line":58},{"type":"paragraph","children":[{"type":"text","value":"This is the mode for development, and for a single site where only the operator writes code.","line":60}],"line":60},{"type":"heading","depth":2,"id":"what-is-not-there","children":[{"type":"text","value":"What is not there","line":62}],"line":62},{"type":"list","ordered":false,"children":[{"type":"listItem","children":[{"type":"strong","children":[{"type":"text","value":"No sandbox.","line":64}],"line":64},{"type":"text","value":" A script's process runs as its worker's user with no further container. It can reach the network, and the files that user can read. Sandboxing code from authors you do not trust is not built.","line":64}],"line":64},{"type":"listItem","children":[{"type":"text","value":"A worker never gives its credential to a script's process. Every call a script makes goes through the worker, and only for its own run.","line":65}],"line":65},{"type":"listItem","children":[{"type":"text","value":"Where ","line":66},{"type":"inlineCode","value":"kernel.yama.ptrace_scope","line":66},{"type":"text","value":" is 0, a script could read its worker's memory, credential included. A worker warns at start when that is so.","line":66}],"line":66}],"line":64},{"type":"paragraph","children":[{"type":"text","value":"Run a tenant you do not trust on a worker of its own, on a machine of its own. See ","line":68},{"type":"link","href":"../../how-to/running/run-a-standalone-worker","children":[{"type":"text","value":"Run a standalone worker","line":68}],"line":68},{"type":"text","value":" and ","line":68},{"type":"link","href":"security-hardening","children":[{"type":"text","value":"Hardening","line":68}],"line":68},{"type":"text","value":".","line":68}],"line":68},{"type":"heading","depth":2,"id":"lifetimes","children":[{"type":"text","value":"Lifetimes","line":70}],"line":70},{"type":"table","align":[null,null],"children":[{"type":"tableRow","header":true,"children":[{"type":"tableCell","children":[{"type":"text","value":"What","line":72}]},{"type":"tableCell","children":[{"type":"text","value":"Value","line":72}]}],"line":72},{"type":"tableRow","header":false,"children":[{"type":"tableCell","children":[{"type":"text","value":"A managed worker's credential","line":74}]},{"type":"tableCell","children":[{"type":"text","value":"24 hours","line":74}]}],"line":74},{"type":"tableRow","header":false,"children":[{"type":"tableCell","children":[{"type":"text","value":"A managed worker with nothing to do exits after","line":75}]},{"type":"tableCell","children":[{"type":"text","value":"60 seconds","line":75}]}],"line":75},{"type":"tableRow","header":false,"children":[{"type":"tableCell","children":[{"type":"text","value":"A worker waiting for work holds its request open","line":76}]},{"type":"tableCell","children":[{"type":"text","value":"20 seconds (25 at most)","line":76}]}],"line":76},{"type":"tableRow","header":false,"children":[{"type":"tableCell","children":[{"type":"text","value":"A worker counts as alive for","line":77}]},{"type":"tableCell","children":[{"type":"text","value":"90 seconds after it was last heard from","line":77}]}],"line":77}],"line":72},{"type":"paragraph","children":[{"type":"text","value":"Related: ","line":79},{"type":"link","href":"sizing-and-scaling","children":[{"type":"text","value":"Sizing and scaling","line":79}],"line":79},{"type":"text","value":", ","line":79},{"type":"link","href":"../../reference/settings","children":[{"type":"text","value":"the settings","line":79}],"line":79},{"type":"text","value":".","line":79}],"line":79}]},"description":"Where managed workers run, which user each runs as, what the worker host's firewall refuses, and what is not protected."}
1
+ {"path":"self-host/explanation/running/managed-workers-and-isolation","title":"Workers, users and what a script can reach","tree":{"type":"root","v":1,"children":[{"type":"paragraph","children":[{"type":"text","value":"A script runs on a worker. For a tenant with work and no worker of its own, the instance starts one. Where that happens is the choice that decides what a script can reach.","line":7}],"line":7},{"type":"heading","depth":2,"id":"the-idea","children":[{"type":"text","value":"The idea","line":9}],"line":9},{"type":"paragraph","children":[{"type":"text","value":"Each attempt of a script is a process of its own. It is ended at its time limit or when canceled, and held to the script's ","line":11},{"type":"inlineCode","value":"memoryMb","line":11},{"type":"text","value":" (512 by default). Volvel does not run each script in a container, and it does not sandbox it. In a worker host it gives each worker a user of its own and a network to stand on; workers started in process mode share one user (see below).","line":11}],"line":11},{"type":"paragraph","children":[{"type":"inlineCode","value":"MANAGED_WORKERS","line":13},{"type":"text","value":" chooses where managed workers run:","line":13}],"line":13},{"type":"table","align":[null,null,null],"children":[{"type":"tableRow","header":true,"children":[{"type":"tableCell","children":[{"type":"text","value":"Value","line":15}]},{"type":"tableCell","children":[{"type":"text","value":"Where","line":15}]},{"type":"tableCell","children":[{"type":"text","value":"Default","line":15}]}],"line":15},{"type":"tableRow","header":false,"children":[{"type":"tableCell","children":[{"type":"inlineCode","value":"host","line":17}]},{"type":"tableCell","children":[{"type":"text","value":"In a worker host: the same image, started as ","line":17},{"type":"inlineCode","value":"volvel-worker-host","line":17},{"type":"text","value":", in a container of its own on the ","line":17},{"type":"inlineCode","value":"execution","line":17},{"type":"text","value":" network.","line":17}]},{"type":"tableCell","children":[{"type":"text","value":"The Compose file.","line":17}]}],"line":17},{"type":"tableRow","header":false,"children":[{"type":"tableCell","children":[{"type":"inlineCode","value":"process","line":18}]},{"type":"tableCell","children":[{"type":"text","value":"Beside the control plane, on its machine and network.","line":18}]},{"type":"tableCell","children":[{"type":"text","value":"The code, when the setting is not set. ","line":18},{"type":"inlineCode","value":"true","line":18},{"type":"text","value":", from before there was a worker host, reads as ","line":18},{"type":"inlineCode","value":"process","line":18},{"type":"text","value":".","line":18}]}],"line":18},{"type":"tableRow","header":false,"children":[{"type":"tableCell","children":[{"type":"inlineCode","value":"false","line":19}]},{"type":"tableCell","children":[{"type":"text","value":"None. Every tenant is served by standalone workers.","line":19}]},{"type":"tableCell","children":[]}],"line":19}],"line":15},{"type":"heading","depth":2,"id":"a-worker-host","children":[{"type":"text","value":"A worker host","line":21}],"line":21},{"type":"paragraph","children":[{"type":"text","value":"The host asks the control plane for a tenant with work, gets a credential for it and starts a worker with it. Each live worker has:","line":23}],"line":23},{"type":"list","ordered":false,"children":[{"type":"listItem","children":[{"type":"text","value":"a user and group of its own: the lowest free one of a range that starts at ","line":25},{"type":"inlineCode","value":"MANAGED_WORKER_UID","line":25},{"type":"text","value":" and ","line":25},{"type":"inlineCode","value":"MANAGED_WORKER_GID","line":25},{"type":"text","value":" (10001) and holds ","line":25},{"type":"inlineCode","value":"MANAGED_WORKER_USERS","line":25},{"type":"text","value":" ids (256). The host never runs more workers at once than that;","line":25}],"line":25},{"type":"listItem","children":[{"type":"text","value":"a directory of its own, mode ","line":26},{"type":"inlineCode","value":"0700","line":26},{"type":"text","value":", that is its ","line":26},{"type":"inlineCode","value":"HOME","line":26},{"type":"text","value":", its ","line":26},{"type":"inlineCode","value":"TMPDIR","line":26},{"type":"text","value":" and its working directory, and is removed when the worker ends.","line":26}],"line":26}],"line":25},{"type":"paragraph","children":[{"type":"text","value":"One worker cannot read, write, list or signal another worker or the host. The host holds only the capabilities ","line":28},{"type":"inlineCode","value":"SETUID","line":28},{"type":"text","value":", ","line":28},{"type":"inlineCode","value":"SETGID","line":28},{"type":"text","value":", ","line":28},{"type":"inlineCode","value":"CHOWN","line":28},{"type":"text","value":", ","line":28},{"type":"inlineCode","value":"DAC_OVERRIDE","line":28},{"type":"text","value":", ","line":28},{"type":"inlineCode","value":"KILL","line":28},{"type":"text","value":" and ","line":28},{"type":"inlineCode","value":"NET_ADMIN","line":28},{"type":"text","value":". It says at start when it lacks ","line":28},{"type":"inlineCode","value":"CAP_KILL","line":28},{"type":"text","value":".","line":28}],"line":28},{"type":"paragraph","children":[{"type":"text","value":"The host and the control plane share ","line":30},{"type":"inlineCode","value":"WORKER_HOST_TOKEN","line":30},{"type":"text","value":". The host never gives it to a worker. Each tenant has at most one managed worker at a time, however many replicas or hosts run.","line":30}],"line":30},{"type":"paragraph","children":[{"type":"text","value":"The worker host is the only program of the image that stays root. The image starts as root, because Fly runs every process of an app as the image's user and the host needs root to give each worker a user. The control plane becomes ","line":32},{"type":"inlineCode","value":"node","line":32},{"type":"text","value":" before it starts, and a standalone worker becomes ","line":32},{"type":"inlineCode","value":"node","line":32},{"type":"text","value":" once it has read its credential. No program in the image is set-user-ID or set-group-ID, so a script has no ","line":32},{"type":"inlineCode","value":"su","line":32},{"type":"text","value":" or ","line":32},{"type":"inlineCode","value":"mount","line":32},{"type":"text","value":" to climb with.","line":32}],"line":32},{"type":"heading","depth":3,"id":"a-user-is-emptied-before-it-is-handed-on","children":[{"type":"text","value":"A user is emptied before it is handed on","line":34}],"line":34},{"type":"paragraph","children":[{"type":"text","value":"A worker's user is taken from the range and given again after its worker ends. Before that, the host kills every process of the user and removes its files from ","line":36},{"type":"inlineCode","value":"/tmp","line":36},{"type":"text","value":", ","line":36},{"type":"inlineCode","value":"/var/tmp","line":36},{"type":"text","value":" and ","line":36},{"type":"inlineCode","value":"/dev/shm","line":36},{"type":"text","value":". It does the same for every user of the range when it starts. So a process a script left behind does not outlive its worker, and the next tenant's worker does not share a user with it.","line":36}],"line":36},{"type":"paragraph","children":[{"type":"text","value":"Workers write in no place they share. In the worker host's container, ","line":38},{"type":"inlineCode","value":"/tmp","line":38},{"type":"text","value":", ","line":38},{"type":"inlineCode","value":"/var/tmp","line":38},{"type":"text","value":" and ","line":38},{"type":"inlineCode","value":"/dev/shm","line":38},{"type":"text","value":" are closed to them: each keeps its temporary files in its own directory, its ","line":38},{"type":"inlineCode","value":"HOME","line":38},{"type":"text","value":" and ","line":38},{"type":"inlineCode","value":"TMPDIR","line":38},{"type":"text","value":". So one tenant's script cannot leave a file for another's to read, or one under a name another's will use.","line":38}],"line":38},{"type":"paragraph","children":[{"type":"text","value":"If a process of the user is still there after every try, the host logs the error \"a worker's user could not be emptied\" and never gives that user again. When it finds something left, it logs the warning \"a worker left processes or files behind: they were removed\".","line":40}],"line":40},{"type":"heading","depth":3,"id":"the-firewall","children":[{"type":"text","value":"The firewall","line":42}],"line":42},{"type":"paragraph","children":[{"type":"text","value":"With ","line":44},{"type":"inlineCode","value":"NET_ADMIN","line":44},{"type":"text","value":", the host writes one nftables table, ","line":44},{"type":"inlineCode","value":"inet volvel_workers","line":44},{"type":"text","value":", at start. It loads the table at once, all of it or none, and reads it back. The rules match the worker's user. If they cannot be loaded, the host logs an error and stops: no worker starts without them. Open to a worker are:","line":44}],"line":44},{"type":"list","ordered":false,"children":[{"type":"listItem","children":[{"type":"text","value":"the control plane, on its own port only (from ","line":46},{"type":"inlineCode","value":"VOLVEL_URL","line":46},{"type":"text","value":" or ","line":46},{"type":"inlineCode","value":"--url","line":46},{"type":"text","value":");","line":46}],"line":46},{"type":"listItem","children":[{"type":"text","value":"the name servers, on port 53 only. Docker's name server at ","line":47},{"type":"inlineCode","value":"127.0.0.11","line":47},{"type":"text","value":" is open on any port, because Docker rewrites the port;","line":47}],"line":47},{"type":"listItem","children":[{"type":"text","value":"what ","line":48},{"type":"inlineCode","value":"WORKER_EGRESS_ALLOW","line":48},{"type":"text","value":" lists: networks and host names, comma separated, on any port, empty unless you set it;","line":48}],"line":48},{"type":"listItem","children":[{"type":"text","value":"the public internet.","line":49}],"line":49}],"line":46},{"type":"paragraph","children":[{"type":"text","value":"Refused are every private, loopback, link-local and special IPv4 and IPv6 range (cloud metadata among them; mapped, NAT64, 6to4, Teredo and site-local forms too), and the machine's own addresses.","line":51}],"line":51},{"type":"paragraph","children":[{"type":"text","value":"The host looks the names up again every 30 seconds and refills the allowed addresses when an answer changes, such as a control plane machine that was replaced or restarted. A lookup that fails leaves workers with less access, never more. When the control plane's name gives no address yet, the host warns and keeps looking.","line":53}],"line":53},{"type":"paragraph","children":[{"type":"text","value":"A packet with no owning socket, such as IPv6 neighbor discovery the kernel sends itself, is not held to the rules.","line":55}],"line":55},{"type":"paragraph","children":[{"type":"text","value":"Without ","line":57},{"type":"inlineCode","value":"NET_ADMIN","line":57},{"type":"text","value":", the host says so in its log and starts, and only the container's network keeps workers from the instance's services. Block ","line":57},{"type":"inlineCode","value":"169.254.169.254","line":57},{"type":"text","value":" at the machine if the instance runs in a cloud.","line":57}],"line":57},{"type":"paragraph","children":[{"type":"inlineCode","value":"WORKER_EGRESS_ALLOW","line":59},{"type":"text","value":" is not ","line":59},{"type":"inlineCode","value":"EGRESS_ALLOW","line":59},{"type":"text","value":". See ","line":59},{"type":"link","href":"egress-and-offline","children":[{"type":"text","value":"What an instance reaches","line":59}],"line":59},{"type":"text","value":".","line":59}],"line":59},{"type":"heading","depth":3,"id":"what-was-tried","children":[{"type":"text","value":"What was tried","line":61}],"line":61},{"type":"paragraph","children":[{"type":"text","value":"On 28 November 2026, on Docker Compose and on Fly.io, two tenants' scripts ran on one worker host under load, side by side and one after the other on the same reused user. They had different users. They could not read another user's process environment or memory, signal it, or read the host's environment. They could not become root: no capabilities and no set-user-ID files. They could not read or write another user's files in ","line":63},{"type":"inlineCode","value":"/tmp","line":63},{"type":"text","value":" and ","line":63},{"type":"inlineCode","value":"/dev/shm","line":63},{"type":"text","value":". A process left behind did not outlive its worker. The database, the object store, other apps of the Fly organization, the Fly machines API, cloud metadata and the control plane's other ports were all refused.","line":63}],"line":63},{"type":"heading","depth":3,"id":"stopping","children":[{"type":"text","value":"Stopping","line":65}],"line":65},{"type":"paragraph","children":[{"type":"text","value":"A stopping host asks each worker to finish for up to 30 seconds, ends it, and gives up 10 seconds later with \"a worker could not be stopped and is left running\". The Compose file gives the host ","line":67},{"type":"inlineCode","value":"stop_grace_period: 60s","line":67},{"type":"text","value":" for that.","line":67}],"line":67},{"type":"heading","depth":2,"id":"which-mode-to-use","children":[{"type":"text","value":"Which mode to use","line":69}],"line":69},{"type":"paragraph","children":[{"type":"text","value":"An instance whose tenants write code and do not trust each other runs ","line":71},{"type":"inlineCode","value":"MANAGED_WORKERS=host","line":71},{"type":"text","value":". ","line":71},{"type":"inlineCode","value":"process","line":71},{"type":"text","value":" mode runs every tenant's scripts as one user, and fits an instance where only the operator writes code.","line":71}],"line":71},{"type":"heading","depth":2,"id":"process-mode","children":[{"type":"text","value":"Process mode","line":73}],"line":73},{"type":"paragraph","children":[{"type":"text","value":"Without a worker host, the control plane starts workers itself. They can reach whatever the control plane reaches. So it starts one only for a tenant whose code only the operator writes. A tenant whose code is written by anyone else, a member or a group with ","line":75},{"type":"inlineCode","value":"code:write","line":75},{"type":"text","value":" who holds no instance-wide role, or any service account, gets none. Its Workers page says it runs on standalone workers only.","line":75}],"line":75},{"type":"paragraph","children":[{"type":"text","value":"Workers in this mode run as a user other than the control plane's where the container may switch users, but one user for all tenants. The image starts the control plane on ","line":77},{"type":"inlineCode","value":"node-cp","line":77},{"type":"text","value":" and workers on plain Node, which cannot switch back. Without ","line":77},{"type":"inlineCode","value":"CAP_SETUID","line":77},{"type":"text","value":" and ","line":77},{"type":"inlineCode","value":"CAP_SETGID","line":77},{"type":"text","value":" it starts the control plane on plain Node, says so, and workers run as the control plane's own user.","line":77}],"line":77},{"type":"paragraph","children":[{"type":"inlineCode","value":"MANAGED_WORKER_USER","line":79},{"type":"text","value":" has two values: ","line":79},{"type":"inlineCode","value":"own","line":79},{"type":"text","value":" (the default) and ","line":79},{"type":"inlineCode","value":"same","line":79},{"type":"text","value":". ","line":79},{"type":"inlineCode","value":"same","line":79},{"type":"text","value":" runs workers as the control plane's user for every tenant. By choosing it you say that everyone who writes code works for you.","line":79}],"line":79},{"type":"paragraph","children":[{"type":"text","value":"With ","line":81},{"type":"inlineCode","value":"own","line":81},{"type":"text","value":", workers run as one user that is not the control plane's, and that same user runs every tenant's workers. Only a worker host gives each worker a user and a directory of its own. In process mode, tenants can therefore signal each other's script processes and read each other's bundle cache directory, so the mode fits a site where everyone who writes code works for you.","line":81}],"line":81},{"type":"paragraph","children":[{"type":"text","value":"This is the mode for development, and for a single site where only the operator writes code.","line":83}],"line":83},{"type":"heading","depth":2,"id":"what-is-not-there","children":[{"type":"text","value":"What is not there","line":85}],"line":85},{"type":"list","ordered":false,"children":[{"type":"listItem","children":[{"type":"strong","children":[{"type":"text","value":"No sandbox.","line":87}],"line":87},{"type":"text","value":" A script's process runs as its worker's user with no further container. It can reach the network, and the files that user can read. A worker host separates tenants by user, directory and firewall. It does not give each run a box of its own. Per-run namespaces or a virtual machine per tenant are planned (issue #37) and not built.","line":87}],"line":87},{"type":"listItem","children":[{"type":"text","value":"A worker never gives its credential to a script's process. Every call a script makes goes through the worker, and only for its own run.","line":88}],"line":88},{"type":"listItem","children":[{"type":"text","value":"A script sees the list of processes on its machine and their command lines.","line":89}],"line":89},{"type":"listItem","children":[{"type":"text","value":"All workers of a host share one network namespace. The firewall keeps them apart by user.","line":90}],"line":90},{"type":"listItem","children":[{"type":"text","value":"A script can read its own worker's memory, and so its own tenant's worker credential. That is the same tenant's credential.","line":91}],"line":91},{"type":"listItem","children":[{"type":"text","value":"A process a script starts outlives the script's time and memory limits, until its worker ends.","line":92}],"line":92},{"type":"listItem","children":[{"type":"text","value":"Fly's kernel has no Yama ","line":93},{"type":"inlineCode","value":"ptrace_scope","line":93},{"type":"text","value":". Reading another user's process still needs a capability no worker has. Where ","line":93},{"type":"inlineCode","value":"kernel.yama.ptrace_scope","line":93},{"type":"text","value":" is 0, a worker warns at start.","line":93}],"line":93}],"line":87},{"type":"paragraph","children":[{"type":"text","value":"Run a tenant you do not trust on a worker of its own, on a machine of its own. See ","line":95},{"type":"link","href":"../../how-to/running/run-a-standalone-worker","children":[{"type":"text","value":"Run a standalone worker","line":95}],"line":95},{"type":"text","value":" and ","line":95},{"type":"link","href":"security-hardening","children":[{"type":"text","value":"Hardening","line":95}],"line":95},{"type":"text","value":".","line":95}],"line":95},{"type":"heading","depth":2,"id":"lifetimes","children":[{"type":"text","value":"Lifetimes","line":97}],"line":97},{"type":"table","align":[null,null],"children":[{"type":"tableRow","header":true,"children":[{"type":"tableCell","children":[{"type":"text","value":"What","line":99}]},{"type":"tableCell","children":[{"type":"text","value":"Value","line":99}]}],"line":99},{"type":"tableRow","header":false,"children":[{"type":"tableCell","children":[{"type":"text","value":"A managed worker's credential","line":101}]},{"type":"tableCell","children":[{"type":"text","value":"24 hours","line":101}]}],"line":101},{"type":"tableRow","header":false,"children":[{"type":"tableCell","children":[{"type":"text","value":"A managed worker with nothing to do exits after","line":102}]},{"type":"tableCell","children":[{"type":"text","value":"60 seconds","line":102}]}],"line":102},{"type":"tableRow","header":false,"children":[{"type":"tableCell","children":[{"type":"text","value":"A worker waiting for work holds its request open","line":103}]},{"type":"tableCell","children":[{"type":"text","value":"20 seconds (25 at most)","line":103}]}],"line":103},{"type":"tableRow","header":false,"children":[{"type":"tableCell","children":[{"type":"text","value":"A worker counts as alive for","line":104}]},{"type":"tableCell","children":[{"type":"text","value":"90 seconds after it was last heard from","line":104}]}],"line":104}],"line":99},{"type":"paragraph","children":[{"type":"text","value":"Related: ","line":106},{"type":"link","href":"sizing-and-scaling","children":[{"type":"text","value":"Sizing and scaling","line":106}],"line":106},{"type":"text","value":", ","line":106},{"type":"link","href":"../../reference/settings","children":[{"type":"text","value":"the settings","line":106}],"line":106},{"type":"text","value":".","line":106}],"line":106}]},"description":"Where managed workers run, which user each runs as, what the worker host's firewall refuses, and what is not protected."}
@@ -1 +1 @@
1
- {"path":"self-host/explanation/running/security-hardening","title":"What is protected, and a hardening checklist","tree":{"type":"root","v":1,"children":[{"type":"paragraph","children":[{"type":"text","value":"This page says what an instance protects, and what is left to you. The full list is in ","line":7},{"type":"inlineCode","value":"SECURITY.md","line":7},{"type":"text","value":" in the repository, and the ideas behind it are here.","line":7}],"line":7},{"type":"heading","depth":2,"id":"the-idea","children":[{"type":"text","value":"The idea","line":9}],"line":9},{"type":"paragraph","children":[{"type":"text","value":"Two rules hold the design:","line":11}],"line":11},{"type":"list","ordered":false,"children":[{"type":"listItem","children":[{"type":"strong","children":[{"type":"text","value":"The control plane never runs a tenant's code.","line":13}],"line":13},{"type":"text","value":" Work that needs a tenant's code, such as reading the schema a script declares, is a task that one of the tenant's workers does, in a process of its own.","line":13}],"line":13},{"type":"listItem","children":[{"type":"strong","children":[{"type":"text","value":"The control plane reaches an address a tenant chose only through a named list, behind an egress guard.","line":14}],"line":14},{"type":"text","value":" See ","line":14},{"type":"link","href":"egress-and-offline","children":[{"type":"text","value":"What an instance reaches","line":14}],"line":14},{"type":"text","value":".","line":14}],"line":14}],"line":13},{"type":"heading","depth":2,"id":"what-it-protects","children":[{"type":"text","value":"What it protects","line":16}],"line":16},{"type":"table","align":[null,null],"children":[{"type":"tableRow","header":true,"children":[{"type":"tableCell","children":[{"type":"text","value":"What","line":18}]},{"type":"tableCell","children":[{"type":"text","value":"How","line":18}]}],"line":18},{"type":"tableRow","header":false,"children":[{"type":"tableCell","children":[{"type":"text","value":"A tenant from another tenant","line":20}]},{"type":"tableCell","children":[{"type":"text","value":"Every record carries its tenant's ID and one authorization function checks every request. A request for another tenant's ID answers 404.","line":20}]}],"line":20},{"type":"tableRow","header":false,"children":[{"type":"tableCell","children":[{"type":"text","value":"A tenant from the operator","line":21}]},{"type":"tableCell","children":[{"type":"text","value":"An operator has no access inside a tenant by default. Access is a time-limited grant with a reason, which the tenant's admins can see and end. Everything done under it is audited.","line":21}]}],"line":21},{"type":"tableRow","header":false,"children":[{"type":"tableCell","children":[{"type":"text","value":"Secrets at rest","line":22}]},{"type":"tableCell","children":[{"type":"text","value":"Each tenant has its own key, wrapped by the master key. See ","line":22},{"type":"link","href":"keys-and-secrets","children":[{"type":"text","value":"the master key","line":22}],"line":22},{"type":"text","value":".","line":22}]}],"line":22},{"type":"tableRow","header":false,"children":[{"type":"tableCell","children":[{"type":"text","value":"A person's rows from another person","line":23}]},{"type":"tableCell","children":[{"type":"text","value":"Postgres row-level security on every custom table. Row requests sign in as a role that owns nothing.","line":23}]}],"line":23},{"type":"tableRow","header":false,"children":[{"type":"tableCell","children":[{"type":"text","value":"The console from a tenant's app","line":24}]},{"type":"tableCell","children":[{"type":"text","value":"A member's console session counts only at the instance's own address. Apps written as code are served only at ","line":24},{"type":"inlineCode","value":"APPS_URL","line":24},{"type":"text","value":".","line":24}]}],"line":24},{"type":"tableRow","header":false,"children":[{"type":"tableCell","children":[{"type":"text","value":"What happened","line":25}]},{"type":"tableCell","children":[{"type":"text","value":"One write path records an audit entry in the same transaction as the change. Entries cannot be changed or deleted one by one.","line":25}]}],"line":25},{"type":"tableRow","header":false,"children":[{"type":"tableCell","children":[{"type":"text","value":"A worker's credential from a script","line":26}]},{"type":"tableCell","children":[{"type":"text","value":"The script's process is never given it.","line":26}]}],"line":26}],"line":18},{"type":"heading","depth":2,"id":"what-it-does-not-protect-against","children":[{"type":"text","value":"What it does not protect against","line":28}],"line":28},{"type":"list","ordered":false,"children":[{"type":"listItem","children":[{"type":"strong","children":[{"type":"text","value":"Code a tenant deploys, from what its worker can reach.","line":30}],"line":30},{"type":"text","value":" No sandbox. Run a tenant you do not trust on a worker of its own, on a machine of its own.","line":30}],"line":30},{"type":"listItem","children":[{"type":"strong","children":[{"type":"text","value":"Workers started beside the control plane","line":31}],"line":31},{"type":"text","value":" (","line":31},{"type":"inlineCode","value":"MANAGED_WORKERS=process","line":31},{"type":"text","value":"). They share its network, and with ","line":31},{"type":"inlineCode","value":"MANAGED_WORKER_USER=same","line":31},{"type":"text","value":" or where the container may not switch users, its user.","line":31}],"line":31},{"type":"listItem","children":[{"type":"strong","children":[{"type":"text","value":"A worker host without ","line":32},{"type":"inlineCode","value":"NET_ADMIN","line":32},{"type":"text","value":".","line":32}],"line":32},{"type":"text","value":" Block link-local addresses at the machine.","line":32}],"line":32},{"type":"listItem","children":[{"type":"strong","children":[{"type":"text","value":"An operator with access to the database, the master key or the host.","line":33}],"line":33},{"type":"text","value":" Such a person can read everything. Use a dedicated instance where that matters.","line":33}],"line":33},{"type":"listItem","children":[{"type":"strong","children":[{"type":"text","value":"A lost master key.","line":34}],"line":34},{"type":"text","value":" Nothing encrypted can be recovered without it.","line":34}],"line":34},{"type":"listItem","children":[{"type":"strong","children":[{"type":"text","value":"Apps on the console's address","line":35}],"line":35},{"type":"text","value":", if you set ","line":35},{"type":"inlineCode","value":"APPS_ON_CONSOLE_ADDRESS=true","line":35},{"type":"text","value":". An app then runs as whoever opens it.","line":35}],"line":35},{"type":"listItem","children":[{"type":"strong","children":[{"type":"text","value":"One tenant's app written as code, from another tenant's.","line":36}],"line":36},{"type":"text","value":" Every app written as code is served at one address, ","line":36},{"type":"inlineCode","value":"APPS_URL","line":36},{"type":"text","value":" or the console's own, which a browser treats as one site. A page of tenant A's app can read and change what tenant B's app shows, as any visitor who is signed in to B's apps in that browser. This was run in a browser, for both addresses. On an instance whose tenants do not trust each other, give the right to deploy an app written as code (","line":36},{"type":"inlineCode","value":"deployment:write","line":36},{"type":"text","value":") only to people you trust, until apps have addresses of their own. A hostname a tenant registers for an app is an origin of its own, and keeps the sign-in used there from other tenants' pages. It does not take the app off the shared address, where anyone who signs in is exposed again.","line":36}],"line":36},{"type":"listItem","children":[{"type":"strong","children":[{"type":"text","value":"A flood from many addresses.","line":37}],"line":37},{"type":"text","value":" Limits are per address and are counted in Postgres across every replica. The address is the one your proxy saw: set ","line":37},{"type":"inlineCode","value":"TRUSTED_PROXIES","line":37},{"type":"text","value":" to match your proxies. Put a proxy with limits of its own in front of a public app.","line":37}],"line":37},{"type":"listItem","children":[{"type":"strong","children":[{"type":"text","value":"A column, from someone who may read the row.","line":38}],"line":38},{"type":"text","value":" Row rules decide which rows, not which columns.","line":38}],"line":38}],"line":30},{"type":"heading","depth":2,"id":"checklist","children":[{"type":"text","value":"Checklist","line":40}],"line":40},{"type":"list","ordered":false,"children":[{"type":"listItem","children":[{"type":"text","value":"A TLS-terminating proxy is in front. The control plane speaks plain HTTP and listens on ","line":42},{"type":"inlineCode","value":"127.0.0.1:8080","line":42},{"type":"text","value":" in the Compose file. See ","line":42},{"type":"link","href":"../../how-to/running/put-a-proxy-in-front","children":[{"type":"text","value":"Put a proxy in front","line":42}],"line":42},{"type":"text","value":".","line":42}],"line":42},{"type":"listItem","children":[{"type":"inlineCode","value":"TRUSTED_PROXIES","line":43},{"type":"text","value":" matches the proxies in front (","line":43},{"type":"inlineCode","value":"0","line":43},{"type":"text","value":" when none), and the proxy overwrites ","line":43},{"type":"inlineCode","value":"X-Forwarded-For","line":43},{"type":"text","value":", ","line":43},{"type":"inlineCode","value":"X-Forwarded-Host","line":43},{"type":"text","value":" and ","line":43},{"type":"inlineCode","value":"X-Forwarded-Proto","line":43},{"type":"text","value":".","line":43}],"line":43},{"type":"listItem","children":[{"type":"inlineCode","value":"PUBLIC_URL","line":44},{"type":"text","value":" is the address people type. Cookies are marked Secure by its scheme.","line":44}],"line":44},{"type":"listItem","children":[{"type":"inlineCode","value":"APPS_URL","line":45},{"type":"text","value":" is a different host from ","line":45},{"type":"inlineCode","value":"PUBLIC_URL","line":45},{"type":"text","value":", if tenants write apps as code. It keeps the console's sign-in from an app, and does not keep one tenant's app from another's: see above.","line":45}],"line":45},{"type":"listItem","children":[{"type":"inlineCode","value":"BOOTSTRAP_ADMIN_EMAIL","line":46},{"type":"text","value":" and ","line":46},{"type":"inlineCode","value":"BOOTSTRAP_ADMIN_PASSWORD","line":46},{"type":"text","value":" are removed after the first start.","line":46}],"line":46},{"type":"listItem","children":[{"type":"inlineCode","value":"MASTER_KEY","line":47},{"type":"text","value":" is kept in a second place, and every key is kept as long as the backups it sealed.","line":47}],"line":47},{"type":"listItem","children":[{"type":"text","value":"Backups run, and a restore has been tried. See ","line":48},{"type":"link","href":"../../how-to/running/restore-an-instance","children":[{"type":"text","value":"Restore an instance","line":48}],"line":48},{"type":"text","value":".","line":48}],"line":48},{"type":"listItem","children":[{"type":"text","value":"The worker host has ","line":49},{"type":"inlineCode","value":"NET_ADMIN","line":49},{"type":"text","value":", and ","line":49},{"type":"inlineCode","value":"WORKER_EGRESS_ALLOW","line":49},{"type":"text","value":" lists only what scripts need.","line":49}],"line":49},{"type":"listItem","children":[{"type":"inlineCode","value":"METRICS_TOKEN","line":50},{"type":"text","value":" is set if a scraper reads the metrics, and is at least 32 characters.","line":50}],"line":50},{"type":"listItem","children":[{"type":"text","value":"Postgres and the object store are not reachable from outside the instance.","line":51}],"line":51}],"line":42},{"type":"paragraph","children":[{"type":"text","value":"Related: ","line":53},{"type":"link","href":"../../reference/running/security-reports","children":[{"type":"text","value":"Report a vulnerability","line":53}],"line":53},{"type":"text","value":", ","line":53},{"type":"link","href":"../../reference/running/versions-and-support","children":[{"type":"text","value":"Supported versions","line":53}],"line":53},{"type":"text","value":".","line":53}],"line":53}]},"description":"What an instance protects and from whom, what it does not protect against, and the settings to check before anyone else can reach it."}
1
+ {"path":"self-host/explanation/running/security-hardening","title":"What is protected, and a hardening checklist","tree":{"type":"root","v":1,"children":[{"type":"paragraph","children":[{"type":"text","value":"This page says what an instance protects, and what is left to you. The full list is in ","line":7},{"type":"inlineCode","value":"SECURITY.md","line":7},{"type":"text","value":" in the repository, and the ideas behind it are here.","line":7}],"line":7},{"type":"heading","depth":2,"id":"the-idea","children":[{"type":"text","value":"The idea","line":9}],"line":9},{"type":"paragraph","children":[{"type":"text","value":"Two rules hold the design:","line":11}],"line":11},{"type":"list","ordered":false,"children":[{"type":"listItem","children":[{"type":"strong","children":[{"type":"text","value":"The control plane never runs a tenant's code.","line":13}],"line":13},{"type":"text","value":" Work that needs a tenant's code, such as reading the schema a script declares, is a task that one of the tenant's workers does, in a process of its own.","line":13}],"line":13},{"type":"listItem","children":[{"type":"strong","children":[{"type":"text","value":"The control plane reaches an address a tenant chose only through a named list, behind an egress guard.","line":14}],"line":14},{"type":"text","value":" See ","line":14},{"type":"link","href":"egress-and-offline","children":[{"type":"text","value":"What an instance reaches","line":14}],"line":14},{"type":"text","value":".","line":14}],"line":14}],"line":13},{"type":"heading","depth":2,"id":"what-it-protects","children":[{"type":"text","value":"What it protects","line":16}],"line":16},{"type":"table","align":[null,null],"children":[{"type":"tableRow","header":true,"children":[{"type":"tableCell","children":[{"type":"text","value":"What","line":18}]},{"type":"tableCell","children":[{"type":"text","value":"How","line":18}]}],"line":18},{"type":"tableRow","header":false,"children":[{"type":"tableCell","children":[{"type":"text","value":"A tenant from another tenant","line":20}]},{"type":"tableCell","children":[{"type":"text","value":"Every record carries its tenant's ID and one authorization function checks every request. A request for another tenant's ID answers 404.","line":20}]}],"line":20},{"type":"tableRow","header":false,"children":[{"type":"tableCell","children":[{"type":"text","value":"A tenant from the operator","line":21}]},{"type":"tableCell","children":[{"type":"text","value":"An operator has no access inside a tenant by default. Access is a time-limited grant with a reason, which the tenant's admins can see and end. Everything done under it is audited.","line":21}]}],"line":21},{"type":"tableRow","header":false,"children":[{"type":"tableCell","children":[{"type":"text","value":"Secrets at rest","line":22}]},{"type":"tableCell","children":[{"type":"text","value":"Each tenant has its own key, wrapped by the master key. See ","line":22},{"type":"link","href":"keys-and-secrets","children":[{"type":"text","value":"the master key","line":22}],"line":22},{"type":"text","value":".","line":22}]}],"line":22},{"type":"tableRow","header":false,"children":[{"type":"tableCell","children":[{"type":"text","value":"A person's rows from another person","line":23}]},{"type":"tableCell","children":[{"type":"text","value":"Postgres row-level security on every custom table. Row requests sign in as a role that owns nothing.","line":23}]}],"line":23},{"type":"tableRow","header":false,"children":[{"type":"tableCell","children":[{"type":"text","value":"The console from a tenant's app","line":24}]},{"type":"tableCell","children":[{"type":"text","value":"A member's console session counts only at the instance's own address. Every page of an app written as code is served sandboxed, so it has no origin and is sent no cookie. Even at the console's address it acts with a token that reaches only what apps use.","line":24}]}],"line":24},{"type":"tableRow","header":false,"children":[{"type":"tableCell","children":[{"type":"text","value":"One tenant's app written as code from another tenant's","line":25}]},{"type":"tableCell","children":[{"type":"text","value":"Each page is sandboxed, with no origin, no cookie and no storage. It cannot read another page, and it acts with a ten-minute token for one tenant. The API answers it without credentials, and ignores a cookie it sends.","line":25}]}],"line":25},{"type":"tableRow","header":false,"children":[{"type":"tableCell","children":[{"type":"text","value":"What happened","line":26}]},{"type":"tableCell","children":[{"type":"text","value":"One write path records an audit entry in the same transaction as the change. Entries cannot be changed or deleted one by one.","line":26}]}],"line":26},{"type":"tableRow","header":false,"children":[{"type":"tableCell","children":[{"type":"text","value":"A worker's credential from a script","line":27}]},{"type":"tableCell","children":[{"type":"text","value":"The script's process is never given it.","line":27}]}],"line":27}],"line":18},{"type":"heading","depth":2,"id":"what-it-does-not-protect-against","children":[{"type":"text","value":"What it does not protect against","line":29}],"line":29},{"type":"list","ordered":false,"children":[{"type":"listItem","children":[{"type":"strong","children":[{"type":"text","value":"Code a tenant deploys, from what its worker can reach.","line":31}],"line":31},{"type":"text","value":" No sandbox. A worker host gives each worker a user, a directory and a firewall, not a box of its own: a script sees the processes of its machine and their command lines, and a process it starts outlives its limits until its worker ends. A box per run or per tenant is not built (issue #37). Run a tenant you do not trust on a worker of its own, on a machine of its own.","line":31}],"line":31},{"type":"listItem","children":[{"type":"strong","children":[{"type":"text","value":"Workers started beside the control plane","line":32}],"line":32},{"type":"text","value":" (","line":32},{"type":"inlineCode","value":"MANAGED_WORKERS=process","line":32},{"type":"text","value":"). An instance whose tenants write code and do not trust each other runs ","line":32},{"type":"inlineCode","value":"MANAGED_WORKERS=host","line":32},{"type":"text","value":". In ","line":32},{"type":"inlineCode","value":"process","line":32},{"type":"text","value":" mode every tenant's scripts run as one user, so it is for an instance where only the operator writes code. They share its network, and with ","line":32},{"type":"inlineCode","value":"MANAGED_WORKER_USER=same","line":32},{"type":"text","value":" or where the container may not switch users, its user.","line":32}],"line":32},{"type":"listItem","children":[{"type":"strong","children":[{"type":"text","value":"A worker host without ","line":33},{"type":"inlineCode","value":"NET_ADMIN","line":33},{"type":"text","value":".","line":33}],"line":33},{"type":"text","value":" It starts, with only the container's network to keep workers from the instance's services. Block link-local addresses at the machine.","line":33}],"line":33},{"type":"listItem","children":[{"type":"strong","children":[{"type":"text","value":"An operator with access to the database, the master key or the host.","line":34}],"line":34},{"type":"text","value":" Such a person can read everything. Use a dedicated instance where that matters.","line":34}],"line":34},{"type":"listItem","children":[{"type":"strong","children":[{"type":"text","value":"A lost master key.","line":35}],"line":35},{"type":"text","value":" Nothing encrypted can be recovered without it.","line":35}],"line":35},{"type":"listItem","children":[{"type":"strong","children":[{"type":"text","value":"What an app's files hold.","line":36}],"line":36},{"type":"text","value":" An app's scripts, styles, fonts and pictures are served without a sign-in, at an address made from their content. Anyone who knows it can fetch it. An app's files must hold no secret: they are sent to every visitor in any case.","line":36}],"line":36},{"type":"listItem","children":[{"type":"strong","children":[{"type":"text","value":"A flood from many addresses.","line":37}],"line":37},{"type":"text","value":" Limits are per address and are counted in Postgres across every replica. The address is the one your proxy saw: set ","line":37},{"type":"inlineCode","value":"TRUSTED_PROXIES","line":37},{"type":"text","value":" to match your proxies. Put a proxy with limits of its own in front of a public app.","line":37}],"line":37},{"type":"listItem","children":[{"type":"strong","children":[{"type":"text","value":"A column, from someone who may read the row.","line":38}],"line":38},{"type":"text","value":" Row rules decide which rows, not which columns.","line":38}],"line":38}],"line":31},{"type":"heading","depth":2,"id":"checklist","children":[{"type":"text","value":"Checklist","line":40}],"line":40},{"type":"list","ordered":false,"children":[{"type":"listItem","children":[{"type":"text","value":"A TLS-terminating proxy is in front. The control plane speaks plain HTTP and listens on ","line":42},{"type":"inlineCode","value":"127.0.0.1:8080","line":42},{"type":"text","value":" in the Compose file. See ","line":42},{"type":"link","href":"../../how-to/running/put-a-proxy-in-front","children":[{"type":"text","value":"Put a proxy in front","line":42}],"line":42},{"type":"text","value":".","line":42}],"line":42},{"type":"listItem","children":[{"type":"inlineCode","value":"TRUSTED_PROXIES","line":43},{"type":"text","value":" matches the proxies in front (","line":43},{"type":"inlineCode","value":"0","line":43},{"type":"text","value":" when none), and the proxy overwrites ","line":43},{"type":"inlineCode","value":"X-Forwarded-For","line":43},{"type":"text","value":", ","line":43},{"type":"inlineCode","value":"X-Forwarded-Host","line":43},{"type":"text","value":" and ","line":43},{"type":"inlineCode","value":"X-Forwarded-Proto","line":43},{"type":"text","value":".","line":43}],"line":43},{"type":"listItem","children":[{"type":"inlineCode","value":"PUBLIC_URL","line":44},{"type":"text","value":" is the address people type. Cookies are marked Secure by its scheme.","line":44}],"line":44},{"type":"listItem","children":[{"type":"inlineCode","value":"APPS_URL","line":45},{"type":"text","value":", if you set it, is a different host from ","line":45},{"type":"inlineCode","value":"PUBLIC_URL","line":45},{"type":"text","value":". It is not needed to keep tenants' apps apart: every page of an app written as code is sandboxed.","line":45}],"line":45},{"type":"listItem","children":[{"type":"inlineCode","value":"BOOTSTRAP_ADMIN_EMAIL","line":46},{"type":"text","value":" and ","line":46},{"type":"inlineCode","value":"BOOTSTRAP_ADMIN_PASSWORD","line":46},{"type":"text","value":" are removed after the first start.","line":46}],"line":46},{"type":"listItem","children":[{"type":"inlineCode","value":"MASTER_KEY","line":47},{"type":"text","value":" is kept in a second place, and every key is kept as long as the backups it sealed.","line":47}],"line":47},{"type":"listItem","children":[{"type":"text","value":"Backups run, and a restore has been tried. See ","line":48},{"type":"link","href":"../../how-to/running/restore-an-instance","children":[{"type":"text","value":"Restore an instance","line":48}],"line":48},{"type":"text","value":".","line":48}],"line":48},{"type":"listItem","children":[{"type":"text","value":"Tenants who write code and do not trust each other run on ","line":49},{"type":"inlineCode","value":"MANAGED_WORKERS=host","line":49},{"type":"text","value":".","line":49}],"line":49},{"type":"listItem","children":[{"type":"text","value":"The worker host has ","line":50},{"type":"inlineCode","value":"NET_ADMIN","line":50},{"type":"text","value":" and its log says the rules are in place, and ","line":50},{"type":"inlineCode","value":"WORKER_EGRESS_ALLOW","line":50},{"type":"text","value":" lists only what scripts need.","line":50}],"line":50},{"type":"listItem","children":[{"type":"inlineCode","value":"METRICS_TOKEN","line":51},{"type":"text","value":" is set if a scraper reads the metrics, and is at least 32 characters.","line":51}],"line":51},{"type":"listItem","children":[{"type":"text","value":"Postgres and the object store are not reachable from outside the instance.","line":52}],"line":52}],"line":42},{"type":"paragraph","children":[{"type":"text","value":"Related: ","line":54},{"type":"link","href":"../../reference/running/security-reports","children":[{"type":"text","value":"Report a vulnerability","line":54}],"line":54},{"type":"text","value":", ","line":54},{"type":"link","href":"../../reference/running/versions-and-support","children":[{"type":"text","value":"Supported versions","line":54}],"line":54},{"type":"text","value":".","line":54}],"line":54}]},"description":"What an instance protects and from whom, what it does not protect against, and the settings to check before anyone else can reach it."}
@@ -1 +1 @@
1
- {"path":"self-host/explanation/running/sizing-and-scaling","title":"Sizing and scaling an instance","tree":{"type":"root","v":1,"children":[{"type":"paragraph","children":[{"type":"text","value":"Every attempt of a script is a process of its own. How many run at once on a machine is a number you can read and change, and the database has a connection budget you can add up.","line":7}],"line":7},{"type":"heading","depth":2,"id":"run-slots-and-the-memory-floor","children":[{"type":"text","value":"Run slots and the memory floor","line":9}],"line":9},{"type":"paragraph","children":[{"type":"text","value":"A machine that runs scripts, the control plane's in ","line":11},{"type":"inlineCode","value":"process","line":11},{"type":"text","value":" mode or a worker host's, shares ","line":11},{"type":"strong","children":[{"type":"text","value":"run slots","line":11}],"line":11},{"type":"text","value":" between all its workers and tenants:","line":11}],"line":11},{"type":"list","ordered":false,"children":[{"type":"listItem","children":[{"type":"text","value":"The scripts running there never go past its slots.","line":13}],"line":13},{"type":"listItem","children":[{"type":"text","value":"While other tenants are waiting, no tenant takes more than its share.","line":14}],"line":14},{"type":"listItem","children":[{"type":"text","value":"Work past that waits in the queue. Nothing fails for it.","line":15}],"line":15}],"line":13},{"type":"paragraph","children":[{"type":"text","value":"On top of the slots:","line":17}],"line":17},{"type":"list","ordered":false,"children":[{"type":"listItem","children":[{"type":"text","value":"No worker takes more work while the machine's free memory is below its ","line":19},{"type":"strong","children":[{"type":"text","value":"memory floor","line":19}],"line":19},{"type":"text","value":".","line":19}],"line":19},{"type":"listItem","children":[{"type":"text","value":"If free memory still falls under 5% of the machine's memory (at least 64 MB), the largest script is stopped and its run fails with \"The script was stopped: the machine ran low on memory.\" Its retries apply.","line":20}],"line":20},{"type":"listItem","children":[{"type":"text","value":"A script is held to its ","line":21},{"type":"inlineCode","value":"memoryMb","line":21},{"type":"text","value":": all the memory it holds, Buffers and native memory included, plus 64 MB for Node itself. Past that its run fails with \"The script ran out of memory\".","line":21}],"line":21},{"type":"listItem","children":[{"type":"text","value":"Scripts run at a lower CPU priority than the control plane and the workers, so the console stays quick under heavy scripts.","line":22}],"line":22}],"line":19},{"type":"table","align":[null,null,null],"children":[{"type":"tableRow","header":true,"children":[{"type":"tableCell","children":[{"type":"text","value":"Setting","line":24}]},{"type":"tableCell","children":[{"type":"text","value":"Default","line":24}]},{"type":"tableCell","children":[{"type":"text","value":"Meaning","line":24}]}],"line":24},{"type":"tableRow","header":false,"children":[{"type":"tableCell","children":[{"type":"inlineCode","value":"RUN_SLOTS","line":26}]},{"type":"tableCell","children":[{"type":"text","value":"One for each 160 MB past the first 512 MB of memory, at least 2","line":26}]},{"type":"tableCell","children":[{"type":"text","value":"Scripts running at once on this machine.","line":26}]}],"line":26},{"type":"tableRow","header":false,"children":[{"type":"tableCell","children":[{"type":"inlineCode","value":"RUN_MEMORY_FLOOR_MB","line":27}]},{"type":"tableCell","children":[{"type":"text","value":"A tenth of memory, at least 128","line":27}]},{"type":"tableCell","children":[{"type":"text","value":"Free memory below which no worker here takes more work. 0 turns the check off.","line":27}]}],"line":27},{"type":"tableRow","header":false,"children":[{"type":"tableCell","children":[{"type":"inlineCode","value":"MANAGED_WORKERS_MAX","line":28}]},{"type":"tableCell","children":[{"type":"text","value":"Twice the run slots","line":28}]},{"type":"tableCell","children":[{"type":"text","value":"In ","line":28},{"type":"inlineCode","value":"process","line":28},{"type":"text","value":" mode, managed workers alive at once.","line":28}]}],"line":28}],"line":24},{"type":"paragraph","children":[{"type":"text","value":"The worker host takes the same settings, as ","line":30},{"type":"inlineCode","value":"--run-slots","line":30},{"type":"text","value":", ","line":30},{"type":"inlineCode","value":"--memory-floor","line":30},{"type":"text","value":" and ","line":30},{"type":"inlineCode","value":"--max-workers","line":30},{"type":"text","value":", or from the same variables.","line":30}],"line":30},{"type":"paragraph","children":[{"type":"text","value":"Memory is the smaller of what ","line":32},{"type":"inlineCode","value":"/proc/meminfo","line":32},{"type":"text","value":" reports and the container's own limit (cgroup v2, then v1), less what the container already holds. A container held to 1 GB on a 16 GB machine has 1 GB. Under that rule a 1 GB container gets 3 slots and a 2 GB one gets 9.","line":32}],"line":32},{"type":"paragraph","children":[{"type":"text","value":"A standalone worker has no slots, no floor and no memory guard. It runs as many scripts at once as its ","line":34},{"type":"inlineCode","value":"--concurrency","line":34},{"type":"text","value":" says (4 by default).","line":34}],"line":34},{"type":"paragraph","children":[{"type":"text","value":"Plan on 2 GB for a machine that runs the control plane and scripts together, and give both that machine and the database a dedicated CPU for anything past a trial. A shared CPU serves a burst, not a load: it runs at full speed only until its burst credit is spent.","line":36}],"line":36},{"type":"list","ordered":false,"children":[{"type":"listItem","children":[{"type":"text","value":"A database on a shared CPU with 512 MB spends about all of its allowance when idle, and earns almost no burst back. In the load test of November 2026 the console's slowest twentieth of requests took over a second with four people using it.","line":38}],"line":38},{"type":"listItem","children":[{"type":"text","value":"A control plane on two shared CPUs served 160 requests a second on its burst, then 22 to 27.","line":39}],"line":39}],"line":38},{"type":"heading","depth":2,"id":"how-memory-is-shared-between-scripts","children":[{"type":"text","value":"How memory is shared between scripts","line":41}],"line":41},{"type":"paragraph","children":[{"type":"text","value":"Slots say how many scripts may run. Memory says whether one more fits:","line":43}],"line":43},{"type":"list","ordered":false,"children":[{"type":"listItem","children":[{"type":"text","value":"Each tenant with work has one managed worker, which holds 65 to 105 MB while it waits. The control plane holds 400 to 800 MB. On 2 GB with twelve tenants at work, 450 to 700 MB is left for scripts.","line":45}],"line":45},{"type":"listItem","children":[{"type":"text","value":"A script is started only where the memory it is planned at fits above the floor. The plan is a quarter over the most that script held in its last four runs, 48 MB at least. A script that has never run is planned at 160 MB.","line":46}],"line":46},{"type":"listItem","children":[{"type":"text","value":"While a script runs, its worker says what it holds. What it holds already shows in the machine's free memory, so only the rest of its plan stays counted.","line":47}],"line":47},{"type":"listItem","children":[{"type":"text","value":"The most each run held is kept with the run, so a restart does not forget it.","line":48}],"line":48}],"line":45},{"type":"paragraph","children":[{"type":"text","value":"A script that takes far more than it ever did before, because of what it was given this time, can still take a machine below its floor. The largest script is then stopped, as above.","line":50}],"line":50},{"type":"heading","depth":2,"id":"what-one-machine-did","children":[{"type":"text","value":"What one machine did","line":52}],"line":52},{"type":"paragraph","children":[{"type":"text","value":"Measured in November 2026 on one dedicated CPU and 2 GB for the control plane and its scripts, and the same for the database, with 24 tenants:","line":54}],"line":54},{"type":"table","align":[null,null],"children":[{"type":"tableRow","header":true,"children":[{"type":"tableCell","children":[{"type":"text","value":"Load","line":56}]},{"type":"tableCell","children":[{"type":"text","value":"Result","line":56}]}],"line":56},{"type":"tableRow","header":false,"children":[{"type":"tableCell","children":[{"type":"text","value":"People using the console","line":58}]},{"type":"tableCell","children":[{"type":"text","value":"72 at once, 150 requests a second, before the slowest twentieth took over a second","line":58}]}],"line":58},{"type":"tableRow","header":false,"children":[{"type":"tableCell","children":[{"type":"text","value":"Reads of tables of 200,000 rows, sorted, filtered and totalled","line":59}]},{"type":"tableCell","children":[{"type":"text","value":"24 readers at once, 57 a second. The database's CPU is the limit","line":59}]}],"line":59},{"type":"tableRow","header":false,"children":[{"type":"tableCell","children":[{"type":"text","value":"Scripts that return at once","line":60}]},{"type":"tableCell","children":[{"type":"text","value":"About four a second: each run is a new process","line":60}]}],"line":60},{"type":"tableRow","header":false,"children":[{"type":"tableCell","children":[{"type":"text","value":"A mix of short scripts and ones that sleep or hold 80 MB for five seconds, over twelve tenants","line":61}]},{"type":"tableCell","children":[{"type":"text","value":"139 runs a minute, six scripts at once","line":61}]}],"line":61},{"type":"tableRow","header":false,"children":[{"type":"tableCell","children":[{"type":"text","value":"The console at 50 people and that mix of scripts together","line":62}]},{"type":"tableCell","children":[{"type":"text","value":"The console kept its speed and the runs waited in the queue: one CPU does not do both","line":62}]}],"line":62}],"line":56},{"type":"paragraph","children":[{"type":"text","value":"These are one machine's figures, not a promise. The fixtures that put on the load are ","line":64},{"type":"inlineCode","value":"examples/stress","line":64},{"type":"text","value":" in the repository, so the test can be run again.","line":64}],"line":64},{"type":"heading","depth":2,"id":"the-databases-connection-budget","children":[{"type":"text","value":"The database's connection budget","line":66}],"line":66},{"type":"paragraph","children":[{"type":"text","value":"Every tenant's table requests share one pool of connections per replica, on the instance's database and on each dedicated database. Each tenant has a share of it:","line":68}],"line":68},{"type":"list","ordered":false,"children":[{"type":"listItem","children":[{"type":"text","value":"A tenant's requests past its share wait their turn, so one tenant's slow searches leave the others room.","line":70}],"line":70},{"type":"listItem","children":[{"type":"text","value":"After 5 seconds of waiting, a request is answered 503 with ","line":71},{"type":"inlineCode","value":"Retry-After","line":71},{"type":"text","value":", never 500. Nothing was done, so it is safe to try again. ","line":71},{"type":"inlineCode","value":"@volvel/app","line":71},{"type":"text","value":" and scripts try again by themselves, twice.","line":71}],"line":71},{"type":"listItem","children":[{"type":"text","value":"Every data request has a time limit. Past it, the statement is stopped and the request is answered 422 ","line":72},{"type":"inlineCode","value":"too_slow","line":72},{"type":"text","value":", which says to narrow the filter or add an index. Totals keep their own limit of 5 seconds.","line":72}],"line":72}],"line":70},{"type":"table","align":[null,null,null],"children":[{"type":"tableRow","header":true,"children":[{"type":"tableCell","children":[{"type":"text","value":"Setting","line":74}]},{"type":"tableCell","children":[{"type":"text","value":"Default","line":74}]},{"type":"tableCell","children":[{"type":"text","value":"Meaning","line":74}]}],"line":74},{"type":"tableRow","header":false,"children":[{"type":"tableCell","children":[{"type":"inlineCode","value":"DATABASE_POOL_SIZE","line":76}]},{"type":"tableCell","children":[{"type":"text","value":"10","line":76}]},{"type":"tableCell","children":[{"type":"text","value":"Connections for the instance's own work, per replica.","line":76}]}],"line":76},{"type":"tableRow","header":false,"children":[{"type":"tableCell","children":[{"type":"inlineCode","value":"DATA_POOL_SIZE","line":77}]},{"type":"tableCell","children":[{"type":"text","value":"10","line":77}]},{"type":"tableCell","children":[{"type":"text","value":"Connections for every tenant's table requests, per replica.","line":77}]}],"line":77},{"type":"tableRow","header":false,"children":[{"type":"tableCell","children":[{"type":"inlineCode","value":"DATA_TENANT_CONNECTIONS","line":78}]},{"type":"tableCell","children":[{"type":"text","value":"A third of ","line":78},{"type":"inlineCode","value":"DATA_POOL_SIZE","line":78},{"type":"text","value":", at least 2","line":78}]},{"type":"tableCell","children":[{"type":"text","value":"Table requests one tenant may have open at once, per replica.","line":78}]}],"line":78},{"type":"tableRow","header":false,"children":[{"type":"tableCell","children":[{"type":"inlineCode","value":"DATA_STATEMENT_TIMEOUT_MS","line":79}]},{"type":"tableCell","children":[{"type":"text","value":"15000","line":79}]},{"type":"tableCell","children":[{"type":"text","value":"How long one request for rows may take.","line":79}]}],"line":79},{"type":"tableRow","header":false,"children":[{"type":"tableCell","children":[{"type":"inlineCode","value":"SQL_STATEMENT_TIMEOUT_MS","line":80}]},{"type":"tableCell","children":[{"type":"text","value":"15000","line":80}]},{"type":"tableCell","children":[{"type":"text","value":"How long one query written in SQL may run.","line":80}]}],"line":80}],"line":74},{"type":"paragraph","children":[{"type":"text","value":"Each replica opens up to ","line":82},{"type":"inlineCode","value":"DATABASE_POOL_SIZE + DATA_POOL_SIZE + 3","line":82},{"type":"text","value":" connections: 2 more for the queue and 1 to listen for changes to runs. A dedicated database adds 5 and 5 for each replica, and a data source adds 4. Keep the total across replicas under the database's ","line":82},{"type":"inlineCode","value":"max_connections","line":82},{"type":"text","value":".","line":82}],"line":82},{"type":"paragraph","children":[{"type":"inlineCode","value":"volvel_db_pool{pool,state}","line":84},{"type":"text","value":" shows each pool's total, idle and waiting connections. A ","line":84},{"type":"inlineCode","value":"waiting","line":84},{"type":"text","value":" above 0 that does not go away means a pool too small or a database too slow.","line":84}],"line":84},{"type":"heading","depth":2,"id":"replicas","children":[{"type":"text","value":"Replicas","line":86}],"line":86},{"type":"paragraph","children":[{"type":"text","value":"Run more than one control plane when you need it. Every replica runs the background loop, counts its own requests and holds its own pools. What must agree between them is in the database: the queue, the rate limits, which replica does a retention pass.","line":88}],"line":88},{"type":"paragraph","children":[{"type":"text","value":"When there are several replicas:","line":90}],"line":90},{"type":"list","ordered":false,"children":[{"type":"listItem","children":[{"type":"text","value":"change the master key in two steps. See ","line":92},{"type":"link","href":"../../how-to/running/rotate-the-master-key","children":[{"type":"text","value":"Rotate the master key","line":92}],"line":92},{"type":"text","value":";","line":92}],"line":92},{"type":"listItem","children":[{"type":"text","value":"set ","line":93},{"type":"inlineCode","value":"AUTH_SECRET","line":93},{"type":"text","value":" to the same value on all of them;","line":93}],"line":93},{"type":"listItem","children":[{"type":"text","value":"add up each replica's counted metrics, as Prometheus does with ","line":94},{"type":"inlineCode","value":"sum","line":94},{"type":"text","value":".","line":94}],"line":94}],"line":92},{"type":"heading","depth":2,"id":"what-to-watch","children":[{"type":"text","value":"What to watch","line":96}],"line":96},{"type":"paragraph","children":[{"type":"text","value":"Alert on a queue that keeps growing (","line":98},{"type":"inlineCode","value":"volvel_queue_oldest_seconds","line":98},{"type":"text","value":") rather than on full slots: full slots are the limit doing its work. See ","line":98},{"type":"link","href":"../../how-to/running/monitor-an-instance","children":[{"type":"text","value":"Monitor an instance","line":98}],"line":98},{"type":"text","value":".","line":98}],"line":98},{"type":"paragraph","children":[{"type":"text","value":"Related: ","line":100},{"type":"link","href":"../../reference/settings","children":[{"type":"text","value":"Settings","line":100}],"line":100},{"type":"text","value":", ","line":100},{"type":"link","href":"managed-workers-and-isolation","children":[{"type":"text","value":"Workers, users and what a script can reach","line":100}],"line":100},{"type":"text","value":".","line":100}],"line":100}]},"description":"How run slots, the memory floor and the connection budget decide what one machine runs, and what to add when it is not enough."}
1
+ {"path":"self-host/explanation/running/sizing-and-scaling","title":"Sizing and scaling an instance","tree":{"type":"root","v":1,"children":[{"type":"paragraph","children":[{"type":"text","value":"Every attempt of a script is a process of its own. How many run at once on a machine is a number you can read and change, and the database has a connection budget you can add up.","line":7}],"line":7},{"type":"heading","depth":2,"id":"run-slots-and-the-memory-floor","children":[{"type":"text","value":"Run slots and the memory floor","line":9}],"line":9},{"type":"paragraph","children":[{"type":"text","value":"A machine that runs scripts, the control plane's in ","line":11},{"type":"inlineCode","value":"process","line":11},{"type":"text","value":" mode or a worker host's, shares ","line":11},{"type":"strong","children":[{"type":"text","value":"run slots","line":11}],"line":11},{"type":"text","value":" between all its workers and tenants:","line":11}],"line":11},{"type":"list","ordered":false,"children":[{"type":"listItem","children":[{"type":"text","value":"The scripts running there never go past its slots.","line":13}],"line":13},{"type":"listItem","children":[{"type":"text","value":"While other tenants are waiting, no tenant takes more than its share.","line":14}],"line":14},{"type":"listItem","children":[{"type":"text","value":"Work past that waits in the queue. Nothing fails for it.","line":15}],"line":15}],"line":13},{"type":"paragraph","children":[{"type":"text","value":"On top of the slots:","line":17}],"line":17},{"type":"list","ordered":false,"children":[{"type":"listItem","children":[{"type":"text","value":"No worker takes more work while the machine's free memory is below its ","line":19},{"type":"strong","children":[{"type":"text","value":"memory floor","line":19}],"line":19},{"type":"text","value":".","line":19}],"line":19},{"type":"listItem","children":[{"type":"text","value":"If free memory still falls under 5% of the machine's memory (at least 64 MB), the largest script is stopped and its run fails with \"The script was stopped: the machine ran low on memory.\" Its retries apply.","line":20}],"line":20},{"type":"listItem","children":[{"type":"text","value":"A script is held to its ","line":21},{"type":"inlineCode","value":"memoryMb","line":21},{"type":"text","value":": all the memory it holds, Buffers and native memory included, plus 64 MB for Node itself. Past that its run fails with \"The script ran out of memory\".","line":21}],"line":21},{"type":"listItem","children":[{"type":"text","value":"Scripts run at a lower CPU priority than the control plane and the workers, so the console stays quick under heavy scripts.","line":22}],"line":22}],"line":19},{"type":"table","align":[null,null,null],"children":[{"type":"tableRow","header":true,"children":[{"type":"tableCell","children":[{"type":"text","value":"Setting","line":24}]},{"type":"tableCell","children":[{"type":"text","value":"Default","line":24}]},{"type":"tableCell","children":[{"type":"text","value":"Meaning","line":24}]}],"line":24},{"type":"tableRow","header":false,"children":[{"type":"tableCell","children":[{"type":"inlineCode","value":"RUN_SLOTS","line":26}]},{"type":"tableCell","children":[{"type":"text","value":"One for each 160 MB past the first 512 MB of memory, at least 2","line":26}]},{"type":"tableCell","children":[{"type":"text","value":"Scripts running at once on this machine.","line":26}]}],"line":26},{"type":"tableRow","header":false,"children":[{"type":"tableCell","children":[{"type":"inlineCode","value":"RUN_MEMORY_FLOOR_MB","line":27}]},{"type":"tableCell","children":[{"type":"text","value":"A tenth of memory, at least 128","line":27}]},{"type":"tableCell","children":[{"type":"text","value":"Free memory below which no worker here takes more work. 0 turns the check off.","line":27}]}],"line":27},{"type":"tableRow","header":false,"children":[{"type":"tableCell","children":[{"type":"inlineCode","value":"MANAGED_WORKERS_MAX","line":28}]},{"type":"tableCell","children":[{"type":"text","value":"Twice the run slots","line":28}]},{"type":"tableCell","children":[{"type":"text","value":"In ","line":28},{"type":"inlineCode","value":"process","line":28},{"type":"text","value":" mode, managed workers alive at once.","line":28}]}],"line":28}],"line":24},{"type":"paragraph","children":[{"type":"text","value":"The worker host takes the same settings, as ","line":30},{"type":"inlineCode","value":"--run-slots","line":30},{"type":"text","value":", ","line":30},{"type":"inlineCode","value":"--memory-floor","line":30},{"type":"text","value":" and ","line":30},{"type":"inlineCode","value":"--max-workers","line":30},{"type":"text","value":", or from the same variables.","line":30}],"line":30},{"type":"paragraph","children":[{"type":"text","value":"Memory is the smaller of what ","line":32},{"type":"inlineCode","value":"/proc/meminfo","line":32},{"type":"text","value":" reports and the container's own limit (cgroup v2, then v1), less what the container already holds. A container held to 1 GB on a 16 GB machine has 1 GB. Under that rule a 1 GB container gets 3 slots and a 2 GB one gets 9.","line":32}],"line":32},{"type":"paragraph","children":[{"type":"text","value":"A standalone worker has no slots, no floor and no memory guard. It runs as many scripts at once as its ","line":34},{"type":"inlineCode","value":"--concurrency","line":34},{"type":"text","value":" says (4 by default).","line":34}],"line":34},{"type":"paragraph","children":[{"type":"text","value":"Plan on 2 GB for a machine that runs the control plane and scripts together, and give both that machine and the database a dedicated CPU for anything past a trial. A shared CPU serves a burst, not a load: it runs at full speed only until its burst credit is spent.","line":36}],"line":36},{"type":"list","ordered":false,"children":[{"type":"listItem","children":[{"type":"text","value":"A database on a shared CPU with 512 MB spends about all of its allowance when idle, and earns almost no burst back. In the load test of November 2026 the console's slowest twentieth of requests took over a second with four people using it.","line":38}],"line":38},{"type":"listItem","children":[{"type":"text","value":"A control plane on two shared CPUs served 160 requests a second on its burst, then 22 to 27.","line":39}],"line":39}],"line":38},{"type":"heading","depth":2,"id":"how-memory-is-shared-between-scripts","children":[{"type":"text","value":"How memory is shared between scripts","line":41}],"line":41},{"type":"paragraph","children":[{"type":"text","value":"Slots say how many scripts may run. Memory says whether one more fits:","line":43}],"line":43},{"type":"list","ordered":false,"children":[{"type":"listItem","children":[{"type":"text","value":"Each tenant with work has one managed worker, which holds 65 to 105 MB while it waits. The control plane holds 400 to 800 MB. On 2 GB with twelve tenants at work, 450 to 700 MB is left for scripts.","line":45}],"line":45},{"type":"listItem","children":[{"type":"text","value":"A script is started only where the memory it is planned at fits above the floor. The plan is a quarter over the most that script held in its last four runs, 48 MB at least. A script that has never run is planned at 160 MB.","line":46}],"line":46},{"type":"listItem","children":[{"type":"text","value":"While a script runs, its worker says what it holds. What it holds already shows in the machine's free memory, so only the rest of its plan stays counted.","line":47}],"line":47},{"type":"listItem","children":[{"type":"text","value":"The most each run held is kept with the run, so a restart does not forget it.","line":48}],"line":48}],"line":45},{"type":"paragraph","children":[{"type":"text","value":"A script that takes far more than it ever did before, because of what it was given this time, can still take a machine below its floor. The largest script is then stopped, as above.","line":50}],"line":50},{"type":"heading","depth":2,"id":"what-one-machine-did","children":[{"type":"text","value":"What one machine did","line":52}],"line":52},{"type":"paragraph","children":[{"type":"text","value":"Measured in November 2026 on one dedicated CPU and 2 GB for the control plane and its scripts, and the same for the database, with 24 tenants:","line":54}],"line":54},{"type":"table","align":[null,null],"children":[{"type":"tableRow","header":true,"children":[{"type":"tableCell","children":[{"type":"text","value":"Load","line":56}]},{"type":"tableCell","children":[{"type":"text","value":"Result","line":56}]}],"line":56},{"type":"tableRow","header":false,"children":[{"type":"tableCell","children":[{"type":"text","value":"People using the console","line":58}]},{"type":"tableCell","children":[{"type":"text","value":"72 at once, 150 requests a second, before the slowest twentieth took over a second","line":58}]}],"line":58},{"type":"tableRow","header":false,"children":[{"type":"tableCell","children":[{"type":"text","value":"Reads of tables of 200,000 rows, sorted, filtered and totalled","line":59}]},{"type":"tableCell","children":[{"type":"text","value":"24 readers at once, 57 a second. The database's CPU is the limit","line":59}]}],"line":59},{"type":"tableRow","header":false,"children":[{"type":"tableCell","children":[{"type":"text","value":"Scripts that return at once","line":60}]},{"type":"tableCell","children":[{"type":"text","value":"About four a second: each run is a new process","line":60}]}],"line":60},{"type":"tableRow","header":false,"children":[{"type":"tableCell","children":[{"type":"text","value":"A mix of short scripts and ones that sleep or hold 80 MB for five seconds, over twelve tenants","line":61}]},{"type":"tableCell","children":[{"type":"text","value":"139 runs a minute, six scripts at once","line":61}]}],"line":61},{"type":"tableRow","header":false,"children":[{"type":"tableCell","children":[{"type":"text","value":"The console at 50 people and that mix of scripts together","line":62}]},{"type":"tableCell","children":[{"type":"text","value":"The console kept its speed and the runs waited in the queue: one CPU does not do both","line":62}]}],"line":62}],"line":56},{"type":"paragraph","children":[{"type":"text","value":"These are one machine's figures, not a promise. The fixtures that put on the load are ","line":64},{"type":"inlineCode","value":"examples/stress","line":64},{"type":"text","value":" in the repository, so the test can be run again.","line":64}],"line":64},{"type":"heading","depth":2,"id":"what-more-hardware-buys","children":[{"type":"text","value":"What more hardware buys","line":66}],"line":66},{"type":"paragraph","children":[{"type":"text","value":"Measured on Fly on 28 November 2026 with one instance resized between runs, so that the data, the load and the machine sending it were the same at each size. The control plane ran scripts in ","line":68},{"type":"inlineCode","value":"process","line":68},{"type":"text","value":" mode. The database was always the same size as the control plane, with 12 tenants and a table of 100,000 rows in each. The load came from a machine beside them.","line":68}],"line":68},{"type":"table","align":[null,null,null,null],"children":[{"type":"tableRow","header":true,"children":[{"type":"tableCell","children":[]},{"type":"tableCell","children":[{"type":"text","value":"1 CPU, 2 GB","line":70}]},{"type":"tableCell","children":[{"type":"text","value":"2 CPUs, 4 GB","line":70}]},{"type":"tableCell","children":[{"type":"text","value":"4 CPUs, 8 GB","line":70}]}],"line":70},{"type":"tableRow","header":false,"children":[{"type":"tableCell","children":[{"type":"text","value":"Reads and totals of the tables, a second","line":72}]},{"type":"tableCell","children":[{"type":"text","value":"about 50","line":72}]},{"type":"tableCell","children":[{"type":"text","value":"about 115","line":72}]},{"type":"tableCell","children":[{"type":"text","value":"about 220","line":72}]}],"line":72},{"type":"tableRow","header":false,"children":[{"type":"tableCell","children":[{"type":"text","value":"Readers at once before the slowest twentieth took over a second","line":73}]},{"type":"tableCell","children":[{"type":"text","value":"8","line":73}]},{"type":"tableCell","children":[{"type":"text","value":"56","line":73}]},{"type":"tableCell","children":[{"type":"text","value":"160, and not yet over","line":73}]}],"line":73},{"type":"tableRow","header":false,"children":[{"type":"tableCell","children":[{"type":"text","value":"Scripts that return at once, finished a second","line":74}]},{"type":"tableCell","children":[{"type":"text","value":"2.9","line":74}]},{"type":"tableCell","children":[{"type":"text","value":"about 6","line":74}]},{"type":"tableCell","children":[{"type":"text","value":"about 13","line":74}]}],"line":74},{"type":"tableRow","header":false,"children":[{"type":"tableCell","children":[{"type":"text","value":"A mix of short scripts and ones that sleep or hold 80 MB for five seconds","line":75}]},{"type":"tableCell","children":[{"type":"text","value":"kept up at 2 a second; at 4 a second, 1.6 a second finished","line":75}]},{"type":"tableCell","children":[{"type":"text","value":"kept up at 4 a second","line":75}]},{"type":"tableCell","children":[{"type":"text","value":"kept up at 4 a second","line":75}]}],"line":75}],"line":70},{"type":"paragraph","children":[{"type":"text","value":"Each doubling a little more than doubled what the instance did, and no request failed at any size. Doubling only the control plane, or only the database, was not measured: reads of large tables are the database's work, and scripts are the control plane's.","line":77}],"line":77},{"type":"paragraph","children":[{"type":"text","value":"The scripts that return at once finished at 2.9 a second here and about four a second in the earlier test: the earlier figure was over 24 tenants and different scripts, and is not this table's.","line":79}],"line":79},{"type":"heading","depth":2,"id":"the-databases-connection-budget","children":[{"type":"text","value":"The database's connection budget","line":81}],"line":81},{"type":"paragraph","children":[{"type":"text","value":"Every tenant's table requests share one pool of connections per replica, on the instance's database and on each dedicated database. Each tenant has a share of it:","line":83}],"line":83},{"type":"list","ordered":false,"children":[{"type":"listItem","children":[{"type":"text","value":"A tenant's requests past its share wait their turn, so one tenant's slow searches leave the others room.","line":85}],"line":85},{"type":"listItem","children":[{"type":"text","value":"After 5 seconds of waiting, a request is answered 503 with ","line":86},{"type":"inlineCode","value":"Retry-After","line":86},{"type":"text","value":", never 500. Nothing was done, so it is safe to try again. ","line":86},{"type":"inlineCode","value":"@volvel/app","line":86},{"type":"text","value":" and scripts try again by themselves, twice.","line":86}],"line":86},{"type":"listItem","children":[{"type":"text","value":"Every data request has a time limit. Past it, the statement is stopped and the request is answered 422 ","line":87},{"type":"inlineCode","value":"too_slow","line":87},{"type":"text","value":", which says to narrow the filter or add an index. Totals keep their own limit of 5 seconds.","line":87}],"line":87}],"line":85},{"type":"table","align":[null,null,null],"children":[{"type":"tableRow","header":true,"children":[{"type":"tableCell","children":[{"type":"text","value":"Setting","line":89}]},{"type":"tableCell","children":[{"type":"text","value":"Default","line":89}]},{"type":"tableCell","children":[{"type":"text","value":"Meaning","line":89}]}],"line":89},{"type":"tableRow","header":false,"children":[{"type":"tableCell","children":[{"type":"inlineCode","value":"DATABASE_POOL_SIZE","line":91}]},{"type":"tableCell","children":[{"type":"text","value":"10","line":91}]},{"type":"tableCell","children":[{"type":"text","value":"Connections for the instance's own work, per replica.","line":91}]}],"line":91},{"type":"tableRow","header":false,"children":[{"type":"tableCell","children":[{"type":"inlineCode","value":"DATA_POOL_SIZE","line":92}]},{"type":"tableCell","children":[{"type":"text","value":"10","line":92}]},{"type":"tableCell","children":[{"type":"text","value":"Connections for every tenant's table requests, per replica.","line":92}]}],"line":92},{"type":"tableRow","header":false,"children":[{"type":"tableCell","children":[{"type":"inlineCode","value":"DATA_TENANT_CONNECTIONS","line":93}]},{"type":"tableCell","children":[{"type":"text","value":"A third of ","line":93},{"type":"inlineCode","value":"DATA_POOL_SIZE","line":93},{"type":"text","value":", at least 2","line":93}]},{"type":"tableCell","children":[{"type":"text","value":"Table requests one tenant may have open at once, per replica.","line":93}]}],"line":93},{"type":"tableRow","header":false,"children":[{"type":"tableCell","children":[{"type":"inlineCode","value":"DATA_STATEMENT_TIMEOUT_MS","line":94}]},{"type":"tableCell","children":[{"type":"text","value":"15000","line":94}]},{"type":"tableCell","children":[{"type":"text","value":"How long one request for rows may take.","line":94}]}],"line":94},{"type":"tableRow","header":false,"children":[{"type":"tableCell","children":[{"type":"inlineCode","value":"SQL_STATEMENT_TIMEOUT_MS","line":95}]},{"type":"tableCell","children":[{"type":"text","value":"15000","line":95}]},{"type":"tableCell","children":[{"type":"text","value":"How long one query written in SQL may run.","line":95}]}],"line":95}],"line":89},{"type":"paragraph","children":[{"type":"text","value":"Each replica opens up to ","line":97},{"type":"inlineCode","value":"DATABASE_POOL_SIZE + DATA_POOL_SIZE + 3","line":97},{"type":"text","value":" connections: 2 more for the queue and 1 to listen for changes to runs. A dedicated database adds 5 and 5 for each replica, and a data source adds 4. Keep the total across replicas under the database's ","line":97},{"type":"inlineCode","value":"max_connections","line":97},{"type":"text","value":".","line":97}],"line":97},{"type":"paragraph","children":[{"type":"inlineCode","value":"volvel_db_pool{pool,state}","line":99},{"type":"text","value":" shows each pool's total, idle and waiting connections. A ","line":99},{"type":"inlineCode","value":"waiting","line":99},{"type":"text","value":" above 0 that does not go away means a pool too small or a database too slow.","line":99}],"line":99},{"type":"heading","depth":2,"id":"replicas","children":[{"type":"text","value":"Replicas","line":101}],"line":101},{"type":"paragraph","children":[{"type":"text","value":"Run more than one control plane when you need it. Every replica runs the background loop, counts its own requests and holds its own pools. What must agree between them is in the database: the queue, the rate limits, which replica does a retention pass.","line":103}],"line":103},{"type":"paragraph","children":[{"type":"text","value":"When there are several replicas:","line":105}],"line":105},{"type":"list","ordered":false,"children":[{"type":"listItem","children":[{"type":"text","value":"change the master key in two steps. See ","line":107},{"type":"link","href":"../../how-to/running/rotate-the-master-key","children":[{"type":"text","value":"Rotate the master key","line":107}],"line":107},{"type":"text","value":";","line":107}],"line":107},{"type":"listItem","children":[{"type":"text","value":"set ","line":108},{"type":"inlineCode","value":"AUTH_SECRET","line":108},{"type":"text","value":" to the same value on all of them;","line":108}],"line":108},{"type":"listItem","children":[{"type":"text","value":"add up each replica's counted metrics, as Prometheus does with ","line":109},{"type":"inlineCode","value":"sum","line":109},{"type":"text","value":".","line":109}],"line":109}],"line":107},{"type":"heading","depth":3,"id":"what-two-replicas-did","children":[{"type":"text","value":"What two replicas did","line":111}],"line":111},{"type":"paragraph","children":[{"type":"text","value":"Measured on Fly on 28 November 2026: two control planes of one dedicated CPU and 2 GB each, in ","line":113},{"type":"inlineCode","value":"process","line":113},{"type":"text","value":" mode, sharing a database of the same size, with 12 tenants. For 15 minutes, 12 readers read and totalled tables of 20,000 rows, about 150 reads a second, while scripts were started at 2 a second: short ones, ones that sleep five seconds and ones that hold 80 MB for five seconds. One machine was killed outright, then each was restarted in turn.","line":113}],"line":113},{"type":"table","align":[null,null],"children":[{"type":"tableRow","header":true,"children":[{"type":"tableCell","children":[{"type":"text","value":"What happened","line":115}]},{"type":"tableCell","children":[{"type":"text","value":"What it cost","line":115}]}],"line":115},{"type":"tableRow","header":false,"children":[{"type":"tableCell","children":[{"type":"text","value":"One machine killed (","line":117},{"type":"inlineCode","value":"SIGKILL","line":117},{"type":"text","value":")","line":117}]},{"type":"tableCell","children":[{"type":"text","value":"Fly started it again within two seconds. 7 of 134,519 reads failed: 6 answered 502, and 1 had no answer for 30 seconds. 1 of 5,601 calls to start or follow a run answered 502. The 3 scripts running on that machine failed 49 seconds later, as not heard from. The queue was whole.","line":117}]}],"line":117},{"type":"tableRow","header":false,"children":[{"type":"tableCell","children":[{"type":"text","value":"The same machine restarted","line":118}]},{"type":"tableCell","children":[{"type":"text","value":"5 reads answered 502. No run failed.","line":118}]}],"line":118},{"type":"tableRow","header":false,"children":[{"type":"tableCell","children":[{"type":"text","value":"The other machine restarted","line":119}]},{"type":"tableCell","children":[{"type":"text","value":"Nothing failed.","line":119}]}],"line":119}],"line":115},{"type":"paragraph","children":[{"type":"text","value":"Every one of the 1,811 runs ended: 1,808 succeeded, and the 3 above failed. The slowest twentieth of reads took 129 to 208 ms throughout, and the instance's own check answered every second but one.","line":121}],"line":121},{"type":"paragraph","children":[{"type":"text","value":"What can be said, then: with two replicas, losing one costs a few requests and the scripts it was running, and a restart of each in turn, as a deploy does, costs a few requests and no run. A script that must survive its machine needs retries. The database is still one machine, and losing it is losing the instance, as with one replica.","line":123}],"line":123},{"type":"heading","depth":2,"id":"what-to-watch","children":[{"type":"text","value":"What to watch","line":125}],"line":125},{"type":"paragraph","children":[{"type":"text","value":"Alert on a queue that keeps growing (","line":127},{"type":"inlineCode","value":"volvel_queue_oldest_seconds","line":127},{"type":"text","value":") rather than on full slots: full slots are the limit doing its work. See ","line":127},{"type":"link","href":"../../how-to/running/monitor-an-instance","children":[{"type":"text","value":"Monitor an instance","line":127}],"line":127},{"type":"text","value":".","line":127}],"line":127},{"type":"paragraph","children":[{"type":"text","value":"Related: ","line":129},{"type":"link","href":"../../reference/settings","children":[{"type":"text","value":"Settings","line":129}],"line":129},{"type":"text","value":", ","line":129},{"type":"link","href":"managed-workers-and-isolation","children":[{"type":"text","value":"Workers, users and what a script can reach","line":129}],"line":129},{"type":"text","value":".","line":129}],"line":129}]},"description":"How run slots, the memory floor and the connection budget decide what one machine runs, and what to add when it is not enough."}