@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
@@ -63,7 +63,7 @@ flowchart LR
63
63
  - `data` holds the database and the object store. Only the control plane joins it.
64
64
  - `execution` holds the control plane and the worker host.
65
65
 
66
- A tenant's script can reach the control plane and the internet. It cannot reach the database or the object store, because the worker host is not on `data`. See [What an instance reaches](egress-and-offline) for what the host's firewall refuses on top of that.
66
+ A tenant's script can reach the control plane and the internet. It cannot reach the database or the object store, because the worker host is not on `data`. The worker host is the one program of the image that stays root. The control plane becomes `node` before it starts. See [What an instance reaches](egress-and-offline) for what the host's firewall refuses on top of that.
67
67
 
68
68
  A standalone worker makes outbound HTTPS requests to the instance and nothing needs to reach it. See [Run a standalone worker](../../how-to/running/run-a-standalone-worker).
69
69
 
@@ -29,7 +29,7 @@ EGRESS_ALLOW=10.20.0.0/16,git.internal,192.168.1.40
29
29
 
30
30
  A name in the list is allowed whatever it resolves to. A network is allowed for any name that resolves into it.
31
31
 
32
- **The worker host's firewall.** It refuses a script every private, loopback and link-local address except the control plane and the name servers. To let scripts reach an API inside your network, list it on the worker host in `WORKER_EGRESS_ALLOW`, in the same form. It is empty unless you set it, and it needs the `NET_ADMIN` capability. See [Workers, users and what a script can reach](managed-workers-and-isolation).
32
+ **The worker host's firewall.** It refuses a script every private, loopback, link-local and special address, and the worker host's own, except the control plane's port and the name servers' port 53. To let scripts reach an API inside your network, list it on the worker host in `WORKER_EGRESS_ALLOW`, in the same form. It is empty unless you set it, and it needs the `NET_ADMIN` capability. See [Workers, users and what a script can reach](managed-workers-and-isolation).
33
33
 
34
34
  Everything else a tenant's systems are asked, such as posting a failure alert or trying a connection, is done by a worker, not the control plane.
35
35
 
@@ -29,24 +29,47 @@ One worker cannot read, write, list or signal another worker or the host. The ho
29
29
 
30
30
  The host and the control plane share `WORKER_HOST_TOKEN`. 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.
31
31
 
32
+ 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 `node` before it starts, and a standalone worker becomes `node` once it has read its credential. No program in the image is set-user-ID or set-group-ID, so a script has no `su` or `mount` to climb with.
33
+
34
+ ### A user is emptied before it is handed on
35
+
36
+ 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 `/tmp`, `/var/tmp` and `/dev/shm`. 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.
37
+
38
+ Workers write in no place they share. In the worker host's container, `/tmp`, `/var/tmp` and `/dev/shm` are closed to them: each keeps its temporary files in its own directory, its `HOME` and `TMPDIR`. So one tenant's script cannot leave a file for another's to read, or one under a name another's will use.
39
+
40
+ 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".
41
+
32
42
  ### The firewall
33
43
 
34
- With `NET_ADMIN`, 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:
44
+ With `NET_ADMIN`, the host writes one nftables table, `inet volvel_workers`, 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:
45
+
46
+ - the control plane, on its own port only (from `VOLVEL_URL` or `--url`);
47
+ - the name servers, on port 53 only. Docker's name server at `127.0.0.11` is open on any port, because Docker rewrites the port;
48
+ - what `WORKER_EGRESS_ALLOW` lists: networks and host names, comma separated, on any port, empty unless you set it;
49
+ - the public internet.
35
50
 
36
- - the control plane's address, from `VOLVEL_URL` or `--url`;
37
- - the container's name servers, IPv4 and IPv6;
38
- - what `WORKER_EGRESS_ALLOW` lists: networks and host names, comma separated, empty unless you set it.
51
+ 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.
39
52
 
40
- 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.
53
+ 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.
41
54
 
42
- Without `NET_ADMIN`, the host says so in its log, and only the network keeps workers from the instance's services. Block `169.254.169.254` at the machine if the instance runs in a cloud.
55
+ A packet with no owning socket, such as IPv6 neighbor discovery the kernel sends itself, is not held to the rules.
56
+
57
+ Without `NET_ADMIN`, the host says so in its log and starts, and only the container's network keeps workers from the instance's services. Block `169.254.169.254` at the machine if the instance runs in a cloud.
43
58
 
44
59
  `WORKER_EGRESS_ALLOW` is not `EGRESS_ALLOW`. See [What an instance reaches](egress-and-offline).
45
60
 
61
+ ### What was tried
62
+
63
+ 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 `/tmp` and `/dev/shm`. 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.
64
+
46
65
  ### Stopping
47
66
 
48
67
  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 `stop_grace_period: 60s` for that.
49
68
 
69
+ ## Which mode to use
70
+
71
+ An instance whose tenants write code and do not trust each other runs `MANAGED_WORKERS=host`. `process` mode runs every tenant's scripts as one user, and fits an instance where only the operator writes code.
72
+
50
73
  ## Process mode
51
74
 
52
75
  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 `code:write` who holds no instance-wide role, or any service account, gets none. Its Workers page says it runs on standalone workers only.
@@ -61,9 +84,13 @@ This is the mode for development, and for a single site where only the operator
61
84
 
62
85
  ## What is not there
63
86
 
64
- - **No sandbox.** 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.
87
+ - **No sandbox.** 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.
65
88
  - 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.
66
- - Where `kernel.yama.ptrace_scope` is 0, a script could read its worker's memory, credential included. A worker warns at start when that is so.
89
+ - A script sees the list of processes on its machine and their command lines.
90
+ - All workers of a host share one network namespace. The firewall keeps them apart by user.
91
+ - A script can read its own worker's memory, and so its own tenant's worker credential. That is the same tenant's credential.
92
+ - A process a script starts outlives the script's time and memory limits, until its worker ends.
93
+ - Fly's kernel has no Yama `ptrace_scope`. Reading another user's process still needs a capability no worker has. Where `kernel.yama.ptrace_scope` is 0, a worker warns at start.
67
94
 
68
95
  Run a tenant you do not trust on a worker of its own, on a machine of its own. See [Run a standalone worker](../../how-to/running/run-a-standalone-worker) and [Hardening](security-hardening).
69
96
 
@@ -21,19 +21,19 @@ Two rules hold the design:
21
21
  | A tenant from the operator | 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. |
22
22
  | Secrets at rest | Each tenant has its own key, wrapped by the master key. See [the master key](keys-and-secrets). |
23
23
  | A person's rows from another person | Postgres row-level security on every custom table. Row requests sign in as a role that owns nothing. |
24
- | The console from a tenant's app | A member's console session counts only at the instance's own address. Apps written as code are served only at `APPS_URL`. |
24
+ | The console from a tenant's app | 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. |
25
+ | One tenant's app written as code from another tenant's | 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. |
25
26
  | What happened | One write path records an audit entry in the same transaction as the change. Entries cannot be changed or deleted one by one. |
26
27
  | A worker's credential from a script | The script's process is never given it. |
27
28
 
28
29
  ## What it does not protect against
29
30
 
30
- - **Code a tenant deploys, from what its worker can reach.** No sandbox. Run a tenant you do not trust on a worker of its own, on a machine of its own.
31
- - **Workers started beside the control plane** (`MANAGED_WORKERS=process`). They share its network, and with `MANAGED_WORKER_USER=same` or where the container may not switch users, its user.
32
- - **A worker host without `NET_ADMIN`.** Block link-local addresses at the machine.
31
+ - **Code a tenant deploys, from what its worker can reach.** 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.
32
+ - **Workers started beside the control plane** (`MANAGED_WORKERS=process`). An instance whose tenants write code and do not trust each other runs `MANAGED_WORKERS=host`. In `process` 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 `MANAGED_WORKER_USER=same` or where the container may not switch users, its user.
33
+ - **A worker host without `NET_ADMIN`.** It starts, with only the container's network to keep workers from the instance's services. Block link-local addresses at the machine.
33
34
  - **An operator with access to the database, the master key or the host.** Such a person can read everything. Use a dedicated instance where that matters.
34
35
  - **A lost master key.** Nothing encrypted can be recovered without it.
35
- - **Apps on the console's address**, if you set `APPS_ON_CONSOLE_ADDRESS=true`. An app then runs as whoever opens it.
36
- - **One tenant's app written as code, from another tenant's.** Every app written as code is served at one address, `APPS_URL` 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 (`deployment:write`) 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.
36
+ - **What an app's files hold.** 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.
37
37
  - **A flood from many addresses.** Limits are per address and are counted in Postgres across every replica. The address is the one your proxy saw: set `TRUSTED_PROXIES` to match your proxies. Put a proxy with limits of its own in front of a public app.
38
38
  - **A column, from someone who may read the row.** Row rules decide which rows, not which columns.
39
39
 
@@ -42,11 +42,12 @@ Two rules hold the design:
42
42
  - A TLS-terminating proxy is in front. The control plane speaks plain HTTP and listens on `127.0.0.1:8080` in the Compose file. See [Put a proxy in front](../../how-to/running/put-a-proxy-in-front).
43
43
  - `TRUSTED_PROXIES` matches the proxies in front (`0` when none), and the proxy overwrites `X-Forwarded-For`, `X-Forwarded-Host` and `X-Forwarded-Proto`.
44
44
  - `PUBLIC_URL` is the address people type. Cookies are marked Secure by its scheme.
45
- - `APPS_URL` is a different host from `PUBLIC_URL`, 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.
45
+ - `APPS_URL`, if you set it, is a different host from `PUBLIC_URL`. It is not needed to keep tenants' apps apart: every page of an app written as code is sandboxed.
46
46
  - `BOOTSTRAP_ADMIN_EMAIL` and `BOOTSTRAP_ADMIN_PASSWORD` are removed after the first start.
47
47
  - `MASTER_KEY` is kept in a second place, and every key is kept as long as the backups it sealed.
48
48
  - Backups run, and a restore has been tried. See [Restore an instance](../../how-to/running/restore-an-instance).
49
- - The worker host has `NET_ADMIN`, and `WORKER_EGRESS_ALLOW` lists only what scripts need.
49
+ - Tenants who write code and do not trust each other run on `MANAGED_WORKERS=host`.
50
+ - The worker host has `NET_ADMIN` and its log says the rules are in place, and `WORKER_EGRESS_ALLOW` lists only what scripts need.
50
51
  - `METRICS_TOKEN` is set if a scraper reads the metrics, and is at least 32 characters.
51
52
  - Postgres and the object store are not reachable from outside the instance.
52
53
 
@@ -63,6 +63,21 @@ Measured in November 2026 on one dedicated CPU and 2 GB for the control plane an
63
63
 
64
64
  These are one machine's figures, not a promise. The fixtures that put on the load are `examples/stress` in the repository, so the test can be run again.
65
65
 
66
+ ## What more hardware buys
67
+
68
+ 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 `process` 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.
69
+
70
+ | | 1 CPU, 2 GB | 2 CPUs, 4 GB | 4 CPUs, 8 GB |
71
+ | --- | --- | --- | --- |
72
+ | Reads and totals of the tables, a second | about 50 | about 115 | about 220 |
73
+ | Readers at once before the slowest twentieth took over a second | 8 | 56 | 160, and not yet over |
74
+ | Scripts that return at once, finished a second | 2.9 | about 6 | about 13 |
75
+ | A mix of short scripts and ones that sleep or hold 80 MB for five seconds | kept up at 2 a second; at 4 a second, 1.6 a second finished | kept up at 4 a second | kept up at 4 a second |
76
+
77
+ 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.
78
+
79
+ 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.
80
+
66
81
  ## The database's connection budget
67
82
 
68
83
  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:
@@ -93,6 +108,20 @@ When there are several replicas:
93
108
  - set `AUTH_SECRET` to the same value on all of them;
94
109
  - add up each replica's counted metrics, as Prometheus does with `sum`.
95
110
 
111
+ ### What two replicas did
112
+
113
+ Measured on Fly on 28 November 2026: two control planes of one dedicated CPU and 2 GB each, in `process` 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.
114
+
115
+ | What happened | What it cost |
116
+ | --- | --- |
117
+ | One machine killed (`SIGKILL`) | 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. |
118
+ | The same machine restarted | 5 reads answered 502. No run failed. |
119
+ | The other machine restarted | Nothing failed. |
120
+
121
+ 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.
122
+
123
+ 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.
124
+
96
125
  ## What to watch
97
126
 
98
127
  Alert on a queue that keeps growing (`volvel_queue_oldest_seconds`) rather than on full slots: full slots are the limit doing its work. See [Monitor an instance](../../how-to/running/monitor-an-instance).
@@ -57,6 +57,18 @@ volvel tenant import SLUG.tar --slug NEW --yes
57
57
 
58
58
  `volvel tenant export` writes to `SLUG.tar.part` and renames it to `SLUG.tar` when the archive is whole. If the instance ends the export, it removes the part file and says why. It resumes nothing: run it again. When the instance answers that it is writing as many exports as it allows, or that the tenant is being exported, the command waits for the time the instance names (30 seconds) and asks again, up to 10 tries.
59
59
 
60
+ ### How long a large tenant takes
61
+
62
+ Run on Fly on 28 November 2026: a tenant with 100,000 rows, 230 files of 3.7 GB and its run history, on a control plane and a database of 4 CPUs and 8 GB, moved by the command line from a machine beside them.
63
+
64
+ | Step | Time |
65
+ | --- | --- |
66
+ | `volvel tenant export --history`: a file of 3.85 GB | 62 s (63 MB/s) |
67
+ | Deleting the tenant | 10 s |
68
+ | `volvel tenant import --yes` | 251 s |
69
+
70
+ Every file came back byte for byte the same. The command line held about 220 MB while it sent the file. Before version 0.7 it held the whole file in memory, and an import larger than the memory of the machine sending it was stopped.
71
+
60
72
  ### The limits on exports
61
73
 
62
74
  An instance bounds its exports so that slow readers cannot take every database connection. Four settings, in [How an instance is configured](../../reference/running/configuration):
@@ -25,7 +25,7 @@ By the end you have the three things a restore needs: a copy of Postgres, a copy
25
25
  ```
26
26
 
27
27
  `--no-owner` is what lets the dump be restored under any user or database name. A dump taken this way is a backup: the instance makes its policies again at the first start after a restore.
28
- 2. Back up the object store, close to the time of the dump. For an S3 service, copy the bucket with your provider's tool. For the bundled store, stop it and copy its volume:
28
+ 2. Back up the object store, close to the time of the dump. For an S3 service, copy the bucket with any S3 tool: `aws s3 sync s3://<bucket> ./bucket --endpoint-url <the store's address>` copied 216 MB from a Tigris bucket on Fly in 10 seconds. For the bundled store, stop it and copy its volume:
29
29
 
30
30
  ```bash
31
31
  docker compose -f deploy/compose/compose.yaml stop objectstore
@@ -10,7 +10,7 @@ By the end you will have a local image, `volvel/volvel:docs` or a name you choos
10
10
 
11
11
  ## Before you start
12
12
 
13
- - Docker with Compose, and a machine that can reach the internet for this step only: the build pulls `node:24-slim` and fetches packages with `pnpm install`.
13
+ - Docker with Compose, and a machine that can reach the internet for this step only: the build pulls `node:26-slim` and fetches packages with `pnpm install`.
14
14
  - A copy of the repository at the version you want. A clean copy keeps files you changed or added out of the image: `git archive HEAD | tar -x -C <folder>` makes one from a checkout.
15
15
 
16
16
  ## Build
@@ -1,6 +1,6 @@
1
1
  ---
2
2
  title: Install an instance on Fly.io, as an example
3
- description: "Deploy the image to Fly.io with a managed Postgres and a bucket, and add the workers group. An example topology; Compose is the supported one."
3
+ description: "Deploy the image to Fly.io with a Fly Postgres app and a bucket, and add the workers group. An example topology; Compose is the supported one."
4
4
  subjects: [install]
5
5
  ---
6
6
 
@@ -9,19 +9,33 @@ subjects: [install]
9
9
  By the end the control plane runs on Fly.io. Fly is an example, not a supported topology: Compose is the supported one. The files are `deploy/fly/fly.toml` and `deploy/fly/README.md`.
10
10
 
11
11
  :::alert[What was run]{type=info}
12
- The control plane was run on Fly in November 2026 with `MANAGED_WORKERS=process`, a Fly Postgres app and a Tigris bucket, loaded and broken on purpose for a day. The `workers` group of step 4 has not been run, and whether Fly runs it as root, which it must be, is not proved.
12
+ The control plane was run on Fly in November 2026 with `MANAGED_WORKERS=process`, a Fly Postgres app and a Tigris bucket, loaded and broken on purpose for a day. The `workers` group of step 6 was run and tried on Fly on 28 November 2026: two tenants' scripts on one worker host, under load, with the checks in [Workers, users and what a script can reach](../../explanation/running/managed-workers-and-isolation).
13
13
  :::
14
14
 
15
15
  ## Before you start
16
16
 
17
17
  - The `fly` command, signed in with `fly auth login`.
18
- - A Fly Managed Postgres cluster in the same region (Postgres 16 or later), and a bucket from `fly storage create`.
18
+ - A Fly Postgres app in the same region, from `fly postgres create` (Postgres 16 or later), and a bucket from `fly storage create`.
19
+
20
+ :::alert[Not Fly Managed Postgres]{type=warning}
21
+ The instance cannot run on Fly Managed Postgres. The most a Managed Postgres user may be is `schema_admin`, which cannot create roles, and the instance makes a role for tenants' data: it stops at its first start with "permission denied to create role". The address `fly mpg attach` gives also goes through PgBouncer, a transaction pooler, which the instance cannot use ([Requirements](../../reference/running/requirements)). Tried on 28 November 2026.
22
+ :::
19
23
 
20
24
  ## Deploy
21
25
 
22
26
  :::steps
23
27
  1. Set `app` and `primary_region` in `deploy/fly/fly.toml`, then `fly apps create <app>`.
24
- 2. Set the secrets under the names the instance reads:
28
+ 2. Make the instance's database and its user on the Postgres app. The user owns the database and may create roles; it need not be a superuser ([Use your own Postgres](use-your-own-postgres)):
29
+
30
+ ```bash
31
+ fly ssh console -a <db app> -C "bash -c 'PGPASSWORD=\$OPERATOR_PASSWORD psql -h localhost -p 5433 -U postgres \
32
+ -c \"create role volvel login createrole password '\\''<a long random password>'\\''\" \
33
+ -c \"create database volvel owner volvel\"'"
34
+ ```
35
+
36
+ The instance's `DATABASE_URL` is then `postgres://volvel:<password>@<db app>.internal:5433/volvel`.
37
+ 3. Make the bucket with `fly storage create -n <bucket> -a <app>`. It sets its own secrets on the app, under the names `AWS_ACCESS_KEY_ID`, `AWS_SECRET_ACCESS_KEY`, `AWS_ENDPOINT_URL_S3` and `BUCKET_NAME`, which the instance does not read: give their values again under the names below, and remove those with `fly secrets unset`.
38
+ 4. Set the secrets under the names the instance reads:
25
39
 
26
40
  ```bash
27
41
  fly secrets set --app <app> \
@@ -35,8 +49,8 @@ The control plane was run on Fly in November 2026 with `MANAGED_WORKERS=process`
35
49
  ```
36
50
 
37
51
  Keep a copy of `MASTER_KEY`. Remove the two bootstrap secrets after the first sign-in.
38
- 3. Deploy from the repository root: `fly deploy . --config deploy/fly/fly.toml --dockerfile Dockerfile`.
39
- 4. For managed workers, set the shared secret and add a `workers` group:
52
+ 5. Deploy from the repository root: `fly deploy . --config deploy/fly/fly.toml --dockerfile Dockerfile`.
53
+ 6. For managed workers, set the shared secret and add a `workers` group:
40
54
 
41
55
  ```bash
42
56
  fly secrets set --app <app> WORKER_HOST_TOKEN="$(openssl rand -hex 32)" MANAGED_WORKERS=host \
@@ -46,11 +60,13 @@ The control plane was run on Fly in November 2026 with `MANAGED_WORKERS=process`
46
60
  ```toml
47
61
  [processes]
48
62
  app = "volvel-start dist/main.js"
49
- workers = "volvel-worker-host --url http://<app>.internal:8080"
63
+ workers = "volvel-worker-host --url http://app.process.<app>.internal:8080"
50
64
  ```
51
65
 
66
+ `app.process.<app>.internal` is the name of the control plane's process group. Do not use `<app>.internal`: it names every machine of the app, the workers' own included.
67
+
52
68
  Or set `MANAGED_WORKERS=false` if every tenant is served by standalone workers.
53
- 5. Verify: `curl https://<app>.fly.dev/api/v1/readyz` and `/api/v1/instance`.
69
+ 7. Verify: `curl https://<app>.fly.dev/api/v1/readyz` and `/api/v1/instance`.
54
70
  :::
55
71
 
56
72
  ## What the file sets
@@ -60,8 +76,8 @@ The control plane was run on Fly in November 2026 with `MANAGED_WORKERS=process`
60
76
  - `kill_timeout = 60`: give the `workers` machines the same. Without it Fly gives a stopping machine five seconds, and every deploy fails the scripts in progress. With it, a deploy lets them finish for thirty seconds.
61
77
  - The health check is `/api/v1/healthz`. Fly does not restart a machine whose check fails, it decides where traffic goes, and with one machine a failing check is the whole instance unreachable. `/api/v1/readyz` answers 503 while the object store cannot be reached, though the console, the API and scripts still work, so it is not the check: watch it from a monitor of your own. Migrations run when the new machine starts, before it listens.
62
78
  - `swap_size_mb = 512`, and a machine of `shared-cpu-1x` with 1024 MB, which gives three run slots in `process` mode. Size the `workers` machines for the scripts they will run.
63
- - The worker host runs as root, to start each worker as a user of its own. If its log says "not running as root" or "a worker could not be started", no worker will start.
64
- - `APPS_URL` gives apps written as code an address of their own: `fly certs add apps.<your domain>`.
79
+ - The image starts as root, because Fly runs every process of an app as the image's user and `fly.toml` cannot set a user per process group. The control plane becomes `node` before it starts. The worker host stays root, to start each worker as a user of its own. If its log says "not running as root" or "a worker could not be started", no worker will start.
80
+ - `APPS_URL` is optional. It gives apps written as code an address of their own: `fly certs add apps.<your domain>`. Without it they are served at the console's address, each page sandboxed.
65
81
 
66
82
  A shared CPU has burst credit for a while, then a fraction of a core. On `shared-cpu-1x` a Postgres spends its allowance when idle and every tenant's queries slow down together; on `shared-cpu-2x` the control plane served 160 requests a second on its burst and 22 to 27 after. Give both a `performance` CPU for anything past a trial: `performance-1x` with 2 GB each is what the figures in [Sizing and scaling](../../explanation/running/sizing-and-scaling) were measured on.
67
83
 
@@ -70,6 +86,7 @@ A shared CPU has burst credit for a while, then a fraction of a core. On `shared
70
86
  Each was done on purpose, under load:
71
87
 
72
88
  - **The app's machine killed.** Fly started it again: answering after 22 seconds, scripts running after 53. The queue was whole. Scripts in progress failed as not heard from, and one with no retries is not run again.
89
+ - **One of two app machines killed** (28 November 2026, `fly deploy --ha=true`). The other went on answering: 8 of about 140,000 requests failed, and the 3 scripts running on the killed machine failed 49 seconds later. Restarting each machine in turn lost no run. See [Sizing and scaling](../../explanation/running/sizing-and-scaling).
73
90
  - **The database's machine killed.** The control plane stayed up, answered 503 for about five seconds, and went on. No script failed.
74
91
  - **The database's disk full.** Fly's Postgres turns the database read-only. Reads and the console went on, changes were answered 503 `read_only`, and writes came back 11 to 17 seconds after the disk was freed, with no restart. See [Run on a read-only database](run-on-a-read-only-database).
75
92
  - **The bucket unreachable.** `/api/v1/readyz` said so within three seconds. Everything that needs no file went on.
@@ -53,9 +53,9 @@ By the end you will have an instance running on one machine, with its own Postgr
53
53
  ```
54
54
 
55
55
  Compose starts Postgres and the object store, then the control plane, then the worker host. The control plane makes and migrates the database on its first start. The command returns when every service is healthy.
56
- 5. Check it. `curl http://localhost:8080/api/v1/readyz` answers 200 with `"status":"ready"`, and `curl http://localhost:8080/api/v1/instance` names the version and the migration level.
56
+ 5. Check it. `curl http://localhost:8080/api/v1/readyz` answers 200 with `"status":"ready"`, and `curl http://localhost:8080/api/v1/instance` names the version and the migration level. If you changed `VOLVEL_BIND`, use its address and port instead of `localhost:8080`.
57
57
  6. Open `PUBLIC_URL` in a browser and sign in with `BOOTSTRAP_ADMIN_EMAIL` and its password. You are an operator admin. Create a tenant from **Instance**, then **All tenants**.
58
- 7. Remove `BOOTSTRAP_ADMIN_EMAIL` and `BOOTSTRAP_ADMIN_PASSWORD` from `.env`, and apply the change: `docker compose -f deploy/compose/compose.yaml up -d`.
58
+ 7. Remove `BOOTSTRAP_ADMIN_EMAIL` and `BOOTSTRAP_ADMIN_PASSWORD` from `.env`, and apply the change: `docker compose -f deploy/compose/compose.yaml up -d`. If you will [set up the Fernhill example](../../../start/how-to/example/set-up-the-fernhill-example), do that first and keep the password somewhere safe: its setup signs in as this operator.
59
59
  :::
60
60
 
61
61
  ## The result
@@ -68,7 +68,7 @@ Next:
68
68
 
69
69
  - [Put a proxy in front](put-a-proxy-in-front) before anyone else reaches it.
70
70
  - [Back up an instance](back-up-an-instance) and try a [restore](restore-an-instance).
71
- - To try the instance with a demo tenant, [Set up the Fernhill example](../../../start/how-to/example/set-up-the-fernhill-example).
71
+ - To try the instance with a demo tenant, [Set up the Fernhill example](../../../start/how-to/example/set-up-the-fernhill-example). Its "On a Compose install" section says what to set, because scripts run in the worker host's container and cannot reach a service on `127.0.0.1` of your machine. The worker host knows the machine as `host.docker.internal`, and reaches it only when `WORKER_EGRESS_ALLOW` names it.
72
72
  - To use your own database or store, see [Use your own Postgres](use-your-own-postgres) and [Use your own object store](use-your-own-object-store).
73
73
 
74
74
  ## If it does not work
@@ -76,7 +76,7 @@ Next:
76
76
  - **A container restarts on start.** Read its log: `docker compose -f deploy/compose/compose.yaml logs control-plane`. A missing or malformed setting is named there, every problem at once. `docker compose run --rm --no-deps control-plane node dist/main.js check-config` says whether the settings are valid and opens nothing.
77
77
  - **`up` stops with "set PUBLIC_URL in .env".** The Compose file requires `PUBLIC_URL`, `AUTH_SECRET`, `MASTER_KEY` and `WORKER_HOST_TOKEN`.
78
78
  - **No database starts.** `COMPOSE_PROFILES=postgres,objectstore` is missing from `.env`.
79
- - **The worker host is unhealthy.** Read `docker compose logs worker-host`. A worker user setting that is not a whole number stops it.
79
+ - **The worker host is unhealthy.** Read `docker compose logs worker-host`. A worker user setting that is not a whole number stops it, and so do firewall rules that cannot be loaded.
80
80
  - **Sign-in fails.** The instance made the first operator only at its first start, and only with both settings. If the instance has members and nobody can sign in, see [Recover an operator](recover-an-operator).
81
81
  - **"The instance has no members. Set BOOTSTRAP_ADMIN_EMAIL and BOOTSTRAP_ADMIN_PASSWORD and restart..."** in the log: add them and restart.
82
82
 
@@ -24,6 +24,8 @@ By the end your monitoring checks the instance's probes and scrapes its `volvel_
24
24
  | `/api/v1/readyz` | 200 `ready` when Postgres and the object store each answer within 3 seconds, 503 `not_ready` otherwise. A database that takes no writes is still ready, and says `"readOnly": true`; each check carries its `latencyMs`. |
25
25
  | `/api/v1/instance` | The version and migration level. |
26
26
 
27
+ `/readyz` says whether this replica is serving. Whether the instance is whole is a second question, answered by `GET /api/v1/instance/health` for a member or an API key that holds `instance:read`, with no access grant: the database (reachable, read-only, how fast it answers), the object store, the migration level, the workers connected and the runs due, background steps that ran past their limit in the replica asked, and the tenants that are not well. Its `status` is `ok`, `waiting` or `failing`, and `reasons` says in sentences what to do. A tenant's own is `GET /api/v1/tenants/<id>/health`, for whoever holds `figures:read` there, and agents read it with the `get_health` tool. A tenant is `waiting` when runs are due and no worker can take them, the oldest due run has waited 2 minutes, the average wait over the last 15 minutes is a minute or more, or runs waited for a slot, a fair share, memory or a workspace limit 5 times or more; and `failing` when half or more of at least 4 runs that ended in the last 15 minutes failed.
28
+
27
29
  2. Set `METRICS_TOKEN` in `.env` and restart. Make the scraper send it as `Authorization: Bearer <token>` to `/api/v1/metrics`:
28
30
 
29
31
  ```yaml
@@ -70,14 +70,13 @@ server {
70
70
 
71
71
  ## Addresses for apps and for tenants' hostnames
72
72
 
73
- An app a tenant builds in the App Builder is served at `PUBLIC_URL/apps/<tenant>/<workspace>/<app>/`, and a tenant's sign-in pages at `PUBLIC_URL/portal/<tenant>/`. An app written as code is not served there, because its code would run at the console's address, where a member who opens it is already signed in.
73
+ An app is served at `PUBLIC_URL/apps/<tenant>/<workspace>/<app>/`, and a tenant's sign-in pages at `PUBLIC_URL/portal/<tenant>/`. That holds for an app a tenant builds in the App Builder and for an app written as code. Every page of an app written as code is served sandboxed: it has no origin of its own, so the browser sends it no cookie, gives it no storage and lets it read no other page. It acts with a token that lasts ten minutes, and that reaches only what apps use in one tenant.
74
74
 
75
75
  | Setting | What it does |
76
76
  | --- | --- |
77
- | `APPS_URL` | A second hostname that reaches the same instance, for example `https://apps.example.com`. Its host must differ from `PUBLIC_URL`'s. Apps and sign-in pages are then served only there, the console is not served there, and a member's console session is never sent there. Use it for an instance with more than one tenant. Point the second name at the same proxy, with a certificate for it. |
78
- | `APPS_ON_CONSOLE_ADDRESS` | `true` serves apps written as code at `PUBLIC_URL` too, when there is no `APPS_URL`. Only where everyone who writes code works for you. |
77
+ | `APPS_URL` | Optional. A second hostname that reaches the same instance, for example `https://apps.example.com`. Its host must differ from `PUBLIC_URL`'s. Apps and sign-in pages are then served only there, the console is not served there, and a member's console session is never sent there. Point the second name at the same proxy, with a certificate for it. |
79
78
 
80
- Every app written as code shares the one address, `APPS_URL` or, if you set `APPS_ON_CONSOLE_ADDRESS`, the console's, and a browser treats that address as one site. A page of one tenant's app can read and change another tenant's app as any visitor who is signed in to that app in the same browser, staff and end users alike. Where tenants do not trust each other, give the right to deploy an app written as code (`deployment:write`) only to people you trust, until apps have addresses of their own. A separate `APPS_URL` keeps the console's sign-in from apps; it does not separate apps from each other.
79
+ Without `APPS_URL`, apps written as code are served at the console's address, each page sandboxed. One tenant's app cannot read, or act as a visitor of, another tenant's app, and an app cannot use a member's console session. An instance does not need a second address for that. A second address keeps apps' cookies and addresses apart from the console's, which is a choice about addresses.
81
80
 
82
81
  A tenant's admin can register a hostname for one app under **Domains**, such as `portal.example.com`. You do three things for it:
83
82
 
@@ -95,7 +94,7 @@ A tenant's admin can register a hostname for one app under **Domains**, such as
95
94
 
96
95
  The proxy must pass the `Host` header through unchanged, and say whether the request came over HTTPS.
97
96
 
98
- A registered hostname is an origin of its own. The sign-in a person makes there is sent only there, the API there answers for that tenant alone, and a page of another tenant's app cannot read it. What it does not do is take the app off the shared address, where the same app is still served by path: someone who signs in at that address is exposed to other tenants' apps again. A name registered for the whole workspace, rather than for one app, serves every app of that workspace, and those apps share it.
97
+ A registered hostname is an origin of its own. The sign-in a person makes there is sent only there, the API there answers for that tenant alone, and a page of another tenant's app cannot read it. Once the name is enabled and proved, the app is no longer served at the shared address: a request there for the app is redirected (308) to the hostname, with its path and query. A name registered for the whole workspace, rather than for one app, serves every app of that workspace, and those apps share it.
99
98
 
100
99
  Any hostname the instance does not recognize acts as the console's address: an IP address, or a proxy's own name. Do not point a name at the instance that you do not mean to be the console.
101
100
 
@@ -103,8 +102,8 @@ Any hostname the instance does not recognize acts as the console's address: an I
103
102
 
104
103
  | At | The console | The API | A member's console session | Apps |
105
104
  | --- | --- | --- | --- | --- |
106
- | `PUBLIC_URL` | Yes | All of it | Counts | By path, unless `APPS_URL` is set. Apps written as code only with `APPS_ON_CONSOLE_ADDRESS=true`. |
107
- | `APPS_URL` | No | All of it, by API key or app sign-in | Ignored | By path |
105
+ | `PUBLIC_URL` | Yes | All of it | Counts | By path, unless `APPS_URL` is set. An app with an enabled and proved hostname is redirected to it. |
106
+ | `APPS_URL` | No | All of it, by API key or app sign-in | Ignored | By path. An app with a hostname of its own is redirected to it. |
108
107
  | A registered hostname | No | That tenant only | Ignored | One app at the root |
109
108
 
110
109
  ## The result
@@ -116,7 +115,7 @@ Any hostname the instance does not recognize acts as the console's address: an I
116
115
  - **Everyone shares one rate limit, or the audit log shows the proxy's address.** `TRUSTED_PROXIES` is wrong for the number of proxies. Behind a CDN and a proxy it is `2`.
117
116
  - **A caller can choose their own address.** The proxy does not overwrite `X-Forwarded-For`. With the default `1` and no proxy at all, a caller can still write the last entry: set `TRUSTED_PROXIES=0`.
118
117
  - **A registered hostname shows the console.** The name is not enabled, or the proxy rewrites the `Host` header.
119
- - **A staff sign-in from an app loops back to the console.** The app's address is not `APPS_URL` or an enabled hostname of that tenant.
118
+ - **A staff sign-in from an app loops back to the console.** The app's address is not `PUBLIC_URL`, `APPS_URL` or an enabled hostname of that tenant.
120
119
  - **The console's run list updates only every few seconds.** The proxy buffers the event stream.
121
120
  - **A webhook that waits for a flow answers 502 or 504.** The proxy cuts it before 25 seconds.
122
121
 
@@ -49,15 +49,43 @@ By the end an instance runs from a backup: the same tenants, tables, rows and fi
49
49
 
50
50
  ## On Fly.io
51
51
 
52
- The same restore, as it was run on Fly in November 2026 with a Fly Postgres app. From a dump to a second instance that answered took about two minutes: 14 seconds to dump a database of 288 MB under load, 35 to restore it, 48 for the new app to start.
52
+ The same restore, of the database and the files together into a clean bucket, as it was run on Fly on 28 November 2026 with Fly Postgres apps and Tigris buckets. The instance held two tenants, a database of 25 MB and 418 files of 216 MB.
53
+
54
+ | Step | Time |
55
+ | --- | --- |
56
+ | Dump the database (a 1.1 MB dump) | 2 s |
57
+ | Copy the dump off the database's machine | 2 s |
58
+ | Copy the bucket off Fly, 216 MB | 10 s |
59
+ | Copy the files into a new, empty bucket | 14 s |
60
+ | Make the user, the database and the data role, and put the dump on the new server | 6 s |
61
+ | `pg_restore` | 3 s |
62
+ | The new app, from its start to answering | 5 s on a restart. Its first start spent 54 s on its first connection to the new database |
63
+
64
+ The backup took 14 seconds and the restore under two minutes, not counting the minute it takes Fly to make a Postgres app and a bucket. Copying the files is the part that grows: it took about 15 seconds for each 200 MB from a machine on a home connection.
53
65
 
54
66
  :::steps
55
- 1. Dump on the database's machine, where `pg_dump` matches the server: `fly ssh console -a <db app>`, then `pg_dump -Fc --no-owner -h localhost -p 5433 -U postgres -d <database> -f /data/platform.dump` with `PGPASSWORD=$OPERATOR_PASSWORD`. Copy it off with `fly ssh sftp get`. The dump needs room on the volume: a tenth to a fifth of the database's size.
56
- 2. On the target server, make the database (`create database <name> owner <app user>`) and the data role if it is a new server, as in step 3 above. Then `pg_restore --no-owner --role=<app user> -h localhost -p 5433 -U postgres -d <name> /data/platform.dump`.
57
- 3. Create the new app and give it the same `MASTER_KEY` and `AUTH_SECRET`, the bucket's settings, a `DATABASE_URL` that names the restored database and its own `PUBLIC_URL`. `fly secrets import --stage` reads `NAME=value` lines from a file: keep that file readable by you alone and delete it after.
58
- 4. Deploy the same image, or a newer one. Check as in step 6 above.
67
+ 1. Dump on the database's machine, where `pg_dump` matches the server: `fly ssh console -a <db app>`, then `pg_dump -Fc --no-owner -h localhost -p 5433 -U postgres -d <database> -f /data/platform.dump` with `PGPASSWORD=$OPERATOR_PASSWORD`. Copy it off with `fly ssh sftp get /data/platform.dump`. The dump needs room on the volume: a tenth to a fifth of the database's size.
68
+ 2. Copy the bucket, close to the time of the dump, with any S3 tool. With the AWS command line and the bucket's keys:
69
+
70
+ ```bash
71
+ aws s3 sync s3://<bucket> ./bucket --endpoint-url https://fly.storage.tigris.dev
72
+ ```
73
+
74
+ 3. Make a new Postgres app (`fly postgres create`) and on it the instance's user and database, as in [Install on Fly](install-on-fly).
75
+ 4. Make the data role **as the instance's user**, not as `postgres`. The instance changes that role's password at each start, and Postgres lets a user that may create roles change only the roles it made: a role made by `postgres` stops the instance with "permission denied to alter role". Find its name in the dump (`pg_restore -f - platform.dump | grep -oE 'vxd_[0-9a-f]{20}' | sort -u`), then:
76
+
77
+ ```bash
78
+ fly ssh console -a <new db app> -C "bash -c 'PGPASSWORD=<user password> psql -h localhost -p 5433 -U volvel -d volvel -c \"create role <vxd_ role> nologin\"'"
79
+ ```
80
+
81
+ 5. Put the dump on the new server (`fly ssh sftp shell`, then `put platform.dump /data/platform.dump`) and restore it: `pg_restore --no-owner --role=volvel -h localhost -p 5433 -U postgres -d volvel /data/platform.dump`, with `PGPASSWORD=$OPERATOR_PASSWORD`. It ends with exit status 0.
82
+ 6. Make a new, empty bucket (`fly storage create -n <new bucket> -a <new app>`) and copy the files into it: `aws s3 sync ./bucket s3://<new bucket> --endpoint-url https://fly.storage.tigris.dev` with the new bucket's keys.
83
+ 7. Give the new app the same `MASTER_KEY` and `AUTH_SECRET`, the new bucket's settings under the `S3_` names, a `DATABASE_URL` that names the restored database, and its own `PUBLIC_URL`. `fly secrets import --stage` reads `NAME=value` lines from a file: keep that file readable by you alone and delete it after. Leave out the bootstrap secrets: the operators in the backup sign in as before.
84
+ 8. Deploy the same image, or a newer one. Check as in step 6 of the restore above.
59
85
  :::
60
86
 
87
+ In the run for this page, the restored instance answered ready with both the database and the bucket; the operator and a tenant's member signed in with the passwords from before; **Master key** listed no value that would not open; every one of the 400 files a table's rows named was read back through the instance, byte for byte the same as the backup; and a new row was written.
88
+
61
89
  A restore started beside the instance it was taken from fires the same schedules and takes the queued runs that were in the dump. Stop one of the two, or start the restore with `MANAGED_WORKERS=false` and its triggers stopped ([Stop triggers and clear a backlog](stop-triggers-and-clear-a-backlog)), unless both are meant to act.
62
90
 
63
91
  ## The result
@@ -68,6 +96,7 @@ The restored database may carry a different name. The data role's name comes fro
68
96
 
69
97
  ## If it does not work
70
98
 
99
+ - **The instance stops at start and the log says "permission denied to alter role".** The data role was made by another user, such as `postgres`. Give it to the instance's user: `grant <vxd_ role> to <app user> with admin option`, as a superuser, and start the instance again.
71
100
  - **The instance stops at start and the log says "Unsupported state or unable to authenticate data".** `MASTER_KEY` is not the key the backup was sealed with. The instance cannot open the data role's seed.
72
101
  - **"The database is at migration N but this build only knows migrations up to M."** An older image was started on a newer database. Start the newer image.
73
102
  - **A tenant's tables answer 403 or are empty.** The policies were not made. Restart the control plane and check its log for "row policies now read the signed claim".
@@ -27,7 +27,7 @@ By the end a worker you run in another network takes a tenant's scripts, and not
27
27
  ```
28
28
 
29
29
  `VOLVEL_URL` is the instance's address as the worker reaches it. `VOLVEL_WORKER_CONCURRENCY` (4 when empty) is how many runs it handles at once. `VOLVEL_WORKER_IDLE_EXIT` (never when empty) is the seconds with nothing to do before it exits.
30
- 4. Write the token into a file named `worker-token` beside the Compose file, and keep it to yourself: `chmod 600 worker-token`. The container runs as the user `node`, uid 1000, and reads the file as it is on the machine, so the file must be readable by uid 1000. If your user has another uid, run `sudo chown 1000 worker-token`, or the worker cannot read it.
30
+ 4. Write the token into a file named `worker-token` beside the Compose file, and keep it to yourself: `chmod 600 worker-token`. The container starts as root, reads the file, and then becomes the user `node`, uid 1000, so the file need not be readable by uid 1000. Where your platform refuses images that start as root (Kubernetes `runAsNonRoot`), run the worker as user `1000`. It then reads the file as uid 1000, so run `sudo chown 1000 worker-token` if your user has another uid, or the worker cannot read it.
31
31
  5. Start it:
32
32
 
33
33
  ```bash
@@ -69,7 +69,7 @@ The token comes from `--token-file`, which the Compose file points at a Compose
69
69
  - **The log says the token was refused.** The credential was revoked, expired, or belongs to another instance.
70
70
  - **Scripts do not arrive.** The pool names differ, or the credential is for one workspace only.
71
71
  - **The log warns "kernel.yama.ptrace_scope is 0: a script could read this worker's memory. Set it to 1 or more."** Scripts run as the worker's own user. Set `kernel.yama.ptrace_scope` to 1 or more on the machine.
72
- - **The worker cannot read the token file.** See step 4: uid 1000.
72
+ - **The worker cannot read the token file.** See step 4. Run as user `1000`, the file must be readable by uid 1000.
73
73
  - **The worker shows "Older version, takes no tasks".** The worker is older than 0.6.0, or older than the instance. Update it to the instance's version.
74
74
  - **The worker has no memory guard.** A standalone worker has no run slots and no floor. Size it by `VOLVEL_WORKER_CONCURRENCY`.
75
75
 
@@ -12,7 +12,7 @@ By the end the instance sends the mail it owns: end users' invitations and passw
12
12
 
13
13
  - An SMTP server the control plane can reach, and an address mail is sent from.
14
14
  - Mail is recommended for an instance people use, and not required. Without it the instance sends nothing: whoever makes an invitation is shown the link to pass on, and "Forgot your password" tells people to ask.
15
- - Mail does not make an end user's email address a proved one. Read [What mail does and does not prove](#what-mail-does-and-does-not-prove) before you build rules on an email address.
15
+ - Where mail is set up, signing up mails a link, and the address is proved when it is used. Read [What mail proves](#what-mail-proves) before you build rules on an email address.
16
16
 
17
17
  ## Set it up
18
18
 
@@ -43,18 +43,24 @@ A forwarded link can be used once by whoever holds it, and decides as the approv
43
43
 
44
44
  A tenant sends mail from its flows through its own `smtp` connection, made by a worker. The instance's `SMTP_URL` is not used for that, and the mail server must be reachable from where workers run.
45
45
 
46
- ## What mail does and does not prove
46
+ ## What mail proves
47
47
 
48
- When a tenant lets people create their own account, anyone can sign up with any email address, and is signed in at once. The instance does not ask them to prove the address, with mail or without it.
48
+ An address a person types is not one they own. When a tenant lets people create their own account, what happens depends on whether the instance sends mail.
49
49
 
50
- What mail changes:
50
+ **With mail.** Sign-up makes the account and mails a link to the address, good for 48 hours. It signs nobody in. The link opens a page with **Finish and sign in**, and only that button uses the link, so a mail scanner that opens the link does not spend it. Until the button is pressed, a sign-in with the right password is refused ("Your email address is not proved yet. A new link has gone to …"; the API answers 403 `email_unproved`). Each such attempt mails a new link and ends the older one. A wrong password only says the email or the password is wrong. The API's sign-up answers 202 with `awaitingProof`, `email` and `sent`.
51
+
52
+ **Without mail.** Sign-up signs the person in at once, as before, and the address stays **unproved**.
53
+
54
+ What proves an address, with mail: using the sign-up link, or using an invitation or reset link that was mailed. A link a member of staff copied from the console and passed on does not prove it. An identity provider that vouches for the address proves it too, and so does a directory's SCIM push on the same terms. See [What proves an end user's email address](../../../develop/explanation/apps/app-access). Once proved, an address stays proved.
55
+
56
+ What mail also changes:
51
57
 
52
58
  - An invitation made in the console is emailed. The account has no password until its link is opened, so whoever opens it is someone who can read that mailbox. Without mail, the person who made the invitation passes the link on.
53
59
  - "Forgot your password" sends a reset link to the address. The owner of an address can use it to take back an account someone else made with it: using the link sets a new password and signs out every session of the account. Without mail, the page tells people to ask.
54
60
 
55
- What it does not change: an account made by signing up is not marked as checked, and an app sees the address as the person gave it, in lower case.
61
+ Accounts made before the proof existed are unproved until one of these happens.
56
62
 
57
- Without mail, an app that shows a person the rows that carry their email address shows them to whoever signed up with it. Whether or not you set up mail, do not key an app's rules, or a script's or a flow's decisions, on an end user's email address when people sign themselves up. Make the end users yourself instead, by inviting them from the console (see [Invite end users](../../../administer/how-to/access/invite-end-users)), or have them sign in through an identity provider of end users, which refuses an email its provider says is not verified. Rules that name a person by their ID, a group or an attribute you set are not affected.
63
+ An app sees the result. The built-in attribute `email` holds an end user's address once it is proved, and is missing before. A table rule that matches `email` therefore matches only proved addresses. Without mail, nobody who signs up is proved, so such a rule matches none of them: invite them from the console (see [Invite end users](../../../administer/how-to/access/invite-end-users)) or have them sign in through an identity provider. Do not key an app's rules, or a script's or a flow's decisions, on the address as typed. Rules that name a person by their ID, a group or an attribute you set are not affected.
58
64
 
59
65
  ## Try mail without a server
60
66
 
@@ -62,6 +68,7 @@ Without mail, an app that shows a person the rows that carry their email address
62
68
 
63
69
  ## If it does not work
64
70
 
71
+ - **People who sign up are not getting their link.** The sign-up page says the link could not be sent. Check `SMTP_URL`, `MAIL_FROM` and the log. Signing in with the password sends a new link.
65
72
  - **Invitations are not arriving.** Check `SMTP_URL`, `MAIL_FROM` and the instance's log, which names the address that could not be sent to.
66
73
  - **The log says "MAIL_CAPTURE_DIR is set: mail is written to files there and nothing is sent. For development only".** Remove `MAIL_CAPTURE_DIR`.
67
74
  - **A tenant's flow cannot send mail.** That is the tenant's `smtp` connection, not this setting.