@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.
- package/THIRD_PARTY_NOTICES.md +21 -3
- package/assets/screenshots/administer/access-changes.dark.5bf247ce0f19.png +0 -0
- package/assets/screenshots/administer/access-changes.light.ed91948531ce.png +0 -0
- package/assets/screenshots/administer/access-end-users.dark.4d9a5acba896.png +0 -0
- package/assets/screenshots/administer/access-end-users.light.cef020771af1.png +0 -0
- package/assets/screenshots/administer/access-groups.dark.aaf84e089c11.png +0 -0
- package/assets/screenshots/administer/sso-audit-filters.dark.9aa82a2ac9c5.png +0 -0
- package/assets/screenshots/administer/sso-audit-filters.light.5ecfdb651ace.png +0 -0
- package/assets/screenshots/administer/{sso-branding-theme.dark.80bc3ce901a4.png → sso-branding-theme.dark.9a2c0482b3c2.png} +0 -0
- package/assets/screenshots/administer/{sso-branding-theme.light.f48bd968481c.png → sso-branding-theme.light.7be432359625.png} +0 -0
- package/assets/screenshots/administer/{sso-provider-setup.dark.8834ae797a50.png → sso-provider-setup.dark.bc7d126f135d.png} +0 -0
- package/assets/screenshots/administer/sso-provider-setup.light.0cbda9279747.png +0 -0
- package/assets/screenshots/administer/sso-workers-pools.dark.43f043620615.png +0 -0
- package/assets/screenshots/administer/sso-workers-pools.light.25b0e09b2ff0.png +0 -0
- package/assets/screenshots/console/account-sessions.dark.05dbf87d40a9.png +0 -0
- package/assets/screenshots/console/account-sessions.light.2ef44c907ee5.png +0 -0
- package/{dist/assets/screenshots/console/app-builder-list.dark.48340ac81e11.png → assets/screenshots/console/app-builder-list.dark.124cca05b904.png} +0 -0
- package/{dist/assets/screenshots/console/app-builder-list.light.85064d6742d4.png → assets/screenshots/console/app-builder-list.light.082ae0464cbe.png} +0 -0
- package/{dist/assets/screenshots/console/apps-list.dark.6580be4c6f17.png → assets/screenshots/console/apps-list.dark.b24bb8a4fe8f.png} +0 -0
- package/{dist/assets/screenshots/console/apps-list.light.35ac9711c9a0.png → assets/screenshots/console/apps-list.light.fa8996fe55ff.png} +0 -0
- package/assets/screenshots/console/{apps-share.dark.cf87c470cec4.png → apps-share.dark.0bb1a7899419.png} +0 -0
- package/{dist/assets/screenshots/console/apps-share.light.eddc9c058c37.png → assets/screenshots/console/apps-share.light.f26f075b3680.png} +0 -0
- package/assets/screenshots/console/{basics-workspace-overview.dark.75d4329d6bd9.png → basics-workspace-overview.dark.678c40fa9f2a.png} +0 -0
- package/assets/screenshots/console/{basics-workspace-overview.light.0a097241dfcb.png → basics-workspace-overview.light.86f7922860c9.png} +0 -0
- package/assets/screenshots/console/configure-alerts-default.dark.8a2c534aa415.png +0 -0
- package/{dist/assets/screenshots/console/configure-alerts.dark.3e4b58238bd2.png → assets/screenshots/console/configure-alerts.dark.314fe8d7e0c6.png} +0 -0
- package/{dist/assets/screenshots/console/configure-alerts.light.24608f63f849.png → assets/screenshots/console/configure-alerts.light.ff5022a76eca.png} +0 -0
- package/assets/screenshots/console/{configure-connection-sheet.dark.a8ae26d592fb.png → configure-connection-sheet.dark.41ba4383632c.png} +0 -0
- package/assets/screenshots/console/configure-connections.dark.52147265a170.png +0 -0
- package/assets/screenshots/console/{configure-connections.light.c3c1ec8eca52.png → configure-connections.light.8b15826634f1.png} +0 -0
- package/{dist/assets/screenshots/console/dashboard-resource.dark.532f219609cc.png → assets/screenshots/console/dashboard-resource.dark.4188f2810be1.png} +0 -0
- package/assets/screenshots/console/dashboard-resource.light.8211fe9f380e.png +0 -0
- package/{dist/assets/screenshots/console/dashboards-list.light.bb704dd75a30.png → assets/screenshots/console/dashboards-list.light.438e3d23c888.png} +0 -0
- package/assets/screenshots/console/extensions-editor.dark.4e5246f282e2.png +0 -0
- package/{dist/assets/screenshots/console/extensions-list.light.f65bb930d029.png → assets/screenshots/console/extensions-list.light.a1703d257ceb.png} +0 -0
- package/assets/screenshots/console/flow-editor.dark.00229a94001e.png +0 -0
- package/assets/screenshots/console/flow-editor.light.5eb68a339e84.png +0 -0
- package/assets/screenshots/console/operate-approvals.light.1501cede2f94.png +0 -0
- package/assets/screenshots/console/operate-cancel-by-age.dark.419042b822db.png +0 -0
- package/assets/screenshots/console/operate-cancel-by-age.light.7d48915e9922.png +0 -0
- package/assets/screenshots/console/operate-events.dark.2589975f7f46.png +0 -0
- package/assets/screenshots/console/operate-events.light.c4d8d8ae8748.png +0 -0
- package/assets/screenshots/console/operate-run-failed.dark.09addb030b58.png +0 -0
- package/assets/screenshots/console/{operate-run-failed.light.482db87101aa.png → operate-run-failed.light.6163d2f9d3b3.png} +0 -0
- package/assets/screenshots/console/operate-runs.dark.3bf1250f1f59.png +0 -0
- package/assets/screenshots/console/{operate-runs.light.bccafcd93196.png → operate-runs.light.235f6baf6f3d.png} +0 -0
- package/assets/screenshots/console/page-editor.light.3ec1f9d43475.png +0 -0
- package/assets/screenshots/console/queries-editor.dark.ee99f9050a23.png +0 -0
- package/assets/screenshots/console/queries-editor.light.67bd22086115.png +0 -0
- package/assets/screenshots/console/queries-parameters.light.c471d505bbd1.png +0 -0
- package/assets/screenshots/console/{releases-review.dark.34ec540432dc.png → releases-review.dark.091d815aa9c9.png} +0 -0
- package/{dist/assets/screenshots/console/releases-review.light.7f7eea72fc90.png → assets/screenshots/console/releases-review.light.a440c30d08b2.png} +0 -0
- package/{dist/assets/screenshots/console/script-settings-tab.dark.976df3a2aaf0.png → assets/screenshots/console/script-settings-tab.dark.5e96eedd9889.png} +0 -0
- package/assets/screenshots/console/{scripts-test-pane.dark.6112678956ed.png → scripts-test-pane.dark.63dcff509936.png} +0 -0
- package/assets/screenshots/console/{scripts-test-pane.light.2e1b637a8c7a.png → scripts-test-pane.light.bcef48f905b0.png} +0 -0
- package/assets/screenshots/console/table-definition.light.b97883e1b6e0.png +0 -0
- package/assets/screenshots/console/table-help.dark.da3a47215e6b.png +0 -0
- package/assets/screenshots/console/table-help.light.07c67e63ef2e.png +0 -0
- package/assets/screenshots/console/table-rows-filtered.dark.c61524c872a5.png +0 -0
- package/assets/screenshots/console/table-rows-filtered.light.787e71f743dd.png +0 -0
- package/assets/screenshots/console/table-rows.dark.19e2afeb688e.png +0 -0
- package/assets/screenshots/console/table-rows.light.a9249d7b9bd5.png +0 -0
- package/assets/screenshots/console/tut-visit-mix.dark.f1dd71da8937.png +0 -0
- package/{dist/assets/screenshots/console/widgets-chart-scatter.light.e57e41675d8d.png → assets/screenshots/console/widgets-chart-scatter.light.85ea38faaed8.png} +0 -0
- package/assets/screenshots/console/widgets-phone-page.dark.360a39e459c7.png +0 -0
- package/{dist/assets/screenshots/console/workspace-settings.light.3ac3bbfd9f4e.png → assets/screenshots/console/workspace-settings.light.c56e7f5d80f8.png} +0 -0
- package/assets/screenshots/docs/draft-conflict.dark.597b616abec7.png +0 -0
- package/assets/screenshots/docs/draft-conflict.light.6d326a37e8bc.png +0 -0
- package/assets/screenshots/docs/page-details-type.dark.2e382c8f131e.png +0 -0
- package/assets/screenshots/index.json +94 -94
- package/assets/screenshots/self-host/extensions-component-kit.dark.ba673f636a8f.png +0 -0
- package/assets/screenshots/self-host/extensions-component-kit.light.282da6a4c589.png +0 -0
- package/assets/screenshots/self-host/instance-audit.dark.21de79247590.png +0 -0
- package/assets/screenshots/self-host/instance-audit.light.dba4eaa712ed.png +0 -0
- package/assets/screenshots/self-host/instance-branding.dark.0ddd4c2df652.png +0 -0
- package/assets/screenshots/self-host/instance-branding.light.c3b7ffef6d4e.png +0 -0
- package/assets/screenshots/self-host/instance-databases.dark.dd2403f84456.png +0 -0
- package/assets/screenshots/self-host/instance-databases.light.3248546636cf.png +0 -0
- package/assets/screenshots/self-host/instance-health.dark.5791805f72b7.png +0 -0
- package/assets/screenshots/self-host/instance-health.light.cbfad910fc8e.png +0 -0
- package/assets/screenshots/self-host/instance-import-check.dark.11ccf001d9f8.png +0 -0
- package/assets/screenshots/self-host/instance-import-check.light.efbbef163d80.png +0 -0
- package/assets/screenshots/self-host/instance-members.dark.d9fa55d364fd.png +0 -0
- package/assets/screenshots/self-host/instance-members.light.7af6bfa48914.png +0 -0
- package/assets/screenshots/self-host/instance-operators.dark.1326e9460224.png +0 -0
- package/assets/screenshots/self-host/instance-operators.light.3f2cac001fb5.png +0 -0
- package/assets/screenshots/self-host/instance-tenants.dark.ba860dc98c90.png +0 -0
- package/assets/screenshots/self-host/instance-tenants.light.6a63877c41b3.png +0 -0
- package/assets/screenshots/self-host/instance-triggers.dark.f2bba07895f2.png +0 -0
- package/assets/screenshots/self-host/instance-triggers.light.dddb827e214a.png +0 -0
- package/assets/screenshots/start/basics-finding-your-way.dark.5cc80a2d591f.png +0 -0
- package/assets/screenshots/start/basics-finding-your-way.light.dddf72e4ad38.png +0 -0
- package/assets/screenshots/start/tut-approve-step.dark.5b773354ba35.png +0 -0
- package/assets/screenshots/start/tut-approve-step.light.b0224c9b1133.png +0 -0
- package/assets/screenshots/start/visit-notes-filtered.dark.f6fb7a707e2f.png +0 -0
- package/assets/screenshots/start/visit-notes-filtered.light.a4b4d64a7fc2.png +0 -0
- package/content/administer/explanation/sso/how-single-sign-on-works.md +2 -0
- package/content/administer/how-to/access/invite-end-users.md +8 -0
- package/content/administer/how-to/access/rule-rows-by-group-or-attribute.md +7 -0
- package/content/administer/how-to/apps/give-an-app-a-hostname.md +1 -1
- package/content/administer/how-to/sso/provision-people-with-scim.md +1 -1
- package/content/administer/reference/screens/branding.md +1 -1
- package/content/administer/reference/screens/end-users.md +3 -1
- package/content/administer/reference/screens/overview.md +21 -0
- package/content/administer/reference/screens/retention.md +3 -2
- package/content/administer/reference/screens/single-sign-on.md +1 -1
- package/content/console/how-to/app-builder/publish-an-app.md +0 -1
- package/content/console/how-to/data/row-rules.md +1 -0
- package/content/console/reference/screens/build/published-apps.md +1 -2
- package/content/console/reference/screens/data/tables.md +1 -1
- package/content/console/reference/screens/home/tenants.md +1 -1
- package/content/develop/explanation/api/how-the-api-knows-who-is-calling.md +10 -3
- package/content/develop/explanation/apps/app-access.md +29 -10
- package/content/develop/explanation/scripts/how-scripts-run.md +1 -1
- package/content/develop/how-to/apps/write-an-app.md +1 -1
- package/content/develop/how-to/cli/install-from-source.md +1 -1
- package/content/develop/how-to/cli/install-the-cli.md +1 -1
- package/content/develop/how-to/cli/test-a-script.md +1 -1
- package/content/develop/how-to/configure/set-up-from-a-script.md +1 -1
- package/content/develop/reference/access/mcp.md +11 -1
- package/content/develop/reference/apps/app-client.md +10 -8
- package/content/develop/reference/apps/content-policy.md +8 -3
- package/content/develop/reference/queries/data-as-code.md +12 -0
- package/content/develop/reference/tenant-widgets/what-a-view-is-given.md +1 -1
- package/content/develop/tutorials/cli/quickstart.md +1 -1
- package/content/self-host/explanation/access/index.md +1 -0
- package/content/self-host/explanation/access/instance-service-accounts.md +66 -0
- package/content/self-host/explanation/access/who-runs-what.md +2 -0
- package/content/self-host/explanation/running/architecture.md +1 -1
- package/content/self-host/explanation/running/egress-and-offline.md +1 -1
- package/content/self-host/explanation/running/managed-workers-and-isolation.md +35 -8
- package/content/self-host/explanation/running/security-hardening.md +9 -8
- package/content/self-host/explanation/running/sizing-and-scaling.md +29 -0
- package/content/self-host/how-to/instance/moving-a-tenant.md +12 -0
- package/content/self-host/how-to/running/back-up-an-instance.md +1 -1
- package/content/self-host/how-to/running/build-the-image.md +1 -1
- package/content/self-host/how-to/running/install-on-fly.md +27 -10
- package/content/self-host/how-to/running/install-with-compose.md +4 -4
- package/content/self-host/how-to/running/monitor-an-instance.md +2 -0
- package/content/self-host/how-to/running/put-a-proxy-in-front.md +7 -8
- package/content/self-host/how-to/running/restore-an-instance.md +34 -5
- package/content/self-host/how-to/running/run-a-standalone-worker.md +2 -2
- package/content/self-host/how-to/running/set-up-mail.md +13 -6
- package/content/self-host/reference/console/health.md +21 -1
- package/content/self-host/reference/running/configuration.md +1 -1
- package/content/self-host/reference/running/requirements.md +9 -2
- package/content/self-host/reference/running/retention.md +2 -1
- package/content/self-host/reference/running/troubleshooting.md +6 -1
- package/content/self-host/reference/running/versions-and-support.md +9 -1
- package/content/self-host/tutorials/install-on-one-machine.md +1 -1
- package/content/start/how-to/example/set-up-the-fernhill-example.md +26 -3
- package/content/start/index.md +11 -1
- package/content/start/reference/accessibility.md +35 -0
- package/content/start/reference/index.md +1 -0
- package/content/start/tutorials/index.md +6 -1
- package/content/start/tutorials/your-first-script.md +0 -1
- package/content/start/tutorials/your-first-table.md +2 -2
- package/dist/assets/screenshots/administer/access-changes.dark.5bf247ce0f19.png +0 -0
- package/dist/assets/screenshots/administer/access-changes.light.ed91948531ce.png +0 -0
- package/dist/assets/screenshots/administer/access-end-users.dark.4d9a5acba896.png +0 -0
- package/dist/assets/screenshots/administer/access-end-users.light.cef020771af1.png +0 -0
- package/dist/assets/screenshots/administer/access-groups.dark.aaf84e089c11.png +0 -0
- package/dist/assets/screenshots/administer/sso-audit-filters.dark.9aa82a2ac9c5.png +0 -0
- package/dist/assets/screenshots/administer/sso-audit-filters.light.5ecfdb651ace.png +0 -0
- package/dist/assets/screenshots/administer/{sso-branding-theme.dark.80bc3ce901a4.png → sso-branding-theme.dark.9a2c0482b3c2.png} +0 -0
- package/dist/assets/screenshots/administer/{sso-branding-theme.light.f48bd968481c.png → sso-branding-theme.light.7be432359625.png} +0 -0
- package/dist/assets/screenshots/administer/{sso-provider-setup.dark.8834ae797a50.png → sso-provider-setup.dark.bc7d126f135d.png} +0 -0
- package/dist/assets/screenshots/administer/sso-provider-setup.light.0cbda9279747.png +0 -0
- package/dist/assets/screenshots/administer/sso-workers-pools.dark.43f043620615.png +0 -0
- package/dist/assets/screenshots/administer/sso-workers-pools.light.25b0e09b2ff0.png +0 -0
- package/dist/assets/screenshots/console/account-sessions.dark.05dbf87d40a9.png +0 -0
- package/dist/assets/screenshots/console/account-sessions.light.2ef44c907ee5.png +0 -0
- package/{assets/screenshots/console/app-builder-list.dark.48340ac81e11.png → dist/assets/screenshots/console/app-builder-list.dark.124cca05b904.png} +0 -0
- package/{assets/screenshots/console/app-builder-list.light.85064d6742d4.png → dist/assets/screenshots/console/app-builder-list.light.082ae0464cbe.png} +0 -0
- package/{assets/screenshots/console/apps-list.dark.6580be4c6f17.png → dist/assets/screenshots/console/apps-list.dark.b24bb8a4fe8f.png} +0 -0
- package/{assets/screenshots/console/apps-list.light.35ac9711c9a0.png → dist/assets/screenshots/console/apps-list.light.fa8996fe55ff.png} +0 -0
- package/dist/assets/screenshots/console/{apps-share.dark.cf87c470cec4.png → apps-share.dark.0bb1a7899419.png} +0 -0
- package/{assets/screenshots/console/apps-share.light.eddc9c058c37.png → dist/assets/screenshots/console/apps-share.light.f26f075b3680.png} +0 -0
- package/dist/assets/screenshots/console/{basics-workspace-overview.dark.75d4329d6bd9.png → basics-workspace-overview.dark.678c40fa9f2a.png} +0 -0
- package/dist/assets/screenshots/console/{basics-workspace-overview.light.0a097241dfcb.png → basics-workspace-overview.light.86f7922860c9.png} +0 -0
- package/dist/assets/screenshots/console/configure-alerts-default.dark.8a2c534aa415.png +0 -0
- package/{assets/screenshots/console/configure-alerts.dark.3e4b58238bd2.png → dist/assets/screenshots/console/configure-alerts.dark.314fe8d7e0c6.png} +0 -0
- package/{assets/screenshots/console/configure-alerts.light.24608f63f849.png → dist/assets/screenshots/console/configure-alerts.light.ff5022a76eca.png} +0 -0
- package/dist/assets/screenshots/console/{configure-connection-sheet.dark.a8ae26d592fb.png → configure-connection-sheet.dark.41ba4383632c.png} +0 -0
- package/dist/assets/screenshots/console/configure-connections.dark.52147265a170.png +0 -0
- package/dist/assets/screenshots/console/{configure-connections.light.c3c1ec8eca52.png → configure-connections.light.8b15826634f1.png} +0 -0
- package/{assets/screenshots/console/dashboard-resource.dark.532f219609cc.png → dist/assets/screenshots/console/dashboard-resource.dark.4188f2810be1.png} +0 -0
- package/dist/assets/screenshots/console/dashboard-resource.light.8211fe9f380e.png +0 -0
- package/{assets/screenshots/console/dashboards-list.light.bb704dd75a30.png → dist/assets/screenshots/console/dashboards-list.light.438e3d23c888.png} +0 -0
- package/dist/assets/screenshots/console/extensions-editor.dark.4e5246f282e2.png +0 -0
- package/{assets/screenshots/console/extensions-list.light.f65bb930d029.png → dist/assets/screenshots/console/extensions-list.light.a1703d257ceb.png} +0 -0
- package/dist/assets/screenshots/console/flow-editor.dark.00229a94001e.png +0 -0
- package/dist/assets/screenshots/console/flow-editor.light.5eb68a339e84.png +0 -0
- package/dist/assets/screenshots/console/operate-approvals.light.1501cede2f94.png +0 -0
- package/dist/assets/screenshots/console/operate-cancel-by-age.dark.419042b822db.png +0 -0
- package/dist/assets/screenshots/console/operate-cancel-by-age.light.7d48915e9922.png +0 -0
- package/dist/assets/screenshots/console/operate-events.dark.2589975f7f46.png +0 -0
- package/dist/assets/screenshots/console/operate-events.light.c4d8d8ae8748.png +0 -0
- package/dist/assets/screenshots/console/operate-run-failed.dark.09addb030b58.png +0 -0
- package/dist/assets/screenshots/console/{operate-run-failed.light.482db87101aa.png → operate-run-failed.light.6163d2f9d3b3.png} +0 -0
- package/dist/assets/screenshots/console/operate-runs.dark.3bf1250f1f59.png +0 -0
- package/dist/assets/screenshots/console/{operate-runs.light.bccafcd93196.png → operate-runs.light.235f6baf6f3d.png} +0 -0
- package/dist/assets/screenshots/console/page-editor.light.3ec1f9d43475.png +0 -0
- package/dist/assets/screenshots/console/queries-editor.dark.ee99f9050a23.png +0 -0
- package/dist/assets/screenshots/console/queries-editor.light.67bd22086115.png +0 -0
- package/dist/assets/screenshots/console/queries-parameters.light.c471d505bbd1.png +0 -0
- package/dist/assets/screenshots/console/{releases-review.dark.34ec540432dc.png → releases-review.dark.091d815aa9c9.png} +0 -0
- package/{assets/screenshots/console/releases-review.light.7f7eea72fc90.png → dist/assets/screenshots/console/releases-review.light.a440c30d08b2.png} +0 -0
- package/{assets/screenshots/console/script-settings-tab.dark.976df3a2aaf0.png → dist/assets/screenshots/console/script-settings-tab.dark.5e96eedd9889.png} +0 -0
- package/dist/assets/screenshots/console/{scripts-test-pane.dark.6112678956ed.png → scripts-test-pane.dark.63dcff509936.png} +0 -0
- package/dist/assets/screenshots/console/{scripts-test-pane.light.2e1b637a8c7a.png → scripts-test-pane.light.bcef48f905b0.png} +0 -0
- package/dist/assets/screenshots/console/table-definition.light.b97883e1b6e0.png +0 -0
- package/dist/assets/screenshots/console/table-help.dark.da3a47215e6b.png +0 -0
- package/dist/assets/screenshots/console/table-help.light.07c67e63ef2e.png +0 -0
- package/dist/assets/screenshots/console/table-rows-filtered.dark.c61524c872a5.png +0 -0
- package/dist/assets/screenshots/console/table-rows-filtered.light.787e71f743dd.png +0 -0
- package/dist/assets/screenshots/console/table-rows.dark.19e2afeb688e.png +0 -0
- package/dist/assets/screenshots/console/table-rows.light.a9249d7b9bd5.png +0 -0
- package/dist/assets/screenshots/console/tut-visit-mix.dark.f1dd71da8937.png +0 -0
- package/{assets/screenshots/console/widgets-chart-scatter.light.e57e41675d8d.png → dist/assets/screenshots/console/widgets-chart-scatter.light.85ea38faaed8.png} +0 -0
- package/dist/assets/screenshots/console/widgets-phone-page.dark.360a39e459c7.png +0 -0
- package/{assets/screenshots/console/workspace-settings.light.3ac3bbfd9f4e.png → dist/assets/screenshots/console/workspace-settings.light.c56e7f5d80f8.png} +0 -0
- package/dist/assets/screenshots/docs/draft-conflict.dark.597b616abec7.png +0 -0
- package/dist/assets/screenshots/docs/draft-conflict.light.6d326a37e8bc.png +0 -0
- package/dist/assets/screenshots/docs/page-details-type.dark.2e382c8f131e.png +0 -0
- package/dist/assets/screenshots/self-host/extensions-component-kit.dark.ba673f636a8f.png +0 -0
- package/dist/assets/screenshots/self-host/extensions-component-kit.light.282da6a4c589.png +0 -0
- package/dist/assets/screenshots/self-host/instance-audit.dark.21de79247590.png +0 -0
- package/dist/assets/screenshots/self-host/instance-audit.light.dba4eaa712ed.png +0 -0
- package/dist/assets/screenshots/self-host/instance-branding.dark.0ddd4c2df652.png +0 -0
- package/dist/assets/screenshots/self-host/instance-branding.light.c3b7ffef6d4e.png +0 -0
- package/dist/assets/screenshots/self-host/instance-databases.dark.dd2403f84456.png +0 -0
- package/dist/assets/screenshots/self-host/instance-databases.light.3248546636cf.png +0 -0
- package/dist/assets/screenshots/self-host/instance-health.dark.5791805f72b7.png +0 -0
- package/dist/assets/screenshots/self-host/instance-health.light.cbfad910fc8e.png +0 -0
- package/dist/assets/screenshots/self-host/instance-import-check.dark.11ccf001d9f8.png +0 -0
- package/dist/assets/screenshots/self-host/instance-import-check.light.efbbef163d80.png +0 -0
- package/dist/assets/screenshots/self-host/instance-members.dark.d9fa55d364fd.png +0 -0
- package/dist/assets/screenshots/self-host/instance-members.light.7af6bfa48914.png +0 -0
- package/dist/assets/screenshots/self-host/instance-operators.dark.1326e9460224.png +0 -0
- package/dist/assets/screenshots/self-host/instance-operators.light.3f2cac001fb5.png +0 -0
- package/dist/assets/screenshots/self-host/instance-tenants.dark.ba860dc98c90.png +0 -0
- package/dist/assets/screenshots/self-host/instance-tenants.light.6a63877c41b3.png +0 -0
- package/dist/assets/screenshots/self-host/instance-triggers.dark.f2bba07895f2.png +0 -0
- package/dist/assets/screenshots/self-host/instance-triggers.light.dddb827e214a.png +0 -0
- package/dist/assets/screenshots/start/basics-finding-your-way.dark.5cc80a2d591f.png +0 -0
- package/dist/assets/screenshots/start/basics-finding-your-way.light.dddf72e4ad38.png +0 -0
- package/dist/assets/screenshots/start/tut-approve-step.dark.5b773354ba35.png +0 -0
- package/dist/assets/screenshots/start/tut-approve-step.light.b0224c9b1133.png +0 -0
- package/dist/assets/screenshots/start/visit-notes-filtered.dark.f6fb7a707e2f.png +0 -0
- package/dist/assets/screenshots/start/visit-notes-filtered.light.a4b4d64a7fc2.png +0 -0
- package/dist/fields.json +1 -1
- package/dist/manifest.json +1 -1
- package/dist/md/administer/explanation/sso/how-single-sign-on-works.md +2 -0
- package/dist/md/administer/how-to/access/invite-end-users.md +8 -0
- package/dist/md/administer/how-to/access/rule-rows-by-group-or-attribute.md +7 -0
- package/dist/md/administer/how-to/apps/give-an-app-a-hostname.md +1 -1
- package/dist/md/administer/how-to/sso/provision-people-with-scim.md +1 -1
- package/dist/md/administer/reference/audit-actions.md +1 -0
- package/dist/md/administer/reference/permissions.md +1 -0
- package/dist/md/administer/reference/screens/branding.md +1 -1
- package/dist/md/administer/reference/screens/end-users.md +3 -1
- package/dist/md/administer/reference/screens/overview.md +21 -0
- package/dist/md/administer/reference/screens/retention.md +3 -2
- package/dist/md/administer/reference/screens/single-sign-on.md +1 -1
- package/dist/md/console/how-to/app-builder/publish-an-app.md +0 -1
- package/dist/md/console/how-to/data/row-rules.md +1 -0
- package/dist/md/console/reference/screens/build/published-apps.md +1 -2
- package/dist/md/console/reference/screens/data/tables.md +1 -1
- package/dist/md/console/reference/screens/home/tenants.md +1 -1
- package/dist/md/develop/explanation/api/how-the-api-knows-who-is-calling.md +10 -3
- package/dist/md/develop/explanation/apps/app-access.md +29 -10
- package/dist/md/develop/explanation/scripts/how-scripts-run.md +1 -1
- package/dist/md/develop/how-to/apps/write-an-app.md +1 -1
- package/dist/md/develop/how-to/cli/install-from-source.md +1 -1
- package/dist/md/develop/how-to/cli/install-the-cli.md +1 -1
- package/dist/md/develop/how-to/cli/test-a-script.md +1 -1
- package/dist/md/develop/how-to/configure/set-up-from-a-script.md +1 -1
- package/dist/md/develop/reference/access/mcp.md +11 -1
- package/dist/md/develop/reference/api/agents.md +27 -1
- package/dist/md/develop/reference/api/apps.md +25 -1
- package/dist/md/develop/reference/api/end-users.md +71 -6
- package/dist/md/develop/reference/api/figures.md +160 -0
- package/dist/md/develop/reference/api/identity.md +318 -1
- package/dist/md/develop/reference/api/index.md +7 -6
- package/dist/md/develop/reference/api/instance.md +59 -1
- package/dist/md/develop/reference/api/permissions.md +13 -4
- package/dist/md/develop/reference/api/tenancy.md +13 -0
- package/dist/md/develop/reference/apps/app-client.md +10 -8
- package/dist/md/develop/reference/apps/content-policy.md +8 -3
- package/dist/md/develop/reference/errors.md +6 -0
- package/dist/md/develop/reference/kinds/dashboard.md +10 -0
- package/dist/md/develop/reference/kinds/interface.md +10 -0
- package/dist/md/develop/reference/kinds/widget.md +1 -1
- package/dist/md/develop/reference/queries/data-as-code.md +12 -0
- package/dist/md/develop/reference/sdk/sdk.md +1 -1
- package/dist/md/develop/reference/sdk/widgets-page.md +13 -0
- package/dist/md/develop/reference/sdk/widgets.md +2 -2
- package/dist/md/develop/reference/tenant-widgets/what-a-view-is-given.md +1 -1
- package/dist/md/develop/reference/widgets/chart.md +1 -1
- package/dist/md/develop/reference/widgets/goal.md +1 -1
- package/dist/md/develop/reference/widgets/pivot.md +1 -1
- package/dist/md/develop/reference/widgets/stat.md +1 -1
- package/dist/md/develop/tutorials/cli/quickstart.md +1 -1
- package/dist/md/self-host/explanation/access/index.md +1 -0
- package/dist/md/self-host/explanation/access/instance-service-accounts.md +66 -0
- package/dist/md/self-host/explanation/access/who-runs-what.md +2 -0
- package/dist/md/self-host/explanation/running/architecture.md +1 -1
- package/dist/md/self-host/explanation/running/egress-and-offline.md +1 -1
- package/dist/md/self-host/explanation/running/managed-workers-and-isolation.md +35 -8
- package/dist/md/self-host/explanation/running/security-hardening.md +9 -8
- package/dist/md/self-host/explanation/running/sizing-and-scaling.md +29 -0
- package/dist/md/self-host/how-to/instance/moving-a-tenant.md +12 -0
- package/dist/md/self-host/how-to/running/back-up-an-instance.md +1 -1
- package/dist/md/self-host/how-to/running/build-the-image.md +1 -1
- package/dist/md/self-host/how-to/running/install-on-fly.md +27 -10
- package/dist/md/self-host/how-to/running/install-with-compose.md +4 -4
- package/dist/md/self-host/how-to/running/monitor-an-instance.md +2 -0
- package/dist/md/self-host/how-to/running/put-a-proxy-in-front.md +7 -8
- package/dist/md/self-host/how-to/running/restore-an-instance.md +34 -5
- package/dist/md/self-host/how-to/running/run-a-standalone-worker.md +2 -2
- package/dist/md/self-host/how-to/running/set-up-mail.md +13 -6
- package/dist/md/self-host/reference/console/health.md +21 -1
- package/dist/md/self-host/reference/running/configuration.md +1 -1
- package/dist/md/self-host/reference/running/requirements.md +9 -2
- package/dist/md/self-host/reference/running/retention.md +2 -1
- package/dist/md/self-host/reference/running/troubleshooting.md +6 -1
- package/dist/md/self-host/reference/running/versions-and-support.md +9 -1
- package/dist/md/self-host/reference/settings.md +2 -2
- package/dist/md/self-host/tutorials/install-on-one-machine.md +1 -1
- package/dist/md/start/how-to/example/set-up-the-fernhill-example.md +26 -3
- package/dist/md/start/index.md +11 -1
- package/dist/md/start/reference/accessibility.md +35 -0
- package/dist/md/start/reference/changelog/0-7-0.md +208 -0
- package/dist/md/start/reference/index.md +1 -0
- package/dist/md/start/tutorials/index.md +6 -1
- package/dist/md/start/tutorials/your-first-script.md +0 -1
- package/dist/md/start/tutorials/your-first-table.md +2 -2
- package/dist/pages/administer/explanation/sso/how-single-sign-on-works.json +1 -1
- package/dist/pages/administer/how-to/access/invite-end-users.json +1 -1
- package/dist/pages/administer/how-to/access/rule-rows-by-group-or-attribute.json +1 -1
- package/dist/pages/administer/how-to/apps/give-an-app-a-hostname.json +1 -1
- package/dist/pages/administer/how-to/sso/provision-people-with-scim.json +1 -1
- package/dist/pages/administer/reference/audit-actions.json +1 -1
- package/dist/pages/administer/reference/permissions.json +1 -1
- package/dist/pages/administer/reference/screens/branding.json +1 -1
- package/dist/pages/administer/reference/screens/end-users.json +1 -1
- package/dist/pages/administer/reference/screens/overview.json +1 -1
- package/dist/pages/administer/reference/screens/retention.json +1 -1
- package/dist/pages/administer/reference/screens/single-sign-on.json +1 -1
- package/dist/pages/console/how-to/app-builder/publish-an-app.json +1 -1
- package/dist/pages/console/how-to/data/row-rules.json +1 -1
- package/dist/pages/console/reference/screens/build/published-apps.json +1 -1
- package/dist/pages/console/reference/screens/data/tables.json +1 -1
- package/dist/pages/console/reference/screens/home/tenants.json +1 -1
- package/dist/pages/develop/explanation/api/how-the-api-knows-who-is-calling.json +1 -1
- package/dist/pages/develop/explanation/apps/app-access.json +1 -1
- package/dist/pages/develop/explanation/scripts/how-scripts-run.json +1 -1
- package/dist/pages/develop/how-to/apps/write-an-app.json +1 -1
- package/dist/pages/develop/how-to/cli/install-from-source.json +1 -1
- package/dist/pages/develop/how-to/cli/install-the-cli.json +1 -1
- package/dist/pages/develop/how-to/cli/test-a-script.json +1 -1
- package/dist/pages/develop/how-to/configure/set-up-from-a-script.json +1 -1
- package/dist/pages/develop/reference/access/mcp.json +1 -1
- package/dist/pages/develop/reference/api/agents.json +1 -1
- package/dist/pages/develop/reference/api/apps.json +1 -1
- package/dist/pages/develop/reference/api/end-users.json +1 -1
- package/dist/pages/develop/reference/api/figures.json +1 -0
- package/dist/pages/develop/reference/api/identity.json +1 -1
- package/dist/pages/develop/reference/api/index.json +1 -1
- package/dist/pages/develop/reference/api/instance.json +1 -1
- package/dist/pages/develop/reference/api/permissions.json +1 -1
- package/dist/pages/develop/reference/api/tenancy.json +1 -1
- package/dist/pages/develop/reference/apps/app-client.json +1 -1
- package/dist/pages/develop/reference/apps/content-policy.json +1 -1
- package/dist/pages/develop/reference/errors.json +1 -1
- package/dist/pages/develop/reference/kinds/dashboard.json +1 -1
- package/dist/pages/develop/reference/kinds/interface.json +1 -1
- package/dist/pages/develop/reference/kinds/widget.json +1 -1
- package/dist/pages/develop/reference/queries/data-as-code.json +1 -1
- package/dist/pages/develop/reference/sdk/sdk.json +1 -1
- package/dist/pages/develop/reference/sdk/widgets-page.json +1 -1
- package/dist/pages/develop/reference/sdk/widgets.json +1 -1
- package/dist/pages/develop/reference/tenant-widgets/what-a-view-is-given.json +1 -1
- package/dist/pages/develop/reference/widgets/chart.json +1 -1
- package/dist/pages/develop/reference/widgets/goal.json +1 -1
- package/dist/pages/develop/reference/widgets/pivot.json +1 -1
- package/dist/pages/develop/reference/widgets/stat.json +1 -1
- package/dist/pages/develop/tutorials/cli/quickstart.json +1 -1
- package/dist/pages/self-host/explanation/access/index.json +1 -1
- package/dist/pages/self-host/explanation/access/instance-service-accounts.json +1 -0
- package/dist/pages/self-host/explanation/access/who-runs-what.json +1 -1
- package/dist/pages/self-host/explanation/running/architecture.json +1 -1
- package/dist/pages/self-host/explanation/running/egress-and-offline.json +1 -1
- package/dist/pages/self-host/explanation/running/managed-workers-and-isolation.json +1 -1
- package/dist/pages/self-host/explanation/running/security-hardening.json +1 -1
- package/dist/pages/self-host/explanation/running/sizing-and-scaling.json +1 -1
- package/dist/pages/self-host/how-to/instance/moving-a-tenant.json +1 -1
- package/dist/pages/self-host/how-to/running/back-up-an-instance.json +1 -1
- package/dist/pages/self-host/how-to/running/build-the-image.json +1 -1
- package/dist/pages/self-host/how-to/running/install-on-fly.json +1 -1
- package/dist/pages/self-host/how-to/running/install-with-compose.json +1 -1
- package/dist/pages/self-host/how-to/running/monitor-an-instance.json +1 -1
- package/dist/pages/self-host/how-to/running/put-a-proxy-in-front.json +1 -1
- package/dist/pages/self-host/how-to/running/restore-an-instance.json +1 -1
- package/dist/pages/self-host/how-to/running/run-a-standalone-worker.json +1 -1
- package/dist/pages/self-host/how-to/running/set-up-mail.json +1 -1
- package/dist/pages/self-host/reference/console/health.json +1 -1
- package/dist/pages/self-host/reference/running/configuration.json +1 -1
- package/dist/pages/self-host/reference/running/requirements.json +1 -1
- package/dist/pages/self-host/reference/running/retention.json +1 -1
- package/dist/pages/self-host/reference/running/troubleshooting.json +1 -1
- package/dist/pages/self-host/reference/running/versions-and-support.json +1 -1
- package/dist/pages/self-host/reference/settings.json +1 -1
- package/dist/pages/self-host/tutorials/install-on-one-machine.json +1 -1
- package/dist/pages/start/how-to/example/set-up-the-fernhill-example.json +1 -1
- package/dist/pages/start/index.json +1 -1
- package/dist/pages/start/reference/accessibility.json +1 -0
- package/dist/pages/start/reference/changelog/0-7-0.json +1 -0
- package/dist/pages/start/reference/index.json +1 -1
- package/dist/pages/start/tutorials/index.json +1 -1
- package/dist/pages/start/tutorials/your-first-script.json +1 -1
- package/dist/pages/start/tutorials/your-first-table.json +1 -1
- package/dist/redirects.json +1 -1
- package/dist/search.json +1 -1
- package/generated/administer/reference/audit-actions.md +1 -0
- package/generated/administer/reference/permissions.md +1 -0
- package/generated/develop/reference/api/agents.md +27 -1
- package/generated/develop/reference/api/apps.md +25 -1
- package/generated/develop/reference/api/end-users.md +71 -6
- package/generated/develop/reference/api/figures.md +160 -0
- package/generated/develop/reference/api/identity.md +318 -1
- package/generated/develop/reference/api/index.md +7 -6
- package/generated/develop/reference/api/instance.md +59 -1
- package/generated/develop/reference/api/permissions.md +13 -4
- package/generated/develop/reference/api/tenancy.md +13 -0
- package/generated/develop/reference/errors.md +6 -0
- package/generated/develop/reference/kinds/dashboard.md +10 -0
- package/generated/develop/reference/kinds/interface.md +10 -0
- package/generated/develop/reference/kinds/widget.md +1 -1
- package/generated/develop/reference/sdk/sdk.md +1 -1
- package/generated/develop/reference/sdk/widgets-page.md +13 -0
- package/generated/develop/reference/sdk/widgets.md +2 -2
- package/generated/develop/reference/widgets/chart.md +1 -1
- package/generated/develop/reference/widgets/goal.md +1 -1
- package/generated/develop/reference/widgets/pivot.md +1 -1
- package/generated/develop/reference/widgets/stat.md +1 -1
- package/generated/openapi.json +4899 -1734
- package/generated/self-host/reference/settings.md +2 -2
- package/generated/start/reference/changelog/0-7-0.md +208 -0
- package/package.json +11 -6
- package/assets/screenshots/administer/access-changes.dark.5b3255fafe5c.png +0 -0
- package/assets/screenshots/administer/access-changes.light.cff6913107a3.png +0 -0
- package/assets/screenshots/administer/access-end-users.dark.c0d4e526952b.png +0 -0
- package/assets/screenshots/administer/access-end-users.light.b3368747a4d3.png +0 -0
- package/assets/screenshots/administer/access-groups.dark.bff155b79a2c.png +0 -0
- package/assets/screenshots/administer/sso-audit-filters.dark.b6a4dc01aa2c.png +0 -0
- package/assets/screenshots/administer/sso-audit-filters.light.1a295f8a94ff.png +0 -0
- package/assets/screenshots/administer/sso-provider-setup.light.b7e337ee30fb.png +0 -0
- package/assets/screenshots/administer/sso-workers-pools.dark.2270cb13aaab.png +0 -0
- package/assets/screenshots/administer/sso-workers-pools.light.1efebb29f50c.png +0 -0
- package/assets/screenshots/console/account-sessions.dark.678e11711e06.png +0 -0
- package/assets/screenshots/console/account-sessions.light.d742e8f3d3d1.png +0 -0
- package/assets/screenshots/console/configure-alerts-default.dark.425955f71c50.png +0 -0
- package/assets/screenshots/console/configure-connections.dark.7b64ffab4c8c.png +0 -0
- package/assets/screenshots/console/dashboard-resource.light.55b36abe8e0e.png +0 -0
- package/assets/screenshots/console/extensions-editor.dark.ebb816369d53.png +0 -0
- package/assets/screenshots/console/flow-editor.dark.caab11f209cb.png +0 -0
- package/assets/screenshots/console/flow-editor.light.bfc7e6b366dc.png +0 -0
- package/assets/screenshots/console/operate-approvals.light.36987d0a4c62.png +0 -0
- package/assets/screenshots/console/operate-cancel-by-age.dark.2786b42ecfbe.png +0 -0
- package/assets/screenshots/console/operate-cancel-by-age.light.8ef6601ebbe7.png +0 -0
- package/assets/screenshots/console/operate-events.dark.7067e88d771e.png +0 -0
- package/assets/screenshots/console/operate-events.light.b58a8c7f0b04.png +0 -0
- package/assets/screenshots/console/operate-run-failed.dark.eb8c52a9fcf7.png +0 -0
- package/assets/screenshots/console/operate-runs.dark.ae45d93820b3.png +0 -0
- package/assets/screenshots/console/page-editor.light.2023b176d1a0.png +0 -0
- package/assets/screenshots/console/queries-editor.dark.b0ef383c3b90.png +0 -0
- package/assets/screenshots/console/queries-editor.light.8e413390ad34.png +0 -0
- package/assets/screenshots/console/queries-parameters.light.9bca851e025c.png +0 -0
- package/assets/screenshots/console/table-definition.light.ff11cce13c18.png +0 -0
- package/assets/screenshots/console/table-help.dark.bc35e748426c.png +0 -0
- package/assets/screenshots/console/table-help.light.fb1b109ee396.png +0 -0
- package/assets/screenshots/console/table-rows-filtered.dark.6fab42faa122.png +0 -0
- package/assets/screenshots/console/table-rows-filtered.light.aa9881d95f4d.png +0 -0
- package/assets/screenshots/console/table-rows.dark.4ce02d5478c9.png +0 -0
- package/assets/screenshots/console/table-rows.light.a1f7d91a9e77.png +0 -0
- package/assets/screenshots/console/tut-visit-mix.dark.724c62999f95.png +0 -0
- package/assets/screenshots/console/widgets-phone-page.dark.386738c3e5fb.png +0 -0
- package/assets/screenshots/docs/draft-conflict.dark.894a4f116020.png +0 -0
- package/assets/screenshots/docs/draft-conflict.light.c5187649da9a.png +0 -0
- package/assets/screenshots/docs/page-details-type.dark.26fda0943a41.png +0 -0
- package/assets/screenshots/self-host/extensions-component-kit.dark.95cf642b62b6.png +0 -0
- package/assets/screenshots/self-host/extensions-component-kit.light.d4d7ae43474d.png +0 -0
- package/assets/screenshots/self-host/instance-audit.dark.eabb7e1545a2.png +0 -0
- package/assets/screenshots/self-host/instance-audit.light.e0704c3e2f3c.png +0 -0
- package/assets/screenshots/self-host/instance-branding.dark.65706ba2f266.png +0 -0
- package/assets/screenshots/self-host/instance-branding.light.53ef9943efc1.png +0 -0
- package/assets/screenshots/self-host/instance-databases.dark.17e36475132c.png +0 -0
- package/assets/screenshots/self-host/instance-databases.light.6bd31df9f812.png +0 -0
- package/assets/screenshots/self-host/instance-health.dark.7ddc9725c6e5.png +0 -0
- package/assets/screenshots/self-host/instance-health.light.5d8697f0135a.png +0 -0
- package/assets/screenshots/self-host/instance-import-check.dark.b54f53b17e5e.png +0 -0
- package/assets/screenshots/self-host/instance-import-check.light.b33217f8efdf.png +0 -0
- package/assets/screenshots/self-host/instance-members.dark.3f319a2912d7.png +0 -0
- package/assets/screenshots/self-host/instance-members.light.3f90be8b0556.png +0 -0
- package/assets/screenshots/self-host/instance-operators.dark.fb0fcc88cc66.png +0 -0
- package/assets/screenshots/self-host/instance-operators.light.038f3f725bec.png +0 -0
- package/assets/screenshots/self-host/instance-tenants.dark.1f2501ef99c1.png +0 -0
- package/assets/screenshots/self-host/instance-tenants.light.9c1b997a9f5b.png +0 -0
- package/assets/screenshots/self-host/instance-triggers.dark.2c3cffed2649.png +0 -0
- package/assets/screenshots/self-host/instance-triggers.light.b0a06ee78d65.png +0 -0
- package/assets/screenshots/start/basics-finding-your-way.dark.05cc7d67b47c.png +0 -0
- package/assets/screenshots/start/basics-finding-your-way.light.45790efbcb57.png +0 -0
- package/assets/screenshots/start/tut-approve-step.dark.dc691e002e9e.png +0 -0
- package/assets/screenshots/start/tut-approve-step.light.9c219b4d2d1a.png +0 -0
- package/assets/screenshots/start/visit-notes-filtered.dark.f26ec0b4168c.png +0 -0
- package/assets/screenshots/start/visit-notes-filtered.light.841ac7004f1c.png +0 -0
- package/dist/assets/screenshots/administer/access-changes.dark.5b3255fafe5c.png +0 -0
- package/dist/assets/screenshots/administer/access-changes.light.cff6913107a3.png +0 -0
- package/dist/assets/screenshots/administer/access-end-users.dark.c0d4e526952b.png +0 -0
- package/dist/assets/screenshots/administer/access-end-users.light.b3368747a4d3.png +0 -0
- package/dist/assets/screenshots/administer/access-groups.dark.bff155b79a2c.png +0 -0
- package/dist/assets/screenshots/administer/sso-audit-filters.dark.b6a4dc01aa2c.png +0 -0
- package/dist/assets/screenshots/administer/sso-audit-filters.light.1a295f8a94ff.png +0 -0
- package/dist/assets/screenshots/administer/sso-provider-setup.light.b7e337ee30fb.png +0 -0
- package/dist/assets/screenshots/administer/sso-workers-pools.dark.2270cb13aaab.png +0 -0
- package/dist/assets/screenshots/administer/sso-workers-pools.light.1efebb29f50c.png +0 -0
- package/dist/assets/screenshots/console/account-sessions.dark.678e11711e06.png +0 -0
- package/dist/assets/screenshots/console/account-sessions.light.d742e8f3d3d1.png +0 -0
- package/dist/assets/screenshots/console/configure-alerts-default.dark.425955f71c50.png +0 -0
- package/dist/assets/screenshots/console/configure-connections.dark.7b64ffab4c8c.png +0 -0
- package/dist/assets/screenshots/console/dashboard-resource.light.55b36abe8e0e.png +0 -0
- package/dist/assets/screenshots/console/extensions-editor.dark.ebb816369d53.png +0 -0
- package/dist/assets/screenshots/console/flow-editor.dark.caab11f209cb.png +0 -0
- package/dist/assets/screenshots/console/flow-editor.light.bfc7e6b366dc.png +0 -0
- package/dist/assets/screenshots/console/operate-approvals.light.36987d0a4c62.png +0 -0
- package/dist/assets/screenshots/console/operate-cancel-by-age.dark.2786b42ecfbe.png +0 -0
- package/dist/assets/screenshots/console/operate-cancel-by-age.light.8ef6601ebbe7.png +0 -0
- package/dist/assets/screenshots/console/operate-events.dark.7067e88d771e.png +0 -0
- package/dist/assets/screenshots/console/operate-events.light.b58a8c7f0b04.png +0 -0
- package/dist/assets/screenshots/console/operate-run-failed.dark.eb8c52a9fcf7.png +0 -0
- package/dist/assets/screenshots/console/operate-runs.dark.ae45d93820b3.png +0 -0
- package/dist/assets/screenshots/console/page-editor.light.2023b176d1a0.png +0 -0
- package/dist/assets/screenshots/console/queries-editor.dark.b0ef383c3b90.png +0 -0
- package/dist/assets/screenshots/console/queries-editor.light.8e413390ad34.png +0 -0
- package/dist/assets/screenshots/console/queries-parameters.light.9bca851e025c.png +0 -0
- package/dist/assets/screenshots/console/table-definition.light.ff11cce13c18.png +0 -0
- package/dist/assets/screenshots/console/table-help.dark.bc35e748426c.png +0 -0
- package/dist/assets/screenshots/console/table-help.light.fb1b109ee396.png +0 -0
- package/dist/assets/screenshots/console/table-rows-filtered.dark.6fab42faa122.png +0 -0
- package/dist/assets/screenshots/console/table-rows-filtered.light.aa9881d95f4d.png +0 -0
- package/dist/assets/screenshots/console/table-rows.dark.4ce02d5478c9.png +0 -0
- package/dist/assets/screenshots/console/table-rows.light.a1f7d91a9e77.png +0 -0
- package/dist/assets/screenshots/console/tut-visit-mix.dark.724c62999f95.png +0 -0
- package/dist/assets/screenshots/console/widgets-phone-page.dark.386738c3e5fb.png +0 -0
- package/dist/assets/screenshots/docs/draft-conflict.dark.894a4f116020.png +0 -0
- package/dist/assets/screenshots/docs/draft-conflict.light.c5187649da9a.png +0 -0
- package/dist/assets/screenshots/docs/page-details-type.dark.26fda0943a41.png +0 -0
- package/dist/assets/screenshots/self-host/extensions-component-kit.dark.95cf642b62b6.png +0 -0
- package/dist/assets/screenshots/self-host/extensions-component-kit.light.d4d7ae43474d.png +0 -0
- package/dist/assets/screenshots/self-host/instance-audit.dark.eabb7e1545a2.png +0 -0
- package/dist/assets/screenshots/self-host/instance-audit.light.e0704c3e2f3c.png +0 -0
- package/dist/assets/screenshots/self-host/instance-branding.dark.65706ba2f266.png +0 -0
- package/dist/assets/screenshots/self-host/instance-branding.light.53ef9943efc1.png +0 -0
- package/dist/assets/screenshots/self-host/instance-databases.dark.17e36475132c.png +0 -0
- package/dist/assets/screenshots/self-host/instance-databases.light.6bd31df9f812.png +0 -0
- package/dist/assets/screenshots/self-host/instance-health.dark.7ddc9725c6e5.png +0 -0
- package/dist/assets/screenshots/self-host/instance-health.light.5d8697f0135a.png +0 -0
- package/dist/assets/screenshots/self-host/instance-import-check.dark.b54f53b17e5e.png +0 -0
- package/dist/assets/screenshots/self-host/instance-import-check.light.b33217f8efdf.png +0 -0
- package/dist/assets/screenshots/self-host/instance-members.dark.3f319a2912d7.png +0 -0
- package/dist/assets/screenshots/self-host/instance-members.light.3f90be8b0556.png +0 -0
- package/dist/assets/screenshots/self-host/instance-operators.dark.fb0fcc88cc66.png +0 -0
- package/dist/assets/screenshots/self-host/instance-operators.light.038f3f725bec.png +0 -0
- package/dist/assets/screenshots/self-host/instance-tenants.dark.1f2501ef99c1.png +0 -0
- package/dist/assets/screenshots/self-host/instance-tenants.light.9c1b997a9f5b.png +0 -0
- package/dist/assets/screenshots/self-host/instance-triggers.dark.2c3cffed2649.png +0 -0
- package/dist/assets/screenshots/self-host/instance-triggers.light.b0a06ee78d65.png +0 -0
- package/dist/assets/screenshots/start/basics-finding-your-way.dark.05cc7d67b47c.png +0 -0
- package/dist/assets/screenshots/start/basics-finding-your-way.light.45790efbcb57.png +0 -0
- package/dist/assets/screenshots/start/tut-approve-step.dark.dc691e002e9e.png +0 -0
- package/dist/assets/screenshots/start/tut-approve-step.light.9c219b4d2d1a.png +0 -0
- package/dist/assets/screenshots/start/visit-notes-filtered.dark.f26ec0b4168c.png +0 -0
- package/dist/assets/screenshots/start/visit-notes-filtered.light.841ac7004f1c.png +0 -0
|
@@ -1 +1 @@
|
|
|
1
|
-
{"path":"console/reference/screens/home/tenants","title":"Your tenants","tree":{"type":"root","v":1,"children":[{"type":"paragraph","children":[{"type":"text","value":"The tenant list is the console's root address, ","line":10},{"type":"inlineCode","value":"/","line":10},{"type":"text","value":". A ","line":10},{"type":"component","name":"term","form":"inline","props":{"id":"tenant"},"children":[{"type":"text","value":"tenant","line":10}],"line":10},{"type":"text","value":" is one team's space on the instance. A member sees the tenants they belong to. An operator sees every tenant on the instance, and the list is then reached as ","line":10},{"type":"strong","children":[{"type":"text","value":"All tenants","line":10}],"line":10},{"type":"text","value":" under ","line":10},{"type":"strong","children":[{"type":"text","value":"Instance","line":10}],"line":10},{"type":"text","value":"; its help topic is ","line":10},{"type":"inlineCode","value":"instance-tenants","line":10},{"type":"text","value":".","line":10}],"line":10},{"type":"paragraph","children":[{"type":"text","value":"The root address is also where the console opens. When you open ","line":12},{"type":"inlineCode","value":"/","line":12},{"type":"text","value":" and you have been in a tenant before, the console takes you back to the last workspace overview, or to the tenant, that it remembers for you. It does this only when you open the address: not on a reload, and not when the address carries a search or a filter. The list stays one click away under ","line":12},{"type":"strong","children":[{"type":"text","value":"Tenants","line":12}],"line":12},{"type":"text","value":" (member) or ","line":12},{"type":"strong","children":[{"type":"text","value":"Instance","line":12}],"line":12},{"type":"text","value":" (operator). Where you were is remembered only for tenants you are a member of, not under an operator's access grant.","line":12}],"line":12},{"type":"paragraph","children":[{"type":"text","value":"The screen is reached from the rail: ","line":14},{"type":"strong","children":[{"type":"text","value":"Tenants","line":14}],"line":14},{"type":"text","value":" for a member, ","line":14},{"type":"strong","children":[{"type":"text","value":"Instance","line":14}],"line":14},{"type":"text","value":" then ","line":14},{"type":"strong","children":[{"type":"text","value":"All tenants","line":14}],"line":14},{"type":"text","value":" for an operator. F1 (","line":14},{"type":"strong","children":[{"type":"text","value":"Help for this page","line":14}],"line":14},{"type":"text","value":") opens the topic ","line":14},{"type":"inlineCode","value":"tenants","line":14},{"type":"text","value":".","line":14}],"line":14},{"type":"component","name":"screenshot","form":"leaf","props":{"name":"console/basics-tenants","alt":"The Tenants list with a search box, the columns Name, Slug, Workspaces and Created, and the row of the tenant the signed-in member belongs to."},"children":[],"line":16},{"type":"heading","depth":2,"id":"controls","children":[{"type":"text","value":"Controls","line":18}],"line":18},{"type":"table","align":[null,null],"children":[{"type":"tableRow","header":true,"children":[{"type":"tableCell","children":[{"type":"text","value":"Control","line":20}]},{"type":"tableCell","children":[{"type":"text","value":"What it does","line":20}]}],"line":20},{"type":"tableRow","header":false,"children":[{"type":"tableCell","children":[{"type":"strong","children":[{"type":"text","value":"Create tenant","line":22}],"line":22}]},{"type":"tableCell","children":[{"type":"text","value":"Operators only. Opens a dialog (see below).","line":22}]}],"line":22},{"type":"tableRow","header":false,"children":[{"type":"tableCell","children":[{"type":"strong","children":[{"type":"text","value":"Search tenants","line":23}],"line":23}]},{"type":"tableCell","children":[{"type":"text","value":"Searches by name or slug. The server answers, so a tenant past the first page is found. The text is kept in the address as ","line":23},{"type":"inlineCode","value":"q","line":23},{"type":"text","value":".","line":23}]}],"line":23},{"type":"tableRow","header":false,"children":[{"type":"tableCell","children":[{"type":"strong","children":[{"type":"text","value":"Tables kept in","line":24}],"line":24}]},{"type":"tableCell","children":[{"type":"text","value":"Operators only, and only when the instance has database locations. ","line":24},{"type":"strong","children":[{"type":"text","value":"Anywhere","line":24}],"line":24},{"type":"text","value":" or one location; the list then shows the tenants whose tables are kept there. Kept in the address as ","line":24},{"type":"inlineCode","value":"location","line":24},{"type":"text","value":". A location in the address that is not registered shows as \"name (not registered)\".","line":24}]}],"line":24},{"type":"tableRow","header":false,"children":[{"type":"tableCell","children":[{"type":"text","value":"A tenant's name","line":25}]},{"type":"tableCell","children":[{"type":"text","value":"Opens the tenant.","line":25}]}],"line":25},{"type":"tableRow","header":false,"children":[{"type":"tableCell","children":[{"type":"text","value":"A row","line":26}]},{"type":"tableCell","children":[{"type":"text","value":"Opens the inspector beside the list. The tenant's ID is kept in the address as ","line":26},{"type":"inlineCode","value":"item","line":26},{"type":"text","value":", so Back closes it.","line":26}]}],"line":26},{"type":"tableRow","header":false,"children":[{"type":"tableCell","children":[{"type":"strong","children":[{"type":"text","value":"Load more","line":27}],"line":27}]},{"type":"tableCell","children":[{"type":"text","value":"Adds the next 50. The line above it says \"Showing the first N tenants.\" while there are more, and \"Showing N tenants.\" when there are not.","line":27}]}],"line":27}],"line":20},{"type":"heading","depth":3,"id":"columns","children":[{"type":"text","value":"Columns","line":29}],"line":29},{"type":"paragraph","children":[{"type":"text","value":"A column that does not fit gives way on a narrow window: ","line":31},{"type":"strong","children":[{"type":"text","value":"Name","line":31}],"line":31},{"type":"text","value":" stays, and the slug is shown under it on a phone.","line":31}],"line":31},{"type":"table","align":[null,null,null],"children":[{"type":"tableRow","header":true,"children":[{"type":"tableCell","children":[{"type":"text","value":"Column","line":33}]},{"type":"tableCell","children":[{"type":"text","value":"Who sees it","line":33}]},{"type":"tableCell","children":[{"type":"text","value":"What it shows","line":33}]}],"line":33},{"type":"tableRow","header":false,"children":[{"type":"tableCell","children":[{"type":"strong","children":[{"type":"text","value":"Name","line":35}],"line":35}]},{"type":"tableCell","children":[{"type":"text","value":"Everyone","line":35}]},{"type":"tableCell","children":[{"type":"text","value":"The tenant's name, as a link to the tenant.","line":35}]}],"line":35},{"type":"tableRow","header":false,"children":[{"type":"tableCell","children":[{"type":"strong","children":[{"type":"text","value":"Slug","line":36}],"line":36}]},{"type":"tableCell","children":[{"type":"text","value":"Everyone","line":36}]},{"type":"tableCell","children":[{"type":"text","value":"The tenant's slug, in code style.","line":36}]}],"line":36},{"type":"tableRow","header":false,"children":[{"type":"tableCell","children":[{"type":"strong","children":[{"type":"text","value":"Workspaces","line":37}],"line":37}]},{"type":"tableCell","children":[{"type":"text","value":"Everyone","line":37}]},{"type":"tableCell","children":[{"type":"text","value":"How many workspaces it has.","line":37}]}],"line":37},{"type":"tableRow","header":false,"children":[{"type":"tableCell","children":[{"type":"strong","children":[{"type":"text","value":"You","line":38}],"line":38}]},{"type":"tableCell","children":[{"type":"text","value":"Operators","line":38}]},{"type":"tableCell","children":[{"type":"strong","children":[{"type":"text","value":"Member","line":38}],"line":38},{"type":"text","value":", or ","line":38},{"type":"strong","children":[{"type":"text","value":"Not a member","line":38}],"line":38},{"type":"text","value":". A tenant you are not in is entered through an operator access grant.","line":38}]}],"line":38},{"type":"tableRow","header":false,"children":[{"type":"tableCell","children":[{"type":"strong","children":[{"type":"text","value":"Tables kept in","line":39}],"line":39}]},{"type":"tableCell","children":[{"type":"text","value":"Operators","line":39}]},{"type":"tableCell","children":[{"type":"text","value":"The database location, or \"The instance's database\".","line":39}]}],"line":39},{"type":"tableRow","header":false,"children":[{"type":"tableCell","children":[{"type":"strong","children":[{"type":"text","value":"Created","line":40}],"line":40}]},{"type":"tableCell","children":[{"type":"text","value":"Everyone","line":40}]},{"type":"tableCell","children":[{"type":"text","value":"How long ago, with the moment on hover; the date from 7 days on.","line":40}]}],"line":40}],"line":33},{"type":"heading","depth":3,"id":"the-inspector","children":[{"type":"text","value":"The inspector","line":42}],"line":42},{"type":"paragraph","children":[{"type":"text","value":"Choosing a row opens the inspector, titled with the tenant's name. It shows:","line":44}],"line":44},{"type":"table","align":[null,null],"children":[{"type":"tableRow","header":true,"children":[{"type":"tableCell","children":[{"type":"text","value":"Field","line":46}]},{"type":"tableCell","children":[{"type":"text","value":"What it shows","line":46}]}],"line":46},{"type":"tableRow","header":false,"children":[{"type":"tableCell","children":[{"type":"strong","children":[{"type":"text","value":"Slug","line":48}],"line":48}]},{"type":"tableCell","children":[{"type":"text","value":"The slug.","line":48}]}],"line":48},{"type":"tableRow","header":false,"children":[{"type":"tableCell","children":[{"type":"strong","children":[{"type":"text","value":"Workspaces","line":49}],"line":49}]},{"type":"tableCell","children":[{"type":"text","value":"The count.","line":49}]}],"line":49},{"type":"tableRow","header":false,"children":[{"type":"tableCell","children":[{"type":"strong","children":[{"type":"text","value":"Your access","line":50}],"line":50}]},{"type":"tableCell","children":[{"type":"text","value":"Operators. \"A member\", or \"Not a member. Inside it you work through an operator access grant, which needs a reason\".","line":50}]}],"line":50},{"type":"tableRow","header":false,"children":[{"type":"tableCell","children":[{"type":"strong","children":[{"type":"text","value":"Tables kept in","line":51}],"line":51}]},{"type":"tableCell","children":[{"type":"text","value":"Operators. A link to the database location, or \"The instance's database\".","line":51}]}],"line":51},{"type":"tableRow","header":false,"children":[{"type":"tableCell","children":[{"type":"strong","children":[{"type":"text","value":"Created","line":52}],"line":52}]},{"type":"tableCell","children":[{"type":"text","value":"The date and time.","line":52}]}],"line":52},{"type":"tableRow","header":false,"children":[{"type":"tableCell","children":[{"type":"strong","children":[{"type":"text","value":"ID","line":53}],"line":53}]},{"type":"tableCell","children":[{"type":"text","value":"The tenant's ID.","line":53}]}],"line":53}],"line":46},{"type":"paragraph","children":[{"type":"text","value":"Operators also see two blocks, which they use without opening the tenant and so without an access grant:","line":55}],"line":55},{"type":"table","align":[null,null],"children":[{"type":"tableRow","header":true,"children":[{"type":"tableCell","children":[{"type":"text","value":"Block","line":57}]},{"type":"tableCell","children":[{"type":"text","value":"What it does","line":57}]}],"line":57},{"type":"tableRow","header":false,"children":[{"type":"tableCell","children":[{"type":"strong","children":[{"type":"text","value":"Workers the instance starts","line":59}],"line":59}]},{"type":"tableCell","children":[{"type":"text","value":"Says whether the instance starts workers for the tenant when it has work. The button is ","line":59},{"type":"strong","children":[{"type":"text","value":"Start no workers for it","line":59}],"line":59},{"type":"text","value":" or ","line":59},{"type":"strong","children":[{"type":"text","value":"Start workers for it","line":59}],"line":59},{"type":"text","value":". When an operator turned it off, the text says \"An operator turned this off: the instance starts no workers for it, and only an operator turns it on again.\" Turning it off says \"The instance starts no workers for {name}. Only an operator can turn it on again.\"","line":59}]}],"line":59},{"type":"tableRow","header":false,"children":[{"type":"tableCell","children":[{"type":"strong","children":[{"type":"text","value":"History kept","line":60}],"line":60}]},{"type":"tableCell","children":[{"type":"text","value":"Says how many days runs, events, refused requests and the audit log are kept (\"Runs {n} days, events {n}, refused requests {n}, audit log {n}\"). ","line":60},{"type":"strong","children":[{"type":"text","value":"Change how long","line":60}],"line":60},{"type":"text","value":" opens a sheet, \"History kept for {name}\", where a field left empty uses the instance's default. Runs, events and refused requests older than their period are removed within minutes.","line":60}]}],"line":60}],"line":57},{"type":"paragraph","children":[{"type":"text","value":"The inspector's footer holds:","line":62}],"line":62},{"type":"table","align":[null,null],"children":[{"type":"tableRow","header":true,"children":[{"type":"tableCell","children":[{"type":"text","value":"Button","line":64}]},{"type":"tableCell","children":[{"type":"text","value":"What it does","line":64}]}],"line":64},{"type":"tableRow","header":false,"children":[{"type":"tableCell","children":[{"type":"strong","children":[{"type":"text","value":"Open","line":66}],"line":66}]},{"type":"tableCell","children":[{"type":"text","value":"Opens the tenant.","line":66}]}],"line":66},{"type":"tableRow","header":false,"children":[{"type":"tableCell","children":[{"type":"strong","children":[{"type":"text","value":"Rename","line":67}],"line":67}]},{"type":"tableCell","children":[{"type":"text","value":"Asks for a new name. The slug is in the tenant's addresses and stays. Hidden when you may not rename the tenant.","line":67}]}],"line":67},{"type":"tableRow","header":false,"children":[{"type":"tableCell","children":[{"type":"strong","children":[{"type":"text","value":"Turn off code in the console","line":68}],"line":68},{"type":"text","value":" / ","line":68},{"type":"strong","children":[{"type":"text","value":"Turn on code in the console","line":68}],"line":68}]},{"type":"tableCell","children":[{"type":"text","value":"Asks \"Turn off code in the console for {name}?\" When it is off, people can no longer save or test scripts, connectors and trigger sources in the console, in any workspace of the tenant; drafts are kept and what is deployed keeps running. The button is hidden when you may not change the tenant.","line":68}]}],"line":68},{"type":"tableRow","header":false,"children":[{"type":"tableCell","children":[{"type":"strong","children":[{"type":"text","value":"Delete","line":69}],"line":69}]},{"type":"tableCell","children":[{"type":"text","value":"Operators only. Asks you to type the tenant's slug. Deletes every workspace, secret, table and file of the tenant from the instance, and cannot be undone. If the tenant's own database does not answer, a second question offers ","line":69},{"type":"strong","children":[{"type":"text","value":"Delete anyway","line":69}],"line":69},{"type":"text","value":", which leaves its tables in that database for whoever runs it to drop.","line":69}]}],"line":69}],"line":64},{"type":"heading","depth":3,"id":"create-tenant","children":[{"type":"text","value":"Create tenant","line":71}],"line":71},{"type":"paragraph","children":[{"type":"strong","children":[{"type":"text","value":"Create tenant","line":73}],"line":73},{"type":"text","value":" opens a dialog (a side sheet where there are more than three fields).","line":73}],"line":73},{"type":"table","align":[null,null],"children":[{"type":"tableRow","header":true,"children":[{"type":"tableCell","children":[{"type":"text","value":"Field","line":75}]},{"type":"tableCell","children":[{"type":"text","value":"What it takes","line":75}]}],"line":75},{"type":"tableRow","header":false,"children":[{"type":"tableCell","children":[{"type":"strong","children":[{"type":"text","value":"Name","line":77}],"line":77}]},{"type":"tableCell","children":[{"type":"text","value":"The tenant's name.","line":77}]}],"line":77},{"type":"tableRow","header":false,"children":[{"type":"tableCell","children":[{"type":"strong","children":[{"type":"text","value":"Slug","line":78}],"line":78}]},{"type":"tableCell","children":[{"type":"text","value":"\"Lowercase letters, digits and hyphens. It cannot be changed later.\"","line":78}]}],"line":78},{"type":"tableRow","header":false,"children":[{"type":"tableCell","children":[{"type":"strong","children":[{"type":"text","value":"Database location","line":79}],"line":79}]},{"type":"tableCell","children":[{"type":"text","value":"Optional. Leave empty for the instance's own database. It is chosen once.","line":79}]}],"line":79},{"type":"tableRow","header":false,"children":[{"type":"tableCell","children":[{"type":"strong","children":[{"type":"text","value":"Make me a member, as tenant admin","line":80}],"line":80}]},{"type":"tableCell","children":[{"type":"text","value":"On by default. Then you work inside it as its own people do. Without it, you see inside only through an access grant, which ends and is recorded.","line":80}]}],"line":80}],"line":75},{"type":"paragraph","children":[{"type":"text","value":"When it works the tenant opens, and a notice says \"Tenant {name} is made.\" with the link ","line":82},{"type":"strong","children":[{"type":"text","value":"Open {name}","line":82}],"line":82},{"type":"text","value":".","line":82}],"line":82},{"type":"heading","depth":2,"id":"states","children":[{"type":"text","value":"States","line":84}],"line":84},{"type":"table","align":[null,null],"children":[{"type":"tableRow","header":true,"children":[{"type":"tableCell","children":[{"type":"text","value":"State","line":86}]},{"type":"tableCell","children":[{"type":"text","value":"What you see","line":86}]}],"line":86},{"type":"tableRow","header":false,"children":[{"type":"tableCell","children":[{"type":"text","value":"Loading","line":88}]},{"type":"tableCell","children":[{"type":"text","value":"The list's loading state.","line":88}]}],"line":88},{"type":"tableRow","header":false,"children":[{"type":"tableCell","children":[{"type":"text","value":"Empty, member","line":89}]},{"type":"tableCell","children":[{"type":"text","value":"\"No tenants yet\", with \"Nobody has added you to a tenant yet. Ask your administrator.\"","line":89}]}],"line":89},{"type":"tableRow","header":false,"children":[{"type":"tableCell","children":[{"type":"text","value":"Empty, operator","line":90}]},{"type":"tableCell","children":[{"type":"text","value":"\"No tenants yet\", with \"A tenant is one client organization. Create the first one to start adding workspaces and members.\" and ","line":90},{"type":"strong","children":[{"type":"text","value":"Create tenant","line":90}],"line":90},{"type":"text","value":".","line":90}]}],"line":90},{"type":"tableRow","header":false,"children":[{"type":"tableCell","children":[{"type":"text","value":"Empty, with a location","line":91}]},{"type":"tableCell","children":[{"type":"text","value":"\"No tenant keeps its tables there\", with \"Pick another database location, or Anywhere, to see the rest. A tenant is placed in one when it is created or imported.\"","line":91}]}],"line":91},{"type":"tableRow","header":false,"children":[{"type":"tableCell","children":[{"type":"text","value":"Nothing found","line":92}]},{"type":"tableCell","children":[{"type":"text","value":"\"Nothing matches\", with \"Try fewer or other words.\"","line":92}]}],"line":92},{"type":"tableRow","header":false,"children":[{"type":"tableCell","children":[{"type":"text","value":"Not loaded","line":93}]},{"type":"tableCell","children":[{"type":"text","value":"The list's error state, with ","line":93},{"type":"strong","children":[{"type":"text","value":"Try again","line":93}],"line":93},{"type":"text","value":".","line":93}]}],"line":93},{"type":"tableRow","header":false,"children":[{"type":"tableCell","children":[{"type":"text","value":"A suspended tenant","line":94}]},{"type":"tableCell","children":[{"type":"text","value":"A tenant you are suspended in is not listed.","line":94}]}],"line":94},{"type":"tableRow","header":false,"children":[{"type":"tableCell","children":[{"type":"text","value":"Operator without membership","line":95}]},{"type":"tableCell","children":[{"type":"text","value":"Opening a tenant you are not a member of shows \"You have no access to this tenant\", the text \"Operators see inside a tenant only through an access grant\" and ","line":95},{"type":"strong","children":[{"type":"text","value":"Open operator access","line":95}],"line":95},{"type":"text","value":", which asks for a ","line":95},{"type":"strong","children":[{"type":"text","value":"Reason","line":95}],"line":95},{"type":"text","value":" (shown to the tenant's admins), an ","line":95},{"type":"strong","children":[{"type":"text","value":"Access level","line":95}],"line":95},{"type":"text","value":" (one of the built-in roles; \"viewer (read only)\" comes first) and a ","line":95},{"type":"strong","children":[{"type":"text","value":"Duration","line":95}],"line":95},{"type":"text","value":" of 1 hour, 4 hours, 24 hours or ","line":95},{"type":"strong","children":[{"type":"text","value":"Other","line":95}],"line":95},{"type":"text","value":", which takes 1 to 1440 minutes.","line":95}]}],"line":95}],"line":86},{"type":"heading","depth":2,"id":"permissions","children":[{"type":"text","value":"Permissions","line":97}],"line":97},{"type":"table","align":[null,null],"children":[{"type":"tableRow","header":true,"children":[{"type":"tableCell","children":[{"type":"text","value":"Action","line":99}]},{"type":"tableCell","children":[{"type":"text","value":"Needs","line":99}]}],"line":99},{"type":"tableRow","header":false,"children":[{"type":"tableCell","children":[{"type":"text","value":"See the list","line":101}]},{"type":"tableCell","children":[{"type":"text","value":"You are signed in. A member sees their own tenants. An operator sees every tenant.","line":101}]}],"line":101},{"type":"tableRow","header":false,"children":[{"type":"tableCell","children":[{"type":"text","value":"Create tenant","line":102}]},{"type":"tableCell","children":[{"type":"inlineCode","value":"tenant:write","line":102},{"type":"text","value":" on the instance, which an operator holds.","line":102}]}],"line":102},{"type":"tableRow","header":false,"children":[{"type":"tableCell","children":[{"type":"text","value":"Rename, turn code in the console on or off, change how long history is kept, start or stop workers for a tenant","line":103}]},{"type":"tableCell","children":[{"type":"inlineCode","value":"tenant:write","line":103},{"type":"text","value":" on the tenant, or on the instance. Only an operator can turn workers back on once an operator turned them off.","line":103}]}],"line":103},{"type":"tableRow","header":false,"children":[{"type":"tableCell","children":[{"type":"text","value":"Delete","line":104}]},{"type":"tableCell","children":[{"type":"inlineCode","value":"tenant:write","line":104},{"type":"text","value":" on the instance.","line":104}]}],"line":104}],"line":99},{"type":"paragraph","children":[{"type":"text","value":"A person is an operator when they hold ","line":106},{"type":"inlineCode","value":"tenant:write","line":106},{"type":"text","value":" on the instance. See the ","line":106},{"type":"link","href":"../../../../administer/reference/permissions","children":[{"type":"text","value":"permissions reference","line":106}],"line":106},{"type":"text","value":".","line":106}],"line":106},{"type":"heading","depth":2,"id":"related","children":[{"type":"text","value":"Related","line":108}],"line":108},{"type":"list","ordered":false,"children":[{"type":"listItem","children":[{"type":"link","href":"../../../../start/explanation/concepts","children":[{"type":"text","value":"Concepts","line":110}],"line":110},{"type":"text","value":": what a tenant is.","line":110}],"line":110},{"type":"listItem","children":[{"type":"link","href":"../../../../start/reference/basics/finding-your-way","children":[{"type":"text","value":"Finding your way","line":111}],"line":111},{"type":"text","value":": the rail, the header and the switchers.","line":111}],"line":111},{"type":"listItem","children":[{"type":"link","href":"workspace-overview","children":[{"type":"text","value":"Workspace overview","line":112}],"line":112},{"type":"text","value":": where a workspace opens.","line":112}],"line":112}],"line":110}]},"description":"Every control, state and permission of the tenant list: its columns, search, inspector, the operator's tools, and how a tenant is made."}
|
|
1
|
+
{"path":"console/reference/screens/home/tenants","title":"Your tenants","tree":{"type":"root","v":1,"children":[{"type":"paragraph","children":[{"type":"text","value":"The tenant list is the console's root address, ","line":10},{"type":"inlineCode","value":"/","line":10},{"type":"text","value":". A ","line":10},{"type":"component","name":"term","form":"inline","props":{"id":"tenant"},"children":[{"type":"text","value":"tenant","line":10}],"line":10},{"type":"text","value":" is one team's space on the instance. A member sees the tenants they belong to. An operator sees every tenant on the instance, and the list is then reached as ","line":10},{"type":"strong","children":[{"type":"text","value":"All tenants","line":10}],"line":10},{"type":"text","value":" under ","line":10},{"type":"strong","children":[{"type":"text","value":"Instance","line":10}],"line":10},{"type":"text","value":"; its help topic is ","line":10},{"type":"inlineCode","value":"instance-tenants","line":10},{"type":"text","value":".","line":10}],"line":10},{"type":"paragraph","children":[{"type":"text","value":"The root address is also where the console opens. When you open ","line":12},{"type":"inlineCode","value":"/","line":12},{"type":"text","value":" and you have been in a tenant before, the console takes you back to the last workspace overview, or to the tenant, that it remembers for you. It does this only when you open the address: not on a reload, and not when the address carries a search or a filter. The list stays one click away under ","line":12},{"type":"strong","children":[{"type":"text","value":"Tenants","line":12}],"line":12},{"type":"text","value":" (member) or ","line":12},{"type":"strong","children":[{"type":"text","value":"Instance","line":12}],"line":12},{"type":"text","value":" (operator). Where you were is remembered only for tenants you are a member of, not under an operator's access grant.","line":12}],"line":12},{"type":"paragraph","children":[{"type":"text","value":"The screen is reached from the rail: ","line":14},{"type":"strong","children":[{"type":"text","value":"Tenants","line":14}],"line":14},{"type":"text","value":" for a member, ","line":14},{"type":"strong","children":[{"type":"text","value":"Instance","line":14}],"line":14},{"type":"text","value":" then ","line":14},{"type":"strong","children":[{"type":"text","value":"All tenants","line":14}],"line":14},{"type":"text","value":" for an operator. F1 (","line":14},{"type":"strong","children":[{"type":"text","value":"Help for this page","line":14}],"line":14},{"type":"text","value":") opens the topic ","line":14},{"type":"inlineCode","value":"tenants","line":14},{"type":"text","value":".","line":14}],"line":14},{"type":"component","name":"screenshot","form":"leaf","props":{"name":"console/basics-tenants","alt":"The Tenants list with a search box, the columns Name, Slug, Workspaces and Created, and the row of the tenant the signed-in member belongs to."},"children":[],"line":16},{"type":"heading","depth":2,"id":"controls","children":[{"type":"text","value":"Controls","line":18}],"line":18},{"type":"table","align":[null,null],"children":[{"type":"tableRow","header":true,"children":[{"type":"tableCell","children":[{"type":"text","value":"Control","line":20}]},{"type":"tableCell","children":[{"type":"text","value":"What it does","line":20}]}],"line":20},{"type":"tableRow","header":false,"children":[{"type":"tableCell","children":[{"type":"strong","children":[{"type":"text","value":"Create tenant","line":22}],"line":22}]},{"type":"tableCell","children":[{"type":"text","value":"Operators only. Opens a dialog (see below).","line":22}]}],"line":22},{"type":"tableRow","header":false,"children":[{"type":"tableCell","children":[{"type":"strong","children":[{"type":"text","value":"Search tenants","line":23}],"line":23}]},{"type":"tableCell","children":[{"type":"text","value":"Searches by name or slug. The server answers, so a tenant past the first page is found. The text is kept in the address as ","line":23},{"type":"inlineCode","value":"q","line":23},{"type":"text","value":".","line":23}]}],"line":23},{"type":"tableRow","header":false,"children":[{"type":"tableCell","children":[{"type":"strong","children":[{"type":"text","value":"Tables kept in","line":24}],"line":24}]},{"type":"tableCell","children":[{"type":"text","value":"Operators only, and only when the instance has database locations. ","line":24},{"type":"strong","children":[{"type":"text","value":"Anywhere","line":24}],"line":24},{"type":"text","value":" or one location; the list then shows the tenants whose tables are kept there. Kept in the address as ","line":24},{"type":"inlineCode","value":"location","line":24},{"type":"text","value":". A location in the address that is not registered shows as \"name (not registered)\".","line":24}]}],"line":24},{"type":"tableRow","header":false,"children":[{"type":"tableCell","children":[{"type":"text","value":"A tenant's name","line":25}]},{"type":"tableCell","children":[{"type":"text","value":"Opens the tenant.","line":25}]}],"line":25},{"type":"tableRow","header":false,"children":[{"type":"tableCell","children":[{"type":"text","value":"A row","line":26}]},{"type":"tableCell","children":[{"type":"text","value":"Opens the inspector beside the list. The tenant's ID is kept in the address as ","line":26},{"type":"inlineCode","value":"item","line":26},{"type":"text","value":", so Back closes it.","line":26}]}],"line":26},{"type":"tableRow","header":false,"children":[{"type":"tableCell","children":[{"type":"strong","children":[{"type":"text","value":"Load more","line":27}],"line":27}]},{"type":"tableCell","children":[{"type":"text","value":"Adds the next 50. The line above it says \"Showing the first N tenants.\" while there are more, and \"Showing N tenants.\" when there are not.","line":27}]}],"line":27}],"line":20},{"type":"heading","depth":3,"id":"columns","children":[{"type":"text","value":"Columns","line":29}],"line":29},{"type":"paragraph","children":[{"type":"text","value":"A column that does not fit gives way on a narrow window: ","line":31},{"type":"strong","children":[{"type":"text","value":"Name","line":31}],"line":31},{"type":"text","value":" stays, and the slug is shown under it on a phone.","line":31}],"line":31},{"type":"table","align":[null,null,null],"children":[{"type":"tableRow","header":true,"children":[{"type":"tableCell","children":[{"type":"text","value":"Column","line":33}]},{"type":"tableCell","children":[{"type":"text","value":"Who sees it","line":33}]},{"type":"tableCell","children":[{"type":"text","value":"What it shows","line":33}]}],"line":33},{"type":"tableRow","header":false,"children":[{"type":"tableCell","children":[{"type":"strong","children":[{"type":"text","value":"Name","line":35}],"line":35}]},{"type":"tableCell","children":[{"type":"text","value":"Everyone","line":35}]},{"type":"tableCell","children":[{"type":"text","value":"The tenant's name, as a link to the tenant.","line":35}]}],"line":35},{"type":"tableRow","header":false,"children":[{"type":"tableCell","children":[{"type":"strong","children":[{"type":"text","value":"Slug","line":36}],"line":36}]},{"type":"tableCell","children":[{"type":"text","value":"Everyone","line":36}]},{"type":"tableCell","children":[{"type":"text","value":"The tenant's slug, in code style.","line":36}]}],"line":36},{"type":"tableRow","header":false,"children":[{"type":"tableCell","children":[{"type":"strong","children":[{"type":"text","value":"Workspaces","line":37}],"line":37}]},{"type":"tableCell","children":[{"type":"text","value":"Everyone","line":37}]},{"type":"tableCell","children":[{"type":"text","value":"How many workspaces it has.","line":37}]}],"line":37},{"type":"tableRow","header":false,"children":[{"type":"tableCell","children":[{"type":"strong","children":[{"type":"text","value":"You","line":38}],"line":38}]},{"type":"tableCell","children":[{"type":"text","value":"Operators","line":38}]},{"type":"tableCell","children":[{"type":"strong","children":[{"type":"text","value":"Member","line":38}],"line":38},{"type":"text","value":", or ","line":38},{"type":"strong","children":[{"type":"text","value":"Not a member","line":38}],"line":38},{"type":"text","value":". A tenant you are not in is entered through an operator access grant.","line":38}]}],"line":38},{"type":"tableRow","header":false,"children":[{"type":"tableCell","children":[{"type":"strong","children":[{"type":"text","value":"Tables kept in","line":39}],"line":39}]},{"type":"tableCell","children":[{"type":"text","value":"Operators","line":39}]},{"type":"tableCell","children":[{"type":"text","value":"The database location, or \"The instance's database\".","line":39}]}],"line":39},{"type":"tableRow","header":false,"children":[{"type":"tableCell","children":[{"type":"strong","children":[{"type":"text","value":"Created","line":40}],"line":40}]},{"type":"tableCell","children":[{"type":"text","value":"Everyone","line":40}]},{"type":"tableCell","children":[{"type":"text","value":"How long ago, with the moment on hover; the date from 7 days on.","line":40}]}],"line":40}],"line":33},{"type":"heading","depth":3,"id":"the-inspector","children":[{"type":"text","value":"The inspector","line":42}],"line":42},{"type":"paragraph","children":[{"type":"text","value":"Choosing a row opens the inspector, titled with the tenant's name. It shows:","line":44}],"line":44},{"type":"table","align":[null,null],"children":[{"type":"tableRow","header":true,"children":[{"type":"tableCell","children":[{"type":"text","value":"Field","line":46}]},{"type":"tableCell","children":[{"type":"text","value":"What it shows","line":46}]}],"line":46},{"type":"tableRow","header":false,"children":[{"type":"tableCell","children":[{"type":"strong","children":[{"type":"text","value":"Slug","line":48}],"line":48}]},{"type":"tableCell","children":[{"type":"text","value":"The slug.","line":48}]}],"line":48},{"type":"tableRow","header":false,"children":[{"type":"tableCell","children":[{"type":"strong","children":[{"type":"text","value":"Workspaces","line":49}],"line":49}]},{"type":"tableCell","children":[{"type":"text","value":"The count.","line":49}]}],"line":49},{"type":"tableRow","header":false,"children":[{"type":"tableCell","children":[{"type":"strong","children":[{"type":"text","value":"Your access","line":50}],"line":50}]},{"type":"tableCell","children":[{"type":"text","value":"Operators. \"A member\", or \"Not a member. Inside it you work through an operator access grant, which needs a reason\".","line":50}]}],"line":50},{"type":"tableRow","header":false,"children":[{"type":"tableCell","children":[{"type":"strong","children":[{"type":"text","value":"Tables kept in","line":51}],"line":51}]},{"type":"tableCell","children":[{"type":"text","value":"Operators. A link to the database location, or \"The instance's database\".","line":51}]}],"line":51},{"type":"tableRow","header":false,"children":[{"type":"tableCell","children":[{"type":"strong","children":[{"type":"text","value":"Created","line":52}],"line":52}]},{"type":"tableCell","children":[{"type":"text","value":"The date and time.","line":52}]}],"line":52},{"type":"tableRow","header":false,"children":[{"type":"tableCell","children":[{"type":"strong","children":[{"type":"text","value":"ID","line":53}],"line":53}]},{"type":"tableCell","children":[{"type":"text","value":"The tenant's ID.","line":53}]}],"line":53}],"line":46},{"type":"paragraph","children":[{"type":"text","value":"Operators also see two blocks, which they use without opening the tenant and so without an access grant:","line":55}],"line":55},{"type":"table","align":[null,null],"children":[{"type":"tableRow","header":true,"children":[{"type":"tableCell","children":[{"type":"text","value":"Block","line":57}]},{"type":"tableCell","children":[{"type":"text","value":"What it does","line":57}]}],"line":57},{"type":"tableRow","header":false,"children":[{"type":"tableCell","children":[{"type":"strong","children":[{"type":"text","value":"Workers the instance starts","line":59}],"line":59}]},{"type":"tableCell","children":[{"type":"text","value":"Says whether the instance starts workers for the tenant when it has work. The button is ","line":59},{"type":"strong","children":[{"type":"text","value":"Start no workers for it","line":59}],"line":59},{"type":"text","value":" or ","line":59},{"type":"strong","children":[{"type":"text","value":"Start workers for it","line":59}],"line":59},{"type":"text","value":". When an operator turned it off, the text says \"An operator turned this off: the instance starts no workers for it, and only an operator turns it on again.\" Turning it off says \"The instance starts no workers for {name}. Only an operator can turn it on again.\"","line":59}]}],"line":59},{"type":"tableRow","header":false,"children":[{"type":"tableCell","children":[{"type":"strong","children":[{"type":"text","value":"History kept","line":60}],"line":60}]},{"type":"tableCell","children":[{"type":"text","value":"Says how many days runs, events, refused requests and the audit log are kept (\"Runs {n} days, events {n}, refused requests {n}, audit log {n}\"). ","line":60},{"type":"strong","children":[{"type":"text","value":"Change how long","line":60}],"line":60},{"type":"text","value":" opens a sheet, \"History kept for {name}\", where a field left empty uses the instance's default. Runs, events, refused requests and figures older than their period are removed within minutes.","line":60}]}],"line":60}],"line":57},{"type":"paragraph","children":[{"type":"text","value":"The inspector's footer holds:","line":62}],"line":62},{"type":"table","align":[null,null],"children":[{"type":"tableRow","header":true,"children":[{"type":"tableCell","children":[{"type":"text","value":"Button","line":64}]},{"type":"tableCell","children":[{"type":"text","value":"What it does","line":64}]}],"line":64},{"type":"tableRow","header":false,"children":[{"type":"tableCell","children":[{"type":"strong","children":[{"type":"text","value":"Open","line":66}],"line":66}]},{"type":"tableCell","children":[{"type":"text","value":"Opens the tenant.","line":66}]}],"line":66},{"type":"tableRow","header":false,"children":[{"type":"tableCell","children":[{"type":"strong","children":[{"type":"text","value":"Rename","line":67}],"line":67}]},{"type":"tableCell","children":[{"type":"text","value":"Asks for a new name. The slug is in the tenant's addresses and stays. Hidden when you may not rename the tenant.","line":67}]}],"line":67},{"type":"tableRow","header":false,"children":[{"type":"tableCell","children":[{"type":"strong","children":[{"type":"text","value":"Turn off code in the console","line":68}],"line":68},{"type":"text","value":" / ","line":68},{"type":"strong","children":[{"type":"text","value":"Turn on code in the console","line":68}],"line":68}]},{"type":"tableCell","children":[{"type":"text","value":"Asks \"Turn off code in the console for {name}?\" When it is off, people can no longer save or test scripts, connectors and trigger sources in the console, in any workspace of the tenant; drafts are kept and what is deployed keeps running. The button is hidden when you may not change the tenant.","line":68}]}],"line":68},{"type":"tableRow","header":false,"children":[{"type":"tableCell","children":[{"type":"strong","children":[{"type":"text","value":"Delete","line":69}],"line":69}]},{"type":"tableCell","children":[{"type":"text","value":"Operators only. Asks you to type the tenant's slug. Deletes every workspace, secret, table and file of the tenant from the instance, and cannot be undone. If the tenant's own database does not answer, a second question offers ","line":69},{"type":"strong","children":[{"type":"text","value":"Delete anyway","line":69}],"line":69},{"type":"text","value":", which leaves its tables in that database for whoever runs it to drop.","line":69}]}],"line":69}],"line":64},{"type":"heading","depth":3,"id":"create-tenant","children":[{"type":"text","value":"Create tenant","line":71}],"line":71},{"type":"paragraph","children":[{"type":"strong","children":[{"type":"text","value":"Create tenant","line":73}],"line":73},{"type":"text","value":" opens a dialog (a side sheet where there are more than three fields).","line":73}],"line":73},{"type":"table","align":[null,null],"children":[{"type":"tableRow","header":true,"children":[{"type":"tableCell","children":[{"type":"text","value":"Field","line":75}]},{"type":"tableCell","children":[{"type":"text","value":"What it takes","line":75}]}],"line":75},{"type":"tableRow","header":false,"children":[{"type":"tableCell","children":[{"type":"strong","children":[{"type":"text","value":"Name","line":77}],"line":77}]},{"type":"tableCell","children":[{"type":"text","value":"The tenant's name.","line":77}]}],"line":77},{"type":"tableRow","header":false,"children":[{"type":"tableCell","children":[{"type":"strong","children":[{"type":"text","value":"Slug","line":78}],"line":78}]},{"type":"tableCell","children":[{"type":"text","value":"\"Lowercase letters, digits and hyphens. It cannot be changed later.\"","line":78}]}],"line":78},{"type":"tableRow","header":false,"children":[{"type":"tableCell","children":[{"type":"strong","children":[{"type":"text","value":"Database location","line":79}],"line":79}]},{"type":"tableCell","children":[{"type":"text","value":"Optional. Leave empty for the instance's own database. It is chosen once.","line":79}]}],"line":79},{"type":"tableRow","header":false,"children":[{"type":"tableCell","children":[{"type":"strong","children":[{"type":"text","value":"Make me a member, as tenant admin","line":80}],"line":80}]},{"type":"tableCell","children":[{"type":"text","value":"On by default. Then you work inside it as its own people do. Without it, you see inside only through an access grant, which ends and is recorded.","line":80}]}],"line":80}],"line":75},{"type":"paragraph","children":[{"type":"text","value":"When it works the tenant opens, and a notice says \"Tenant {name} is made.\" with the link ","line":82},{"type":"strong","children":[{"type":"text","value":"Open {name}","line":82}],"line":82},{"type":"text","value":".","line":82}],"line":82},{"type":"heading","depth":2,"id":"states","children":[{"type":"text","value":"States","line":84}],"line":84},{"type":"table","align":[null,null],"children":[{"type":"tableRow","header":true,"children":[{"type":"tableCell","children":[{"type":"text","value":"State","line":86}]},{"type":"tableCell","children":[{"type":"text","value":"What you see","line":86}]}],"line":86},{"type":"tableRow","header":false,"children":[{"type":"tableCell","children":[{"type":"text","value":"Loading","line":88}]},{"type":"tableCell","children":[{"type":"text","value":"The list's loading state.","line":88}]}],"line":88},{"type":"tableRow","header":false,"children":[{"type":"tableCell","children":[{"type":"text","value":"Empty, member","line":89}]},{"type":"tableCell","children":[{"type":"text","value":"\"No tenants yet\", with \"Nobody has added you to a tenant yet. Ask your administrator.\"","line":89}]}],"line":89},{"type":"tableRow","header":false,"children":[{"type":"tableCell","children":[{"type":"text","value":"Empty, operator","line":90}]},{"type":"tableCell","children":[{"type":"text","value":"\"No tenants yet\", with \"A tenant is one client organization. Create the first one to start adding workspaces and members.\" and ","line":90},{"type":"strong","children":[{"type":"text","value":"Create tenant","line":90}],"line":90},{"type":"text","value":".","line":90}]}],"line":90},{"type":"tableRow","header":false,"children":[{"type":"tableCell","children":[{"type":"text","value":"Empty, with a location","line":91}]},{"type":"tableCell","children":[{"type":"text","value":"\"No tenant keeps its tables there\", with \"Pick another database location, or Anywhere, to see the rest. A tenant is placed in one when it is created or imported.\"","line":91}]}],"line":91},{"type":"tableRow","header":false,"children":[{"type":"tableCell","children":[{"type":"text","value":"Nothing found","line":92}]},{"type":"tableCell","children":[{"type":"text","value":"\"Nothing matches\", with \"Try fewer or other words.\"","line":92}]}],"line":92},{"type":"tableRow","header":false,"children":[{"type":"tableCell","children":[{"type":"text","value":"Not loaded","line":93}]},{"type":"tableCell","children":[{"type":"text","value":"The list's error state, with ","line":93},{"type":"strong","children":[{"type":"text","value":"Try again","line":93}],"line":93},{"type":"text","value":".","line":93}]}],"line":93},{"type":"tableRow","header":false,"children":[{"type":"tableCell","children":[{"type":"text","value":"A suspended tenant","line":94}]},{"type":"tableCell","children":[{"type":"text","value":"A tenant you are suspended in is not listed.","line":94}]}],"line":94},{"type":"tableRow","header":false,"children":[{"type":"tableCell","children":[{"type":"text","value":"Operator without membership","line":95}]},{"type":"tableCell","children":[{"type":"text","value":"Opening a tenant you are not a member of shows \"You have no access to this tenant\", the text \"Operators see inside a tenant only through an access grant\" and ","line":95},{"type":"strong","children":[{"type":"text","value":"Open operator access","line":95}],"line":95},{"type":"text","value":", which asks for a ","line":95},{"type":"strong","children":[{"type":"text","value":"Reason","line":95}],"line":95},{"type":"text","value":" (shown to the tenant's admins), an ","line":95},{"type":"strong","children":[{"type":"text","value":"Access level","line":95}],"line":95},{"type":"text","value":" (one of the built-in roles; \"viewer (read only)\" comes first) and a ","line":95},{"type":"strong","children":[{"type":"text","value":"Duration","line":95}],"line":95},{"type":"text","value":" of 1 hour, 4 hours, 24 hours or ","line":95},{"type":"strong","children":[{"type":"text","value":"Other","line":95}],"line":95},{"type":"text","value":", which takes 1 to 1440 minutes.","line":95}]}],"line":95}],"line":86},{"type":"heading","depth":2,"id":"permissions","children":[{"type":"text","value":"Permissions","line":97}],"line":97},{"type":"table","align":[null,null],"children":[{"type":"tableRow","header":true,"children":[{"type":"tableCell","children":[{"type":"text","value":"Action","line":99}]},{"type":"tableCell","children":[{"type":"text","value":"Needs","line":99}]}],"line":99},{"type":"tableRow","header":false,"children":[{"type":"tableCell","children":[{"type":"text","value":"See the list","line":101}]},{"type":"tableCell","children":[{"type":"text","value":"You are signed in. A member sees their own tenants. An operator sees every tenant.","line":101}]}],"line":101},{"type":"tableRow","header":false,"children":[{"type":"tableCell","children":[{"type":"text","value":"Create tenant","line":102}]},{"type":"tableCell","children":[{"type":"inlineCode","value":"tenant:write","line":102},{"type":"text","value":" on the instance, which an operator holds.","line":102}]}],"line":102},{"type":"tableRow","header":false,"children":[{"type":"tableCell","children":[{"type":"text","value":"Rename, turn code in the console on or off, change how long history is kept, start or stop workers for a tenant","line":103}]},{"type":"tableCell","children":[{"type":"inlineCode","value":"tenant:write","line":103},{"type":"text","value":" on the tenant, or on the instance. Only an operator can turn workers back on once an operator turned them off.","line":103}]}],"line":103},{"type":"tableRow","header":false,"children":[{"type":"tableCell","children":[{"type":"text","value":"Delete","line":104}]},{"type":"tableCell","children":[{"type":"inlineCode","value":"tenant:write","line":104},{"type":"text","value":" on the instance.","line":104}]}],"line":104}],"line":99},{"type":"paragraph","children":[{"type":"text","value":"A person is an operator when they hold ","line":106},{"type":"inlineCode","value":"tenant:write","line":106},{"type":"text","value":" on the instance. See the ","line":106},{"type":"link","href":"../../../../administer/reference/permissions","children":[{"type":"text","value":"permissions reference","line":106}],"line":106},{"type":"text","value":".","line":106}],"line":106},{"type":"heading","depth":2,"id":"related","children":[{"type":"text","value":"Related","line":108}],"line":108},{"type":"list","ordered":false,"children":[{"type":"listItem","children":[{"type":"link","href":"../../../../start/explanation/concepts","children":[{"type":"text","value":"Concepts","line":110}],"line":110},{"type":"text","value":": what a tenant is.","line":110}],"line":110},{"type":"listItem","children":[{"type":"link","href":"../../../../start/reference/basics/finding-your-way","children":[{"type":"text","value":"Finding your way","line":111}],"line":111},{"type":"text","value":": the rail, the header and the switchers.","line":111}],"line":111},{"type":"listItem","children":[{"type":"link","href":"workspace-overview","children":[{"type":"text","value":"Workspace overview","line":112}],"line":112},{"type":"text","value":": where a workspace opens.","line":112}],"line":112}],"line":110}]},"description":"Every control, state and permission of the tenant list: its columns, search, inspector, the operator's tools, and how a tenant is made."}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"path":"develop/explanation/api/how-the-api-knows-who-is-calling","title":"How the API knows who is calling","tree":{"type":"root","v":1,"children":[{"type":"paragraph","children":[{"type":"text","value":"The API has one front door, ","line":7},{"type":"inlineCode","value":"/api/v1","line":7},{"type":"text","value":", and several kinds of caller behind it. Each route says in the API description what it needs (","line":7},{"type":"inlineCode","value":"x-access","line":7},{"type":"text","value":"): a permission and where it is checked, that it is public, that it is for anyone signed in, or what the route decides itself from what is asked. This page explains how the caller is worked out. To make a key and use it, see ","line":7},{"type":"link","href":"../../how-to/api/call-the-api-with-a-key","children":[{"type":"text","value":"Call the API with an API key","line":7}],"line":7},{"type":"text","value":".","line":7}],"line":7},{"type":"heading","depth":2,"id":"the-idea","children":[{"type":"text","value":"The idea","line":9}],"line":9},{"type":"paragraph","children":[{"type":"text","value":"A request is answered as one principal: a member, a service account, an end user, or nobody. The principal is worked out from the request before the route runs, and then the same permission check applies to everyone. A route that is open to all calls itself public, and a route that asks for a person says so.","line":11}],"line":11},{"type":"table","align":[null,null,null,null],"children":[{"type":"tableRow","header":true,"children":[{"type":"tableCell","children":[{"type":"text","value":"Credential","line":13}]},{"type":"tableCell","children":[{"type":"text","value":"Looks like","line":13}]},{"type":"tableCell","children":[{"type":"text","value":"Who it is","line":13}]},{"type":"tableCell","children":[{"type":"text","value":"Where it works","line":13}]}],"line":13},{"type":"tableRow","header":false,"children":[{"type":"tableCell","children":[{"type":"text","value":"API key","line":15}]},{"type":"tableCell","children":[{"type":"inlineCode","value":"Authorization: Bearer vxk_...","line":15}]},{"type":"tableCell","children":[{"type":"text","value":"A member, or a service account.","line":15}]},{"type":"tableCell","children":[{"type":"text","value":"Every route that asks for a permission.","line":15}]}],"line":15},{"type":"tableRow","header":false,"children":[{"type":"tableCell","children":[{"type":"text","value":"Console session","line":16}]},{"type":"tableCell","children":[{"type":"text","value":"A cookie, ","line":16},{"type":"inlineCode","value":"vx_member.session_token","line":16},{"type":"text","value":".","line":16}]},{"type":"tableCell","children":[{"type":"text","value":"A member.","line":16}]},{"type":"tableCell","children":[{"type":"text","value":"The instance's own address only, and for seven days.","line":16}]}],"line":16},{"type":"tableRow","header":false,"children":[{"type":"tableCell","children":[{"type":"text","value":"Sign-in to an app","line":17}]},{"type":"tableCell","children":[{"type":"text","value":"A cookie, ","line":17},{"type":"inlineCode","value":"vx_app_<tenant id>","line":17},{"type":"text","value":", and a token that begins ","line":17},{"type":"inlineCode","value":"vxs_","line":17},{"type":"text","value":".","line":17}]},{"type":"tableCell","children":[{"type":"text","value":"An end user (30 days), or a member who opened an app (12 hours).","line":17}]},{"type":"tableCell","children":[{"type":"text","value":"The app's own address, for that tenant.","line":17}]}],"line":17},{"type":"tableRow","header":false,"children":[{"type":"tableCell","children":[{"type":"text","value":"Worker credential","line":18}]},{"type":"tableCell","children":[{"type":"inlineCode","value":"vxw_...","line":18}]},{"type":"tableCell","children":[{"type":"text","value":"A worker.","line":18}]},{"type":"tableCell","children":[{"type":"text","value":"The worker protocol.","line":18}]}],"line":18},{"type":"tableRow","header":false,"children":[{"type":"tableCell","children":[{"type":"text","value":"SCIM token","line":19}]},{"type":"tableCell","children":[{"type":"inlineCode","value":"Authorization: Bearer vxp_...","line":19}]},{"type":"tableCell","children":[{"type":"text","value":"A provider's push.","line":19}]},{"type":"tableCell","children":[{"type":"text","value":"One provider's SCIM address.","line":19}]}],"line":19},{"type":"tableRow","header":false,"children":[{"type":"tableCell","children":[{"type":"text","value":"Webhook or form token","line":20}]},{"type":"tableCell","children":[{"type":"inlineCode","value":"vxh_...","line":20},{"type":"text","value":" or ","line":20},{"type":"inlineCode","value":"vxf_...","line":20},{"type":"text","value":", in the address.","line":20}]},{"type":"tableCell","children":[{"type":"text","value":"Whoever holds the address.","line":20}]},{"type":"tableCell","children":[{"type":"text","value":"That one trigger.","line":20}]}],"line":20},{"type":"tableRow","header":false,"children":[{"type":"tableCell","children":[{"type":"text","value":"Approval link","line":21}]},{"type":"tableCell","children":[{"type":"text","value":"A link in a message.","line":21}]},{"type":"tableCell","children":[{"type":"text","value":"The person it was sent to.","line":21}]},{"type":"tableCell","children":[{"type":"text","value":"One approval, for 48 hours, once.","line":21}]}],"line":21}],"line":13},{"type":"paragraph","children":[{"type":"text","value":"The metrics route is one more case: ","line":23},{"type":"inlineCode","value":"GET /api/v1/metrics","line":23},{"type":"text","value":" takes a member or a key that holds ","line":23},{"type":"inlineCode","value":"instance:read","line":23},{"type":"text","value":", or a scraper that sends the operator's ","line":23},{"type":"inlineCode","value":"METRICS_TOKEN","line":23},{"type":"text","value":".","line":23}],"line":23},{"type":"heading","depth":2,"id":"how-a-key-is-checked","children":[{"type":"text","value":"How a key is checked","line":25}],"line":25},{"type":"paragraph","children":[{"type":"text","value":"Only ","line":27},{"type":"inlineCode","value":"Authorization: Bearer vxk_...","line":27},{"type":"text","value":" is accepted as a header. Any other ","line":27},{"type":"inlineCode","value":"Authorization","line":27},{"type":"text","value":" header is refused with 401, even when a valid cookie comes with it. The key is looked up by its hash: the instance keeps the hash, the first characters and the last four, and shows the key once, when it is made.","line":27}],"line":27},{"type":"paragraph","children":[{"type":"text","value":"A key is refused when it was revoked, when its ","line":29},{"type":"inlineCode","value":"expiresAt","line":29},{"type":"text","value":" has passed, or when its owner is a disabled member. A key acts as its owner with the owner's permissions. It has no scopes of its own, so the way to make a key that can do less is to make it for a service account that holds less.","line":29}],"line":29},{"type":"paragraph","children":[{"type":"text","value":"A service account's key reaches only that account's tenant.","line":31}],"line":31},{"type":"heading","depth":2,"id":"why-a-cookie-is-different","children":[{"type":"text","value":"Why a cookie is different","line":33}],"line":33},{"type":"paragraph","children":[{"type":"text","value":"A browser sends its cookies by itself, also when another site makes it send a request. So a change that arrives with a session cookie must come from a page of this instance: a write whose ","line":35},{"type":"inlineCode","value":"Origin","line":35},{"type":"text","value":" header is not the address it was sent to, or the instance's own, is refused with 403 ","line":35},{"type":"inlineCode","value":"cross_site","line":35},{"type":"text","value":". A key is not sent by a browser unless a program puts it there, so it is not held to this. There is no cross-origin sharing: no ","line":35},{"type":"inlineCode","value":"access-control-*","line":35},{"type":"text","value":" header is sent by the API.","line":35}],"line":35},{"type":"paragraph","children":[{"type":"text","value":"A member's session counts at the instance's own address and nowhere else. At an app's address a person is known by their sign-in to that tenant's apps and by nothing else.","line":37}],"line":37},{"type":"heading","depth":2,"id":"why-a-service-account-is-turned-away-from-some-routes","children":[{"type":"text","value":"Why a service account is turned away from some routes","line":39}],"line":39},{"type":"paragraph","children":[{"type":"text","value":"Some routes are about a person's own account: their API keys and their sessions. A key of a service account is refused there with \"This is only for a person signed in, not for a service account's key.\" A route that a program may call as well says so. Three do: ","line":41},{"type":"inlineCode","value":"GET /api/v1/me","line":41},{"type":"text","value":", the batch of approvals and ","line":41},{"type":"inlineCode","value":"GET /api/v1/tenants","line":41},{"type":"text","value":", which answers a key with its own tenant alone, so that a command can find it by its slug.","line":41}],"line":41},{"type":"paragraph","children":[{"type":"text","value":"End users and members who signed in to an app are also refused on those routes: \"This is only for a member signed in to the workspace.\"","line":43}],"line":43},{"type":"paragraph","children":[{"type":"text","value":"A service account does not stand for a second person. It may not approve or decline an access change that waits for one.","line":45}],"line":45},{"type":"heading","depth":2,"id":"who-a-name-is-known-to","children":[{"type":"text","value":"Who a name is known to","line":47}],"line":47},{"type":"paragraph","children":[{"type":"text","value":"A request to a tenant's registered hostname is answered for that tenant only, and 404 for any other. A route with a path that holds a tenant answers 404, not 403, to a caller who has no standing in the tenant, so that tenant IDs cannot be probed.","line":49}],"line":49},{"type":"heading","depth":2,"id":"how-it-fits","children":[{"type":"text","value":"How it fits","line":51}],"line":51},{"type":"list","ordered":false,"children":[{"type":"listItem","children":[{"type":"text","value":"To make a key, revoke it or give a program one: ","line":53},{"type":"link","href":"../../how-to/api/call-the-api-with-a-key","children":[{"type":"text","value":"Call the API with an API key","line":53}],"line":53},{"type":"text","value":".","line":53}],"line":53},{"type":"listItem","children":[{"type":"text","value":"The permission each route needs is in the ","line":54},{"type":"link","href":"../../reference/api/index","children":[{"type":"text","value":"API reference","line":54}],"line":54},{"type":"text","value":" under the route, and the list of permissions in the ","line":54},{"type":"link","href":"../../../administer/reference/permissions","children":[{"type":"text","value":"permissions reference","line":54}],"line":54},{"type":"text","value":".","line":54}],"line":54},{"type":"listItem","children":[{"type":"text","value":"How many tries a caller gets: ","line":55},{"type":"link","href":"how-rate-limits-work","children":[{"type":"text","value":"How rate limits work","line":55}],"line":55},{"type":"text","value":".","line":55}],"line":55}],"line":53}]},"description":"The credentials the API accepts, what each reaches, how a session cookie differs from an API key, and why a service account's key is turned away from some routes."}
|
|
1
|
+
{"path":"develop/explanation/api/how-the-api-knows-who-is-calling","title":"How the API knows who is calling","tree":{"type":"root","v":1,"children":[{"type":"paragraph","children":[{"type":"text","value":"The API has one front door, ","line":7},{"type":"inlineCode","value":"/api/v1","line":7},{"type":"text","value":", and several kinds of caller behind it. Each route says in the API description what it needs (","line":7},{"type":"inlineCode","value":"x-access","line":7},{"type":"text","value":"): a permission and where it is checked, that it is public, that it is for anyone signed in, or what the route decides itself from what is asked. This page explains how the caller is worked out. To make a key and use it, see ","line":7},{"type":"link","href":"../../how-to/api/call-the-api-with-a-key","children":[{"type":"text","value":"Call the API with an API key","line":7}],"line":7},{"type":"text","value":".","line":7}],"line":7},{"type":"heading","depth":2,"id":"the-idea","children":[{"type":"text","value":"The idea","line":9}],"line":9},{"type":"paragraph","children":[{"type":"text","value":"A request is answered as one principal: a member, a service account, an end user, or nobody. The principal is worked out from the request before the route runs, and then the same permission check applies to everyone. A route that is open to all calls itself public, and a route that asks for a person says so.","line":11}],"line":11},{"type":"table","align":[null,null,null,null],"children":[{"type":"tableRow","header":true,"children":[{"type":"tableCell","children":[{"type":"text","value":"Credential","line":13}]},{"type":"tableCell","children":[{"type":"text","value":"Looks like","line":13}]},{"type":"tableCell","children":[{"type":"text","value":"Who it is","line":13}]},{"type":"tableCell","children":[{"type":"text","value":"Where it works","line":13}]}],"line":13},{"type":"tableRow","header":false,"children":[{"type":"tableCell","children":[{"type":"text","value":"API key","line":15}]},{"type":"tableCell","children":[{"type":"inlineCode","value":"Authorization: Bearer vxk_...","line":15}]},{"type":"tableCell","children":[{"type":"text","value":"A member, or a service account.","line":15}]},{"type":"tableCell","children":[{"type":"text","value":"Every route that asks for a permission.","line":15}]}],"line":15},{"type":"tableRow","header":false,"children":[{"type":"tableCell","children":[{"type":"text","value":"Console session","line":16}]},{"type":"tableCell","children":[{"type":"text","value":"A cookie, ","line":16},{"type":"inlineCode","value":"vx_member.session_token","line":16},{"type":"text","value":".","line":16}]},{"type":"tableCell","children":[{"type":"text","value":"A member.","line":16}]},{"type":"tableCell","children":[{"type":"text","value":"The instance's own address only, and for seven days.","line":16}]}],"line":16},{"type":"tableRow","header":false,"children":[{"type":"tableCell","children":[{"type":"text","value":"Sign-in to an app","line":17}]},{"type":"tableCell","children":[{"type":"text","value":"A cookie, ","line":17},{"type":"inlineCode","value":"vx_app_<tenant id>","line":17},{"type":"text","value":", and a token that begins ","line":17},{"type":"inlineCode","value":"vxs_","line":17},{"type":"text","value":".","line":17}]},{"type":"tableCell","children":[{"type":"text","value":"An end user (30 days), or a member who opened an app (12 hours).","line":17}]},{"type":"tableCell","children":[{"type":"text","value":"The app's own address, for that tenant.","line":17}]}],"line":17},{"type":"tableRow","header":false,"children":[{"type":"tableCell","children":[{"type":"text","value":"App token","line":18}]},{"type":"tableCell","children":[{"type":"inlineCode","value":"Authorization: Bearer vxa_...","line":18},{"type":"text","value":", given to a page of an app written as code.","line":18}]},{"type":"tableCell","children":[{"type":"text","value":"The person the page was served to.","line":18}]},{"type":"tableCell","children":[{"type":"text","value":"The API, for the tenant of the app, and only what apps use. It lasts 10 minutes.","line":18}]}],"line":18},{"type":"tableRow","header":false,"children":[{"type":"tableCell","children":[{"type":"text","value":"Worker credential","line":19}]},{"type":"tableCell","children":[{"type":"inlineCode","value":"vxw_...","line":19}]},{"type":"tableCell","children":[{"type":"text","value":"A worker.","line":19}]},{"type":"tableCell","children":[{"type":"text","value":"The worker protocol.","line":19}]}],"line":19},{"type":"tableRow","header":false,"children":[{"type":"tableCell","children":[{"type":"text","value":"SCIM token","line":20}]},{"type":"tableCell","children":[{"type":"inlineCode","value":"Authorization: Bearer vxp_...","line":20}]},{"type":"tableCell","children":[{"type":"text","value":"A provider's push.","line":20}]},{"type":"tableCell","children":[{"type":"text","value":"One provider's SCIM address.","line":20}]}],"line":20},{"type":"tableRow","header":false,"children":[{"type":"tableCell","children":[{"type":"text","value":"Webhook or form token","line":21}]},{"type":"tableCell","children":[{"type":"inlineCode","value":"vxh_...","line":21},{"type":"text","value":" or ","line":21},{"type":"inlineCode","value":"vxf_...","line":21},{"type":"text","value":", in the address.","line":21}]},{"type":"tableCell","children":[{"type":"text","value":"Whoever holds the address.","line":21}]},{"type":"tableCell","children":[{"type":"text","value":"That one trigger.","line":21}]}],"line":21},{"type":"tableRow","header":false,"children":[{"type":"tableCell","children":[{"type":"text","value":"Approval link","line":22}]},{"type":"tableCell","children":[{"type":"text","value":"A link in a message.","line":22}]},{"type":"tableCell","children":[{"type":"text","value":"The person it was sent to.","line":22}]},{"type":"tableCell","children":[{"type":"text","value":"One approval, for 48 hours, once.","line":22}]}],"line":22}],"line":13},{"type":"paragraph","children":[{"type":"text","value":"The metrics route is one more case: ","line":24},{"type":"inlineCode","value":"GET /api/v1/metrics","line":24},{"type":"text","value":" takes a member or a key that holds ","line":24},{"type":"inlineCode","value":"instance:read","line":24},{"type":"text","value":", or a scraper that sends the operator's ","line":24},{"type":"inlineCode","value":"METRICS_TOKEN","line":24},{"type":"text","value":".","line":24}],"line":24},{"type":"heading","depth":2,"id":"how-a-key-is-checked","children":[{"type":"text","value":"How a key is checked","line":26}],"line":26},{"type":"paragraph","children":[{"type":"text","value":"Only ","line":28},{"type":"inlineCode","value":"Authorization: Bearer vxk_...","line":28},{"type":"text","value":" is accepted as a header. Any other ","line":28},{"type":"inlineCode","value":"Authorization","line":28},{"type":"text","value":" header is refused with 401, even when a valid cookie comes with it. The key is looked up by its hash: the instance keeps the hash, the first characters and the last four, and shows the key once, when it is made.","line":28}],"line":28},{"type":"paragraph","children":[{"type":"text","value":"A key is refused when it was revoked, when its ","line":30},{"type":"inlineCode","value":"expiresAt","line":30},{"type":"text","value":" has passed, or when its owner is a disabled member. A key acts as its owner with the owner's permissions. It has no scopes of its own, so the way to make a key that can do less is to make it for a service account that holds less.","line":30}],"line":30},{"type":"paragraph","children":[{"type":"text","value":"A service account's key reaches only that account's tenant.","line":32}],"line":32},{"type":"heading","depth":2,"id":"why-a-cookie-is-different","children":[{"type":"text","value":"Why a cookie is different","line":34}],"line":34},{"type":"paragraph","children":[{"type":"text","value":"A browser sends its cookies by itself, also when another site makes it send a request. So a change that arrives with a session cookie must come from a page of this instance: a write whose ","line":36},{"type":"inlineCode","value":"Origin","line":36},{"type":"text","value":" header is not the address it was sent to, or the instance's own, is refused with 403 ","line":36},{"type":"inlineCode","value":"cross_site","line":36},{"type":"text","value":". A key is not sent by a browser unless a program puts it there, so it is not held to this. The API shares nothing across origins, with one exception: a page of an app written as code is sandboxed and has no origin, so it sends ","line":36},{"type":"inlineCode","value":"Origin: null","line":36},{"type":"text","value":". The API answers that with ","line":36},{"type":"inlineCode","value":"access-control-allow-origin: *","line":36},{"type":"text","value":", and never allows credentials. A cookie sent with ","line":36},{"type":"inlineCode","value":"Origin: null","line":36},{"type":"text","value":" is ignored, so such a page is known by its app token or by nothing.","line":36}],"line":36},{"type":"heading","depth":2,"id":"what-an-app-token-is","children":[{"type":"text","value":"What an app token is","line":38}],"line":38},{"type":"paragraph","children":[{"type":"text","value":"A page of an app written as code is served sandboxed, with no cookie. The instance reads the person's sign-in when it serves the page and puts an app token in the page. The token names the tenant, the address, the sign-in it stands on and the person. It is signed, and nothing about it is stored. Each use checks that the sign-in it stands on is still there and that the person is not disabled. A page renews it at ","line":40},{"type":"inlineCode","value":"GET /api/v1/app-token","line":40},{"type":"text","value":".","line":40}],"line":40},{"type":"paragraph","children":[{"type":"text","value":"A member's app token is limited to what apps use, also at the console's address. A route that is the member's own account, or the console's, refuses it. See ","line":42},{"type":"link","href":"../apps/app-access","children":[{"type":"text","value":"How access to an app works","line":42}],"line":42},{"type":"text","value":".","line":42}],"line":42},{"type":"paragraph","children":[{"type":"text","value":"A member's session counts at the instance's own address and nowhere else. At an app's address a person is known by their sign-in to that tenant's apps and by nothing else. A page of an app written as code, at any address, is known by its app token.","line":44}],"line":44},{"type":"heading","depth":2,"id":"why-a-service-account-is-turned-away-from-some-routes","children":[{"type":"text","value":"Why a service account is turned away from some routes","line":46}],"line":46},{"type":"paragraph","children":[{"type":"text","value":"Some routes are about a person's own account: their API keys and their sessions. A key of a service account is refused there with \"This is only for a person signed in, not for a service account's key.\" A route that a program may call as well says so. Three do: ","line":48},{"type":"inlineCode","value":"GET /api/v1/me","line":48},{"type":"text","value":", the batch of approvals and ","line":48},{"type":"inlineCode","value":"GET /api/v1/tenants","line":48},{"type":"text","value":", which answers a key with its own tenant alone, so that a command can find it by its slug.","line":48}],"line":48},{"type":"paragraph","children":[{"type":"text","value":"End users and members who signed in to an app are also refused on those routes: \"This is only for a member signed in to the workspace.\"","line":50}],"line":50},{"type":"paragraph","children":[{"type":"text","value":"A service account does not stand for a second person. It may not approve or decline an access change that waits for one.","line":52}],"line":52},{"type":"heading","depth":2,"id":"who-a-name-is-known-to","children":[{"type":"text","value":"Who a name is known to","line":54}],"line":54},{"type":"paragraph","children":[{"type":"text","value":"A request to a tenant's registered hostname is answered for that tenant only, and 404 for any other. A route with a path that holds a tenant answers 404, not 403, to a caller who has no standing in the tenant, so that tenant IDs cannot be probed.","line":56}],"line":56},{"type":"heading","depth":2,"id":"how-it-fits","children":[{"type":"text","value":"How it fits","line":58}],"line":58},{"type":"list","ordered":false,"children":[{"type":"listItem","children":[{"type":"text","value":"To make a key, revoke it or give a program one: ","line":60},{"type":"link","href":"../../how-to/api/call-the-api-with-a-key","children":[{"type":"text","value":"Call the API with an API key","line":60}],"line":60},{"type":"text","value":".","line":60}],"line":60},{"type":"listItem","children":[{"type":"text","value":"The permission each route needs is in the ","line":61},{"type":"link","href":"../../reference/api/index","children":[{"type":"text","value":"API reference","line":61}],"line":61},{"type":"text","value":" under the route, and the list of permissions in the ","line":61},{"type":"link","href":"../../../administer/reference/permissions","children":[{"type":"text","value":"permissions reference","line":61}],"line":61},{"type":"text","value":".","line":61}],"line":61},{"type":"listItem","children":[{"type":"text","value":"How many tries a caller gets: ","line":62},{"type":"link","href":"how-rate-limits-work","children":[{"type":"text","value":"How rate limits work","line":62}],"line":62},{"type":"text","value":".","line":62}],"line":62}],"line":60}]},"description":"The credentials the API accepts, what each reaches, how a session cookie differs from an API key and an app token, and why a service account's key is turned away from some routes."}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"path":"develop/explanation/apps/app-access","title":"How access to an app works","tree":{"type":"root","v":1,"children":[{"type":"paragraph","children":[{"type":"text","value":"An app is code that runs in someone's browser and calls the instance as that person. Nothing in the app decides what the person may do: the instance does, on every call, from who they are and the bindings they hold. This page says how.","line":7}],"line":7},{"type":"heading","depth":2,"id":"the-idea","children":[{"type":"text","value":"The idea","line":9}],"line":9},{"type":"paragraph","children":[{"type":"text","value":"Three questions are asked, and each has its own answer.","line":11}],"line":11},{"type":"list","ordered":false,"children":[{"type":"listItem","children":[{"type":"strong","children":[{"type":"text","value":"May this person open the app?","line":13}],"line":13},{"type":"text","value":" They need ","line":13},{"type":"inlineCode","value":"app:read","line":13},{"type":"text","value":" at the app. If they are not signed in, they are sent to the tenant's sign-in page and brought back. If they are signed in and lack it, they see a page, \"Not for this account\", with \"This account may not open this app. If you think it should, ask the person who gave you the account.\"","line":13}],"line":13},{"type":"listItem","children":[{"type":"strong","children":[{"type":"text","value":"What may the page read and do?","line":14}],"line":14},{"type":"text","value":" Each call it makes is checked as a call from that person: reading rows needs ","line":14},{"type":"inlineCode","value":"data:read","line":14},{"type":"text","value":" at the table, starting a script needs ","line":14},{"type":"inlineCode","value":"run:write","line":14},{"type":"text","value":" at the script, and so on.","line":14}],"line":14},{"type":"listItem","children":[{"type":"strong","children":[{"type":"text","value":"Which rows?","line":15}],"line":15},{"type":"text","value":" Reading is held to the table's row rules.","line":15}],"line":15}],"line":13},{"type":"paragraph","children":[{"type":"text","value":"An app that is open to someone and reads a table they have no binding at opens, and shows nothing.","line":17}],"line":17},{"type":"heading","depth":2,"id":"who-the-person-is","children":[{"type":"text","value":"Who the person is","line":19}],"line":19},{"type":"table","align":[null,null],"children":[{"type":"tableRow","header":true,"children":[{"type":"tableCell","children":[{"type":"text","value":"Who","line":21}]},{"type":"tableCell","children":[{"type":"text","value":"How they are known","line":21}]}],"line":21},{"type":"tableRow","header":false,"children":[{"type":"tableCell","children":[{"type":"text","value":"A member of the tenant","line":23}]},{"type":"tableCell","children":[{"type":"text","value":"At the instance's own address, by their console session. At an address of the app's own, they are carried over with a hand-off: a code, good for one use and 60 seconds, bound to the address, and made only from a member's own sign-in (an API key is refused). The session it starts lasts 12 hours.","line":23}]}],"line":23},{"type":"tableRow","header":false,"children":[{"type":"tableCell","children":[{"type":"text","value":"An end user","line":24}]},{"type":"tableCell","children":[{"type":"text","value":"By signing in at the tenant's sign-in page. Their session lasts 30 days.","line":24}]}],"line":24},{"type":"tableRow","header":false,"children":[{"type":"tableCell","children":[{"type":"text","value":"Anyone","line":25}]},{"type":"tableCell","children":[{"type":"text","value":"Not signed in: ","line":25},{"type":"inlineCode","value":"anonymous","line":25},{"type":"text","value":". They are known only by the bindings made to ","line":25},{"type":"inlineCode","value":"anonymous","line":25},{"type":"text","value":".","line":25}]}],"line":25}],"line":21},{"type":"paragraph","children":[{"type":"text","value":"The session is a cookie named for the tenant, ","line":27},{"type":"inlineCode","value":"vx_app_","line":27},{"type":"text","value":" and the tenant's ID, set for the address the app is served at, ","line":27},{"type":"inlineCode","value":"HttpOnly","line":27},{"type":"text","value":", ","line":27},{"type":"inlineCode","value":"SameSite=Lax","line":27},{"type":"text","value":", and ","line":27},{"type":"inlineCode","value":"Secure","line":27},{"type":"text","value":" over HTTPS. A console session is 7 days; that is a different cookie. A request that changes something and comes from another origin is refused with 403 ","line":27},{"type":"inlineCode","value":"cross_site","line":27},{"type":"text","value":".","line":27}],"line":27},{"type":"heading","depth":3,"id":"an-end-users-email-address-is-not-proved-by-signing-up","children":[{"type":"text","value":"An end user's email address is not proved by signing up","line":29}],"line":29},{"type":"paragraph","children":[{"type":"text","value":"Where the tenant lets people create their own account, they can sign up with any email address, and they are signed in at once. The instance does not ask them to prove the address, whether or not it sends mail. An app, a script or a flow sees that address as ","line":31},{"type":"inlineCode","value":"email","line":31},{"type":"text","value":" on the person, and it is only what they typed. A rule that shows a person the rows that carry their email address shows those rows to whoever signed up with it.","line":31}],"line":31},{"type":"paragraph","children":[{"type":"text","value":"So do not key an app's access on an end user's email address when people sign themselves up. Rows named by the person's ID, by a group or by an attribute you set are not affected. Make the end users yourself instead: invite them from the console (","line":33},{"type":"link","href":"../../../administer/how-to/access/invite-end-users","children":[{"type":"text","value":"Invite end users","line":33}],"line":33},{"type":"text","value":"), where the account has no password until its link is opened, or have them sign in through an identity provider, which refuses an email it says is not verified. An instance that sends mail also lets the owner of an address take back an account made with it, by asking for a new password. See ","line":33},{"type":"link","href":"../../../self-host/how-to/running/set-up-mail","children":[{"type":"text","value":"Set up the instance's mail","line":33}],"line":33},{"type":"text","value":".","line":33}],"line":33},{"type":"paragraph","children":[{"type":"inlineCode","value":"signOut()","line":35},{"type":"text","value":" ends the app session. At the instance's own address, a member still has the console session, so they stay signed in as staff.","line":35}],"line":35},{"type":"heading","depth":2,"id":"roles-and-bindings","children":[{"type":"text","value":"Roles and bindings","line":37}],"line":37},{"type":"paragraph","children":[{"type":"text","value":"A ","line":39},{"type":"strong","children":[{"type":"text","value":"binding","line":39}],"line":39},{"type":"text","value":" gives a ","line":39},{"type":"strong","children":[{"type":"text","value":"role","line":39}],"line":39},{"type":"text","value":" to a person, group or service account, at the tenant, at a workspace or at one resource. The role is a set of permissions. Two built-in roles are for apps:","line":39}],"line":39},{"type":"table","align":[null,null],"children":[{"type":"tableRow","header":true,"children":[{"type":"tableCell","children":[{"type":"text","value":"Role","line":41}]},{"type":"tableCell","children":[{"type":"text","value":"Permissions","line":41}]}],"line":41},{"type":"tableRow","header":false,"children":[{"type":"tableCell","children":[{"type":"inlineCode","value":"portal_reader","line":43}]},{"type":"tableCell","children":[{"type":"inlineCode","value":"app:read","line":43},{"type":"text","value":", ","line":43},{"type":"inlineCode","value":"data:read","line":43}]}],"line":43},{"type":"tableRow","header":false,"children":[{"type":"tableCell","children":[{"type":"inlineCode","value":"portal_user","line":44}]},{"type":"tableCell","children":[{"type":"inlineCode","value":"app:read","line":44},{"type":"text","value":", ","line":44},{"type":"inlineCode","value":"data:read","line":44},{"type":"text","value":", ","line":44},{"type":"inlineCode","value":"data:write","line":44}]}],"line":44}],"line":41},{"type":"paragraph","children":[{"type":"text","value":"Neither holds a permission to start a script or a flow, or to read files. A role that does is one the tenant or the repository defines. The Share sheet offers the two built-in roles, as ","line":46},{"type":"strong","children":[{"type":"text","value":"Read","line":46}],"line":46},{"type":"text","value":" and ","line":46},{"type":"strong","children":[{"type":"text","value":"Read and change","line":46}],"line":46},{"type":"text","value":".","line":46}],"line":46},{"type":"paragraph","children":[{"type":"strong","children":[{"type":"text","value":"Bindings are per resource.","line":48}],"line":48},{"type":"text","value":" A binding at an app gives the app and nothing else. Each table (","line":48},{"type":"inlineCode","value":"data:read","line":48},{"type":"text","value":"), script (","line":48},{"type":"inlineCode","value":"run:write","line":48},{"type":"text","value":") and flow (","line":48},{"type":"inlineCode","value":"flow_run:write","line":48},{"type":"text","value":") the page uses has its own binding. The Share sheet makes the table bindings for you for the tables the app is declared to read. It does not make bindings for scripts and flows.","line":48}],"line":48},{"type":"paragraph","children":[{"type":"text","value":"A person who started a run may read it, with no binding at the run.","line":50}],"line":50},{"type":"heading","depth":2,"id":"the-app-only-ceiling","children":[{"type":"text","value":"The app-only ceiling","line":52}],"line":52},{"type":"paragraph","children":[{"type":"text","value":"A person who comes to an app, an end user or a member carried to the app's own address, holds only the kinds of permission an app needs: ","line":54},{"type":"inlineCode","value":"script","line":54},{"type":"text","value":", ","line":54},{"type":"inlineCode","value":"run","line":54},{"type":"text","value":", ","line":54},{"type":"inlineCode","value":"flow_run","line":54},{"type":"text","value":", ","line":54},{"type":"inlineCode","value":"table","line":54},{"type":"text","value":", ","line":54},{"type":"inlineCode","value":"data","line":54},{"type":"text","value":", ","line":54},{"type":"inlineCode","value":"data_all","line":54},{"type":"text","value":", ","line":54},{"type":"inlineCode","value":"file","line":54},{"type":"text","value":", ","line":54},{"type":"inlineCode","value":"app","line":54},{"type":"text","value":" and ","line":54},{"type":"inlineCode","value":"theme","line":54},{"type":"text","value":". Whatever role they are bound to, a permission outside those kinds is not theirs while they are at an app. A binding made too wide cannot hand an end user the tenant's settings or secrets. A binding to ","line":54},{"type":"inlineCode","value":"anonymous","line":54},{"type":"text","value":" gives nothing outside those kinds either, and an operator's access grant does not count at an app's address.","line":54}],"line":54},{"type":"heading","depth":2,"id":"row-rules","children":[{"type":"text","value":"Row rules","line":56}],"line":56},{"type":"paragraph","children":[{"type":"text","value":"A table's policy decides which rows a person sees, once they may read the table: ","line":58},{"type":"strong","children":[{"type":"text","value":"open","line":58}],"line":58},{"type":"text","value":" (everyone sees every row), ","line":58},{"type":"strong","children":[{"type":"text","value":"owner","line":58}],"line":58},{"type":"text","value":" (each person sees the rows they own) or ","line":58},{"type":"strong","children":[{"type":"text","value":"rules","line":58}],"line":58},{"type":"text","value":" (the table's row rules, person by person). Both portal roles follow it. ","line":58},{"type":"inlineCode","value":"data_all","line":58},{"type":"text","value":" ignores it and is not in the portal roles. When you build an app, remember that you, in ","line":58},{"type":"inlineCode","value":"volvel dev","line":58},{"type":"text","value":", are the developer, and see every row. See ","line":58},{"type":"link","href":"../../../console/how-to/data/row-rules","children":[{"type":"text","value":"Decide who sees which rows","line":58}],"line":58},{"type":"text","value":".","line":58}],"line":58},{"type":"heading","depth":2,"id":"scripts-run-as-the-workspace","children":[{"type":"text","value":"Scripts run as the workspace","line":60}],"line":60},{"type":"paragraph","children":[{"type":"text","value":"A script an app starts runs on a worker as the workspace, not as the person. Its own code decides what it may touch, as any script's does. The script can read who started it from ","line":62},{"type":"inlineCode","value":"ctx.run.startedBy","line":62},{"type":"text","value":" and act for that person with ","line":62},{"type":"inlineCode","value":"ctx.table(visits).as(ctx.run.startedBy.id)","line":62},{"type":"text","value":", so that the table's row rules apply to its reads and writes. Starting the script still needs ","line":62},{"type":"inlineCode","value":"run:write","line":62},{"type":"text","value":" at it.","line":62}],"line":62},{"type":"heading","depth":2,"id":"guests","children":[{"type":"text","value":"Guests","line":64}],"line":64},{"type":"paragraph","children":[{"type":"text","value":"A guest, someone who is not signed in at an app that is open to anyone, can open the page and read the tables that are bound to ","line":66},{"type":"inlineCode","value":"anonymous","line":66},{"type":"text","value":". A guest cannot start a script or a flow from the app: the instance answers 403, \"Sign in to start a script. A run started by someone who is not signed in cannot be read back.\" A form on a page can start a run for a guest. A guest has no run stream: the page looks at a run every two seconds.","line":66}],"line":66},{"type":"paragraph","children":[{"type":"text","value":"A guest is held to limits by address, so a public app cannot be read as fast as someone likes:","line":68}],"line":68},{"type":"table","align":[null,null],"children":[{"type":"tableRow","header":true,"children":[{"type":"tableCell","children":[{"type":"text","value":"What","line":70}]},{"type":"tableCell","children":[{"type":"text","value":"Limit","line":70}]}],"line":70},{"type":"tableRow","header":false,"children":[{"type":"tableCell","children":[{"type":"text","value":"Pages","line":72}]},{"type":"tableCell","children":[{"type":"text","value":"600 a minute","line":72}]}],"line":72},{"type":"tableRow","header":false,"children":[{"type":"tableCell","children":[{"type":"text","value":"Files","line":73}]},{"type":"tableCell","children":[{"type":"text","value":"1,200 a minute","line":73}]}],"line":73},{"type":"tableRow","header":false,"children":[{"type":"tableCell","children":[{"type":"text","value":"API calls","line":74}]},{"type":"tableCell","children":[{"type":"text","value":"120 a minute for each route","line":74}]}],"line":74}],"line":70},{"type":"paragraph","children":[{"type":"text","value":"See ","line":76},{"type":"link","href":"../../reference/apps/content-policy","children":[{"type":"text","value":"What an app may load","line":76}],"line":76},{"type":"text","value":" for how they are counted.","line":76}],"line":76},{"type":"heading","depth":2,"id":"what-this-does-not-do","children":[{"type":"text","value":"What this does not do","line":78}],"line":78},{"type":"list","ordered":false,"children":[{"type":"listItem","children":[{"type":"text","value":"It does not isolate two tenants' code served at one address for apps. Their code shares an origin. Give each tenant a hostname of its own with ","line":80},{"type":"link","href":"../../../administer/how-to/apps/give-an-app-a-hostname","children":[{"type":"text","value":"Domains","line":80}],"line":80},{"type":"text","value":".","line":80}],"line":80},{"type":"listItem","children":[{"type":"text","value":"A widget's approval cannot be decided where a code app runs. The widget links to the console, and the instance answers 403 ","line":81},{"type":"inlineCode","value":"decide_in_console","line":81},{"type":"text","value":" for a decision made at an app.","line":81}],"line":81},{"type":"listItem","children":[{"type":"text","value":"A binding at the workspace to members does not show in the ","line":82},{"type":"strong","children":[{"type":"text","value":"Open to","line":82}],"line":82},{"type":"text","value":" column of the Apps screen.","line":82}],"line":82}],"line":80},{"type":"heading","depth":2,"id":"how-it-fits","children":[{"type":"text","value":"How it fits","line":84}],"line":84},{"type":"list","ordered":false,"children":[{"type":"listItem","children":[{"type":"link","href":"../../../console/how-to/apps/share-an-app","children":[{"type":"text","value":"Share an app","line":86}],"line":86},{"type":"text","value":" makes these bindings from the console.","line":86}],"line":86},{"type":"listItem","children":[{"type":"link","href":"../../how-to/apps/write-an-app","children":[{"type":"text","value":"Write an app as code","line":87}],"line":87},{"type":"text","value":" makes them from the repository.","line":87}],"line":87},{"type":"listItem","children":[{"type":"link","href":"../../../console/reference/screens/build/published-apps","children":[{"type":"text","value":"The Apps screen","line":88}],"line":88},{"type":"text","value":" shows who an app is open to.","line":88}],"line":88}],"line":86}]},"description":"What decides who may open an app and what it may do for them: sessions, roles and bindings, the app-only ceiling, row rules, scripts, guests and limits."}
|
|
1
|
+
{"path":"develop/explanation/apps/app-access","title":"How access to an app works","tree":{"type":"root","v":1,"children":[{"type":"paragraph","children":[{"type":"text","value":"An app is code that runs in someone's browser and calls the instance as that person. An app written as code runs in a sandbox: its page has no origin of its own, and it calls with a short-lived token. Nothing in the app decides what the person may do: the instance does, on every call, from who they are and the bindings they hold. This page says how.","line":7}],"line":7},{"type":"heading","depth":2,"id":"the-idea","children":[{"type":"text","value":"The idea","line":9}],"line":9},{"type":"paragraph","children":[{"type":"text","value":"Three questions are asked, and each has its own answer.","line":11}],"line":11},{"type":"list","ordered":false,"children":[{"type":"listItem","children":[{"type":"strong","children":[{"type":"text","value":"May this person open the app?","line":13}],"line":13},{"type":"text","value":" They need ","line":13},{"type":"inlineCode","value":"app:read","line":13},{"type":"text","value":" at the app. If they are not signed in, they are sent to the tenant's sign-in page and brought back. If they are signed in and lack it, they see a page, \"Not for this account\", with \"This account may not open this app. If you think it should, ask the person who gave you the account.\"","line":13}],"line":13},{"type":"listItem","children":[{"type":"strong","children":[{"type":"text","value":"What may the page read and do?","line":14}],"line":14},{"type":"text","value":" Each call it makes is checked as a call from that person: reading rows needs ","line":14},{"type":"inlineCode","value":"data:read","line":14},{"type":"text","value":" at the table, starting a script needs ","line":14},{"type":"inlineCode","value":"run:write","line":14},{"type":"text","value":" at the script, and so on.","line":14}],"line":14},{"type":"listItem","children":[{"type":"strong","children":[{"type":"text","value":"Which rows?","line":15}],"line":15},{"type":"text","value":" Reading is held to the table's row rules.","line":15}],"line":15}],"line":13},{"type":"paragraph","children":[{"type":"text","value":"An app that is open to someone and reads a table they have no binding at opens, and shows nothing.","line":17}],"line":17},{"type":"heading","depth":2,"id":"who-the-person-is","children":[{"type":"text","value":"Who the person is","line":19}],"line":19},{"type":"table","align":[null,null],"children":[{"type":"tableRow","header":true,"children":[{"type":"tableCell","children":[{"type":"text","value":"Who","line":21}]},{"type":"tableCell","children":[{"type":"text","value":"How they are known","line":21}]}],"line":21},{"type":"tableRow","header":false,"children":[{"type":"tableCell","children":[{"type":"text","value":"A member of the tenant","line":23}]},{"type":"tableCell","children":[{"type":"text","value":"At the instance's own address, by their console session, which gives the page a token for apps. At an address of the app's own, they are carried over with a hand-off: a code, good for one use and 60 seconds, bound to the address, and made only from a member's own sign-in (an API key is refused). The session it starts lasts 12 hours.","line":23}]}],"line":23},{"type":"tableRow","header":false,"children":[{"type":"tableCell","children":[{"type":"text","value":"An end user","line":24}]},{"type":"tableCell","children":[{"type":"text","value":"By signing in at the tenant's sign-in page. Their session lasts 30 days.","line":24}]}],"line":24},{"type":"tableRow","header":false,"children":[{"type":"tableCell","children":[{"type":"text","value":"Anyone","line":25}]},{"type":"tableCell","children":[{"type":"text","value":"Not signed in: ","line":25},{"type":"inlineCode","value":"anonymous","line":25},{"type":"text","value":". They are known only by the bindings made to ","line":25},{"type":"inlineCode","value":"anonymous","line":25},{"type":"text","value":".","line":25}]}],"line":25}],"line":21},{"type":"paragraph","children":[{"type":"text","value":"The session is a cookie named for the tenant, ","line":27},{"type":"inlineCode","value":"vx_app_","line":27},{"type":"text","value":" and the tenant's ID, set for the address the app is served at, ","line":27},{"type":"inlineCode","value":"HttpOnly","line":27},{"type":"text","value":", ","line":27},{"type":"inlineCode","value":"SameSite=Lax","line":27},{"type":"text","value":", and ","line":27},{"type":"inlineCode","value":"Secure","line":27},{"type":"text","value":" over HTTPS. A console session is 7 days; that is a different cookie. A request that changes something with a cookie and comes from another origin is refused with 403 ","line":27},{"type":"inlineCode","value":"cross_site","line":27},{"type":"text","value":".","line":27}],"line":27},{"type":"heading","depth":3,"id":"what-a-code-apps-page-holds","children":[{"type":"text","value":"What a code app's page holds","line":29}],"line":29},{"type":"paragraph","children":[{"type":"text","value":"The browser opens a page of an app written as code in a sandbox, so the page never holds a cookie. The instance reads the cookie when it serves the page, and puts an ","line":31},{"type":"strong","children":[{"type":"text","value":"app token","line":31}],"line":31},{"type":"text","value":" (","line":31},{"type":"inlineCode","value":"vxa_…","line":31},{"type":"text","value":") in the page. The token names the tenant, the address, the sign-in it stands on and the person. It lasts 10 minutes, and ","line":31},{"type":"inlineCode","value":"@volvel/app","line":31},{"type":"text","value":" renews it before it ends. Every call the client makes carries it as ","line":31},{"type":"inlineCode","value":"Authorization: Bearer","line":31},{"type":"text","value":". It is worth nothing once the sign-in it stands on ends or the person is disabled. A member's token is always limited to what apps use, also at the console's address (see below). A page that is not signed in has no token, and is known as ","line":31},{"type":"inlineCode","value":"anonymous","line":31},{"type":"text","value":".","line":31}],"line":31},{"type":"heading","depth":3,"id":"what-proves-an-end-users-email-address","children":[{"type":"text","value":"What proves an end user's email address","line":33}],"line":33},{"type":"paragraph","children":[{"type":"text","value":"An address a person types is not an address they own. Anyone can type anyone's. So the instance keeps two things apart: the address the account was made with, and whether that address is ","line":35},{"type":"strong","children":[{"type":"text","value":"proved","line":35}],"line":35},{"type":"text","value":". An end user's address is proved when:","line":35}],"line":35},{"type":"list","ordered":false,"children":[{"type":"listItem","children":[{"type":"text","value":"they open the link sign-up mailed to it, and press ","line":37},{"type":"strong","children":[{"type":"text","value":"Finish and sign in","line":37}],"line":37},{"type":"text","value":";","line":37}],"line":37},{"type":"listItem","children":[{"type":"text","value":"they use an invitation link or a password reset link that the instance mailed to the address. A link a member of staff copied from the console and passed on does not prove it: whoever holds it need not read that mailbox;","line":38}],"line":38},{"type":"listItem","children":[{"type":"text","value":"they sign in through an identity provider that vouches for the address. Either the address's domain is proved for the provider, or the provider says the address is verified (","line":39},{"type":"inlineCode","value":"email_verified: true","line":39},{"type":"text","value":" from an OIDC provider), or, for a SAML provider, the tenant chose ","line":39},{"type":"strong","children":[{"type":"text","value":"Take the provider's word on emails","line":39}],"line":39},{"type":"text","value":";","line":39}],"line":39},{"type":"listItem","children":[{"type":"text","value":"a directory pushes them with SCIM on the same terms: a proved domain, or ","line":40},{"type":"strong","children":[{"type":"text","value":"Take the provider's word on emails","line":40}],"line":40},{"type":"text","value":".","line":40}],"line":40}],"line":37},{"type":"paragraph","children":[{"type":"text","value":"Once an address is proved it stays proved. An account made before this was built is unproved until one of these happens: a person who resets their password by a mailed link becomes proved.","line":42}],"line":42},{"type":"paragraph","children":[{"type":"text","value":"Where the instance sends mail, sign-up does not sign anyone in. It makes the account, mails a link and waits. Until the link is used, a sign-in with the right password is refused with ","line":44},{"type":"inlineCode","value":"email_unproved","line":44},{"type":"text","value":" (403), and sends a new link. A wrong password only says the email or the password is wrong, so the answer tells a stranger nothing about the account. Where the instance sends no mail, a person who signs up is signed in at once and their address stays unproved. See ","line":44},{"type":"link","href":"../../../self-host/how-to/running/set-up-mail","children":[{"type":"text","value":"Set up the instance's mail","line":44}],"line":44},{"type":"text","value":".","line":44}],"line":44},{"type":"paragraph","children":[{"type":"text","value":"An app sees the difference in two places. The ","line":46},{"type":"inlineCode","value":"user","line":46},{"type":"text","value":" an app is given has ","line":46},{"type":"inlineCode","value":"emailProved","line":46},{"type":"text","value":", true or false, for an end user. And the built-in attribute ","line":46},{"type":"strong","children":[{"type":"inlineCode","value":"email","line":46}],"line":46},{"type":"text","value":" holds the address once it is proved, and is missing before. The address is also on the person as ","line":46},{"type":"inlineCode","value":"email","line":46},{"type":"text","value":" whether or not it is proved, and that one is only what they typed.","line":46}],"line":46},{"type":"paragraph","children":[{"type":"text","value":"So match a rule on the attribute, not on a column you fill from what people typed. A rule ","line":48},{"type":"inlineCode","value":"{ allow: \"read\", when: { column: \"owner_email\", equals: { attribute: \"email\" } } }","line":48},{"type":"text","value":" shows a row only to a person whose proved address is in ","line":48},{"type":"inlineCode","value":"owner_email","line":48},{"type":"text","value":". An app that filters rows by the ","line":48},{"type":"inlineCode","value":"email","line":48},{"type":"text","value":" on the person, which is only what was typed, shows the rows that carry an address to whoever signed up with it. Rows named by the person's ID, by a group or by an attribute you set are not affected. See ","line":48},{"type":"link","href":"../../../administer/how-to/access/rule-rows-by-group-or-attribute","children":[{"type":"text","value":"Rule rows by group or attribute","line":48}],"line":48},{"type":"text","value":".","line":48}],"line":48},{"type":"paragraph","children":[{"type":"text","value":"A tenant cannot set an attribute called ","line":50},{"type":"inlineCode","value":"email","line":50},{"type":"text","value":" of its own. ","line":50},{"type":"inlineCode","value":"PATCH /tenants/{t}/end-users/{id}","line":50},{"type":"text","value":" answers 400 for it.","line":50}],"line":50},{"type":"paragraph","children":[{"type":"inlineCode","value":"signOut()","line":52},{"type":"text","value":" ends the sign-in the page's token stands on. At the instance's own address, a member still has the console session, so they stay signed in as staff.","line":52}],"line":52},{"type":"heading","depth":2,"id":"roles-and-bindings","children":[{"type":"text","value":"Roles and bindings","line":54}],"line":54},{"type":"paragraph","children":[{"type":"text","value":"A ","line":56},{"type":"strong","children":[{"type":"text","value":"binding","line":56}],"line":56},{"type":"text","value":" gives a ","line":56},{"type":"strong","children":[{"type":"text","value":"role","line":56}],"line":56},{"type":"text","value":" to a person, group or service account, at the tenant, at a workspace or at one resource. The role is a set of permissions. Two built-in roles are for apps:","line":56}],"line":56},{"type":"table","align":[null,null],"children":[{"type":"tableRow","header":true,"children":[{"type":"tableCell","children":[{"type":"text","value":"Role","line":58}]},{"type":"tableCell","children":[{"type":"text","value":"Permissions","line":58}]}],"line":58},{"type":"tableRow","header":false,"children":[{"type":"tableCell","children":[{"type":"inlineCode","value":"portal_reader","line":60}]},{"type":"tableCell","children":[{"type":"inlineCode","value":"app:read","line":60},{"type":"text","value":", ","line":60},{"type":"inlineCode","value":"data:read","line":60}]}],"line":60},{"type":"tableRow","header":false,"children":[{"type":"tableCell","children":[{"type":"inlineCode","value":"portal_user","line":61}]},{"type":"tableCell","children":[{"type":"inlineCode","value":"app:read","line":61},{"type":"text","value":", ","line":61},{"type":"inlineCode","value":"data:read","line":61},{"type":"text","value":", ","line":61},{"type":"inlineCode","value":"data:write","line":61}]}],"line":61}],"line":58},{"type":"paragraph","children":[{"type":"text","value":"Neither holds a permission to start a script or a flow, or to read files. A role that does is one the tenant or the repository defines. The Share sheet offers the two built-in roles, as ","line":63},{"type":"strong","children":[{"type":"text","value":"Read","line":63}],"line":63},{"type":"text","value":" and ","line":63},{"type":"strong","children":[{"type":"text","value":"Read and change","line":63}],"line":63},{"type":"text","value":".","line":63}],"line":63},{"type":"paragraph","children":[{"type":"strong","children":[{"type":"text","value":"Bindings are per resource.","line":65}],"line":65},{"type":"text","value":" A binding at an app gives the app and nothing else. Each table (","line":65},{"type":"inlineCode","value":"data:read","line":65},{"type":"text","value":"), script (","line":65},{"type":"inlineCode","value":"run:write","line":65},{"type":"text","value":") and flow (","line":65},{"type":"inlineCode","value":"flow_run:write","line":65},{"type":"text","value":") the page uses has its own binding. The Share sheet makes the table bindings for you for the tables the app is declared to read. It does not make bindings for scripts and flows.","line":65}],"line":65},{"type":"paragraph","children":[{"type":"text","value":"A person who started a run may read it, with no binding at the run.","line":67}],"line":67},{"type":"heading","depth":2,"id":"the-app-only-ceiling","children":[{"type":"text","value":"The app-only ceiling","line":69}],"line":69},{"type":"paragraph","children":[{"type":"text","value":"A person who comes to an app, an end user or a member, also at the console's address, holds only the kinds of permission an app needs: ","line":71},{"type":"inlineCode","value":"script","line":71},{"type":"text","value":", ","line":71},{"type":"inlineCode","value":"run","line":71},{"type":"text","value":", ","line":71},{"type":"inlineCode","value":"flow_run","line":71},{"type":"text","value":", ","line":71},{"type":"inlineCode","value":"table","line":71},{"type":"text","value":", ","line":71},{"type":"inlineCode","value":"data","line":71},{"type":"text","value":", ","line":71},{"type":"inlineCode","value":"data_all","line":71},{"type":"text","value":", ","line":71},{"type":"inlineCode","value":"file","line":71},{"type":"text","value":", ","line":71},{"type":"inlineCode","value":"app","line":71},{"type":"text","value":" and ","line":71},{"type":"inlineCode","value":"theme","line":71},{"type":"text","value":". Whatever role they are bound to, a permission outside those kinds is not theirs while they are at an app. A binding made too wide cannot hand an end user the tenant's settings or secrets. A binding to ","line":71},{"type":"inlineCode","value":"anonymous","line":71},{"type":"text","value":" gives nothing outside those kinds either, and an operator's access grant does not count at an app's address.","line":71}],"line":71},{"type":"heading","depth":2,"id":"row-rules","children":[{"type":"text","value":"Row rules","line":73}],"line":73},{"type":"paragraph","children":[{"type":"text","value":"A table's policy decides which rows a person sees, once they may read the table: ","line":75},{"type":"strong","children":[{"type":"text","value":"open","line":75}],"line":75},{"type":"text","value":" (everyone sees every row), ","line":75},{"type":"strong","children":[{"type":"text","value":"owner","line":75}],"line":75},{"type":"text","value":" (each person sees the rows they own) or ","line":75},{"type":"strong","children":[{"type":"text","value":"rules","line":75}],"line":75},{"type":"text","value":" (the table's row rules, person by person). Both portal roles follow it. ","line":75},{"type":"inlineCode","value":"data_all","line":75},{"type":"text","value":" ignores it and is not in the portal roles. When you build an app, remember that you, in ","line":75},{"type":"inlineCode","value":"volvel dev","line":75},{"type":"text","value":", are the developer, and see every row. See ","line":75},{"type":"link","href":"../../../console/how-to/data/row-rules","children":[{"type":"text","value":"Decide who sees which rows","line":75}],"line":75},{"type":"text","value":".","line":75}],"line":75},{"type":"heading","depth":2,"id":"scripts-run-as-the-workspace","children":[{"type":"text","value":"Scripts run as the workspace","line":77}],"line":77},{"type":"paragraph","children":[{"type":"text","value":"A script an app starts runs on a worker as the workspace, not as the person. Its own code decides what it may touch, as any script's does. The script can read who started it from ","line":79},{"type":"inlineCode","value":"ctx.run.startedBy","line":79},{"type":"text","value":" and act for that person with ","line":79},{"type":"inlineCode","value":"ctx.table(visits).as(ctx.run.startedBy.id)","line":79},{"type":"text","value":", so that the table's row rules apply to its reads and writes. Starting the script still needs ","line":79},{"type":"inlineCode","value":"run:write","line":79},{"type":"text","value":" at it.","line":79}],"line":79},{"type":"heading","depth":2,"id":"guests","children":[{"type":"text","value":"Guests","line":81}],"line":81},{"type":"paragraph","children":[{"type":"text","value":"A guest, someone who is not signed in at an app that is open to anyone, can open the page and read the tables that are bound to ","line":83},{"type":"inlineCode","value":"anonymous","line":83},{"type":"text","value":". A guest cannot start a script or a flow from the app: the instance answers 403, \"Sign in to start a script. A run started by someone who is not signed in cannot be read back.\" A form on a page can start a run for a guest. A guest has no run stream: the page looks at a run every two seconds.","line":83}],"line":83},{"type":"paragraph","children":[{"type":"text","value":"A guest is held to limits by address, so a public app cannot be read as fast as someone likes:","line":85}],"line":85},{"type":"table","align":[null,null],"children":[{"type":"tableRow","header":true,"children":[{"type":"tableCell","children":[{"type":"text","value":"What","line":87}]},{"type":"tableCell","children":[{"type":"text","value":"Limit","line":87}]}],"line":87},{"type":"tableRow","header":false,"children":[{"type":"tableCell","children":[{"type":"text","value":"Pages","line":89}]},{"type":"tableCell","children":[{"type":"text","value":"600 a minute","line":89}]}],"line":89},{"type":"tableRow","header":false,"children":[{"type":"tableCell","children":[{"type":"text","value":"Files","line":90}]},{"type":"tableCell","children":[{"type":"text","value":"1,200 a minute","line":90}]}],"line":90},{"type":"tableRow","header":false,"children":[{"type":"tableCell","children":[{"type":"text","value":"API calls","line":91}]},{"type":"tableCell","children":[{"type":"text","value":"120 a minute for each route","line":91}]}],"line":91}],"line":87},{"type":"paragraph","children":[{"type":"text","value":"See ","line":93},{"type":"link","href":"../../reference/apps/content-policy","children":[{"type":"text","value":"What an app may load","line":93}],"line":93},{"type":"text","value":" for how they are counted.","line":93}],"line":93},{"type":"heading","depth":2,"id":"what-this-does-not-do","children":[{"type":"text","value":"What this does not do","line":95}],"line":95},{"type":"list","ordered":false,"children":[{"type":"listItem","children":[{"type":"text","value":"It does not let a code app keep anything in the browser. There is no ","line":97},{"type":"inlineCode","value":"localStorage","line":97},{"type":"text","value":", ","line":97},{"type":"inlineCode","value":"sessionStorage","line":97},{"type":"text","value":" or cookie.","line":97}],"line":97},{"type":"listItem","children":[{"type":"text","value":"It does not let a code app sign a person in by calling the API: a sandboxed page cannot set a cookie. Sign-in is on the tenant's sign-in pages, which ","line":98},{"type":"inlineCode","value":"signInUrl()","line":98},{"type":"text","value":" and ","line":98},{"type":"inlineCode","value":"staffSignInUrl()","line":98},{"type":"text","value":" give.","line":98}],"line":98},{"type":"listItem","children":[{"type":"text","value":"It does not let a code app decide an approval. The Approvals widget of an app made in the App Builder can be decided in the app, at every address, by a person who may decide it.","line":99}],"line":99},{"type":"listItem","children":[{"type":"text","value":"A binding at the workspace to members does not show in the ","line":100},{"type":"strong","children":[{"type":"text","value":"Open to","line":100}],"line":100},{"type":"text","value":" column of the Apps screen.","line":100}],"line":100}],"line":97},{"type":"heading","depth":2,"id":"how-it-fits","children":[{"type":"text","value":"How it fits","line":102}],"line":102},{"type":"list","ordered":false,"children":[{"type":"listItem","children":[{"type":"link","href":"../../../console/how-to/apps/share-an-app","children":[{"type":"text","value":"Share an app","line":104}],"line":104},{"type":"text","value":" makes these bindings from the console.","line":104}],"line":104},{"type":"listItem","children":[{"type":"link","href":"../../how-to/apps/write-an-app","children":[{"type":"text","value":"Write an app as code","line":105}],"line":105},{"type":"text","value":" makes them from the repository.","line":105}],"line":105},{"type":"listItem","children":[{"type":"link","href":"../../reference/apps/app-client","children":[{"type":"text","value":"The app client","line":106}],"line":106},{"type":"text","value":" sends the token.","line":106}],"line":106},{"type":"listItem","children":[{"type":"link","href":"../../../console/reference/screens/build/published-apps","children":[{"type":"text","value":"The Apps screen","line":107}],"line":107},{"type":"text","value":" shows who an app is open to.","line":107}],"line":107}],"line":104}]},"description":"What decides who may open an app and what it may do for them: sessions, roles and bindings, the app-only ceiling, row rules, scripts, guests and limits."}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"path":"develop/explanation/scripts/how-scripts-run","title":"How scripts run","tree":{"type":"root","v":1,"children":[{"type":"paragraph","children":[{"type":"text","value":"A script is code that a worker runs for a workspace. The workspace holds the definition, the instance holds the queue, and a worker, a process that may be on another machine, takes a run from the queue and runs it. This page follows one run from the request to the result, then says what a script cannot do, and what is left to the script.","line":7}],"line":7},{"type":"heading","depth":2,"id":"the-idea","children":[{"type":"text","value":"The idea","line":9}],"line":9},{"type":"paragraph","children":[{"type":"text","value":"Volvel does not run a script where it is asked for. A request to run only records what is wanted: it checks the input, pins the run to a version, and puts it in a queue. The worker is the one who claims it. That separation is what lets scripts run inside a client's network, on a machine with more memory, or not at all while the instance is up, and it is why a run can wait.","line":11}],"line":11},{"type":"code","value":"sequenceDiagram\n participant P as A person, schedule, flow or app\n participant I as The instance\n participant W as A worker\n participant S as The script's process\n P->>I: Start the script with an input\n I->>I: Check the input, pin the version, queue the run\n W->>I: Claim a run\n W->>S: Start a process for this attempt\n S->>W: ctx calls (table, secret, log)\n W->>I: Pass the allowed ones, send logs\n S-->>W: The output, or an error\n W->>I: The result, the logs, the attempt's end","lang":"mermaid","line":13},{"type":"heading","depth":2,"id":"from-the-request-to-the-queue","children":[{"type":"text","value":"From the request to the queue","line":29}],"line":29},{"type":"paragraph","children":[{"type":"text","value":"When a run is asked for, the instance checks the input against the script's input schema and refuses a request that does not match it: \"The input does not match the script's schema.\" The run is then ","line":31},{"type":"strong","children":[{"type":"text","value":"pinned to a bundle","line":31}],"line":31},{"type":"text","value":", the version deployed at that moment. A deploy while the run waits does not change what it runs. This is also why a run again offers a choice: on the version it ran, or on the version deployed now.","line":31}],"line":31},{"type":"paragraph","children":[{"type":"text","value":"A run set for later is queued with a time and waits for it. A priority from -100 to 100 orders runs that wait for a worker.","line":33}],"line":33},{"type":"paragraph","children":[{"type":"text","value":"A test run from the editor is the same, with the draft built into a bundle of its own, never deployed. Those bundles and their runs are deleted after seven days.","line":35}],"line":35},{"type":"heading","depth":2,"id":"a-process-for-each-attempt","children":[{"type":"text","value":"A process for each attempt","line":37}],"line":37},{"type":"paragraph","children":[{"type":"text","value":"A worker claims a run and starts a ","line":39},{"type":"strong","children":[{"type":"text","value":"new process for each attempt","line":39}],"line":39},{"type":"text","value":". It runs with only ","line":39},{"type":"inlineCode","value":"PATH","line":39},{"type":"text","value":", ","line":39},{"type":"inlineCode","value":"TZ","line":39},{"type":"text","value":", ","line":39},{"type":"inlineCode","value":"LANG","line":39},{"type":"text","value":", ","line":39},{"type":"inlineCode","value":"TMPDIR","line":39},{"type":"text","value":" and ","line":39},{"type":"inlineCode","value":"NODE_EXTRA_CA_CERTS","line":39},{"type":"text","value":" as its environment and never holds the worker's own credential. When the script asks ","line":39},{"type":"inlineCode","value":"ctx","line":39},{"type":"text","value":" for a table, a secret or a connection, the call goes to the worker, which passes it on to the instance only if it is one of the run's declared things. A script that asks for something it did not declare fails.","line":39}],"line":39},{"type":"paragraph","children":[{"type":"text","value":"Volvel does not put each script in a container. A managed worker has a user of its own on the host, and a process per attempt is the unit that is watched, limited and ended. What a script can reach on the network is the worker host's firewall: addresses that are private, loopback or link-local are closed unless ","line":41},{"type":"inlineCode","value":"WORKER_EGRESS_ALLOW","line":41},{"type":"text","value":" opens them. A script uses plain ","line":41},{"type":"inlineCode","value":"fetch","line":41},{"type":"text","value":" and is not held to the instance's own ","line":41},{"type":"inlineCode","value":"EGRESS_ALLOW","line":41},{"type":"text","value":", which is for the instance's calls. See the ","line":41},{"type":"link","href":"../../../self-host/reference/settings","children":[{"type":"text","value":"settings reference","line":41}],"line":41},{"type":"text","value":".","line":41}],"line":41},{"type":"heading","depth":2,"id":"what-a-run-is-held-to","children":[{"type":"text","value":"What a run is held to","line":43}],"line":43},{"type":"table","align":[null,null],"children":[{"type":"tableRow","header":true,"children":[{"type":"tableCell","children":[{"type":"text","value":"Limit","line":45}]},{"type":"tableCell","children":[{"type":"text","value":"What happens","line":45}]}],"line":45},{"type":"tableRow","header":false,"children":[{"type":"tableCell","children":[{"type":"text","value":"Time","line":47}]},{"type":"tableCell","children":[{"type":"text","value":"After the script's limit (60 seconds for a console script, 300 for a script in code, up to 3600) the run is told to stop through ","line":47},{"type":"inlineCode","value":"ctx.signal","line":47},{"type":"text","value":", given 3 seconds, and then killed. It fails with \"The run took longer than its limit of N seconds.\"","line":47}]}],"line":47},{"type":"tableRow","header":false,"children":[{"type":"tableCell","children":[{"type":"text","value":"Memory","line":48}]},{"type":"tableCell","children":[{"type":"text","value":"The script's heap is capped at its ","line":48},{"type":"inlineCode","value":"memoryMb","line":48},{"type":"text","value":". The whole process may hold that and 64 MB beside it, checked every half second. Past it: \"The script ran out of memory (N MB).\" A machine that is itself short of memory ends a script with \"The script was stopped: the machine ran low on memory.\"","line":48}]}],"line":48},{"type":"tableRow","header":false,"children":[{"type":"tableCell","children":[{"type":"text","value":"Output","line":49}]},{"type":"tableCell","children":[{"type":"text","value":"At most 10 MB. A larger output fails the run with \"The output is larger than 10 MB (it is N MB). The script's work was done and is not repeated.\" and it is not tried again.","line":49}]}],"line":49},{"type":"tableRow","header":false,"children":[{"type":"tableCell","children":[{"type":"text","value":"Logs","line":50}]},{"type":"tableCell","children":[{"type":"text","value":"A line's message is cut at 8,000 characters, and its fields over 32 KB are replaced by a note. A worker keeps 5,000 lines while the instance cannot be reached and says \"N log lines could not be saved.\" when it gave up.","line":50}]}],"line":50},{"type":"tableRow","header":false,"children":[{"type":"tableCell","children":[{"type":"text","value":"Silence","line":51}]},{"type":"tableCell","children":[{"type":"text","value":"A worker that says nothing for 30 seconds is taken to be lost. The run goes back to the queue with \"The worker stopped responding. The run is being retried.\"","line":51}]}],"line":51},{"type":"tableRow","header":false,"children":[{"type":"tableCell","children":[{"type":"text","value":"Cancel","line":52}]},{"type":"tableCell","children":[{"type":"text","value":"A running script hears of a cancel at its next heartbeat, and then the same stop as a timeout.","line":52}]}],"line":52}],"line":45},{"type":"paragraph","children":[{"type":"text","value":"An input or output over 256 KB is kept in file storage, not in the run's record.","line":54}],"line":54},{"type":"heading","depth":2,"id":"retries-and-at-least-once","children":[{"type":"text","value":"Retries and at-least-once","line":56}],"line":56},{"type":"paragraph","children":[{"type":"text","value":"A failed attempt is tried again after the script's wait, up to its ","line":58},{"type":"inlineCode","value":"retries.limit","line":58},{"type":"text","value":", and the wait grows with each try when ","line":58},{"type":"inlineCode","value":"backoff","line":58},{"type":"text","value":" is on. A retry runs the whole script again. A run is delivered ","line":58},{"type":"strong","children":[{"type":"text","value":"at least once","line":58}],"line":58},{"type":"text","value":", and with a limit of 0 it can still run twice, for example when a worker is lost after the script did its work but before it said so. A script that sends a message or charges a card must be safe to run twice. ","line":58},{"type":"inlineCode","value":"ctx.run.idempotencyKey","line":58},{"type":"text","value":" is the same across the attempts of a run for this reason. A run whose output was too large is not tried again; one whose process crashed is.","line":58}],"line":58},{"type":"paragraph","children":[{"type":"text","value":"When the last attempt fails, the script's ","line":60},{"type":"inlineCode","value":"onFailure","line":60},{"type":"text","value":" runs: its handler script and its notification, in place of the workspace's default. The handler reads the script as deployed now, not as the failed run had it.","line":60}],"line":60},{"type":"heading","depth":2,"id":"what-is-masked","children":[{"type":"text","value":"What is masked","line":62}],"line":62},{"type":"paragraph","children":[{"type":"text","value":"A value that looks secret is shown as ","line":64},{"type":"inlineCode","value":"[redacted]","line":64},{"type":"text","value":" wherever a run is shown: by the key's name (","line":64},{"type":"inlineCode","value":"password","line":64},{"type":"text","value":", ","line":64},{"type":"inlineCode","value":"token","line":64},{"type":"text","value":", ","line":64},{"type":"inlineCode","value":"api_key","line":64},{"type":"text","value":" and their suffixes) or by the schema (","line":64},{"type":"inlineCode","value":"writeOnly","line":64},{"type":"text","value":", ","line":64},{"type":"inlineCode","value":"format: \"password\"","line":64},{"type":"text","value":", ","line":64},{"type":"inlineCode","value":"x-secret","line":64},{"type":"text","value":"). The log lines, errors and failure alerts of a run are also masked by value, whatever key the value sits under: the secrets the run was given and credentials, in plain, URL-encoded, JSON-escaped and base64 forms. A secret shorter than 4 characters is masked only as a whole word. Masking changes what is shown. What is stored and what the script receives are not changed, and a secret rotated since a line was stored cannot be found by value.","line":64}],"line":64},{"type":"paragraph","children":[{"type":"text","value":"Because a shown input can be masked, running again with a masked input asks you to enter the masked values again.","line":66}],"line":66},{"type":"heading","depth":2,"id":"what-a-finished-run-says","children":[{"type":"text","value":"What a finished run says","line":68}],"line":68},{"type":"paragraph","children":[{"type":"text","value":"A run that ends publishes ","line":70},{"type":"inlineCode","value":"platform/run-finished","line":70},{"type":"text","value":" with its status for succeeded, failed and canceled, besides the older ","line":70},{"type":"inlineCode","value":"platform/run-succeeded","line":70},{"type":"text","value":" and ","line":70},{"type":"inlineCode","value":"platform/run-failed","line":70},{"type":"text","value":". A script's run page lists the events the script published and what its failure alert did.","line":70}],"line":70},{"type":"heading","depth":2,"id":"what-volvel-does-not-check","children":[{"type":"text","value":"What Volvel does not check","line":72}],"line":72},{"type":"list","ordered":false,"children":[{"type":"listItem","children":[{"type":"text","value":"That the script is safe to run twice.","line":74}],"line":74},{"type":"listItem","children":[{"type":"text","value":"That it reads only the rows it should: without ","line":75},{"type":"inlineCode","value":".as(...)","line":75},{"type":"text","value":" a script reaches every row of a table it declared.","line":75}],"line":75},{"type":"listItem","children":[{"type":"text","value":"Types, in a script written in the console. It is built, not type checked.","line":76}],"line":76},{"type":"listItem","children":[{"type":"text","value":"What a script does with the files of the workspace: a script may read a file by its ID.","line":77}],"line":77}],"line":74},{"type":"heading","depth":2,"id":"how-it-fits","children":[{"type":"text","value":"How it fits","line":79}],"line":79},{"type":"list","ordered":false,"children":[{"type":"listItem","children":[{"type":"link","href":"../../reference/scripts/script-context","children":[{"type":"text","value":"The script context","line":81}],"line":81},{"type":"text","value":" says what ","line":81},{"type":"inlineCode","value":"ctx","line":81},{"type":"text","value":" gives a script.","line":81}],"line":81},{"type":"listItem","children":[{"type":"link","href":"../../reference/scripts/define-script","children":[{"type":"text","value":"Scripts in code","line":82}],"line":82},{"type":"text","value":" lists the limits as options.","line":82}],"line":82},{"type":"listItem","children":[{"type":"link","href":"../../../console/how-to/scripts/run-a-script","children":[{"type":"text","value":"Run a script now or later","line":83}],"line":83},{"type":"text","value":" is how to start one.","line":83}],"line":83},{"type":"listItem","children":[{"type":"link","href":"../../../console/reference/screens/operate/runs","children":[{"type":"text","value":"Runs","line":84}],"line":84},{"type":"text","value":" is where a run is read.","line":84}],"line":84}],"line":81}]},"description":"What happens between a run being asked for and its result, what a script is held to, and what Volvel does not check for you."}
|
|
1
|
+
{"path":"develop/explanation/scripts/how-scripts-run","title":"How scripts run","tree":{"type":"root","v":1,"children":[{"type":"paragraph","children":[{"type":"text","value":"A script is code that a worker runs for a workspace. The workspace holds the definition, the instance holds the queue, and a worker, a process that may be on another machine, takes a run from the queue and runs it. This page follows one run from the request to the result, then says what a script cannot do, and what is left to the script.","line":7}],"line":7},{"type":"heading","depth":2,"id":"the-idea","children":[{"type":"text","value":"The idea","line":9}],"line":9},{"type":"paragraph","children":[{"type":"text","value":"Volvel does not run a script where it is asked for. A request to run only records what is wanted: it checks the input, pins the run to a version, and puts it in a queue. The worker is the one who claims it. That separation is what lets scripts run inside a client's network, on a machine with more memory, or not at all while the instance is up, and it is why a run can wait.","line":11}],"line":11},{"type":"code","value":"sequenceDiagram\n participant P as A person, schedule, flow or app\n participant I as The instance\n participant W as A worker\n participant S as The script's process\n P->>I: Start the script with an input\n I->>I: Check the input, pin the version, queue the run\n W->>I: Claim a run\n W->>S: Start a process for this attempt\n S->>W: ctx calls (table, secret, log)\n W->>I: Pass the allowed ones, send logs\n S-->>W: The output, or an error\n W->>I: The result, the logs, the attempt's end","lang":"mermaid","line":13},{"type":"heading","depth":2,"id":"from-the-request-to-the-queue","children":[{"type":"text","value":"From the request to the queue","line":29}],"line":29},{"type":"paragraph","children":[{"type":"text","value":"When a run is asked for, the instance checks the input against the script's input schema and refuses a request that does not match it: \"The input does not match the script's schema.\" The run is then ","line":31},{"type":"strong","children":[{"type":"text","value":"pinned to a bundle","line":31}],"line":31},{"type":"text","value":", the version deployed at that moment. A deploy while the run waits does not change what it runs. This is also why a run again offers a choice: on the version it ran, or on the version deployed now.","line":31}],"line":31},{"type":"paragraph","children":[{"type":"text","value":"A run set for later is queued with a time and waits for it. A priority from -100 to 100 orders runs that wait for a worker.","line":33}],"line":33},{"type":"paragraph","children":[{"type":"text","value":"A test run from the editor is the same, with the draft built into a bundle of its own, never deployed. Those bundles and their runs are deleted after seven days.","line":35}],"line":35},{"type":"heading","depth":2,"id":"a-process-for-each-attempt","children":[{"type":"text","value":"A process for each attempt","line":37}],"line":37},{"type":"paragraph","children":[{"type":"text","value":"A worker claims a run and starts a ","line":39},{"type":"strong","children":[{"type":"text","value":"new process for each attempt","line":39}],"line":39},{"type":"text","value":". It runs with only ","line":39},{"type":"inlineCode","value":"PATH","line":39},{"type":"text","value":", ","line":39},{"type":"inlineCode","value":"TZ","line":39},{"type":"text","value":", ","line":39},{"type":"inlineCode","value":"LANG","line":39},{"type":"text","value":", ","line":39},{"type":"inlineCode","value":"TMPDIR","line":39},{"type":"text","value":" and ","line":39},{"type":"inlineCode","value":"NODE_EXTRA_CA_CERTS","line":39},{"type":"text","value":" as its environment and never holds the worker's own credential. When the script asks ","line":39},{"type":"inlineCode","value":"ctx","line":39},{"type":"text","value":" for a table, a secret or a connection, the call goes to the worker, which passes it on to the instance only if it is one of the run's declared things. A script that asks for something it did not declare fails.","line":39}],"line":39},{"type":"paragraph","children":[{"type":"text","value":"Volvel does not put each script in a container. A managed worker has a user of its own on the host, emptied of processes and temporary files before another tenant's worker is given it, and a process per attempt is the unit that is watched, limited and ended. What a script can reach on the network is the worker host's firewall: addresses that are private, loopback or link-local are closed unless ","line":41},{"type":"inlineCode","value":"WORKER_EGRESS_ALLOW","line":41},{"type":"text","value":" opens them. On an instance whose tenants do not trust each other, use ","line":41},{"type":"inlineCode","value":"MANAGED_WORKERS=host","line":41},{"type":"text","value":": ","line":41},{"type":"inlineCode","value":"process","line":41},{"type":"text","value":" mode runs every tenant's scripts as one user. A script uses plain ","line":41},{"type":"inlineCode","value":"fetch","line":41},{"type":"text","value":" and is not held to the instance's own ","line":41},{"type":"inlineCode","value":"EGRESS_ALLOW","line":41},{"type":"text","value":", which is for the instance's calls. See the ","line":41},{"type":"link","href":"../../../self-host/reference/settings","children":[{"type":"text","value":"settings reference","line":41}],"line":41},{"type":"text","value":".","line":41}],"line":41},{"type":"heading","depth":2,"id":"what-a-run-is-held-to","children":[{"type":"text","value":"What a run is held to","line":43}],"line":43},{"type":"table","align":[null,null],"children":[{"type":"tableRow","header":true,"children":[{"type":"tableCell","children":[{"type":"text","value":"Limit","line":45}]},{"type":"tableCell","children":[{"type":"text","value":"What happens","line":45}]}],"line":45},{"type":"tableRow","header":false,"children":[{"type":"tableCell","children":[{"type":"text","value":"Time","line":47}]},{"type":"tableCell","children":[{"type":"text","value":"After the script's limit (60 seconds for a console script, 300 for a script in code, up to 3600) the run is told to stop through ","line":47},{"type":"inlineCode","value":"ctx.signal","line":47},{"type":"text","value":", given 3 seconds, and then killed. It fails with \"The run took longer than its limit of N seconds.\"","line":47}]}],"line":47},{"type":"tableRow","header":false,"children":[{"type":"tableCell","children":[{"type":"text","value":"Memory","line":48}]},{"type":"tableCell","children":[{"type":"text","value":"The script's heap is capped at its ","line":48},{"type":"inlineCode","value":"memoryMb","line":48},{"type":"text","value":". The whole process may hold that and 64 MB beside it, checked every half second. Past it: \"The script ran out of memory (N MB).\" A machine that is itself short of memory ends a script with \"The script was stopped: the machine ran low on memory.\"","line":48}]}],"line":48},{"type":"tableRow","header":false,"children":[{"type":"tableCell","children":[{"type":"text","value":"Output","line":49}]},{"type":"tableCell","children":[{"type":"text","value":"At most 10 MB. A larger output fails the run with \"The output is larger than 10 MB (it is N MB). The script's work was done and is not repeated.\" and it is not tried again.","line":49}]}],"line":49},{"type":"tableRow","header":false,"children":[{"type":"tableCell","children":[{"type":"text","value":"Logs","line":50}]},{"type":"tableCell","children":[{"type":"text","value":"A line's message is cut at 8,000 characters, and its fields over 32 KB are replaced by a note. A worker keeps 5,000 lines while the instance cannot be reached and says \"N log lines could not be saved.\" when it gave up.","line":50}]}],"line":50},{"type":"tableRow","header":false,"children":[{"type":"tableCell","children":[{"type":"text","value":"Silence","line":51}]},{"type":"tableCell","children":[{"type":"text","value":"A worker that says nothing for 30 seconds is taken to be lost. The run goes back to the queue with \"The worker stopped responding. The run is being retried.\"","line":51}]}],"line":51},{"type":"tableRow","header":false,"children":[{"type":"tableCell","children":[{"type":"text","value":"Cancel","line":52}]},{"type":"tableCell","children":[{"type":"text","value":"A running script hears of a cancel at its next heartbeat, and then the same stop as a timeout.","line":52}]}],"line":52}],"line":45},{"type":"paragraph","children":[{"type":"text","value":"An input or output over 256 KB is kept in file storage, not in the run's record.","line":54}],"line":54},{"type":"heading","depth":2,"id":"retries-and-at-least-once","children":[{"type":"text","value":"Retries and at-least-once","line":56}],"line":56},{"type":"paragraph","children":[{"type":"text","value":"A failed attempt is tried again after the script's wait, up to its ","line":58},{"type":"inlineCode","value":"retries.limit","line":58},{"type":"text","value":", and the wait grows with each try when ","line":58},{"type":"inlineCode","value":"backoff","line":58},{"type":"text","value":" is on. A retry runs the whole script again. A run is delivered ","line":58},{"type":"strong","children":[{"type":"text","value":"at least once","line":58}],"line":58},{"type":"text","value":", and with a limit of 0 it can still run twice, for example when a worker is lost after the script did its work but before it said so. A script that sends a message or charges a card must be safe to run twice. ","line":58},{"type":"inlineCode","value":"ctx.run.idempotencyKey","line":58},{"type":"text","value":" is the same across the attempts of a run for this reason. A run whose output was too large is not tried again; one whose process crashed is.","line":58}],"line":58},{"type":"paragraph","children":[{"type":"text","value":"When the last attempt fails, the script's ","line":60},{"type":"inlineCode","value":"onFailure","line":60},{"type":"text","value":" runs: its handler script and its notification, in place of the workspace's default. The handler reads the script as deployed now, not as the failed run had it.","line":60}],"line":60},{"type":"heading","depth":2,"id":"what-is-masked","children":[{"type":"text","value":"What is masked","line":62}],"line":62},{"type":"paragraph","children":[{"type":"text","value":"A value that looks secret is shown as ","line":64},{"type":"inlineCode","value":"[redacted]","line":64},{"type":"text","value":" wherever a run is shown: by the key's name (","line":64},{"type":"inlineCode","value":"password","line":64},{"type":"text","value":", ","line":64},{"type":"inlineCode","value":"token","line":64},{"type":"text","value":", ","line":64},{"type":"inlineCode","value":"api_key","line":64},{"type":"text","value":" and their suffixes) or by the schema (","line":64},{"type":"inlineCode","value":"writeOnly","line":64},{"type":"text","value":", ","line":64},{"type":"inlineCode","value":"format: \"password\"","line":64},{"type":"text","value":", ","line":64},{"type":"inlineCode","value":"x-secret","line":64},{"type":"text","value":"). The log lines, errors and failure alerts of a run are also masked by value, whatever key the value sits under: the secrets the run was given and credentials, in plain, URL-encoded, JSON-escaped and base64 forms. A secret shorter than 4 characters is masked only as a whole word. Masking changes what is shown. What is stored and what the script receives are not changed, and a secret rotated since a line was stored cannot be found by value.","line":64}],"line":64},{"type":"paragraph","children":[{"type":"text","value":"Because a shown input can be masked, running again with a masked input asks you to enter the masked values again.","line":66}],"line":66},{"type":"heading","depth":2,"id":"what-a-finished-run-says","children":[{"type":"text","value":"What a finished run says","line":68}],"line":68},{"type":"paragraph","children":[{"type":"text","value":"A run that ends publishes ","line":70},{"type":"inlineCode","value":"platform/run-finished","line":70},{"type":"text","value":" with its status for succeeded, failed and canceled, besides the older ","line":70},{"type":"inlineCode","value":"platform/run-succeeded","line":70},{"type":"text","value":" and ","line":70},{"type":"inlineCode","value":"platform/run-failed","line":70},{"type":"text","value":". A script's run page lists the events the script published and what its failure alert did.","line":70}],"line":70},{"type":"heading","depth":2,"id":"what-volvel-does-not-check","children":[{"type":"text","value":"What Volvel does not check","line":72}],"line":72},{"type":"list","ordered":false,"children":[{"type":"listItem","children":[{"type":"text","value":"That the script is safe to run twice.","line":74}],"line":74},{"type":"listItem","children":[{"type":"text","value":"That it reads only the rows it should: without ","line":75},{"type":"inlineCode","value":".as(...)","line":75},{"type":"text","value":" a script reaches every row of a table it declared.","line":75}],"line":75},{"type":"listItem","children":[{"type":"text","value":"Types, in a script written in the console. It is built, not type checked.","line":76}],"line":76},{"type":"listItem","children":[{"type":"text","value":"What a script does with the files of the workspace: a script may read a file by its ID.","line":77}],"line":77}],"line":74},{"type":"heading","depth":2,"id":"how-it-fits","children":[{"type":"text","value":"How it fits","line":79}],"line":79},{"type":"list","ordered":false,"children":[{"type":"listItem","children":[{"type":"link","href":"../../reference/scripts/script-context","children":[{"type":"text","value":"The script context","line":81}],"line":81},{"type":"text","value":" says what ","line":81},{"type":"inlineCode","value":"ctx","line":81},{"type":"text","value":" gives a script.","line":81}],"line":81},{"type":"listItem","children":[{"type":"link","href":"../../reference/scripts/define-script","children":[{"type":"text","value":"Scripts in code","line":82}],"line":82},{"type":"text","value":" lists the limits as options.","line":82}],"line":82},{"type":"listItem","children":[{"type":"link","href":"../../../console/how-to/scripts/run-a-script","children":[{"type":"text","value":"Run a script now or later","line":83}],"line":83},{"type":"text","value":" is how to start one.","line":83}],"line":83},{"type":"listItem","children":[{"type":"link","href":"../../../console/reference/screens/operate/runs","children":[{"type":"text","value":"Runs","line":84}],"line":84},{"type":"text","value":" is where a run is read.","line":84}],"line":84}],"line":81}]},"description":"What happens between a run being asked for and its result, what a script is held to, and what Volvel does not check for you."}
|