From 0d462fb2e053f8ae4741f1c21ac3935253e44408 Mon Sep 17 00:00:00 2001 From: Maxwell Becker <49575486+mbecker20@users.noreply.github.com> Date: Thu, 7 May 2026 11:19:55 -0700 Subject: [PATCH 1/2] 2.2.0 (#1387) * fix login page import * update to mantine v9, reduce the border radius on some things * deploy 2.2.0-dev-1 * move theme to mogh ui * start moving stuff to mogh_ui * move more components to mogh_ui * move section to mogh_ui * move confirm button * move colors and formatting to mogh_ui * move more to mogh_ui * move more components to mogh ui * move entity header / page to mogh ui * move monaco to mogh_monaco * move config / monaco to mogh ui * move text update modal to mogh ui, empty ui folder * deploy 2.2.0-dev-2 * move auth hooks to mogh_ui * move login to mogh ui * move profile management to mogh ui * add missing dedupe deps * bump mogh ui deps * expand shell process path static load * move filterBySplit to mogh_ui * align core aio dockerfile * bump mogh ui * add published mogh_auth_client * comment about onboarding key * fix lockfile * bump mogh ui * improve doc comment on CoreInfo public_key * UI: topbar home butotn use Link instead of nav, cmd click open in new tab * Minor: Update periphery.config.toml (#1365) * Minor: Update periphery.config.toml Make docs on ROOT_DIRECTORY more clear This change relates to line: > ## Each specific sub-directory (like ./stacks) can be overridden below. The change includes `./builds` directory to the list as it also can be overridden. Thus, a reader will have better understanding of the resulting root directory structure * Update compose.env * fix cli multi arch dockerfile and bump other dockerfiles * Add OIDC auto-redirect config to Core (#1339) * Add OIDC auto-redirect config to Core When KOMODO_OIDC_AUTO_REDIRECT=true, the login options response includes oidc_auto_redirect, enabling the UI (via mogh-lib) to automatically redirect unauthenticated users to the OIDC provider. Users can bypass by appending ?disableAutoLogin to the login URL. Depends on moghtech/lib UI change adding auto-redirect to LoginPage. Closes #311 * Skip OIDC auto-redirect for Add Account link The user dropdown's Add Account button navigates to /login to add another account. When OIDC auto-redirect is enabled, this link must opt out so the user can actually sign in as a different user instead of being redirected back to the already-authenticated OIDC session. * bump deps * deploy 2.2.0-dev-3 * Fix swarm deployment Tasks and Inspect tabs * Fix build cancel button variant default * RunSync: Make sure resource sync changes run after repo changes due to dependency * deploy 2.2.0-dev-4 * deploy 2.2.0-dev-5 * fmt * impl mogh server 1.5.0 configuration security headers * to the user * agents send * let user specify if they want command to be run in shell-mode (#1265) * allow users to add commands as shell-mode * revert package.json yarn auto-change * cargo fmt * bump bollard and other deps * gen client * deploy 2.2.0-dev-6 * bump dockerfile rust version 1.95.0 * document new core configurations * deploy 2.2.0-dev-7 * 2 small UI fixes (#1379) * fix: prevent horizontal page scroll on long action log lines Add white-space: pre-wrap to Code component pre elements rendering stdout/stderr in action last-run, update details, and build info views. * fix: UI Defined and Files on Server text too large in stacks table --------- Co-authored-by: twalts * X-Frame-Options * Add support to generate resource json schema (#1337) * add support to generate resource json schema * remove unnecessary renames --------- Co-authored-by: Maxwell Becker <49575486+mbecker20@users.noreply.github.com> * generate resource schema * resources.json * deploy 2.2.0-dev-8 * fix build.version schema (can be string) * add resource toml comments * deploy 2.2.0-dev-9 * use draft 07 for better taplo compat * deploy 2.2.0-dev-10 * builder fix exported toml server_id -> server * deploy 2.2.0-dev-11 * bump mogh auth * deploy 2.2.0-dev-12 * Allow excluding services from global auto update (#1279) * add ignore_polling_services for global auto update * rename ignore_polling_services to auto_update_skip_services and reorganize * fix stack auto_update check show skip services * deploy 2.2.0-dev-13 * 2.2.0 * bold "relative to the root of the repo" --------- Co-authored-by: Andrii Bratanin <20169213+andriibratanin@users.noreply.github.com> Co-authored-by: John Maguire Co-authored-by: Shen Li Co-authored-by: T Co-authored-by: twalts Co-authored-by: bytedream Co-authored-by: mateuszziolkowski <88323671+mateuszziolkowski@users.noreply.github.com> --- .cargo/config.toml | 5 +- Cargo.lock | 2502 ++++--- Cargo.toml | 60 +- bin/binaries.Dockerfile | 2 +- bin/chef.binaries.Dockerfile | 2 +- bin/cli/aio.Dockerfile | 2 +- bin/cli/multi-arch.Dockerfile | 2 +- bin/core/aio.Dockerfile | 5 +- bin/core/src/api/execute/build.rs | 8 +- bin/core/src/api/execute/repo.rs | 11 +- bin/core/src/api/execute/sync.rs | 29 +- .../src/api/listener/integrations/github.rs | 2 +- bin/core/src/api/write/stack.rs | 8 +- bin/core/src/auth/mod.rs | 1 + bin/core/src/config.rs | 18 + bin/core/src/sync/toml.rs | 35 + bin/periphery/aio.Dockerfile | 2 +- bin/periphery/src/api/build/mod.rs | 6 +- bin/periphery/src/api/compose.rs | 12 +- bin/periphery/src/docker/container.rs | 13 +- bin/periphery/src/docker/mod.rs | 43 +- bin/periphery/src/docker/volume.rs | 8 +- bin/periphery/src/helpers.rs | 40 +- client/core/rs/Cargo.toml | 2 + client/core/rs/src/api/execute/action.rs | 2 + client/core/rs/src/api/execute/alerter.rs | 2 + client/core/rs/src/api/execute/build.rs | 3 + client/core/rs/src/api/execute/deployment.rs | 10 + client/core/rs/src/api/execute/maintenance.rs | 5 + client/core/rs/src/api/execute/mod.rs | 2 + client/core/rs/src/api/execute/procedure.rs | 2 + client/core/rs/src/api/execute/repo.rs | 7 + client/core/rs/src/api/execute/server.rs | 21 + client/core/rs/src/api/execute/stack.rs | 14 + client/core/rs/src/api/execute/swarm.rs | 10 + client/core/rs/src/api/execute/sync.rs | 1 + client/core/rs/src/api/read/mod.rs | 2 +- .../core/rs/src/api/write/onboarding_key.rs | 3 +- client/core/rs/src/api/write/sync.rs | 1 + client/core/rs/src/entities/action.rs | 4 + client/core/rs/src/entities/alert.rs | 5 + client/core/rs/src/entities/alerter.rs | 10 + client/core/rs/src/entities/build.rs | 33 + client/core/rs/src/entities/builder.rs | 22 +- client/core/rs/src/entities/config/core.rs | 93 + client/core/rs/src/entities/config/mod.rs | 3 + client/core/rs/src/entities/deployment.rs | 18 + .../core/rs/src/entities/docker/container.rs | 9 +- client/core/rs/src/entities/docker/mod.rs | 18 +- client/core/rs/src/entities/docker/node.rs | 2 + client/core/rs/src/entities/docker/volume.rs | 19 +- client/core/rs/src/entities/mod.rs | 15 + client/core/rs/src/entities/permission.rs | 3 + client/core/rs/src/entities/procedure.rs | 10 + client/core/rs/src/entities/repo.rs | 12 + client/core/rs/src/entities/server.rs | 4 + client/core/rs/src/entities/stack.rs | 27 + client/core/rs/src/entities/swarm.rs | 8 + client/core/rs/src/entities/sync.rs | 4 + client/core/rs/src/entities/toml.rs | 42 +- client/core/rs/src/entities/variable.rs | 1 + client/core/ts/package.json | 4 +- client/core/ts/src/types.ts | 42 +- client/core/ts/yarn.lock | 8 +- compose/compose.env | 3 +- config/core.config.toml | 53 +- config/periphery.config.toml | 3 +- docsite/docs/setup/connect-servers.mdx | 4 +- example/alerter/Dockerfile | 2 +- example/update_logger/Dockerfile | 2 +- lib/command/src/lib.rs | 7 +- runfile.toml | 7 + ui/package.json | 28 +- ui/public/client/types.d.ts | 42 +- ui/public/client/types.js | 22 +- ui/public/schema/resources.json | 6324 +++++++++++++++++ ui/src/app/index.tsx | 2 +- ui/src/app/sidebar.tsx | 2 +- ui/src/app/topbar/alerts.tsx | 2 +- ui/src/app/topbar/index.tsx | 12 +- ui/src/app/topbar/keyboard-shortcuts.tsx | 3 +- ui/src/app/topbar/link.tsx | 17 +- ui/src/app/topbar/omni-search/hooks.tsx | 2 +- ui/src/app/topbar/omni-search/index.tsx | 5 +- ui/src/app/topbar/updates.tsx | 2 +- ui/src/app/topbar/user-dropdown.tsx | 4 +- ui/src/app/topbar/websocket-status.tsx | 2 +- ui/src/components/alerts/card.tsx | 6 +- ui/src/components/alerts/details.tsx | 16 +- ui/src/components/alerts/level.tsx | 2 +- ui/src/components/alerts/list.tsx | 2 +- ui/src/components/api-keys/new.tsx | 18 +- ui/src/components/api-keys/section.tsx | 7 +- ui/src/components/api-keys/table.tsx | 8 +- ui/src/components/batch-executions.tsx | 7 +- ui/src/components/config/account-selector.tsx | 2 +- ui/src/components/config/add-extra-arg.tsx | 7 +- .../config/image-registry-config.tsx | 4 +- ui/src/components/config/linked-repo.tsx | 2 +- .../components/config/provider-selector.tsx | 2 +- ui/src/components/config/secret-selector.tsx | 7 +- ui/src/components/config/system-command.tsx | 31 +- .../components/confirm-modal-with-disable.tsx | 2 +- ui/src/components/dashboard-summary/index.tsx | 2 +- ui/src/components/docker/container-ports.tsx | 9 +- .../components/docker/container-selector.tsx | 7 +- .../components/docker/containers-section.tsx | 16 +- ui/src/components/docker/labels-section.tsx | 8 +- ui/src/components/docker/link.tsx | 5 +- ui/src/components/export-toml.tsx | 17 +- ui/src/components/file-source.tsx | 6 +- ui/src/components/inspect-section.tsx | 8 +- ui/src/components/log-section.tsx | 6 +- ui/src/{ui => components}/log-viewer.tsx | 0 ui/src/components/maintenance-windows.tsx | 6 +- ui/src/components/monaco.tsx | 290 - ui/src/components/operation-selector.tsx | 0 .../components/permissions/base-section.tsx | 11 +- .../components/permissions/level-selector.tsx | 2 +- .../permissions/specific-section.tsx | 8 +- ui/src/components/stack-service-link.tsx | 9 +- ui/src/components/stack-service-selector.tsx | 15 +- ui/src/components/swarm/link.tsx | 4 +- ui/src/components/swarm/remove.tsx | 2 +- ui/src/components/swarm/services-section.tsx | 12 +- ui/src/components/swarm/tasks-section.tsx | 28 +- ui/src/components/tags/filter.tsx | 5 +- ui/src/components/tags/new.tsx | 2 +- ui/src/components/tags/selector.tsx | 13 +- ui/src/components/template-switch.tsx | 2 +- ui/src/components/terminal/new.tsx | 7 +- ui/src/components/terminal/section.tsx | 4 +- ui/src/components/updates/card.tsx | 8 +- ui/src/components/updates/details.tsx | 31 +- ui/src/components/updates/list.tsx | 2 +- ui/src/components/updates/section.tsx | 4 +- ui/src/components/user-avatar.tsx | 2 +- ui/src/components/user/delete-group.tsx | 4 +- ui/src/components/user/header.tsx | 6 +- ui/src/components/user/table.tsx | 10 +- ui/src/components/webhook/builder.tsx | 2 +- ui/src/components/webhook/copy-url.tsx | 4 +- ui/src/index.scss | 74 - ui/src/lib/color.ts | 143 +- ui/src/lib/formatting.ts | 99 - ui/src/lib/hooks.ts | 254 +- ui/src/{theme => lib}/icons.ts | 2 +- ui/src/lib/socket.tsx | 4 +- ui/src/lib/utils.ts | 111 - ui/src/main.tsx | 16 +- ui/src/{monaco/init.ts => monaco.ts} | 14 + ui/src/monaco/fancy_toml.ts | 240 - ui/src/monaco/index.ts | 41 - ui/src/monaco/key_value.ts | 97 - ui/src/monaco/shell.ts | 246 - ui/src/monaco/string_list.ts | 55 - ui/src/monaco/theme.ts | 701 -- ui/src/monaco/toml.ts | 162 - ui/src/monaco/yaml.ts | 361 - ui/src/pages/alert.tsx | 2 +- ui/src/pages/alerts.tsx | 12 +- ui/src/pages/containers.tsx | 16 +- ui/src/pages/dashboard/active.tsx | 9 +- ui/src/pages/dashboard/index.tsx | 4 +- ui/src/pages/dashboard/no-resources.tsx | 2 +- ui/src/pages/dashboard/recents.tsx | 2 +- ui/src/pages/dashboard/show-tables.tsx | 2 +- ui/src/pages/dashboard/tables.tsx | 8 +- ui/src/pages/docker/container/executions.tsx | 2 +- ui/src/pages/docker/container/index.tsx | 6 +- ui/src/pages/docker/container/tabs.tsx | 11 +- ui/src/pages/docker/image.tsx | 13 +- ui/src/pages/docker/network.tsx | 8 +- ui/src/pages/docker/volume.tsx | 8 +- ui/src/pages/login.tsx | 19 + ui/src/pages/login/header.tsx | 72 - ui/src/pages/login/index.tsx | 239 - .../pages/{profile/index.tsx => profile.tsx} | 73 +- ui/src/pages/profile/linked-logins.tsx | 177 - ui/src/pages/profile/passkey.tsx | 79 - ui/src/pages/profile/totp.tsx | 146 - ui/src/pages/resource.tsx | 8 +- ui/src/pages/resources.tsx | 8 +- ui/src/pages/schedules.tsx | 10 +- ui/src/pages/settings/core-info.tsx | 8 +- ui/src/pages/settings/index.tsx | 4 +- ui/src/pages/settings/onboarding/delete.tsx | 4 +- ui/src/pages/settings/onboarding/index.tsx | 7 +- ui/src/pages/settings/onboarding/new.tsx | 4 +- ui/src/pages/settings/providers/delete.tsx | 4 +- ui/src/pages/settings/providers/index.tsx | 14 +- ui/src/pages/settings/providers/new.tsx | 2 +- ui/src/pages/settings/tags/color-selector.tsx | 8 +- ui/src/pages/settings/tags/delete.tsx | 4 +- ui/src/pages/settings/tags/index.tsx | 4 +- ui/src/pages/settings/users/groups.tsx | 10 +- ui/src/pages/settings/users/index.tsx | 7 +- ui/src/pages/settings/users/new-group.tsx | 2 +- .../pages/settings/users/new-local-user.tsx | 2 +- .../pages/settings/users/new-service-user.tsx | 2 +- ui/src/pages/settings/variables/delete.tsx | 4 +- ui/src/pages/settings/variables/index.tsx | 23 +- ui/src/pages/settings/variables/new.tsx | 2 +- ui/src/pages/stack-service/index.tsx | 2 +- ui/src/pages/stack-service/inspect.tsx | 4 +- ui/src/pages/stack-service/tabs.tsx | 8 +- ui/src/pages/swarm/config/edit.tsx | 10 +- ui/src/pages/swarm/config/index.tsx | 4 +- ui/src/pages/swarm/config/tabs.tsx | 8 +- ui/src/pages/swarm/node/index.tsx | 4 +- ui/src/pages/swarm/node/tabs.tsx | 8 +- ui/src/pages/swarm/secret/edit.tsx | 10 +- ui/src/pages/swarm/secret/index.tsx | 4 +- ui/src/pages/swarm/secret/tabs.tsx | 8 +- ui/src/pages/swarm/service/index.tsx | 4 +- ui/src/pages/swarm/service/tabs.tsx | 7 +- ui/src/pages/swarm/stack/index.tsx | 4 +- ui/src/pages/swarm/stack/inspect.tsx | 4 +- ui/src/pages/swarm/stack/logs.tsx | 2 +- ui/src/pages/swarm/stack/tabs.tsx | 7 +- ui/src/pages/swarm/task/index.tsx | 4 +- ui/src/pages/swarm/task/inspect.tsx | 4 +- ui/src/pages/swarm/task/tabs.tsx | 7 +- ui/src/pages/terminal.tsx | 4 +- ui/src/pages/terminals/batch-delete.tsx | 4 +- ui/src/pages/terminals/delete.tsx | 4 +- ui/src/pages/terminals/index.tsx | 16 +- ui/src/pages/terminals/new.tsx | 5 +- ui/src/pages/update.tsx | 2 +- ui/src/pages/updates.tsx | 19 +- ui/src/pages/user-group/add-user.tsx | 12 +- ui/src/pages/user-group/delete.tsx | 4 +- ui/src/pages/user-group/index.tsx | 14 +- ui/src/pages/user/add-group.tsx | 6 +- ui/src/pages/user/index.tsx | 10 +- ui/src/pages/user/member-groups.tsx | 6 +- ui/src/resources/action/config.tsx | 9 +- ui/src/resources/action/index.tsx | 6 +- ui/src/resources/action/last-run.tsx | 15 +- ui/src/resources/action/table.tsx | 2 +- .../resources/alerter/config/alert-types.tsx | 6 +- ui/src/resources/alerter/config/endpoint.tsx | 3 +- ui/src/resources/alerter/config/index.tsx | 2 +- ui/src/resources/alerter/config/resources.tsx | 10 +- ui/src/resources/alerter/index.tsx | 6 +- ui/src/resources/alerter/table.tsx | 4 +- ui/src/resources/build/config.tsx | 25 +- ui/src/resources/build/executions.tsx | 5 +- ui/src/resources/build/index.tsx | 7 +- ui/src/resources/build/info.tsx | 26 +- ui/src/resources/build/table.tsx | 2 +- ui/src/resources/build/tabs.tsx | 13 +- ui/src/resources/builder/config/aws.tsx | 5 +- ui/src/resources/builder/config/server.tsx | 4 +- ui/src/resources/builder/config/url.tsx | 2 +- ui/src/resources/builder/index.tsx | 2 +- ui/src/resources/builder/table.tsx | 2 +- ui/src/resources/delete.tsx | 4 +- ui/src/resources/deployment/config/image.tsx | 9 +- ui/src/resources/deployment/config/index.tsx | 7 +- .../resources/deployment/config/network.tsx | 2 +- .../resources/deployment/config/restart.tsx | 4 +- .../deployment/config/termination.tsx | 2 +- ui/src/resources/deployment/executions.tsx | 4 +- ui/src/resources/deployment/index.tsx | 7 +- ui/src/resources/deployment/table.tsx | 4 +- ui/src/resources/deployment/tabs.tsx | 31 +- ui/src/resources/deployment/tasks.tsx | 38 + .../resources/deployment/update-available.tsx | 4 +- ui/src/resources/description.tsx | 4 +- ui/src/resources/header.tsx | 2 +- ui/src/resources/new.tsx | 2 +- ui/src/resources/not-found.tsx | 2 +- .../procedure/config/execution-selector.tsx | 8 +- .../resources/procedure/config/executions.tsx | 8 +- ui/src/resources/procedure/config/index.tsx | 7 +- ui/src/resources/procedure/config/stage.tsx | 6 +- ui/src/resources/procedure/executions.tsx | 2 +- ui/src/resources/procedure/index.tsx | 7 +- ui/src/resources/procedure/table.tsx | 2 +- ui/src/resources/repo/config.tsx | 5 +- ui/src/resources/repo/executions.tsx | 4 +- ui/src/resources/repo/index.tsx | 7 +- ui/src/resources/repo/resources.tsx | 4 +- ui/src/resources/repo/table.tsx | 2 +- ui/src/resources/repo/tabs.tsx | 11 +- ui/src/resources/selector.tsx | 6 +- ui/src/resources/server/config.tsx | 7 +- ui/src/resources/server/confirm-pubkey.tsx | 2 +- ui/src/resources/server/diskUsage.tsx | 4 +- ui/src/resources/server/docker/images.tsx | 9 +- ui/src/resources/server/docker/index.tsx | 16 +- ui/src/resources/server/docker/networks.tsx | 8 +- ui/src/resources/server/docker/volumes.tsx | 8 +- ui/src/resources/server/executions.tsx | 4 +- ui/src/resources/server/index.tsx | 12 +- ui/src/resources/server/resources.tsx | 4 +- ui/src/resources/server/stats-card.tsx | 4 +- ui/src/resources/server/stats/containers.tsx | 12 +- ui/src/resources/server/stats/current/cpu.tsx | 4 +- .../resources/server/stats/current/index.tsx | 6 +- .../server/stats/current/load-average.tsx | 4 +- .../server/stats/current/network-usage.tsx | 4 +- ui/src/resources/server/stats/current/ram.tsx | 4 +- ui/src/resources/server/stats/disks.tsx | 8 +- ui/src/resources/server/stats/historical.tsx | 9 +- ui/src/resources/server/stats/index.tsx | 2 +- ui/src/resources/server/stats/processes.tsx | 14 +- ui/src/resources/server/stats/system-info.tsx | 6 +- ui/src/resources/server/table/standard.tsx | 2 +- ui/src/resources/server/table/stats.tsx | 5 +- ui/src/resources/server/tabs.tsx | 21 +- ui/src/resources/server/version.tsx | 10 +- .../resources/stack/config/config-files.tsx | 4 +- ui/src/resources/stack/config/index.tsx | 55 +- ui/src/resources/stack/executions.tsx | 4 +- ui/src/resources/stack/index.tsx | 7 +- ui/src/resources/stack/info.tsx | 14 +- ui/src/resources/stack/log.tsx | 2 +- ui/src/resources/stack/services.tsx | 6 +- ui/src/resources/stack/table.tsx | 2 +- ui/src/resources/stack/tabs.tsx | 16 +- ui/src/resources/stack/update-available.tsx | 4 +- ui/src/resources/sub-page.tsx | 15 +- ui/src/resources/swarm/config.tsx | 5 +- ui/src/resources/swarm/docker/configs.tsx | 8 +- ui/src/resources/swarm/docker/index.tsx | 10 +- ui/src/resources/swarm/docker/nodes/index.tsx | 12 +- .../resources/swarm/docker/nodes/update.tsx | 4 +- ui/src/resources/swarm/docker/secrets.tsx | 8 +- ui/src/resources/swarm/docker/stacks.tsx | 10 +- ui/src/resources/swarm/header-info.tsx | 4 +- ui/src/resources/swarm/index.tsx | 8 +- ui/src/resources/swarm/join-commands.tsx | 4 +- ui/src/resources/swarm/new/config.tsx | 4 +- ui/src/resources/swarm/new/secret.tsx | 4 +- ui/src/resources/swarm/resources.tsx | 4 +- ui/src/resources/swarm/table.tsx | 2 +- ui/src/resources/swarm/tabs.tsx | 11 +- ui/src/resources/sync/config.tsx | 28 +- ui/src/resources/sync/executions.tsx | 4 +- ui/src/resources/sync/index.tsx | 8 +- ui/src/resources/sync/info.tsx | 31 +- ui/src/resources/sync/pending.tsx | 35 +- ui/src/resources/sync/table.tsx | 2 +- ui/src/resources/sync/tabs.tsx | 12 +- ui/src/resources/tags.tsx | 13 +- ui/src/router.tsx | 4 +- ui/src/theme/index.scss | 84 - ui/src/theme/index.tsx | 314 - ui/src/ui/back-button.tsx | 20 - ui/src/ui/config/confirm.tsx | 216 - ui/src/ui/config/group.tsx | 94 - ui/src/ui/config/index.tsx | 298 - ui/src/ui/config/item.tsx | 163 - ui/src/ui/config/layout.tsx | 22 - ui/src/ui/config/unsaved-changes.tsx | 17 - ui/src/ui/confirm-button.tsx | 93 - ui/src/ui/confirm-icon.tsx | 69 - ui/src/ui/confirm-modal.tsx | 164 - ui/src/ui/copy-button.tsx | 42 - ui/src/ui/copy-text.tsx | 42 - ui/src/ui/create-modal.tsx | 88 - ui/src/ui/data-table.tsx | 317 - ui/src/ui/divided-children/index.module.scss | 4 - ui/src/ui/divided-children/index.tsx | 22 - ui/src/ui/enable-switch.tsx | 45 - ui/src/ui/entity-header.tsx | 125 - ui/src/ui/entity-page.tsx | 25 - ui/src/ui/fancy-card/index.module.css | 13 - ui/src/ui/fancy-card/index.tsx | 23 - ui/src/ui/hover-error.tsx | 48 - ui/src/ui/info-card.tsx | 37 - ui/src/ui/input-list.tsx | 56 - ui/src/ui/labelled-switch.tsx | 53 - ui/src/ui/labels-group.tsx | 27 - ui/src/ui/loading-screen.tsx | 15 - ui/src/ui/mobile-friendly-tabs.tsx | 162 - ui/src/ui/page-guard.tsx | 33 - ui/src/ui/page.tsx | 102 - ui/src/ui/search-input.tsx | 26 - ui/src/ui/section.tsx | 142 - ui/src/ui/shared-text-update.tsx | 90 - ui/src/ui/show-hide-button.tsx | 25 - ui/src/ui/stat-bar.tsx | 58 - ui/src/ui/stat-cell.tsx | 70 - ui/src/ui/status-badge.tsx | 54 - ui/src/ui/tabbed-page.tsx | 61 - ui/src/ui/table-skeleton.tsx | 17 - ui/src/ui/text-update-modal.tsx | 112 - ui/src/ui/theme-toggle.tsx | 58 - ui/vite.config.ts | 19 +- ui/yarn.lock | 539 +- xtask/Cargo.toml | 15 + xtask/src/generate/mod.rs | 17 + xtask/src/generate/resource_schema.rs | 48 + xtask/src/main.rs | 29 + 397 files changed, 10292 insertions(+), 9294 deletions(-) create mode 100644 ui/public/schema/resources.json rename ui/src/{ui => components}/log-viewer.tsx (100%) delete mode 100644 ui/src/components/monaco.tsx delete mode 100644 ui/src/components/operation-selector.tsx rename ui/src/{theme => lib}/icons.ts (99%) rename ui/src/{monaco/init.ts => monaco.ts} (82%) delete mode 100644 ui/src/monaco/fancy_toml.ts delete mode 100644 ui/src/monaco/index.ts delete mode 100644 ui/src/monaco/key_value.ts delete mode 100644 ui/src/monaco/shell.ts delete mode 100644 ui/src/monaco/string_list.ts delete mode 100644 ui/src/monaco/theme.ts delete mode 100644 ui/src/monaco/toml.ts delete mode 100644 ui/src/monaco/yaml.ts create mode 100644 ui/src/pages/login.tsx delete mode 100644 ui/src/pages/login/header.tsx delete mode 100644 ui/src/pages/login/index.tsx rename ui/src/pages/{profile/index.tsx => profile.tsx} (66%) delete mode 100644 ui/src/pages/profile/linked-logins.tsx delete mode 100644 ui/src/pages/profile/passkey.tsx delete mode 100644 ui/src/pages/profile/totp.tsx create mode 100644 ui/src/resources/deployment/tasks.tsx delete mode 100644 ui/src/theme/index.scss delete mode 100644 ui/src/theme/index.tsx delete mode 100644 ui/src/ui/back-button.tsx delete mode 100644 ui/src/ui/config/confirm.tsx delete mode 100644 ui/src/ui/config/group.tsx delete mode 100644 ui/src/ui/config/index.tsx delete mode 100644 ui/src/ui/config/item.tsx delete mode 100644 ui/src/ui/config/layout.tsx delete mode 100644 ui/src/ui/config/unsaved-changes.tsx delete mode 100644 ui/src/ui/confirm-button.tsx delete mode 100644 ui/src/ui/confirm-icon.tsx delete mode 100644 ui/src/ui/confirm-modal.tsx delete mode 100644 ui/src/ui/copy-button.tsx delete mode 100644 ui/src/ui/copy-text.tsx delete mode 100644 ui/src/ui/create-modal.tsx delete mode 100644 ui/src/ui/data-table.tsx delete mode 100644 ui/src/ui/divided-children/index.module.scss delete mode 100644 ui/src/ui/divided-children/index.tsx delete mode 100644 ui/src/ui/enable-switch.tsx delete mode 100644 ui/src/ui/entity-header.tsx delete mode 100644 ui/src/ui/entity-page.tsx delete mode 100644 ui/src/ui/fancy-card/index.module.css delete mode 100644 ui/src/ui/fancy-card/index.tsx delete mode 100644 ui/src/ui/hover-error.tsx delete mode 100644 ui/src/ui/info-card.tsx delete mode 100644 ui/src/ui/input-list.tsx delete mode 100644 ui/src/ui/labelled-switch.tsx delete mode 100644 ui/src/ui/labels-group.tsx delete mode 100644 ui/src/ui/loading-screen.tsx delete mode 100644 ui/src/ui/mobile-friendly-tabs.tsx delete mode 100644 ui/src/ui/page-guard.tsx delete mode 100644 ui/src/ui/page.tsx delete mode 100644 ui/src/ui/search-input.tsx delete mode 100644 ui/src/ui/section.tsx delete mode 100644 ui/src/ui/shared-text-update.tsx delete mode 100644 ui/src/ui/show-hide-button.tsx delete mode 100644 ui/src/ui/stat-bar.tsx delete mode 100644 ui/src/ui/stat-cell.tsx delete mode 100644 ui/src/ui/status-badge.tsx delete mode 100644 ui/src/ui/tabbed-page.tsx delete mode 100644 ui/src/ui/table-skeleton.tsx delete mode 100644 ui/src/ui/text-update-modal.tsx delete mode 100644 ui/src/ui/theme-toggle.tsx create mode 100644 xtask/Cargo.toml create mode 100644 xtask/src/generate/mod.rs create mode 100644 xtask/src/generate/resource_schema.rs create mode 100644 xtask/src/main.rs diff --git a/.cargo/config.toml b/.cargo/config.toml index dec5ad2523..4ceeac575a 100644 --- a/.cargo/config.toml +++ b/.cargo/config.toml @@ -1,2 +1,5 @@ +[alias] +xtask = "run --package xtask --" + [build] -rustflags = ["-Wunused-crate-dependencies"] \ No newline at end of file +rustflags = ["-Wunused-crate-dependencies"] diff --git a/Cargo.lock b/Cargo.lock index 9d7fbb775d..7472d58a48 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -14,8 +14,8 @@ version = "0.5.2" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "d122413f284cf2d62fb1b7db97e02edb8cda96d769b16e443a4f6195e35662b0" dependencies = [ - "crypto-common", - "generic-array", + "crypto-common 0.1.7", + "generic-array 0.14.7", ] [[package]] @@ -25,7 +25,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "b169f7a6d4742236a0a00c541b845991d0ac43e546831af1249753ab4c3aa3a0" dependencies = [ "cfg-if", - "cipher", + "cipher 0.4.4", "cpufeatures 0.2.17", ] @@ -37,12 +37,23 @@ checksum = "831010a0f742e1209b3bcea8fab6a8e149051ba6099432c8cb2cc117dec3ead1" dependencies = [ "aead", "aes", - "cipher", + "cipher 0.4.4", "ctr", "ghash", "subtle", ] +[[package]] +name = "ahash" +version = "0.7.8" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "891477e0c6a8957309ee5c45a6368af3ae14bb510732d2684ffa19af310920f9" +dependencies = [ + "getrandom 0.2.17", + "once_cell", + "version_check", +] + [[package]] name = "ahash" version = "0.8.12" @@ -97,9 +108,9 @@ dependencies = [ [[package]] name = "anstyle" -version = "1.0.13" +version = "1.0.14" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "5192cca8006f1fd4f7237516f40fa183bb07f8fbdfedaa0036de5ea9b0b45e78" +checksum = "940b3a0ca603d1eade50a4846a2afffd5ef57a9feac2c0e2ec2e14f9ead76000" [[package]] name = "anstyle-parse" @@ -136,15 +147,42 @@ version = "1.0.102" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "7f202df86484c868dbad7eaa557ef785d5c66295e41b460ef922eca0723b842c" +[[package]] +name = "approx" +version = "0.5.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "cab112f0a86d568ea0e627cc1d6be74a1e9cd55214684db5561995f6dad897c6" +dependencies = [ + "num-traits", +] + [[package]] name = "arc-swap" -version = "1.9.0" +version = "1.9.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "a07d1f37ff60921c83bdfc7407723bdefe89b44b98a9b772f225c8f9d67141a6" +checksum = "6a3a1fd6f75306b68087b831f025c712524bcb19aad54e557b1129cfa0a2b207" dependencies = [ "rustversion", ] +[[package]] +name = "arrayvec" +version = "0.7.6" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "7c02d123df017efcdfbd739ef81735b36c5ba83ec3c59c80a9d7ecc718f92e50" + +[[package]] +name = "as-slice" +version = "0.1.5" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "45403b49e3954a4b8428a0ac21a4b7afadccf92bfd96273f1a58cd4812496ae0" +dependencies = [ + "generic-array 0.12.4", + "generic-array 0.13.3", + "generic-array 0.14.7", + "stable_deref_trait", +] + [[package]] name = "asn1-rs" version = "0.6.2" @@ -169,7 +207,7 @@ checksum = "965c2d33e53cb6b267e148a4cb0760bc01f4904c1cd4bb4002a085bb016d1490" dependencies = [ "proc-macro2", "quote", - "syn", + "syn 2.0.117", "synstructure", ] @@ -181,14 +219,14 @@ checksum = "7b18050c2cd6fe86c3a76584ef5e0baf286d038cda203eb6223df2cc413565f7" dependencies = [ "proc-macro2", "quote", - "syn", + "syn 2.0.117", ] [[package]] name = "async-compression" -version = "0.4.41" +version = "0.4.42" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "d0f9ee0f6e02ffd7ad5816e9464499fba7b3effd01123b515c41d1697c43dad1" +checksum = "e79b3f8a79cccc2898f31920fc69f304859b3bd567490f75ebf51ae1c792a9ac" dependencies = [ "compression-codecs", "compression-core", @@ -204,7 +242,7 @@ checksum = "9035ad2d096bed7955a320ee7e2230574d28fd3c3a0f186cbea1ff3c7eed5dbb" dependencies = [ "proc-macro2", "quote", - "syn", + "syn 2.0.117", ] [[package]] @@ -220,6 +258,15 @@ dependencies = [ "tokio", ] +[[package]] +name = "atomic-polyfill" +version = "1.0.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "8cf2bce30dfe09ef0bfaef228b9d414faaf7e563035494d7fe092dba54b300f4" +dependencies = [ + "critical-section", +] + [[package]] name = "atomic-waker" version = "1.1.2" @@ -234,9 +281,9 @@ checksum = "c08606f8c3cbf4ce6ec8e28fb0014a2c086708fe954eaa885384a6165172e7e8" [[package]] name = "aws-config" -version = "1.8.15" +version = "1.8.16" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "11493b0bad143270fb8ad284a096dd529ba91924c5409adeac856cc1bf047dbc" +checksum = "50f156acdd2cf55f5aa53ee416c4ac851cf1222694506c0b1f78c85695e9ca9d" dependencies = [ "aws-credential-types", "aws-runtime", @@ -254,7 +301,7 @@ dependencies = [ "fastrand", "hex", "http 1.4.0", - "sha1", + "sha1 0.10.6", "time", "tokio", "tracing", @@ -276,9 +323,9 @@ dependencies = [ [[package]] name = "aws-lc-rs" -version = "1.15.2" +version = "1.16.3" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "6a88aab2464f1f25453baa7a07c84c5b7684e274054ba06817f382357f77a288" +checksum = "0ec6fb3fe69024a75fa7e1bfb48aa6cf59706a101658ea01bfd33b2b248a038f" dependencies = [ "aws-lc-sys", "untrusted 0.7.1", @@ -287,9 +334,9 @@ dependencies = [ [[package]] name = "aws-lc-sys" -version = "0.35.0" +version = "0.40.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "b45afffdee1e7c9126814751f88dddc747f41d91da16c9551a0f1e8a11e788a1" +checksum = "f50037ee5e1e41e7b8f9d161680a725bd1626cb6f8c7e901f91f942850852fe7" dependencies = [ "cc", "cmake", @@ -299,9 +346,9 @@ dependencies = [ [[package]] name = "aws-runtime" -version = "1.7.2" +version = "1.7.3" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "5fc0651c57e384202e47153c1260b84a9936e19803d747615edf199dc3b98d17" +checksum = "5dcd93c82209ac7413532388067dce79be5a8780c1786e5fae3df22e4dee2864" dependencies = [ "aws-credential-types", "aws-sigv4", @@ -324,9 +371,9 @@ dependencies = [ [[package]] name = "aws-sdk-ec2" -version = "1.220.1" +version = "1.224.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "1065222c6fe7bed0ef49acf2bfdba8ab9b59cc14bc534772d575b365601cd557" +checksum = "a12b9fba5a25f668638edc00be062da3b123e3bf9ea07f13b681a19de097f2d8" dependencies = [ "aws-credential-types", "aws-runtime", @@ -349,9 +396,9 @@ dependencies = [ [[package]] name = "aws-sdk-sso" -version = "1.96.0" +version = "1.98.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "f64a6eded248c6b453966e915d32aeddb48ea63ad17932682774eb026fbef5b1" +checksum = "d69c77aafa20460c68b6b3213c84f6423b6e76dbf89accd3e1789a686ffd9489" dependencies = [ "aws-credential-types", "aws-runtime", @@ -373,9 +420,9 @@ dependencies = [ [[package]] name = "aws-sdk-ssooidc" -version = "1.98.0" +version = "1.100.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "db96d720d3c622fcbe08bae1c4b04a72ce6257d8b0584cb5418da00ae20a344f" +checksum = "1c7e7b09346d5ca22a2a08267555843a6a0127fb20d8964cb6ecfb8fdb190225" dependencies = [ "aws-credential-types", "aws-runtime", @@ -397,9 +444,9 @@ dependencies = [ [[package]] name = "aws-sdk-sts" -version = "1.100.0" +version = "1.103.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "fafbdda43b93f57f699c5dfe8328db590b967b8a820a13ccdd6687355dfcc7ca" +checksum = "c2249b81a2e73a8027c41c378463a81ec39b8510f184f2caab87de912af0f49b" dependencies = [ "aws-credential-types", "aws-runtime", @@ -422,9 +469,9 @@ dependencies = [ [[package]] name = "aws-sigv4" -version = "1.4.2" +version = "1.4.3" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "b0b660013a6683ab23797778e21f1f854744fdf05f68204b4cca4c8c04b5d1f4" +checksum = "68dc0b907359b120170613b5c09ccc61304eac3998ff6274b97d93ee6490115a" dependencies = [ "aws-credential-types", "aws-smithy-http", @@ -433,11 +480,11 @@ dependencies = [ "bytes", "form_urlencoded", "hex", - "hmac", + "hmac 0.13.0", "http 0.2.12", "http 1.4.0", "percent-encoding", - "sha2", + "sha2 0.11.0", "time", "tracing", ] @@ -484,18 +531,18 @@ dependencies = [ "aws-smithy-runtime-api", "aws-smithy-types", "h2 0.3.27", - "h2 0.4.12", + "h2 0.4.14", "http 0.2.12", "http 1.4.0", "http-body 0.4.6", "hyper 0.14.32", - "hyper 1.8.1", + "hyper 1.9.0", "hyper-rustls 0.24.2", - "hyper-rustls 0.27.7", + "hyper-rustls 0.27.9", "hyper-util", "pin-project-lite", "rustls 0.21.12", - "rustls 0.23.37", + "rustls 0.23.40", "rustls-native-certs", "rustls-pki-types", "tokio", @@ -534,9 +581,9 @@ dependencies = [ [[package]] name = "aws-smithy-runtime" -version = "1.10.3" +version = "1.11.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "028999056d2d2fd58a697232f9eec4a643cf73a71cf327690a7edad1d2af2110" +checksum = "0504b1ab12debb5959e5165ee5fe97dd387e7aa7ea6a477bfd7635dfe769a4f5" dependencies = [ "aws-smithy-async", "aws-smithy-http", @@ -559,11 +606,12 @@ dependencies = [ [[package]] name = "aws-smithy-runtime-api" -version = "1.11.6" +version = "1.12.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "876ab3c9c29791ba4ba02b780a3049e21ec63dabda09268b175272c3733a79e6" +checksum = "b71a13df6ada0aafbf21a73bdfcdf9324cfa9df77d96b8446045be3cde61b42e" dependencies = [ "aws-smithy-async", + "aws-smithy-runtime-api-macros", "aws-smithy-types", "bytes", "http 0.2.12", @@ -574,6 +622,17 @@ dependencies = [ "zeroize", ] +[[package]] +name = "aws-smithy-runtime-api-macros" +version = "1.0.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "8d7396fd9500589e62e460e987ecb671bad374934e55ec3b5f498cc7a8a8a7b7" +dependencies = [ + "proc-macro2", + "quote", + "syn 2.0.117", +] + [[package]] name = "aws-smithy-types" version = "1.4.7" @@ -611,9 +670,9 @@ dependencies = [ [[package]] name = "aws-types" -version = "1.3.14" +version = "1.3.15" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "47c8323699dd9b3c8d5b3c13051ae9cdef58fd179957c882f8374dd8725962d9" +checksum = "2f4bbcaa9304ea40902d3d5f42a0428d1bd895a2b0f6999436fb279ffddc58ac" dependencies = [ "aws-credential-types", "aws-smithy-async", @@ -625,9 +684,9 @@ dependencies = [ [[package]] name = "axum" -version = "0.8.8" +version = "0.8.9" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "8b52af3cb4058c895d37317bb27508dccc8e5f2d39454016b297bf4a400597b8" +checksum = "31b698c5f9a010f6573133b09e0de5408834d0c82f8d7475a89fc1867a71cd90" dependencies = [ "axum-core", "axum-macros", @@ -638,7 +697,7 @@ dependencies = [ "http 1.4.0", "http-body 1.0.1", "http-body-util", - "hyper 1.8.1", + "hyper 1.9.0", "hyper-util", "itoa", "matchit", @@ -650,10 +709,10 @@ dependencies = [ "serde_json", "serde_path_to_error", "serde_urlencoded", - "sha1", + "sha1 0.10.6", "sync_wrapper", "tokio", - "tokio-tungstenite 0.28.0", + "tokio-tungstenite", "tower", "tower-layer", "tower-service", @@ -681,9 +740,9 @@ dependencies = [ [[package]] name = "axum-extra" -version = "0.12.5" +version = "0.12.6" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "fef252edff26ddba56bbcdf2ee3307b8129acb86f5749b68990c168a6fcc9c76" +checksum = "be44683b41ccb9ab2d23a5230015c9c3c55be97a25e4428366de8873103f7970" dependencies = [ "axum", "axum-core", @@ -703,13 +762,13 @@ dependencies = [ [[package]] name = "axum-macros" -version = "0.5.0" +version = "0.5.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "604fde5e028fea851ce1d8570bbdc034bec850d157f7569d10f347d06808c05c" +checksum = "7aa268c23bfbbd2c4363b9cd302a4f504fb2a9dfe7e3451d66f35dd392e20aca" dependencies = [ "proc-macro2", "quote", - "syn", + "syn 2.0.117", ] [[package]] @@ -724,10 +783,10 @@ dependencies = [ "fs-err", "http 1.4.0", "http-body 1.0.1", - "hyper 1.8.1", + "hyper 1.9.0", "hyper-util", "pin-project-lite", - "rustls 0.23.37", + "rustls 0.23.40", "rustls-pki-types", "tokio", "tokio-rustls 0.26.4", @@ -770,15 +829,15 @@ dependencies = [ [[package]] name = "base64ct" -version = "1.8.1" +version = "1.8.3" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "0e050f626429857a27ddccb31e0aca21356bfa709c04041aefddac081a8f068a" +checksum = "2af50177e190e07a26ab74f8b1efbfe2ef87da2116221318cb1c2e82baf7de06" [[package]] name = "base64urlsafedata" -version = "0.5.4" +version = "0.5.5" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "42f7f6be94fa637132933fd0a68b9140bcb60e3d46164cb68e82a2bb8d102b3a" +checksum = "b08e33815c87d8cadcddb1e74ac307368a3751fbe40c961538afa21a1899f21c" dependencies = [ "base64 0.21.7", "pastey", @@ -787,13 +846,13 @@ dependencies = [ [[package]] name = "bcrypt" -version = "0.19.0" +version = "0.19.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "523ab528ce3a7ada6597f8ccf5bd8d85ebe26d5edf311cad4d1d3cfb2d357ac6" +checksum = "24ae5479c93d3720e4c1dbd6b945b97457c50cb672781104768190371df1a905" dependencies = [ "base64 0.22.1", "blowfish", - "getrandom 0.4.1", + "getrandom 0.4.2", "subtle", "zeroize", ] @@ -806,9 +865,9 @@ checksum = "bef38d45163c2f1dde094a7dfd33ccf595c92905c8f8f4fdc18d06fb1037718a" [[package]] name = "bitflags" -version = "2.10.0" +version = "2.11.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "812e12b5285cc515a9c72a5c1d3b6d46a19dac5acfef5265968c166106e31dd3" +checksum = "c4512299f36f043ab09a583e57bceb5a5aab7a73db1805848e8fef3c9e8c78b3" [[package]] name = "bitvec" @@ -828,7 +887,7 @@ version = "0.10.6" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "46502ad458c9a52b69d4d4d32775c788b7a1b85e8bc9d482d92250fc0e3f8efe" dependencies = [ - "digest", + "digest 0.10.7", ] [[package]] @@ -837,24 +896,33 @@ version = "0.10.4" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "3078c7629b62d3f0439517fa394996acacc5cbc91c5a20d8c658e77abd503a71" dependencies = [ - "generic-array", + "generic-array 0.14.7", +] + +[[package]] +name = "block-buffer" +version = "0.12.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "cdd35008169921d80bc60d3d0ab416eecb028c4cd653352907921d95084790be" +dependencies = [ + "hybrid-array", ] [[package]] name = "blowfish" -version = "0.9.1" +version = "0.10.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "e412e2cd0f2b2d93e02543ceae7917b3c70331573df19ee046bcbc35e45e87d7" +checksum = "62ce3946557b35e71d1bbe07ec385073ce9eda05043f95de134eb578fcf1a298" dependencies = [ "byteorder", - "cipher", + "cipher 0.5.1", ] [[package]] name = "bollard" -version = "0.20.2" +version = "0.21.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "ee04c4c84f1f811b017f2fbb7dd8815c976e7ca98593de9c1e2afad0f636bff4" +checksum = "c9d0a013e3d3ee4edd61e779adf117944c08902d375f18630a0c5b8f95659734" dependencies = [ "base64 0.22.1", "bollard-stubs", @@ -864,7 +932,7 @@ dependencies = [ "hex", "http 1.4.0", "http-body-util", - "hyper 1.8.1", + "hyper 1.9.0", "hyper-named-pipe", "hyper-util", "hyperlocal", @@ -884,31 +952,55 @@ dependencies = [ [[package]] name = "bollard-stubs" -version = "1.52.1-rc.29.1.3" +version = "1.53.1-rc.29.3.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "0f0a8ca8799131c1837d1282c3f81f31e76ceb0ce426e04a7fe1ccee3287c066" +checksum = "ce412eb6f7096743011dc3cb5c674caeb24ced61d8c498fe07cf7998a4fea889" dependencies = [ "serde", "serde_json", "serde_repr", ] +[[package]] +name = "borsh" +version = "1.6.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "cfd1e3f8955a5d7de9fab72fc8373fade9fb8a703968cb200ae3dc6cf08e185a" +dependencies = [ + "borsh-derive", + "bytes", + "cfg_aliases 0.2.1", +] + +[[package]] +name = "borsh-derive" +version = "1.6.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "bfcfdc083699101d5a7965e49925975f2f55060f94f9a05e7187be95d530ca59" +dependencies = [ + "once_cell", + "proc-macro-crate", + "proc-macro2", + "quote", + "syn 2.0.117", +] + [[package]] name = "bson" version = "2.15.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "7969a9ba84b0ff843813e7249eed1678d9b6607ce5a3b8f0a47af3fcf7978e6e" dependencies = [ - "ahash", + "ahash 0.8.12", "base64 0.22.1", "bitvec", - "getrandom 0.2.16", + "getrandom 0.2.17", "getrandom 0.3.4", "hex", - "indexmap 2.13.0", + "indexmap 2.14.0", "js-sys", "once_cell", - "rand 0.9.2", + "rand 0.9.4", "serde", "serde_bytes", "serde_json", @@ -918,15 +1010,37 @@ dependencies = [ [[package]] name = "bumpalo" -version = "3.19.1" +version = "3.20.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "5d20789868f4b01b2f2caec9f5c4e0213b41e3e5702a50157d699ae31ced2fcb" + +[[package]] +name = "bytecheck" +version = "0.6.12" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "5dd9dc738b7a8311c7ade152424974d8115f2cdad61e8dab8dac9f2362298510" +checksum = "23cdc57ce23ac53c931e88a43d06d070a6fd142f2617be5855eb75efc9beb1c2" +dependencies = [ + "bytecheck_derive", + "ptr_meta", + "simdutf8", +] + +[[package]] +name = "bytecheck_derive" +version = "0.6.12" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "3db406d29fbcd95542e92559bed4d8ad92636d1ca8b3b72ede10b4bcc010e659" +dependencies = [ + "proc-macro2", + "quote", + "syn 1.0.109", +] [[package]] name = "bytemuck" -version = "1.24.0" +version = "1.25.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "1fbdf580320f38b612e485521afda1ee26d10cc9884efaaa750d383e13e3c5f4" +checksum = "c8efb64bd706a16a1bdde310ae86b351e4d21550d98d056f22f8a7f7a2183fec" [[package]] name = "byteorder" @@ -945,6 +1059,9 @@ name = "bytes" version = "1.11.1" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "1e748733b7cbc798e1434b6ac524f0c1ff2ab456fe201501e6497c8417a4fc33" +dependencies = [ + "serde", +] [[package]] name = "bytes-utils" @@ -958,9 +1075,9 @@ dependencies = [ [[package]] name = "cc" -version = "1.2.51" +version = "1.2.61" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "7a0aeaff4ff1a90589618835a598e545176939b97874f7abc7851caa0618f203" +checksum = "d16d90359e986641506914ba71350897565610e87ce0ad9e6f28569db3dd5c6d" dependencies = [ "find-msvc-tools", "jobserver", @@ -968,12 +1085,6 @@ dependencies = [ "shlex", ] -[[package]] -name = "cesu8" -version = "1.1.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "6d43a04d8753f35258c91f8ec639f792891f748a1edbd759cf1dcea3382ad83c" - [[package]] name = "cfg-if" version = "1.0.4" @@ -999,7 +1110,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "c3613f74bd2eac03dad61bd53dbe620703d4371614fe0bc3b9f04dd36fe4e818" dependencies = [ "cfg-if", - "cipher", + "cipher 0.4.4", "cpufeatures 0.2.17", ] @@ -1011,7 +1122,7 @@ checksum = "6f8d983286843e49675a4b7a2d174efe136dc93a18d69130dd18198a6c167601" dependencies = [ "cfg-if", "cpufeatures 0.3.0", - "rand_core 0.10.0", + "rand_core 0.10.1", ] [[package]] @@ -1022,7 +1133,7 @@ checksum = "10cd79432192d1c0f4e1a0fef9527696cc039165d729fb41b3f4f4f354c2dc35" dependencies = [ "aead", "chacha20 0.9.1", - "cipher", + "cipher 0.4.4", "poly1305", "zeroize", ] @@ -1051,22 +1162,67 @@ dependencies = [ "phf", ] +[[package]] +name = "cicada_client" +version = "0.5.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "33d3b757ad0af0614d7a754287e9e7a38fc9bbeb5bf1fc002ab0df671450d759" +dependencies = [ + "async_timing_util", + "http 1.4.0", + "mogh_auth_client", + "mogh_error", + "mogh_pki", + "mogh_resolver", + "reqwest 0.13.3", + "serde", + "serde_json", + "strum 0.28.0", + "surrealdb-types", + "tracing", + "typeshare", +] + +[[package]] +name = "cicada_loader" +version = "0.5.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "7bb16dc5b83f5fe25ae62f6e685b660dee3d7e7bb574485cca9edca1b171b2f8" +dependencies = [ + "anyhow", + "cicada_client", + "envy", + "mogh_pki", + "serde", + "tracing", +] + [[package]] name = "cipher" version = "0.4.4" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "773f3b9af64447d2ce9850330c473515014aa235e6a783b02db81ff39e4a3dad" dependencies = [ - "crypto-common", - "inout", + "crypto-common 0.1.7", + "inout 0.1.4", "zeroize", ] +[[package]] +name = "cipher" +version = "0.5.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "e34d8227fe1ba289043aeb13792056ff80fd6de1a9f49137a5f499de8e8c78ea" +dependencies = [ + "crypto-common 0.2.1", + "inout 0.2.2", +] + [[package]] name = "clap" -version = "4.6.0" +version = "4.6.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "b193af5b67834b676abd72466a96c1024e6a6ad978a1f484bd90b85c94041351" +checksum = "1ddb117e43bbf7dacf0a4190fef4d345b9bad68dfc649cb349e7d17d28428e51" dependencies = [ "clap_builder", "clap_derive", @@ -1086,36 +1242,42 @@ dependencies = [ [[package]] name = "clap_derive" -version = "4.6.0" +version = "4.6.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "1110bd8a634a1ab8cb04345d8d878267d57c3cf1b38d91b71af6686408bbca6a" +checksum = "f2ce8604710f6733aa641a2b3731eaa1e8b3d9973d5e3565da11800813f997a9" dependencies = [ "heck", "proc-macro2", "quote", - "syn", + "syn 2.0.117", ] [[package]] name = "clap_lex" -version = "1.0.0" +version = "1.1.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "3a822ea5bc7590f9d40f1ba12c0dc3c2760f3482c6984db1573ad11031420831" +checksum = "c8d4a3bb8b1e0c1050499d1815f5ab16d04f0959b233085fb31653fbfc9d98f9" [[package]] name = "cmake" -version = "0.1.57" +version = "0.1.58" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "75443c44cd6b379beb8c5b45d85d0773baf31cce901fe7bb252f4eff3008ef7d" +checksum = "c0f78a02292a74a88ac736019ab962ece0bc380e3f977bf72e376c5d78ff0678" dependencies = [ "cc", ] +[[package]] +name = "cmov" +version = "0.5.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "3f88a43d011fc4a6876cb7344703e297c71dda42494fee094d5f7c76bf13f746" + [[package]] name = "colorchoice" -version = "1.0.4" +version = "1.0.5" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "b05b61dc5112cbb17e4b6cd61790d9845d13888356391624cbe7e41efeac1e75" +checksum = "1d07550c9036bf2ae0c684c4297d503f838287c83c53686d05370d0e139ae570" [[package]] name = "colored" @@ -1149,7 +1311,7 @@ dependencies = [ [[package]] name = "command" -version = "2.1.2" +version = "2.2.0" dependencies = [ "komodo_client", "shlex", @@ -1159,9 +1321,9 @@ dependencies = [ [[package]] name = "compression-codecs" -version = "0.4.37" +version = "0.4.38" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "eb7b51a7d9c967fc26773061ba86150f19c50c0d65c887cb1fbe295fd16619b7" +checksum = "ce2548391e9c1929c21bf6aa2680af86fe4c1b33e6cea9ac1cfeec0bd11218cf" dependencies = [ "compression-core", "flate2", @@ -1170,9 +1332,9 @@ dependencies = [ [[package]] name = "compression-core" -version = "0.4.31" +version = "0.4.32" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "75984efb6ed102a0d42db99afb6c1948f0380d1d91808d5529916e6c08b49d8d" +checksum = "cc14f565cf027a105f7a44ccf9e5b424348421a1d8952a8fc9d499d313107789" [[package]] name = "const-oid" @@ -1180,6 +1342,12 @@ version = "0.9.6" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "c2459377285ad874054d797f3ccebf984978aa39129f6eafde5cdc8315b612f8" +[[package]] +name = "const-oid" +version = "0.10.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "a6ef517f0926dd24a1582492c791b6a4818a4d94e789a334894aa15b0d12f55c" + [[package]] name = "const-random" version = "0.1.18" @@ -1195,7 +1363,7 @@ version = "0.1.16" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "f9d839f2a20b0aee515dc581a6172f2321f96cab76c1a38a4c584a194955390e" dependencies = [ - "getrandom 0.2.16", + "getrandom 0.2.17", "once_cell", "tiny-keccak", ] @@ -1305,6 +1473,16 @@ dependencies = [ "crossbeam-utils", ] +[[package]] +name = "crossbeam-deque" +version = "0.8.6" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "9dd111b7b7f7d55b72c0a6ae361660ee5853c9af73f70c3c2ef6858b950e2e51" +dependencies = [ + "crossbeam-epoch", + "crossbeam-utils", +] + [[package]] name = "crossbeam-epoch" version = "0.9.18" @@ -1326,7 +1504,7 @@ version = "0.29.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "d8b9f2e4c67f833b660cdb0a3523065869fb35570177239812ed4c905aeff87b" dependencies = [ - "bitflags 2.10.0", + "bitflags 2.11.1", "crossterm_winapi", "derive_more", "document-features", @@ -1359,7 +1537,7 @@ version = "0.5.5" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "0dc92fb57ca44df6db8059111ab3af99a63d5d0f8375d9972e319a379c6bab76" dependencies = [ - "generic-array", + "generic-array 0.14.7", "rand_core 0.6.4", "subtle", "zeroize", @@ -1371,17 +1549,35 @@ version = "0.1.7" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "78c8292055d1c1df0cce5d180393dc8cce0abec0a7102adb6c7b1eef6016d60a" dependencies = [ - "generic-array", + "generic-array 0.14.7", "typenum", ] +[[package]] +name = "crypto-common" +version = "0.2.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "77727bb15fa921304124b128af125e7e3b968275d1b108b379190264f4423710" +dependencies = [ + "hybrid-array", +] + [[package]] name = "ctr" version = "0.9.2" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "0369ee1ad671834580515889b80f2ea915f23b8be8d0daa4bbaf2ac5c7590835" dependencies = [ - "cipher", + "cipher 0.4.4", +] + +[[package]] +name = "ctutils" +version = "0.4.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "7d5515a3834141de9eafb9717ad39eea8247b5674e6066c404e8c4b365d2a29e" +dependencies = [ + "cmov", ] [[package]] @@ -1393,7 +1589,7 @@ dependencies = [ "cfg-if", "cpufeatures 0.2.17", "curve25519-dalek-derive", - "digest", + "digest 0.10.7", "fiat-crypto", "rustc_version", "subtle", @@ -1408,7 +1604,7 @@ checksum = "f46882e17999c6cc590af592290432be3bce0428cb0d5f8b6715e4dc7b383eb3" dependencies = [ "proc-macro2", "quote", - "syn", + "syn 2.0.117", ] [[package]] @@ -1423,12 +1619,12 @@ dependencies = [ [[package]] name = "darling" -version = "0.21.3" +version = "0.23.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "9cdf337090841a411e2a7f3deb9187445851f91b309c0c0a29e05f74a00a48c0" +checksum = "25ae13da2f202d56bd7f91c25fba009e7717a1e4a1cc98a76d844b65ae912e9d" dependencies = [ - "darling_core 0.21.3", - "darling_macro 0.21.3", + "darling_core 0.23.0", + "darling_macro 0.23.0", ] [[package]] @@ -1442,21 +1638,20 @@ dependencies = [ "proc-macro2", "quote", "strsim", - "syn", + "syn 2.0.117", ] [[package]] name = "darling_core" -version = "0.21.3" +version = "0.23.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "1247195ecd7e3c85f83c8d2a366e4210d588e802133e1e355180a9870b517ea4" +checksum = "9865a50f7c335f53564bb694ef660825eb8610e0a53d3e11bf1b0d3df31e03b0" dependencies = [ - "fnv", "ident_case", "proc-macro2", "quote", "strsim", - "syn", + "syn 2.0.117", ] [[package]] @@ -1467,29 +1662,29 @@ checksum = "fc34b93ccb385b40dc71c6fceac4b2ad23662c7eeb248cf10d529b7e055b6ead" dependencies = [ "darling_core 0.20.11", "quote", - "syn", + "syn 2.0.117", ] [[package]] name = "darling_macro" -version = "0.21.3" +version = "0.23.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "d38308df82d1080de0afee5d069fa14b0326a88c14f15c5ccda35b4a6c414c81" +checksum = "ac3984ec7bd6cfa798e62b4a642426a5be0e68f9401cfc2a01e3fa9ea2fcdb8d" dependencies = [ - "darling_core 0.21.3", + "darling_core 0.23.0", "quote", - "syn", + "syn 2.0.117", ] [[package]] name = "data-encoding" -version = "2.10.0" +version = "2.11.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "d7a1e2f27636f116493b8b860f5546edb47c8d8f8ea73e1d2a20be88e28d1fea" +checksum = "a4ae5f15dda3c708c0ade84bfee31ccab44a3da4f88015ed22f63732abe300c8" [[package]] name = "database" -version = "2.1.2" +version = "2.2.0" dependencies = [ "anyhow", "async-compression", @@ -1511,7 +1706,7 @@ version = "0.7.10" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "e7c1832837b905bbfb5101e07cc24c8deddf52f93225eee6ead5f4d63d53ddcb" dependencies = [ - "const-oid", + "const-oid 0.9.6", "pem-rfc7468 0.7.0", "zeroize", ] @@ -1532,9 +1727,9 @@ dependencies = [ [[package]] name = "deranged" -version = "0.5.5" +version = "0.5.8" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "ececcb659e7ba858fb4f10388c250a7252eb0a27373f1a72b8748afdd248e587" +checksum = "7cd812cc2bc1d69d4764bd80df88b4317eaef9e773c75226407d9bc0876b211c" dependencies = [ "powerfmt", "serde_core", @@ -1548,18 +1743,18 @@ checksum = "d65d7ce8132b7c0e54497a4d9a55a1c2a0912a0d786cf894472ba818fba45762" dependencies = [ "proc-macro2", "quote", - "syn", + "syn 2.0.117", ] [[package]] name = "derive-where" -version = "1.6.0" +version = "1.6.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "ef941ded77d15ca19b40374869ac6000af1c9f2a4c0f3d4c70926287e6364a8f" +checksum = "d08b3a0bcc0d079199cd476b2cae8435016ec11d1c0986c6901c5ac223041534" dependencies = [ "proc-macro2", "quote", - "syn", + "syn 2.0.117", ] [[package]] @@ -1580,7 +1775,7 @@ dependencies = [ "darling 0.20.11", "proc-macro2", "quote", - "syn", + "syn 2.0.117", ] [[package]] @@ -1590,7 +1785,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "ab63b0e2bf4d5928aff72e83a7dace85d7bba5fe12dcc3c5a572d78caffd3f3c" dependencies = [ "derive_builder_core", - "syn", + "syn 2.0.117", ] [[package]] @@ -1610,7 +1805,7 @@ checksum = "9e520b61247a9470ec86a98baf2aebae5c6dd0f25f02b1c87cafe45b06c160e7" dependencies = [ "proc-macro2", "quote", - "syn", + "syn 2.0.117", ] [[package]] @@ -1632,7 +1827,7 @@ dependencies = [ "proc-macro2", "quote", "rustc_version", - "syn", + "syn 2.0.117", "unicode-xid", ] @@ -1642,12 +1837,24 @@ version = "0.10.7" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "9ed9a281f7bc9b7576e61468ba615a66a5c8cfdff42420a70aa82701a3b1e292" dependencies = [ - "block-buffer", - "const-oid", - "crypto-common", + "block-buffer 0.10.4", + "const-oid 0.9.6", + "crypto-common 0.1.7", "subtle", ] +[[package]] +name = "digest" +version = "0.11.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "f1dd6dbb5841937940781866fa1281a1ff7bd3bf827091440879f9994983d5c2" +dependencies = [ + "block-buffer 0.12.0", + "const-oid 0.10.2", + "crypto-common 0.2.1", + "ctutils", +] + [[package]] name = "displaydoc" version = "0.2.5" @@ -1656,7 +1863,7 @@ checksum = "97369cbbc041bc366949bc74d34658d6cda5621039731c6310521892a3a20ae0" dependencies = [ "proc-macro2", "quote", - "syn", + "syn 2.0.117", ] [[package]] @@ -1692,6 +1899,16 @@ version = "1.0.20" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "d0881ea181b1df73ff77ffaaf9c7544ecc11e82fba9b5f27b262a3c73a332555" +[[package]] +name = "earcutr" +version = "0.4.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "79127ed59a85d7687c409e9978547cffb7dc79675355ed22da6b66fd5f6ead01" +dependencies = [ + "itertools 0.11.0", + "num-traits", +] + [[package]] name = "ecdsa" version = "0.16.9" @@ -1699,7 +1916,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "ee27f32b5c5292967d2d4a9d7f1e0b0aed2c15daded5a60300e4abb9d8020bca" dependencies = [ "der", - "digest", + "digest 0.10.7", "elliptic-curve", "rfc6979", "signature", @@ -1725,7 +1942,7 @@ dependencies = [ "curve25519-dalek", "ed25519", "serde", - "sha2", + "sha2 0.10.9", "subtle", "zeroize", ] @@ -1744,9 +1961,9 @@ checksum = "b5e6043086bf7973472e0c7dff2142ea0b680d30e18d9cc40f267efbf222bd47" dependencies = [ "base16ct", "crypto-bigint", - "digest", + "digest 0.10.7", "ff", - "generic-array", + "generic-array 0.14.7", "group", "hkdf", "pem-rfc7468 0.7.0", @@ -1759,7 +1976,7 @@ dependencies = [ [[package]] name = "encoding" -version = "2.1.2" +version = "2.2.0" dependencies = [ "anyhow", "bytes", @@ -1796,12 +2013,12 @@ dependencies = [ "heck", "proc-macro2", "quote", - "syn", + "syn 2.0.117", ] [[package]] name = "environment" -version = "2.1.2" +version = "2.2.0" dependencies = [ "anyhow", "formatting", @@ -1836,9 +2053,9 @@ dependencies = [ [[package]] name = "fastrand" -version = "2.3.0" +version = "2.4.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "37909eebbb50d72f9059c3b6d82c0463f2ff062c9e95845c43a6c9c0355411be" +checksum = "9f1f227452a390804cdb637b74a86990f2a7d7ba4b7d5693aac9b4dd6defd8d6" [[package]] name = "fdeflate" @@ -1878,20 +2095,37 @@ dependencies = [ [[package]] name = "find-msvc-tools" -version = "0.1.6" +version = "0.1.9" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "645cbb3a84e60b7531617d5ae4e57f7e27308f6445f5abf653209ea76dec8dff" +checksum = "5baebc0774151f905a1a2cc41989300b1e6fbb29aff0ceffa1064fdd3088d582" + +[[package]] +name = "flatbuffers" +version = "25.12.19" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "35f6839d7b3b98adde531effaf34f0c2badc6f4735d26fe74709d8e513a96ef3" +dependencies = [ + "bitflags 2.11.1", + "rustc_version", + "serde", +] [[package]] name = "flate2" -version = "1.1.5" +version = "1.1.9" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "bfe33edd8e85a12a67454e37f8c75e730830d83e313556ab9ebf9ee7fbeb3bfb" +checksum = "843fba2746e448b37e26a819579957415c8cef339bf08564fe8b7ddbd959573c" dependencies = [ "crc32fast", "miniz_oxide", ] +[[package]] +name = "float_next_after" +version = "1.0.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "8bf7cc16383c4b8d58b9905a8509f02926ce3058053c056376248d958c9df1e8" + [[package]] name = "fnv" version = "1.0.7" @@ -1904,6 +2138,12 @@ version = "0.1.5" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "d9c4f5dac5e15c24eb999c26181a6ca40b39fe946cbe4c263c7209467bc83af2" +[[package]] +name = "foldhash" +version = "0.2.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "77ce24cb58228fbb8aa041425bb1050850ac19177686ea6e0f41a70416f56fdb" + [[package]] name = "foreign-types" version = "0.3.2" @@ -1930,16 +2170,16 @@ dependencies = [ [[package]] name = "formatting" -version = "2.1.2" +version = "2.2.0" dependencies = [ "mogh_error", ] [[package]] name = "fs-err" -version = "3.2.2" +version = "3.3.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "baf68cef89750956493a66a10f512b9e58d9db21f2a573c079c0bdf1207a54a7" +checksum = "73fde052dbfc920003cfd2c8e2c6e6d4cc7c1091538c3a24226cec0665ab08c0" dependencies = [ "autocfg", "tokio", @@ -1959,9 +2199,9 @@ checksum = "e6d5a32815ae3f33302d95fdcb2ce17862f8c65363dcfd29360480ba1001fc9c" [[package]] name = "futures" -version = "0.3.31" +version = "0.3.32" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "65bc07b1a8bc7c85c5f2e110c476c7389b4554ba72af57d8445ea63a576b0876" +checksum = "8b147ee9d1f6d097cef9ce628cd2ee62288d963e16fb287bd9286455b241382d" dependencies = [ "futures-channel", "futures-core", @@ -1990,9 +2230,9 @@ checksum = "7e3450815272ef58cec6d564423f6e755e25379b217b0bc688e295ba24df6b1d" [[package]] name = "futures-executor" -version = "0.3.31" +version = "0.3.32" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "1e28d1d997f585e54aebc3f97d39e72338912123a67330d723fdbb564d646c9f" +checksum = "baf29c38818342a3b26b5b923639e7b1f4a61fc5e76102d4b1981c6dc7a7579d" dependencies = [ "futures-core", "futures-task", @@ -2013,7 +2253,7 @@ checksum = "e835b70203e41293343137df5c0664546da5745f82ec9b84d40be8336958447b" dependencies = [ "proc-macro2", "quote", - "syn", + "syn 2.0.117", ] [[package]] @@ -2028,6 +2268,12 @@ version = "0.3.32" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "037711b3d59c33004d3856fbdc83b99d4ff37a24768fa1be9ce3538a1cde4393" +[[package]] +name = "futures-timer" +version = "3.0.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "f288b0a4f20f9a56b5d1da57e2227c661b7b16168e2f72365f57b63326e29b24" + [[package]] name = "futures-util" version = "0.3.32" @@ -2045,6 +2291,24 @@ dependencies = [ "slab", ] +[[package]] +name = "generic-array" +version = "0.12.4" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "ffdf9f34f1447443d37393cc6c2b8313aebddcd96906caf34e54c68d8e57d7bd" +dependencies = [ + "typenum", +] + +[[package]] +name = "generic-array" +version = "0.13.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "f797e67af32588215eaaab8327027ee8e71b9dd0b2b26996aedf20c030fce309" +dependencies = [ + "typenum", +] + [[package]] name = "generic-array" version = "0.14.7" @@ -2056,11 +2320,58 @@ dependencies = [ "zeroize", ] +[[package]] +name = "geo" +version = "0.32.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "3f3901269ec6d4f6068d3f09e5f02f995bd076398dcd1dfec407cd230b02d11b" +dependencies = [ + "earcutr", + "float_next_after", + "geo-types", + "geographiclib-rs", + "i_overlay", + "log", + "num-traits", + "rand 0.8.6", + "robust", + "rstar 0.12.2", + "serde", + "sif-itree", + "spade", +] + +[[package]] +name = "geo-types" +version = "0.7.19" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "94776032c45f950d30a13af6113c2ad5625316c9abfbccee4dd5a6695f8fe0f5" +dependencies = [ + "approx", + "num-traits", + "rayon", + "rstar 0.10.0", + "rstar 0.11.0", + "rstar 0.12.2", + "rstar 0.8.4", + "rstar 0.9.3", + "serde", +] + +[[package]] +name = "geographiclib-rs" +version = "0.2.7" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "c5a7f08910fd98737a6eda7568e7c5e645093e073328eeef49758cfe8b0489c7" +dependencies = [ + "libm", +] + [[package]] name = "getrandom" -version = "0.2.16" +version = "0.2.17" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "335ff9f135e4384c8150d6f27c6daed433577f86b4750418338c01a1a2528592" +checksum = "ff2abc00be7fca6ebc474524697ae276ad847ad0a6b3faa4bcb027e9a4614ad0" dependencies = [ "cfg-if", "js-sys", @@ -2078,21 +2389,21 @@ dependencies = [ "cfg-if", "js-sys", "libc", - "r-efi", + "r-efi 5.3.0", "wasip2", "wasm-bindgen", ] [[package]] name = "getrandom" -version = "0.4.1" +version = "0.4.2" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "139ef39800118c7683f2fd3c98c1b23c09ae076556b435f8e9064ae108aaeeec" +checksum = "0de51e6874e94e7bf76d726fc5d13ba782deca734ff60d5bb2fb2607c7406555" dependencies = [ "cfg-if", "libc", - "r-efi", - "rand_core 0.10.0", + "r-efi 6.0.0", + "rand_core 0.10.1", "wasip2", "wasip3", ] @@ -2109,7 +2420,7 @@ dependencies = [ [[package]] name = "git" -version = "2.1.2" +version = "2.2.0" dependencies = [ "anyhow", "command", @@ -2119,6 +2430,12 @@ dependencies = [ "tokio", ] +[[package]] +name = "glob" +version = "0.3.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "0cc23270f6e1808e30a928bdc84dea0b9b4136a8bc82338574f23baf47bbd280" + [[package]] name = "group" version = "0.13.0" @@ -2142,7 +2459,7 @@ dependencies = [ "futures-sink", "futures-util", "http 0.2.12", - "indexmap 2.13.0", + "indexmap 2.14.0", "slab", "tokio", "tokio-util", @@ -2151,9 +2468,9 @@ dependencies = [ [[package]] name = "h2" -version = "0.4.12" +version = "0.4.14" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "f3c0b69cfcb4e1b9f1bf2f53f95f766e4661169728ec61cd3fe5a0166f2d1386" +checksum = "171fefbc92fe4a4de27e0698d6a5b392d6a0e333506bc49133760b3bcf948733" dependencies = [ "atomic-waker", "bytes", @@ -2161,7 +2478,7 @@ dependencies = [ "futures-core", "futures-sink", "http 1.4.0", - "indexmap 2.13.0", + "indexmap 2.14.0", "slab", "tokio", "tokio-util", @@ -2179,11 +2496,41 @@ dependencies = [ "zerocopy", ] +[[package]] +name = "hash32" +version = "0.1.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "d4041af86e63ac4298ce40e5cca669066e75b6f1aa3390fe2561ffa5e1d9f4cc" +dependencies = [ + "byteorder", +] + +[[package]] +name = "hash32" +version = "0.2.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "b0c35f58762feb77d74ebe43bdbc3210f09be9fe6742234d573bacc26ed92b67" +dependencies = [ + "byteorder", +] + +[[package]] +name = "hash32" +version = "0.3.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "47d60b12902ba28e2730cd37e95b8c9223af2808df9e902d4df49588d1470606" +dependencies = [ + "byteorder", +] + [[package]] name = "hashbrown" version = "0.12.3" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "8a9ee70c43aaf417c914396645a0fa852624801b24ebb7ae78fe8272889ac888" +dependencies = [ + "ahash 0.7.8", +] [[package]] name = "hashbrown" @@ -2193,7 +2540,7 @@ checksum = "9229cfe53dfd69f0609a49f65461bd93001ea1ef889cd5529dd176593f5338a1" dependencies = [ "allocator-api2", "equivalent", - "foldhash", + "foldhash 0.1.5", ] [[package]] @@ -2201,6 +2548,17 @@ name = "hashbrown" version = "0.16.1" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "841d1cc9bed7f9236f321df977030373f4a4163ae1a7dbfe1a51a2c1a51d9100" +dependencies = [ + "allocator-api2", + "equivalent", + "foldhash 0.2.0", +] + +[[package]] +name = "hashbrown" +version = "0.17.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "4f467dd6dccf739c208452f8014c75c18bb8301b050ad1cfb27153803edb0f51" [[package]] name = "headers" @@ -2214,7 +2572,7 @@ dependencies = [ "http 1.4.0", "httpdate", "mime", - "sha1", + "sha1 0.10.6", ] [[package]] @@ -2226,6 +2584,41 @@ dependencies = [ "http 1.4.0", ] +[[package]] +name = "heapless" +version = "0.6.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "634bd4d29cbf24424d0a4bfcbf80c6960129dc24424752a7d1d1390607023422" +dependencies = [ + "as-slice", + "generic-array 0.14.7", + "hash32 0.1.1", + "stable_deref_trait", +] + +[[package]] +name = "heapless" +version = "0.7.17" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "cdc6457c0eb62c71aac4bc17216026d8410337c4126773b9c5daba343f17964f" +dependencies = [ + "atomic-polyfill", + "hash32 0.2.1", + "rustc_version", + "spin", + "stable_deref_trait", +] + +[[package]] +name = "heapless" +version = "0.8.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "0bfb9eb618601c89945a70e254898da93b13be0388091d42117462b265bb3fad" +dependencies = [ + "hash32 0.3.1", + "stable_deref_trait", +] + [[package]] name = "heck" version = "0.5.0" @@ -2238,6 +2631,30 @@ version = "0.4.3" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "7f24254aa9a54b5c858eaee2f5bccdb46aaf0e486a595ed5fd8f86ba55232a70" +[[package]] +name = "hickory-net" +version = "0.26.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "e2295ed2f9c31e471e1428a8f88a3f0e1f4b27c15049592138d1eebe9c35b183" +dependencies = [ + "async-trait", + "cfg-if", + "data-encoding", + "futures-channel", + "futures-io", + "futures-util", + "hickory-proto 0.26.1", + "idna", + "ipnet", + "jni", + "rand 0.10.1", + "thiserror 2.0.18", + "tinyvec", + "tokio", + "tracing", + "url", +] + [[package]] name = "hickory-proto" version = "0.25.2" @@ -2254,7 +2671,7 @@ dependencies = [ "idna", "ipnet", "once_cell", - "rand 0.9.2", + "rand 0.9.4", "ring", "thiserror 2.0.18", "tinyvec", @@ -2263,6 +2680,26 @@ dependencies = [ "url", ] +[[package]] +name = "hickory-proto" +version = "0.26.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "0bab31817bfb44672a252e97fe81cd0c18d1b2cf892108922f6818820df8c643" +dependencies = [ + "data-encoding", + "idna", + "ipnet", + "jni", + "once_cell", + "prefix-trie", + "rand 0.10.1", + "ring", + "thiserror 2.0.18", + "tinyvec", + "tracing", + "url", +] + [[package]] name = "hickory-resolver" version = "0.25.2" @@ -2271,14 +2708,40 @@ checksum = "dc62a9a99b0bfb44d2ab95a7208ac952d31060efc16241c87eaf36406fecf87a" dependencies = [ "cfg-if", "futures-util", - "hickory-proto", + "hickory-proto 0.25.2", + "ipconfig", + "moka", + "once_cell", + "parking_lot", + "rand 0.9.4", + "resolv-conf", + "smallvec", + "thiserror 2.0.18", + "tokio", + "tracing", +] + +[[package]] +name = "hickory-resolver" +version = "0.26.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "f0d58d28879ceecde6607729660c2667a081ccdc082e082675042793960f178c" +dependencies = [ + "cfg-if", + "futures-util", + "hickory-net", + "hickory-proto 0.26.1", "ipconfig", + "ipnet", + "jni", "moka", + "ndk-context", "once_cell", "parking_lot", - "rand 0.9.2", + "rand 0.10.1", "resolv-conf", "smallvec", + "system-configuration", "thiserror 2.0.18", "tokio", "tracing", @@ -2290,7 +2753,7 @@ version = "0.12.4" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "7b5f8eb2ad728638ea2c7d47a21db23b7b58a72ed6a38256b8a1849f15fbbdf7" dependencies = [ - "hmac", + "hmac 0.12.1", ] [[package]] @@ -2299,7 +2762,16 @@ version = "0.12.1" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "6c49c37c09c17a53d937dfbb742eb3a961d65a994e6bcdcf37e7399d0cc8ab5e" dependencies = [ - "digest", + "digest 0.10.7", +] + +[[package]] +name = "hmac" +version = "0.13.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "6303bc9732ae41b04cb554b844a762b4115a61bfaa81e3e83050991eeb56863f" +dependencies = [ + "digest 0.11.3", ] [[package]] @@ -2375,6 +2847,15 @@ version = "1.0.3" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "df3b46402a9d5adb4c86a0cf463f42e19994e3ee891101b1841f30a545cb49a9" +[[package]] +name = "hybrid-array" +version = "0.4.11" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "08d46837a0ed51fe95bd3b05de33cd64a1ee88fc797477ca48446872504507c5" +dependencies = [ + "typenum", +] + [[package]] name = "hyper" version = "0.14.32" @@ -2401,22 +2882,21 @@ dependencies = [ [[package]] name = "hyper" -version = "1.8.1" +version = "1.9.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "2ab2d4f250c3d7b1c9fcdff1cece94ea4e2dfbec68614f7b87cb205f24ca9d11" +checksum = "6299f016b246a94207e63da54dbe807655bf9e00044f73ded42c3ac5305fbcca" dependencies = [ "atomic-waker", "bytes", "futures-channel", "futures-core", - "h2 0.4.12", + "h2 0.4.14", "http 1.4.0", "http-body 1.0.1", "httparse", "httpdate", "itoa", "pin-project-lite", - "pin-utils", "smallvec", "tokio", "want", @@ -2429,7 +2909,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "73b7d8abf35697b81a825e386fc151e0d503e8cb5fcb93cc8669c376dfd6f278" dependencies = [ "hex", - "hyper 1.8.1", + "hyper 1.9.0", "hyper-util", "pin-project-lite", "tokio", @@ -2454,16 +2934,15 @@ dependencies = [ [[package]] name = "hyper-rustls" -version = "0.27.7" +version = "0.27.9" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "e3c93eb611681b207e1fe55d5a71ecf91572ec8a6705cdb6857f7d8d5242cf58" +checksum = "33ca68d021ef39cf6463ab54c1d0f5daf03377b70561305bb89a8f83aab66e0f" dependencies = [ "http 1.4.0", - "hyper 1.8.1", + "hyper 1.9.0", "hyper-util", - "rustls 0.23.37", + "rustls 0.23.40", "rustls-native-certs", - "rustls-pki-types", "tokio", "tokio-rustls 0.26.4", "tower-service", @@ -2476,7 +2955,7 @@ version = "0.5.2" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "2b90d566bffbce6a75bd8b09a05aa8c2cb1fabb6cb348f8840c9e4c90a0d83b0" dependencies = [ - "hyper 1.8.1", + "hyper 1.9.0", "hyper-util", "pin-project-lite", "tokio", @@ -2485,23 +2964,22 @@ dependencies = [ [[package]] name = "hyper-util" -version = "0.1.19" +version = "0.1.20" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "727805d60e7938b76b826a6ef209eb70eaa1812794f9424d4a4e2d740662df5f" +checksum = "96547c2556ec9d12fb1578c4eaf448b04993e7fb79cbaad930a656880a6bdfa0" dependencies = [ "base64 0.22.1", "bytes", "futures-channel", - "futures-core", "futures-util", "http 1.4.0", "http-body 1.0.1", - "hyper 1.8.1", + "hyper 1.9.0", "ipnet", "libc", "percent-encoding", "pin-project-lite", - "socket2 0.6.1", + "socket2 0.6.3", "system-configuration", "tokio", "tower-service", @@ -2517,18 +2995,61 @@ checksum = "986c5ce3b994526b3cd75578e62554abd09f0899d6206de48b3e96ab34ccc8c7" dependencies = [ "hex", "http-body-util", - "hyper 1.8.1", + "hyper 1.9.0", "hyper-util", "pin-project-lite", "tokio", "tower-service", ] +[[package]] +name = "i_float" +version = "1.15.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "010025c2c532c8d82e42d0b8bb5184afa449fa6f06c709ea9adcb16c49ae405b" +dependencies = [ + "libm", +] + +[[package]] +name = "i_key_sort" +version = "0.6.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "9190f86706ca38ac8add223b2aed8b1330002b5cdbbce28fb58b10914d38fc27" + +[[package]] +name = "i_overlay" +version = "4.0.7" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "413183068e6e0289e18d7d0a1f661b81546e6918d5453a44570b9ab30cbed1b3" +dependencies = [ + "i_float", + "i_key_sort", + "i_shape", + "i_tree", + "rayon", +] + +[[package]] +name = "i_shape" +version = "1.14.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "1ea154b742f7d43dae2897fcd5ead86bc7b5eefcedd305a7ebf9f69d44d61082" +dependencies = [ + "i_float", +] + +[[package]] +name = "i_tree" +version = "0.16.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "35e6d558e6d4c7b82bc51d9c771e7a927862a161a7d87bf2b0541450e0e20915" + [[package]] name = "iana-time-zone" -version = "0.1.64" +version = "0.1.65" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "33e57f83510bb73707521ebaffa789ec8caf86f9657cad665b092b581d40e9fb" +checksum = "e31bc9ad994ba00e440a8aa5c9ef0ec67d5cb5e5cb0cc7f8b744a35b389cc470" dependencies = [ "android_system_properties", "core-foundation-sys", @@ -2550,12 +3071,13 @@ dependencies = [ [[package]] name = "icu_collections" -version = "2.1.1" +version = "2.2.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "4c6b649701667bbe825c3b7e6388cb521c23d88644678e83c0c4d0a621a34b43" +checksum = "2984d1cd16c883d7935b9e07e44071dca8d917fd52ecc02c04d5fa0b5a3f191c" dependencies = [ "displaydoc", "potential_utf", + "utf8_iter", "yoke", "zerofrom", "zerovec", @@ -2563,9 +3085,9 @@ dependencies = [ [[package]] name = "icu_locale_core" -version = "2.1.1" +version = "2.2.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "edba7861004dd3714265b4db54a3c390e880ab658fec5f7db895fae2046b5bb6" +checksum = "92219b62b3e2b4d88ac5119f8904c10f8f61bf7e95b640d25ba3075e6cac2c29" dependencies = [ "displaydoc", "litemap", @@ -2576,9 +3098,9 @@ dependencies = [ [[package]] name = "icu_normalizer" -version = "2.1.1" +version = "2.2.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "5f6c8828b67bf8908d82127b2054ea1b4427ff0230ee9141c54251934ab1b599" +checksum = "c56e5ee99d6e3d33bd91c5d85458b6005a22140021cc324cea84dd0e72cff3b4" dependencies = [ "icu_collections", "icu_normalizer_data", @@ -2590,15 +3112,15 @@ dependencies = [ [[package]] name = "icu_normalizer_data" -version = "2.1.1" +version = "2.2.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "7aedcccd01fc5fe81e6b489c15b247b8b0690feb23304303a9e560f37efc560a" +checksum = "da3be0ae77ea334f4da67c12f149704f19f81d1adf7c51cf482943e84a2bad38" [[package]] name = "icu_properties" -version = "2.1.2" +version = "2.2.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "020bfc02fe870ec3a66d93e677ccca0562506e5872c650f893269e08615d74ec" +checksum = "bee3b67d0ea5c2cca5003417989af8996f8604e34fb9ddf96208a033901e70de" dependencies = [ "icu_collections", "icu_locale_core", @@ -2610,15 +3132,15 @@ dependencies = [ [[package]] name = "icu_properties_data" -version = "2.1.2" +version = "2.2.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "616c294cf8d725c6afcd8f55abc17c56464ef6211f9ed59cccffe534129c77af" +checksum = "8e2bbb201e0c04f7b4b3e14382af113e17ba4f63e2c9d2ee626b720cbce54a14" [[package]] name = "icu_provider" -version = "2.1.1" +version = "2.2.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "85962cf0ce02e1e0a629cc34e7ca3e373ce20dda4c4d7294bbd0bf1fdb59e614" +checksum = "139c4cf31c8b5f33d7e199446eff9c1e02decfc2f0eec2c8d71f65befa45b421" dependencies = [ "displaydoc", "icu_locale_core", @@ -2654,9 +3176,9 @@ dependencies = [ [[package]] name = "idna_adapter" -version = "1.2.1" +version = "1.2.2" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "3acae9609540aa318d1bc588455225fb2085b9ed0c4f6bd0d9d5bcd86f1a0344" +checksum = "cb68373c0d6620ef8105e855e7745e18b0d00d3bdb07fb532e434244cdb9a714" dependencies = [ "icu_normalizer", "icu_properties", @@ -2664,9 +3186,9 @@ dependencies = [ [[package]] name = "image" -version = "0.25.9" +version = "0.25.10" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "e6506c6c10786659413faa717ceebcb8f70731c0a60cbae39795fdf114519c1a" +checksum = "85ab80394333c02fe689eaf900ab500fbd0c2213da414687ebf995a65d5a6104" dependencies = [ "bytemuck", "byteorder-lite", @@ -2688,12 +3210,12 @@ dependencies = [ [[package]] name = "indexmap" -version = "2.13.0" +version = "2.14.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "7714e70437a7dc3ac8eb7e6f8df75fd8eb422675fc7678aff7364301092b1017" +checksum = "d466e9454f08e4a911e14806c24e16fba1b4c121d1ea474396f396069cf949d9" dependencies = [ "equivalent", - "hashbrown 0.16.1", + "hashbrown 0.17.0", "serde", "serde_core", ] @@ -2704,12 +3226,21 @@ version = "0.1.4" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "879f10e63c20629ecabbb64a8010319738c66a5cd0c29b02d63d272b03751d01" dependencies = [ - "generic-array", + "generic-array 0.14.7", +] + +[[package]] +name = "inout" +version = "0.2.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "4250ce6452e92010fdf7268ccc5d14faa80bb12fc741938534c58f16804e03c7" +dependencies = [ + "hybrid-array", ] [[package]] name = "interpolate" -version = "2.1.2" +version = "2.2.0" dependencies = [ "anyhow", "komodo_client", @@ -2718,38 +3249,32 @@ dependencies = [ [[package]] name = "ipconfig" -version = "0.3.2" +version = "0.3.4" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "b58db92f96b720de98181bbbe63c831e87005ab460c1bf306eb2622b4707997f" +checksum = "4d40460c0ce33d6ce4b0630ad68ff63d6661961c48b6dba35e5a4d81cfb48222" dependencies = [ - "socket2 0.5.10", + "socket2 0.6.3", "widestring", - "windows-sys 0.48.0", - "winreg 0.50.0", + "windows-registry", + "windows-result", + "windows-sys 0.61.2", ] [[package]] name = "ipnet" -version = "2.11.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "469fb0b9cefa57e3ef31275ee7cacb78f2fdca44e4765491884a2b119d4eb130" - -[[package]] -name = "ipnetwork" -version = "0.21.1" +version = "2.12.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "cf370abdafd54d13e54a620e8c3e1145f28e46cc9d704bc6d94414559df41763" +checksum = "d98f6fed1fde3f8c21bc40a1abb88dd75e67924f9cffc3ef95607bad8017f8e2" dependencies = [ "serde", ] [[package]] -name = "iri-string" -version = "0.7.10" +name = "ipnetwork" +version = "0.21.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "c91338f0783edbd6195decb37bae672fd3b165faffb89bf7b9e6942f8b1a731a" +checksum = "cf370abdafd54d13e54a620e8c3e1145f28e46cc9d704bc6d94414559df41763" dependencies = [ - "memchr", "serde", ] @@ -2768,33 +3293,78 @@ dependencies = [ "either", ] +[[package]] +name = "itertools" +version = "0.11.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "b1c173a5686ce8bfa551b3563d0c2170bf24ca44da99c7ca4bfdab5418c3fe57" +dependencies = [ + "either", +] + +[[package]] +name = "itertools" +version = "0.14.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "2b192c782037fadd9cfa75548310488aabdbf3d2da73885b31bd0abd03351285" +dependencies = [ + "either", +] + [[package]] name = "itoa" -version = "1.0.17" +version = "1.0.18" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "92ecc6618181def0457392ccd0ee51198e065e016d1d527a7ac1b6dc7c1f09d2" +checksum = "8f42a60cbdf9a97f5d2305f08a87dc4e09308d1276d28c869c684d7777685682" [[package]] name = "jni" -version = "0.21.1" +version = "0.22.4" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "1a87aa2bb7d2af34197c04845522473242e1aa17c12f4935d5856491a7fb8c97" +checksum = "5efd9a482cf3a427f00d6b35f14332adc7902ce91efb778580e180ff90fa3498" dependencies = [ - "cesu8", "cfg-if", "combine", + "jni-macros", "jni-sys", "log", - "thiserror 1.0.69", + "simd_cesu8", + "thiserror 2.0.18", "walkdir", - "windows-sys 0.45.0", + "windows-link", +] + +[[package]] +name = "jni-macros" +version = "0.22.4" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "a00109accc170f0bdb141fed3e393c565b6f5e072365c3bd58f5b062591560a3" +dependencies = [ + "proc-macro2", + "quote", + "rustc_version", + "simd_cesu8", + "syn 2.0.117", ] [[package]] name = "jni-sys" -version = "0.3.0" +version = "0.4.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "8eaf4bc02d17cbdd7ff4c7438cafcdf7fb9a4613313ad11b4f8fefe7d3fa0130" +checksum = "c6377a88cb3910bee9b0fa88d4f42e1d2da8e79915598f65fb0c7ee14c878af2" +dependencies = [ + "jni-sys-macros", +] + +[[package]] +name = "jni-sys-macros" +version = "0.4.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "38c0b942f458fe50cdac086d2f946512305e5631e720728f2a61aabcd47a6264" +dependencies = [ + "quote", + "syn 2.0.117", +] [[package]] name = "jobserver" @@ -2808,10 +3378,12 @@ dependencies = [ [[package]] name = "js-sys" -version = "0.3.90" +version = "0.3.97" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "14dc6f6450b3f6d4ed5b16327f38fed626d375a886159ca555bd7822c0c3a5a6" +checksum = "a1840c94c045fbcf8ba2812c95db44499f7c64910a912551aaaa541decebcacf" dependencies = [ + "cfg-if", + "futures-util", "once_cell", "wasm-bindgen", ] @@ -2824,7 +3396,7 @@ checksum = "0529410abe238729a60b108898784df8984c87f6054c9c4fcacc47e4803c1ce1" dependencies = [ "aws-lc-rs", "base64 0.22.1", - "getrandom 0.2.16", + "getrandom 0.2.17", "js-sys", "pem", "serde", @@ -2835,7 +3407,7 @@ dependencies = [ [[package]] name = "komodo_cli" -version = "2.1.2" +version = "2.2.0" dependencies = [ "anyhow", "bcrypt", @@ -2853,7 +3425,7 @@ dependencies = [ "mogh_logger", "mogh_pki", "mogh_secret_file", - "rustls 0.23.37", + "rustls 0.23.40", "serde", "serde_json", "serde_qs", @@ -2865,7 +3437,7 @@ dependencies = [ [[package]] name = "komodo_client" -version = "2.1.2" +version = "2.2.0" dependencies = [ "anyhow", "async_timing_util", @@ -2876,7 +3448,7 @@ dependencies = [ "derive_default_builder", "envy", "futures-util", - "indexmap 2.13.0", + "indexmap 2.14.0", "ipnetwork", "mogh_auth_client", "mogh_error", @@ -2886,15 +3458,16 @@ dependencies = [ "mogh_server", "mongo_indexed", "partial_derive2", - "rand 0.10.0", - "reqwest 0.13.2", + "rand 0.10.1", + "reqwest 0.13.3", + "schemars 1.2.1", "serde", "serde_json", "serde_qs", "strum 0.28.0", "thiserror 2.0.18", "tokio", - "tokio-tungstenite 0.29.0", + "tokio-tungstenite", "tokio-util", "tracing", "typeshare", @@ -2904,7 +3477,7 @@ dependencies = [ [[package]] name = "komodo_core" -version = "2.1.2" +version = "2.2.0" dependencies = [ "anyhow", "arc-swap", @@ -2931,8 +3504,8 @@ dependencies = [ "futures-util", "git", "hex", - "hmac", - "indexmap 2.13.0", + "hmac 0.13.0", + "indexmap 2.14.0", "interpolate", "komodo_client", "mogh_auth_client", @@ -2950,13 +3523,13 @@ dependencies = [ "partial_derive2", "periphery_client", "regex", - "reqwest 0.13.2", - "rustls 0.23.37", + "reqwest 0.13.3", + "rustls 0.23.40", "serde", "serde_json", "serde_qs", "serde_yaml_ng", - "sha2", + "sha2 0.11.0", "slack_client_rs", "strum 0.28.0", "svi", @@ -2977,7 +3550,7 @@ dependencies = [ [[package]] name = "komodo_periphery" -version = "2.1.2" +version = "2.2.0" dependencies = [ "anyhow", "arc-swap", @@ -2996,7 +3569,7 @@ dependencies = [ "formatting", "futures-util", "git", - "hickory-resolver", + "hickory-resolver 0.26.1", "interpolate", "komodo_client", "mogh_cache", @@ -3009,7 +3582,7 @@ dependencies = [ "mogh_server", "periphery_client", "portable-pty", - "rustls 0.23.37", + "rustls 0.23.40", "serde", "serde_json", "serde_yaml_ng", @@ -3043,27 +3616,27 @@ checksum = "09edd9e8b54e49e587e4f6295a7d29c3ea94d469cb40ab8ca70b288248a81db2" [[package]] name = "libc" -version = "0.2.178" +version = "0.2.186" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "37c93d8daa9d8a012fd8ab92f088405fb202ea0b6ab73ee2482ae66af4f42091" +checksum = "68ab91017fe16c622486840e4c83c9a37afeff978bd239b5293d61ece587de66" [[package]] name = "libm" -version = "0.2.15" +version = "0.2.16" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "f9fbbcab51052fe104eb5e5d351cf728d30a5be1fe14d9be8a3b097481fb97de" +checksum = "b6d2cec3eae94f9f509c767b45932f1ada8350c4bdb85af2fcab4a3c14807981" [[package]] name = "linux-raw-sys" -version = "0.11.0" +version = "0.12.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "df1d3c3b53da64cf5760482273a98e575c651a67eec7f77df96b5b642de8f039" +checksum = "32a66949e030da00e8c7d4434b251670a91556f4144941d37452769c25d58a53" [[package]] name = "litemap" -version = "0.8.1" +version = "0.8.2" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "6373607a59f0be73a39b6fe456b8192fcc3585f602af20751600e974dd455e77" +checksum = "92daf443525c4cce67b150400bc2316076100ce0b3686209eb8cf3c31612e6f0" [[package]] name = "litrs" @@ -3101,7 +3674,7 @@ dependencies = [ "macro_magic_core", "macro_magic_macros", "quote", - "syn", + "syn 2.0.117", ] [[package]] @@ -3115,7 +3688,7 @@ dependencies = [ "macro_magic_core_macros", "proc-macro2", "quote", - "syn", + "syn 2.0.117", ] [[package]] @@ -3126,7 +3699,7 @@ checksum = "b02abfe41815b5bd98dbd4260173db2c116dda171dc0fe7838cb206333b83308" dependencies = [ "proc-macro2", "quote", - "syn", + "syn 2.0.117", ] [[package]] @@ -3137,7 +3710,7 @@ checksum = "73ea28ee64b88876bf45277ed9a5817c1817df061a74f2b988971a12570e5869" dependencies = [ "macro_magic_core", "quote", - "syn", + "syn 2.0.117", ] [[package]] @@ -3153,14 +3726,14 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "d89e7ee0cfbedfc4da3340218492196241d89eefb6dab27de5df917a6d2e78cf" dependencies = [ "cfg-if", - "digest", + "digest 0.10.7", ] [[package]] name = "memchr" -version = "2.7.6" +version = "2.8.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "f52b00d39961fc5b2736ea853c9cc86238e165017a493d1d5c8eac6bdc4cc273" +checksum = "f8ca58f447f06ed17d5fc4043ce1b10dd205e060fb3ce5b979b8ed8e59ff3f79" [[package]] name = "mime" @@ -3196,9 +3769,9 @@ dependencies = [ [[package]] name = "mio" -version = "1.1.1" +version = "1.2.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "a69bcab0ad47271a0234d9422b131806bf3968021e5dc9328caf2d4cd58557fc" +checksum = "50b7e5b27aa02a74bac8c3f23f448f8d87ff11f92d3aac1a6ed369ee08cc56c1" dependencies = [ "libc", "log", @@ -3208,14 +3781,14 @@ dependencies = [ [[package]] name = "mogh_auth_client" -version = "1.2.2" +version = "1.5.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "c06919a6e06dfd611efa91a00fc618a49e0ceedb60f709980c74bbf4047213d4" +checksum = "8b6b46f9e9317ea68ddf608ebd187d0d3ed6adb6d12c15dcc84ea70428e8745e" dependencies = [ "anyhow", "mogh_error", "mogh_resolver", - "reqwest 0.13.2", + "reqwest 0.13.3", "serde", "serde_json", "strum 0.28.0", @@ -3226,9 +3799,9 @@ dependencies = [ [[package]] name = "mogh_auth_server" -version = "1.2.13" +version = "1.5.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "d649dff8bdacff15df7d65716fcc4e3b1643bbc970d609d31cb45b3e2e02b9ac" +checksum = "4d58d23b444f9f1a591f1fd44641b894ca3068a9ce3db3ea99896a5f757fa2fe" dependencies = [ "anyhow", "arc-swap", @@ -3244,8 +3817,8 @@ dependencies = [ "mogh_resolver", "mogh_validations", "openidconnect", - "rand 0.10.0", - "reqwest 0.13.2", + "rand 0.10.1", + "reqwest 0.13.3", "serde", "serde_json", "strum 0.28.0", @@ -3271,12 +3844,13 @@ dependencies = [ [[package]] name = "mogh_config" -version = "1.0.5" +version = "1.1.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "b2f42709806fc4822dd9f116f68a43433ca89663e8e1842b6859faced1fc64c1" +checksum = "70d00b483483f4d245c64cd19b34efab9d1f6bc952acafe5d9e2b7fe60bc4758" dependencies = [ + "cicada_loader", "colored", - "indexmap 2.13.0", + "indexmap 2.14.0", "regex", "serde", "serde_json", @@ -3379,7 +3953,7 @@ checksum = "60edb9b08692be3a13b86217f0c8cccab8675adc4a87890d0ea58a46b033d2e8" dependencies = [ "proc-macro2", "quote", - "syn", + "syn 2.0.117", ] [[package]] @@ -3394,15 +3968,15 @@ dependencies = [ [[package]] name = "mogh_server" -version = "1.4.5" +version = "1.5.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "66ab833484ee2242003819a2b948421dc3469e7d153db71bd7579d5de2660b81" +checksum = "a2d675edcde163e151710b8448538f88b50990bbd404afa81491bdb83eb82fac" dependencies = [ "anyhow", "axum", "axum-server", "data-encoding", - "sha2", + "sha2 0.10.9", "tower-http", "tower-sessions", "tracing", @@ -3422,9 +3996,9 @@ dependencies = [ [[package]] name = "moka" -version = "0.12.12" +version = "0.12.15" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "a3dec6bd31b08944e08b58fd99373893a6c17054d6f3ea5006cc894f4f4eee2a" +checksum = "957228ad12042ee839f93c8f257b62b4c0ab5eaae1d4fa60de53b27c9d7c5046" dependencies = [ "crossbeam-channel", "crossbeam-epoch", @@ -3457,7 +4031,7 @@ checksum = "cf8405357bf431a2e73d83057f2960e9349ab946389dd78af655832921434949" dependencies = [ "proc-macro2", "quote", - "syn", + "syn 2.0.117", ] [[package]] @@ -3480,12 +4054,12 @@ checksum = "224484c5d09285a7b8cb0a0c117e847ebd14cb6e4470ecf68cdb89c503b0edb9" [[package]] name = "mongodb" -version = "3.4.1" +version = "3.6.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "12f5c20217413bed97c613714e6d6dfe39ef59dd79a68999f1043b0566192975" +checksum = "1ef2c933617431ad0246fb5b43c425ebdae18c7f7259c87de0726d93b0e7e91b" dependencies = [ "base64 0.22.1", - "bitflags 2.10.0", + "bitflags 2.11.1", "bson", "derive-where", "derive_more", @@ -3493,25 +4067,25 @@ dependencies = [ "futures-io", "futures-util", "hex", - "hickory-proto", - "hickory-resolver", - "hmac", + "hickory-proto 0.25.2", + "hickory-resolver 0.25.2", + "hmac 0.12.1", "macro_magic", "md-5", "mongocrypt", "mongodb-internal-macros", "pbkdf2", "percent-encoding", - "rand 0.9.2", + "rand 0.9.4", "rustc_version_runtime", - "rustls 0.23.37", + "rustls 0.23.40", "rustversion", "serde", "serde_bytes", "serde_with", - "sha1", - "sha2", - "socket2 0.6.1", + "sha1 0.10.6", + "sha2 0.10.9", + "socket2 0.6.3", "stringprep", "strsim", "take_mut", @@ -3526,21 +4100,21 @@ dependencies = [ [[package]] name = "mongodb-internal-macros" -version = "3.4.1" +version = "3.6.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "20033442aa13664e70bc9f8be1bacabebf6a31b6d4bb5608ceb99c4ec96e9951" +checksum = "9e5758dc828eb2d02ec30563cba365609d56ddd833190b192beaee2b475a7bb3" dependencies = [ "macro_magic", "proc-macro2", "quote", - "syn", + "syn 2.0.117", ] [[package]] name = "moxcms" -version = "0.7.11" +version = "0.8.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "ac9557c559cd6fc9867e122e20d2cbefc9ca29d80d027a8e39310920ed2f0a97" +checksum = "bb85c154ba489f01b25c0d36ae69a87e4a1c73a72631fc6c0eb6dde34a73e44b" dependencies = [ "num-traits", "pxfm", @@ -3561,13 +4135,19 @@ dependencies = [ "urlencoding", ] +[[package]] +name = "ndk-context" +version = "0.1.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "27b02d87554356db9e9a873add8782d4ea6e3e58ea071a9adb9a2e8ddb884a8b" + [[package]] name = "nix" version = "0.28.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "ab2156c4fce2f8df6c499cc1c763e4394b7482525bf2a9701c9d79d215f519e4" dependencies = [ - "bitflags 2.10.0", + "bitflags 2.11.1", "cfg-if", "cfg_aliases 0.1.1", "libc", @@ -3585,9 +4165,9 @@ dependencies = [ [[package]] name = "ntapi" -version = "0.4.2" +version = "0.4.3" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "c70f219e21142367c70c0b30c6a9e3a14d55b4d12a204d897fbec83a0363f081" +checksum = "c3b335231dfd352ffb0f8017f3b6027a4917f7df785ea2143d8af2adc66980ae" dependencies = [ "winapi", ] @@ -3622,16 +4202,16 @@ dependencies = [ "num-integer", "num-iter", "num-traits", - "rand 0.8.5", + "rand 0.8.6", "smallvec", "zeroize", ] [[package]] name = "num-conv" -version = "0.1.0" +version = "0.2.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "51d515d32fb182ee37cda2ccdcb92950d6a3c2893aa280e540671c2cd0f3b1d9" +checksum = "c6673768db2d862beb9b39a78fdcb1a69439615d5794a1be50caa9bc92c81967" [[package]] name = "num-integer" @@ -3671,14 +4251,14 @@ checksum = "51e219e79014df21a225b1860a479e2dcd7cbd9130f4defd4bd0e191ea31d67d" dependencies = [ "base64 0.22.1", "chrono", - "getrandom 0.2.16", + "getrandom 0.2.17", "http 1.4.0", - "rand 0.8.5", + "rand 0.8.6", "reqwest 0.12.28", "serde", "serde_json", "serde_path_to_error", - "sha2", + "sha2 0.10.9", "thiserror 1.0.69", "url", ] @@ -3689,7 +4269,7 @@ version = "0.3.2" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "2a180dd8642fa45cdb7dd721cd4c11b1cadd4929ce112ebd8b9f5803cc79d536" dependencies = [ - "bitflags 2.10.0", + "bitflags 2.11.1", ] [[package]] @@ -3713,9 +4293,9 @@ dependencies = [ [[package]] name = "once_cell" -version = "1.21.3" +version = "1.21.4" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "42f5e15c9953c5e4ccceeb2e7382a716482c34515315f7b03532b8b4e8393d2d" +checksum = "9f7c3e4beb33f85d45ae3e3a1792185706c8e16d043238c593331cc7cd313b50" dependencies = [ "critical-section", "portable-atomic", @@ -3743,14 +4323,14 @@ dependencies = [ "chrono", "dyn-clone", "ed25519-dalek", - "hmac", + "hmac 0.12.1", "http 1.4.0", - "itertools", + "itertools 0.10.5", "log", "oauth2", "p256", "p384", - "rand 0.8.5", + "rand 0.8.6", "rsa", "serde", "serde-value", @@ -3758,7 +4338,7 @@ dependencies = [ "serde_path_to_error", "serde_plain", "serde_with", - "sha2", + "sha2 0.10.9", "subtle", "thiserror 1.0.69", "url", @@ -3766,15 +4346,14 @@ dependencies = [ [[package]] name = "openssl" -version = "0.10.75" +version = "0.10.79" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "08838db121398ad17ab8531ce9de97b244589089e290a384c900cb9ff7434328" +checksum = "bf0b434746ee2832f4f0baf10137e1cabb18cbe6912c69e2e33263c45250f542" dependencies = [ - "bitflags 2.10.0", + "bitflags 2.11.1", "cfg-if", "foreign-types", "libc", - "once_cell", "openssl-macros", "openssl-sys", ] @@ -3787,20 +4366,20 @@ checksum = "a948666b637a0f465e8564c73e89d4dde00d72d4d473cc972f390fc3dcee7d9c" dependencies = [ "proc-macro2", "quote", - "syn", + "syn 2.0.117", ] [[package]] name = "openssl-probe" -version = "0.2.0" +version = "0.2.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "9f50d9b3dabb09ecd771ad0aa242ca6894994c130308ca3d7684634df8037391" +checksum = "7c87def4c32ab89d880effc9e097653c8da5d6ef28e6b539d313baaacfbafcbe" [[package]] name = "openssl-sys" -version = "0.9.111" +version = "0.9.115" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "82cab2d520aa75e3c58898289429321eb788c3106963d0dc886ec7a5f4adc321" +checksum = "158fe5b292746440aa6e7a7e690e55aeb72d41505e2804c23c6973ad0e9c9781" dependencies = [ "cc", "libc", @@ -3883,7 +4462,7 @@ dependencies = [ "futures-util", "opentelemetry", "percent-encoding", - "rand 0.9.2", + "rand 0.9.4", "thiserror 2.0.18", "tokio", "tokio-stream", @@ -3923,7 +4502,7 @@ dependencies = [ "ecdsa", "elliptic-curve", "primeorder", - "sha2", + "sha2 0.10.9", ] [[package]] @@ -3932,10 +4511,20 @@ version = "0.13.1" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "fe42f1670a52a47d448f14b6a5c61dd78fce51856e68edaa38f7ae3a46b8d6b6" dependencies = [ - "ecdsa", - "elliptic-curve", - "primeorder", - "sha2", + "ecdsa", + "elliptic-curve", + "primeorder", + "sha2 0.10.9", +] + +[[package]] +name = "papaya" +version = "0.2.4" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "997ee03cd38c01469a7046643714f0ad28880bcb9e6679ff0666e24817ca19b7" +dependencies = [ + "equivalent", + "seize", ] [[package]] @@ -3963,22 +4552,22 @@ dependencies = [ [[package]] name = "partial_derive2" -version = "0.4.5" +version = "0.5.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "9aea8d1d439a598918da9f57e336712feca21d8b1f0935abab2ec1a725fe4477" +checksum = "409334349c612b53682b691cc28910e5eea866273b06d4da70e1e35283c90230" dependencies = [ "partial_derive2_derive", ] [[package]] name = "partial_derive2_derive" -version = "0.4.5" +version = "0.5.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "d60d971bb4035146776bdf7b516e24a7ed6f6d8005ba8f224ffbb51ada3c8144" +checksum = "d99e6fbbf2056705591d334f930eec29c42ab728d1eff7ca225bc1f0cec276c3" dependencies = [ "proc-macro2", "quote", - "syn", + "syn 2.0.117", ] [[package]] @@ -3993,9 +4582,15 @@ version = "0.12.2" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "f8ed6a7761f76e3b9f92dfb0a60a6a6477c61024b775147ff0973a02653abaf2" dependencies = [ - "digest", + "digest 0.10.7", ] +[[package]] +name = "pdqselect" +version = "0.1.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "4ec91767ecc0a0bbe558ce8c9da33c068066c57ecc8bb8477ef8c1ad3ef77c27" + [[package]] name = "pem" version = "3.0.6" @@ -4032,7 +4627,7 @@ checksum = "9b4f627cb1b25917193a259e49bdad08f671f8d9708acfd5fe0a8c1455d87220" [[package]] name = "periphery_client" -version = "2.1.2" +version = "2.2.0" dependencies = [ "anyhow", "encoding", @@ -4064,22 +4659,22 @@ dependencies = [ [[package]] name = "pin-project" -version = "1.1.10" +version = "1.1.12" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "677f1add503faace112b9f1373e43e9e054bfdd22ff1a63c1bc485eaec6a6a8a" +checksum = "cbf0d9e68100b3a7989b4901972f265cd542e560a3a8a724e1e20322f4d06ce9" dependencies = [ "pin-project-internal", ] [[package]] name = "pin-project-internal" -version = "1.1.10" +version = "1.1.12" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "6e918e4ff8c4549eb882f14b3a4bc8c8bc93de829416eacf579f1207a8fbf861" +checksum = "a990e22f43e84855daf260dded30524ef4a9021cc7541c26540500a50b624389" dependencies = [ "proc-macro2", "quote", - "syn", + "syn 2.0.117", ] [[package]] @@ -4117,17 +4712,17 @@ dependencies = [ [[package]] name = "pkg-config" -version = "0.3.32" +version = "0.3.33" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "7edddbd0b52d732b21ad9a5fab5c704c14cd949e5e9a1ec5929a24fded1b904c" +checksum = "19f132c84eca552bf34cab8ec81f1c1dcc229b811638f9d283dceabe58c5569e" [[package]] name = "png" -version = "0.18.0" +version = "0.18.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "97baced388464909d42d89643fe4361939af9b7ce7a31ee32a168f832a70f2a0" +checksum = "60769b8b31b2a9f263dae2776c37b1b28ae246943cf719eb6946a1db05128a61" dependencies = [ - "bitflags 2.10.0", + "bitflags 2.11.1", "crc32fast", "fdeflate", "flate2", @@ -4159,9 +4754,9 @@ dependencies = [ [[package]] name = "portable-atomic" -version = "1.13.0" +version = "1.13.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "f89776e4d69bb58bc6993e99ffa1d11f228b839984854c7daeb5d37f87cbe950" +checksum = "c33a9471896f1c69cecef8d20cbe2f7accd12527ce60845ff44c153bb2a21b49" [[package]] name = "portable-pty" @@ -4181,14 +4776,14 @@ dependencies = [ "shared_library", "shell-words", "winapi", - "winreg 0.10.1", + "winreg", ] [[package]] name = "potential_utf" -version = "0.1.4" +version = "0.1.5" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "b73949432f5e2a09657003c25bca5e19a0e9c84f8058ca374f49e0ebe605af77" +checksum = "0103b1cef7ec0cf76490e969665504990193874ea05c85ff9bab8b911d0a0564" dependencies = [ "zerovec", ] @@ -4208,6 +4803,17 @@ dependencies = [ "zerocopy", ] +[[package]] +name = "prefix-trie" +version = "0.8.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "90f561214012d3fc240a1f9c817cc4d57f5310910d066069c1b093f766bb5966" +dependencies = [ + "either", + "ipnet", + "num-traits", +] + [[package]] name = "prettyplease" version = "0.2.37" @@ -4215,7 +4821,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "479ca8adacdd7ce8f1fb39ce9ecccbfe93a3f1344b3d0d97f20bc0196208f62b" dependencies = [ "proc-macro2", - "syn", + "syn 2.0.117", ] [[package]] @@ -4227,6 +4833,15 @@ dependencies = [ "elliptic-curve", ] +[[package]] +name = "proc-macro-crate" +version = "3.5.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "e67ba7e9b2b56446f1d419b1d807906278ffa1a658a8a5d8a39dcb1f5a78614f" +dependencies = [ + "toml_edit", +] + [[package]] name = "proc-macro2" version = "1.0.106" @@ -4238,9 +4853,9 @@ dependencies = [ [[package]] name = "prost" -version = "0.14.1" +version = "0.14.3" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "7231bd9b3d3d33c86b58adbac74b5ec0ad9f496b19d22801d773636feaa95f3d" +checksum = "d2ea70524a2f82d518bce41317d0fae74151505651af45faf1ffbd6fd33f0568" dependencies = [ "bytes", "prost-derive", @@ -4248,26 +4863,43 @@ dependencies = [ [[package]] name = "prost-derive" -version = "0.14.1" +version = "0.14.3" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "9120690fafc389a67ba3803df527d0ec9cbbc9cc45e4cc20b332996dfb672425" +checksum = "27c6023962132f4b30eb4c172c91ce92d933da334c59c23cddee82358ddafb0b" dependencies = [ "anyhow", - "itertools", + "itertools 0.14.0", "proc-macro2", "quote", - "syn", + "syn 2.0.117", ] [[package]] -name = "pxfm" -version = "0.1.27" +name = "ptr_meta" +version = "0.1.4" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "7186d3822593aa4393561d186d1393b3923e9d6163d3fbfd6e825e3e6cf3e6a8" +checksum = "0738ccf7ea06b608c10564b31debd4f5bc5e197fc8bfe088f68ae5ce81e7a4f1" dependencies = [ - "num-traits", + "ptr_meta_derive", +] + +[[package]] +name = "ptr_meta_derive" +version = "0.1.4" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "16b845dbfca988fa33db069c0e230574d15a3088f147a87b64c7589eb662c9ac" +dependencies = [ + "proc-macro2", + "quote", + "syn 1.0.109", ] +[[package]] +name = "pxfm" +version = "0.1.29" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "e0c5ccf5294c6ccd63a74f1565028353830a9c2f5eb0c682c355c471726a6e3f" + [[package]] name = "qrcodegen" version = "1.8.0" @@ -4276,9 +4908,9 @@ checksum = "4339fc7a1021c9c1621d87f5e3505f2805c8c105420ba2f2a4df86814590c142" [[package]] name = "qrcodegen-image" -version = "1.5.0" +version = "1.5.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "221b7eace1aef8c95d65dbe09fb7a1a43d006045394a89afba6997721fcb7708" +checksum = "99530e45ded4640c0eab5420fc60f9a0ec1be51a22e49cc8578b9a0d8be70712" dependencies = [ "base64 0.22.1", "image", @@ -4297,8 +4929,8 @@ dependencies = [ "quinn-proto", "quinn-udp", "rustc-hash", - "rustls 0.23.37", - "socket2 0.6.1", + "rustls 0.23.40", + "socket2 0.6.3", "thiserror 2.0.18", "tokio", "tracing", @@ -4307,18 +4939,18 @@ dependencies = [ [[package]] name = "quinn-proto" -version = "0.11.13" +version = "0.11.14" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "f1906b49b0c3bc04b5fe5d86a77925ae6524a19b816ae38ce1e426255f1d8a31" +checksum = "434b42fec591c96ef50e21e886936e66d3cc3f737104fdb9b737c40ffb94c098" dependencies = [ "aws-lc-rs", "bytes", "getrandom 0.3.4", "lru-slab", - "rand 0.9.2", + "rand 0.9.4", "ring", "rustc-hash", - "rustls 0.23.37", + "rustls 0.23.40", "rustls-pki-types", "slab", "thiserror 2.0.18", @@ -4336,7 +4968,7 @@ dependencies = [ "cfg_aliases 0.2.1", "libc", "once_cell", - "socket2 0.6.1", + "socket2 0.6.3", "tracing", "windows-sys 0.60.2", ] @@ -4356,6 +4988,12 @@ version = "5.3.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "69cdb34c158ceb288df11e18b4bd39de994f6657d83847bdffdbd7f346754b0f" +[[package]] +name = "r-efi" +version = "6.0.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "f8dcc9c7d52a811697d2151c701e0d08956f92b0e24136cf4cf27b57a6a0d9bf" + [[package]] name = "radium" version = "0.7.0" @@ -4364,9 +5002,9 @@ checksum = "dc33ff2d4973d518d823d61aa239014831e521c75da58e3df4840d3f47749d09" [[package]] name = "rand" -version = "0.8.5" +version = "0.8.6" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "34af8d1a0e25924bc5b7c43c079c942339d8f0a8b57c39049bef581b46327404" +checksum = "5ca0ecfa931c29007047d1bc58e623ab12e5590e8c7cc53200d5202b69266d8a" dependencies = [ "libc", "rand_chacha 0.3.1", @@ -4375,23 +5013,23 @@ dependencies = [ [[package]] name = "rand" -version = "0.9.2" +version = "0.9.4" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "6db2770f06117d490610c7488547d543617b21bfa07796d7a12f6f1bd53850d1" +checksum = "44c5af06bb1b7d3216d91932aed5265164bf384dc89cd6ba05cf59a35f5f76ea" dependencies = [ "rand_chacha 0.9.0", - "rand_core 0.9.3", + "rand_core 0.9.5", ] [[package]] name = "rand" -version = "0.10.0" +version = "0.10.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "bc266eb313df6c5c09c1c7b1fbe2510961e5bcd3add930c1e31f7ed9da0feff8" +checksum = "d2e8e8bcc7961af1fdac401278c6a831614941f6164ee3bf4ce61b7edb162207" dependencies = [ "chacha20 0.10.0", - "getrandom 0.4.1", - "rand_core 0.10.0", + "getrandom 0.4.2", + "rand_core 0.10.1", ] [[package]] @@ -4411,7 +5049,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "d3022b5f1df60f26e1ffddd6c66e8aa15de382ae63b3a0c1bfc0e4d3e3f325cb" dependencies = [ "ppv-lite86", - "rand_core 0.9.3", + "rand_core 0.9.5", ] [[package]] @@ -4420,23 +5058,43 @@ version = "0.6.4" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "ec0be4795e2f6a28069bec0b5ff3e2ac9bafc99e6a9a7dc3547996c5c816922c" dependencies = [ - "getrandom 0.2.16", + "getrandom 0.2.17", ] [[package]] name = "rand_core" -version = "0.9.3" +version = "0.9.5" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "99d9a13982dcf210057a8a78572b2217b667c3beacbf3a0d8b454f6f82837d38" +checksum = "76afc826de14238e6e8c374ddcc1fa19e374fd8dd986b0d2af0d02377261d83c" dependencies = [ "getrandom 0.3.4", ] [[package]] name = "rand_core" -version = "0.10.0" +version = "0.10.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "63b8176103e19a2643978565ca18b50549f6101881c443590420e4dc998a3c69" + +[[package]] +name = "rayon" +version = "1.12.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "fb39b166781f92d482534ef4b4b1b2568f42613b53e5b6c160e24cfbfa30926d" +dependencies = [ + "either", + "rayon-core", +] + +[[package]] +name = "rayon-core" +version = "1.13.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "0c8d0fd677905edcbeedbf2edb6494d676f0e98d54d5cf9bda0b061cb8fb8aba" +checksum = "22e18b0f0062d30d4230b2e85ff77fdfe4326feb054b9783a3460d8435c8ab91" +dependencies = [ + "crossbeam-deque", + "crossbeam-utils", +] [[package]] name = "redox_syscall" @@ -4444,7 +5102,7 @@ version = "0.5.18" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "ed2bf2547551a7053d6fdfafda3f938979645c44812fbfcda098faae3f1a362d" dependencies = [ - "bitflags 2.10.0", + "bitflags 2.11.1", ] [[package]] @@ -4464,7 +5122,7 @@ checksum = "b7186006dcb21920990093f30e3dea63b7d6e977bf1256be20c3563a5db070da" dependencies = [ "proc-macro2", "quote", - "syn", + "syn 2.0.117", ] [[package]] @@ -4481,9 +5139,9 @@ dependencies = [ [[package]] name = "regex-automata" -version = "0.4.13" +version = "0.4.14" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "5276caf25ac86c8d810222b3dbb938e512c55c6831a10f3e6ed1c93b84041f1c" +checksum = "6e1dd4122fc1595e8162618945476892eefca7b88c52820e74af6262213cae8f" dependencies = [ "aho-corasick", "memchr", @@ -4492,15 +5150,30 @@ dependencies = [ [[package]] name = "regex-lite" -version = "0.1.8" +version = "0.1.9" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "8d942b98df5e658f56f20d592c7f868833fe38115e65c33003d8cd224b0155da" +checksum = "cab834c73d247e67f4fae452806d17d3c7501756d98c8808d7c9c7aa7d18f973" [[package]] name = "regex-syntax" -version = "0.8.8" +version = "0.8.10" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "dc897dd8d9e8bd1ed8cdad82b5966c3e0ecae09fb1907d58efaa013543185d0a" + +[[package]] +name = "relative-path" +version = "1.9.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "ba39f3699c378cd8970968dcbff9c43159ea4cfbd88d43c00b22f2ef10a435d2" + +[[package]] +name = "rend" +version = "0.4.2" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "7a2d987857b319362043e95f5353c0535c1f58eec5336fdfcf626430af7def58" +checksum = "71fe3824f5629716b1589be05dacd749f6aa084c87e00e016714a8cdfccc997c" +dependencies = [ + "bytecheck", +] [[package]] name = "reqwest" @@ -4514,12 +5187,12 @@ dependencies = [ "futures-channel", "futures-core", "futures-util", - "h2 0.4.12", + "h2 0.4.14", "http 1.4.0", "http-body 1.0.1", "http-body-util", - "hyper 1.8.1", - "hyper-rustls 0.27.7", + "hyper 1.9.0", + "hyper-rustls 0.27.9", "hyper-util", "js-sys", "log", @@ -4527,7 +5200,7 @@ dependencies = [ "percent-encoding", "pin-project-lite", "quinn", - "rustls 0.23.37", + "rustls 0.23.40", "rustls-native-certs", "rustls-pki-types", "serde", @@ -4548,9 +5221,9 @@ dependencies = [ [[package]] name = "reqwest" -version = "0.13.2" +version = "0.13.3" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "ab3f43e3283ab1488b624b44b0e988d0acea0b3214e694730a055cb6b2efa801" +checksum = "62e0021ea2c22aed41653bc7e1419abb2c97e038ff2c33d0e1309e49a97deec0" dependencies = [ "base64 0.22.1", "bytes", @@ -4560,15 +5233,15 @@ dependencies = [ "http 1.4.0", "http-body 1.0.1", "http-body-util", - "hyper 1.8.1", - "hyper-rustls 0.27.7", + "hyper 1.9.0", + "hyper-rustls 0.27.9", "hyper-util", "js-sys", "log", "percent-encoding", "pin-project-lite", "quinn", - "rustls 0.23.37", + "rustls 0.23.40", "rustls-pki-types", "rustls-platform-verifier", "serde", @@ -4600,7 +5273,7 @@ version = "0.4.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "f8dd2a808d456c4a54e300a23e9f5a67e122c3024119acbfd73e3bf664491cb2" dependencies = [ - "hmac", + "hmac 0.12.1", "subtle", ] @@ -4612,20 +5285,55 @@ checksum = "a4689e6c2294d81e88dc6261c768b63bc4fcdb852be6d1352498b114f61383b7" dependencies = [ "cc", "cfg-if", - "getrandom 0.2.16", + "getrandom 0.2.17", "libc", "untrusted 0.9.0", "windows-sys 0.52.0", ] +[[package]] +name = "rkyv" +version = "0.7.46" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "2297bf9c81a3f0dc96bc9521370b88f054168c29826a75e89c55ff196e7ed6a1" +dependencies = [ + "bitvec", + "bytecheck", + "bytes", + "hashbrown 0.12.3", + "ptr_meta", + "rend", + "rkyv_derive", + "seahash", + "tinyvec", + "uuid", +] + +[[package]] +name = "rkyv_derive" +version = "0.7.46" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "84d7b42d4b8d06048d3ac8db0eb31bcb942cbeb709f0b5f2b2ebde398d3038f5" +dependencies = [ + "proc-macro2", + "quote", + "syn 1.0.109", +] + +[[package]] +name = "robust" +version = "1.2.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "4e27ee8bb91ca0adcf0ecb116293afa12d393f9c2b9b9cd54d33e8078fe19839" + [[package]] name = "rsa" -version = "0.9.9" +version = "0.9.10" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "40a0376c50d0358279d9d643e4bf7b7be212f1f4ff1da9070a7b54d22ef75c88" +checksum = "b8573f03f5883dcaebdfcf4725caa1ecb9c15b2ef50c43a07b816e06799bb12d" dependencies = [ - "const-oid", - "digest", + "const-oid 0.9.6", + "digest 0.10.7", "num-bigint-dig", "num-integer", "num-traits", @@ -4638,11 +5346,118 @@ dependencies = [ "zeroize", ] +[[package]] +name = "rstar" +version = "0.8.4" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "3a45c0e8804d37e4d97e55c6f258bc9ad9c5ee7b07437009dd152d764949a27c" +dependencies = [ + "heapless 0.6.1", + "num-traits", + "pdqselect", + "serde", + "smallvec", +] + +[[package]] +name = "rstar" +version = "0.9.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "b40f1bfe5acdab44bc63e6699c28b74f75ec43afb59f3eda01e145aff86a25fa" +dependencies = [ + "heapless 0.7.17", + "num-traits", + "serde", + "smallvec", +] + +[[package]] +name = "rstar" +version = "0.10.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "1f39465655a1e3d8ae79c6d9e007f4953bfc5d55297602df9dc38f9ae9f1359a" +dependencies = [ + "heapless 0.7.17", + "num-traits", + "serde", + "smallvec", +] + +[[package]] +name = "rstar" +version = "0.11.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "73111312eb7a2287d229f06c00ff35b51ddee180f017ab6dec1f69d62ac098d6" +dependencies = [ + "heapless 0.7.17", + "num-traits", + "serde", + "smallvec", +] + +[[package]] +name = "rstar" +version = "0.12.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "421400d13ccfd26dfa5858199c30a5d76f9c54e0dba7575273025b43c5175dbb" +dependencies = [ + "heapless 0.8.0", + "num-traits", + "serde", + "smallvec", +] + +[[package]] +name = "rstest" +version = "0.26.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "f5a3193c063baaa2a95a33f03035c8a72b83d97a54916055ba22d35ed3839d49" +dependencies = [ + "futures-timer", + "futures-util", + "rstest_macros", +] + +[[package]] +name = "rstest_macros" +version = "0.26.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "9c845311f0ff7951c5506121a9ad75aec44d083c31583b2ea5a30bcb0b0abba0" +dependencies = [ + "cfg-if", + "glob", + "proc-macro-crate", + "proc-macro2", + "quote", + "regex", + "relative-path", + "rustc_version", + "syn 2.0.117", + "unicode-ident", +] + +[[package]] +name = "rust_decimal" +version = "1.41.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "2ce901f9a19d251159075a4c37af514c3b8ef99c22e02dd8c19161cf397ee94a" +dependencies = [ + "arrayvec", + "borsh", + "bytes", + "num-traits", + "rand 0.8.6", + "rkyv", + "serde", + "serde_json", + "wasm-bindgen", +] + [[package]] name = "rustc-hash" -version = "2.1.1" +version = "2.1.2" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "357703d41365b4b27c590e3ed91eabb1b663f07c4c084095e60cbed4362dff0d" +checksum = "94300abf3f1ae2e2b8ffb7b58043de3d399c73fa6f4b73826402a5c457614dbe" [[package]] name = "rustc_version" @@ -4674,11 +5489,11 @@ dependencies = [ [[package]] name = "rustix" -version = "1.1.3" +version = "1.1.4" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "146c9e247ccc180c1f61615433868c99f3de3ae256a30a43b49f67c2d9171f34" +checksum = "b6fe4565b9518b83ef4f91bb47ce29620ca828bd32cb7e408f0062e9930ba190" dependencies = [ - "bitflags 2.10.0", + "bitflags 2.11.1", "errno", "libc", "linux-raw-sys", @@ -4699,16 +5514,16 @@ dependencies = [ [[package]] name = "rustls" -version = "0.23.37" +version = "0.23.40" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "758025cb5fccfd3bc2fd74708fd4682be41d99e5dff73c377c0646c6012c73a4" +checksum = "ef86cd5876211988985292b91c96a8f2d298df24e75989a43a3c73f2d4d8168b" dependencies = [ "aws-lc-rs", "log", "once_cell", "ring", "rustls-pki-types", - "rustls-webpki 0.103.8", + "rustls-webpki 0.103.13", "subtle", "zeroize", ] @@ -4727,9 +5542,9 @@ dependencies = [ [[package]] name = "rustls-pki-types" -version = "1.13.2" +version = "1.14.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "21e6f2ab2928ca4291b86736a8bd920a277a399bba1589409d72154ff87c1282" +checksum = "30a7197ae7eb376e574fe940d068c30fe0462554a3ddbe4eca7838e049c937a9" dependencies = [ "web-time", "zeroize", @@ -4737,19 +5552,19 @@ dependencies = [ [[package]] name = "rustls-platform-verifier" -version = "0.6.2" +version = "0.7.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "1d99feebc72bae7ab76ba994bb5e121b8d83d910ca40b36e0921f53becc41784" +checksum = "26d1e2536ce4f35f4846aa13bff16bd0ff40157cdb14cc056c7b14ba41233ba0" dependencies = [ "core-foundation 0.10.1", "core-foundation-sys", "jni", "log", "once_cell", - "rustls 0.23.37", + "rustls 0.23.40", "rustls-native-certs", "rustls-platform-verifier-android", - "rustls-webpki 0.103.8", + "rustls-webpki 0.103.13", "security-framework", "security-framework-sys", "webpki-root-certs", @@ -4774,9 +5589,9 @@ dependencies = [ [[package]] name = "rustls-webpki" -version = "0.103.8" +version = "0.103.13" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "2ffdfa2f5286e2247234e03f680868ac2815974dc39e00ea15adc445d0aafe52" +checksum = "61c429a8649f110dddef65e2a5ad240f747e85f7758a6bccc7e5777bd33f756e" dependencies = [ "aws-lc-rs", "ring", @@ -4792,9 +5607,9 @@ checksum = "b39cdef0fa800fc44525c84ccb54a029961a8215f9619753635a9c0d2538d46d" [[package]] name = "ryu" -version = "1.0.22" +version = "1.0.23" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "a50f4cf475b65d88e057964e0e9bb1f0aa9bbb2036dc65c64596b42932536984" +checksum = "9774ba4a74de5f7b1c1451ed6cd5285a32eddb5cccb8cc655a4e50009e06477f" [[package]] name = "same-file" @@ -4807,9 +5622,9 @@ dependencies = [ [[package]] name = "schannel" -version = "0.1.28" +version = "0.1.29" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "891d81b926048e76efe18581bf793546b4c0eaf8448d72be8de2bbee5fd166e1" +checksum = "91c1b7e4904c873ef0710c1f407dde2e6287de2bebc1bbbf7d430bb7cbffd939" dependencies = [ "windows-sys 0.61.2", ] @@ -4828,16 +5643,30 @@ dependencies = [ [[package]] name = "schemars" -version = "1.2.0" +version = "1.2.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "54e910108742c57a770f492731f99be216a52fadd361b06c8fb59d74ccc267d2" +checksum = "a2b42f36aa1cd011945615b92222f6bf73c599a102a300334cd7f8dbeec726cc" dependencies = [ "dyn-clone", + "indexmap 2.14.0", "ref-cast", + "schemars_derive", "serde", "serde_json", ] +[[package]] +name = "schemars_derive" +version = "1.2.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "7d115b50f4aaeea07e79c1912f645c7513d81715d0420f8bc77a18c6260b307f" +dependencies = [ + "proc-macro2", + "quote", + "serde_derive_internals", + "syn 2.0.117", +] + [[package]] name = "scopeguard" version = "1.2.0" @@ -4854,6 +5683,12 @@ dependencies = [ "untrusted 0.9.0", ] +[[package]] +name = "seahash" +version = "4.1.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "1c107b6f4780854c8b126e228ea8869f4d7b71260f962fefb57b996b8959ba6b" + [[package]] name = "sec1" version = "0.7.3" @@ -4862,7 +5697,7 @@ checksum = "d3e97a565f76233a6003f9f5c54be1d9c5bdfa3eccfb189469f11ec4901c47dc" dependencies = [ "base16ct", "der", - "generic-array", + "generic-array 0.14.7", "pkcs8", "subtle", "zeroize", @@ -4870,11 +5705,11 @@ dependencies = [ [[package]] name = "security-framework" -version = "3.5.1" +version = "3.7.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "b3297343eaf830f66ede390ea39da1d462b6b0c1b000f420d0a83f898bbbe6ef" +checksum = "b7f4bc775c73d9a02cde8bf7b2ec4c9d12743edf609006c7facc23998404cd1d" dependencies = [ - "bitflags 2.10.0", + "bitflags 2.11.1", "core-foundation 0.10.1", "core-foundation-sys", "libc", @@ -4883,19 +5718,29 @@ dependencies = [ [[package]] name = "security-framework-sys" -version = "2.15.0" +version = "2.17.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "cc1f0cbffaac4852523ce30d8bd3c5cdc873501d96ff467ca09b6767bb8cd5c0" +checksum = "6ce2691df843ecc5d231c0b14ece2acc3efb62c0a398c7e1d875f3983ce020e3" dependencies = [ "core-foundation-sys", "libc", ] +[[package]] +name = "seize" +version = "0.5.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "5b55fb86dfd3a2f5f76ea78310a88f96c4ea21a3031f8d212443d56123fd0521" +dependencies = [ + "libc", + "windows-sys 0.61.2", +] + [[package]] name = "semver" -version = "1.0.27" +version = "1.0.28" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "d767eb0aabc880b29956c35734170f26ed551a859dbd361d140cdbeca61ab1e2" +checksum = "8a7852d02fc848982e0c167ef163aaff9cd91dc640ba85e263cb1ce46fae51cd" [[package]] name = "serde" @@ -4954,7 +5799,18 @@ checksum = "d540f220d3187173da220f885ab66608367b6574e925011a9353e4badda91d79" dependencies = [ "proc-macro2", "quote", - "syn", + "syn 2.0.117", +] + +[[package]] +name = "serde_derive_internals" +version = "0.29.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "18d26a20a969b9e3fdf2fc2d9f21eda6c40e2de84c9408bb5d3b05d499aae711" +dependencies = [ + "proc-macro2", + "quote", + "syn 2.0.117", ] [[package]] @@ -4963,7 +5819,7 @@ version = "1.0.149" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "83fc039473c5595ace860d8c4fafa220ff474b3fc6bfdb4293327f1a37e94d86" dependencies = [ - "indexmap 2.13.0", + "indexmap 2.14.0", "itoa", "memchr", "serde", @@ -4993,9 +5849,9 @@ dependencies = [ [[package]] name = "serde_qs" -version = "1.1.0" +version = "1.1.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "3c742cd44662647326f86b514eadcc227fff4ce684dbbdaf1943f758d5ea058c" +checksum = "c2316d01592c3382277c5062105510e35e0a6bfb2851e30028485f7af8cf1240" dependencies = [ "itoa", "percent-encoding", @@ -5011,7 +5867,7 @@ checksum = "175ee3e80ae9982737ca543e96133087cbd9a485eecc3bc4de9c1a37b47ea59c" dependencies = [ "proc-macro2", "quote", - "syn", + "syn 2.0.117", ] [[package]] @@ -5037,17 +5893,17 @@ dependencies = [ [[package]] name = "serde_with" -version = "3.16.1" +version = "3.19.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "4fa237f2807440d238e0364a218270b98f767a00d3dada77b1c53ae88940e2e7" +checksum = "f05839ce67618e14a09b286535c0d9c94e85ef25469b0e13cb4f844e5593eb19" dependencies = [ "base64 0.22.1", "chrono", "hex", "indexmap 1.9.3", - "indexmap 2.13.0", + "indexmap 2.14.0", "schemars 0.9.0", - "schemars 1.2.0", + "schemars 1.2.1", "serde_core", "serde_json", "serde_with_macros", @@ -5056,14 +5912,14 @@ dependencies = [ [[package]] name = "serde_with_macros" -version = "3.16.1" +version = "3.19.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "52a8e3ca0ca629121f70ab50f95249e5a6f925cc0f6ffe8256c45b728875706c" +checksum = "cf2ebbe86054f9b45bc3881e865683ccfaccce97b9b4cb53f3039d67f355a334" dependencies = [ - "darling 0.21.3", + "darling 0.23.0", "proc-macro2", "quote", - "syn", + "syn 2.0.117", ] [[package]] @@ -5072,7 +5928,7 @@ version = "0.10.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "7b4db627b98b36d4203a7b458cf3573730f2bb591b28871d916dfa9efabfd41f" dependencies = [ - "indexmap 2.13.0", + "indexmap 2.14.0", "itoa", "ryu", "serde", @@ -5081,9 +5937,9 @@ dependencies = [ [[package]] name = "serial2" -version = "0.2.33" +version = "0.2.36" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "8cc76fa68e25e771492ca1e3c53d447ef0be3093e05cd3b47f4b712ba10c6f3c" +checksum = "fcdbc46aa3882ec3d48ec2b5abcb4f0d863a13d7599265f3faa6d851f23c12f3" dependencies = [ "cfg-if", "libc", @@ -5098,7 +5954,18 @@ checksum = "e3bf829a2d51ab4a5ddf1352d8470c140cadc8301b2ae1789db023f01cedd6ba" dependencies = [ "cfg-if", "cpufeatures 0.2.17", - "digest", + "digest 0.10.7", +] + +[[package]] +name = "sha1" +version = "0.11.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "aacc4cc499359472b4abe1bf11d0b12e688af9a805fa5e3016f9a386dc2d0214" +dependencies = [ + "cfg-if", + "cpufeatures 0.3.0", + "digest 0.11.3", ] [[package]] @@ -5109,7 +5976,18 @@ checksum = "a7507d819769d01a365ab707794a4084392c824f54a7a6a7862f8c3d0892b283" dependencies = [ "cfg-if", "cpufeatures 0.2.17", - "digest", + "digest 0.10.7", +] + +[[package]] +name = "sha2" +version = "0.11.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "446ba717509524cb3f22f17ecc096f10f4822d76ab5c0b9822c5f9c284e825f4" +dependencies = [ + "cfg-if", + "cpufeatures 0.3.0", + "digest 0.11.3", ] [[package]] @@ -5149,6 +6027,12 @@ version = "1.3.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "0fda2ff0d084019ba4d7c6f371c95d8fd75ce3524c3cb8fb653a3023f6323e64" +[[package]] +name = "sif-itree" +version = "0.4.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "d7f45b8998ced5134fb1d75732c77842a3e888f19c1ff98481822e8fbfbf930b" + [[package]] name = "signal-hook" version = "0.3.18" @@ -5186,21 +6070,37 @@ version = "2.2.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "77549399552de45a898a580c1b41d445bf730df867cc44e6c0233bbc4b8329de" dependencies = [ - "digest", + "digest 0.10.7", "rand_core 0.6.4", ] [[package]] -name = "simd-adler32" -version = "0.3.8" +name = "simd-adler32" +version = "0.3.9" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "703d5c7ef118737c72f1af64ad2f6f8c5e1921f818cdcb97b8fe6fc69bf66214" + +[[package]] +name = "simd_cesu8" +version = "1.1.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "94f90157bb87cddf702797c5dadfa0be7d266cdf49e22da2fcaa32eff75b2c33" +dependencies = [ + "rustc_version", + "simdutf8", +] + +[[package]] +name = "simdutf8" +version = "0.1.5" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "e320a6c5ad31d271ad523dcf3ad13e2767ad8b1cb8f047f75a8aeaf8da139da2" +checksum = "e3a9fe34e3e7a50316060351f37187a3f546bce95496156754b601a5fa71b76e" [[package]] name = "simple_asn1" -version = "0.6.3" +version = "0.6.4" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "297f631f50729c8c99b84667867963997ec0b50f32b2a7dbcab828ef0541e8bb" +checksum = "0d585997b0ac10be3c5ee635f1bab02d512760d14b7c468801ac8a01d9ae5f1d" dependencies = [ "num-bigint", "num-traits", @@ -5210,15 +6110,15 @@ dependencies = [ [[package]] name = "siphasher" -version = "1.0.1" +version = "1.0.3" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "56199f7ddabf13fe5074ce809e7d3f42b42ae711800501b5b16ea82ad029c39d" +checksum = "8ee5873ec9cce0195efcb7a4e9507a04cd49aec9c83d0389df45b1ef7ba2e649" [[package]] name = "slab" -version = "0.4.11" +version = "0.4.12" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "7a2ae44ef20feb57a68b23d846850f861394c2e02dc425a50098ae8c90267589" +checksum = "0c790de23124f9ab44544d7ac05d60440adc586479ce501c1d6d7da3cd8c9cf5" [[package]] name = "slack_client_rs" @@ -5255,7 +6155,7 @@ dependencies = [ "getrandom 0.3.4", "ring", "rustc_version", - "sha2", + "sha2 0.10.9", "subtle", ] @@ -5271,12 +6171,24 @@ dependencies = [ [[package]] name = "socket2" -version = "0.6.1" +version = "0.6.3" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "17129e116933cf371d018bb80ae557e889637989d8638274fb25622827b03881" +checksum = "3a766e1110788c36f4fa1c2b71b387a7815aa65f88ce0229841826633d93723e" dependencies = [ "libc", - "windows-sys 0.60.2", + "windows-sys 0.61.2", +] + +[[package]] +name = "spade" +version = "2.15.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "9699399fd9349b00b184f5635b074f9ec93afffef30c853f8c875b32c0f8c7fa" +dependencies = [ + "hashbrown 0.16.1", + "num-traits", + "robust", + "smallvec", ] [[package]] @@ -5284,6 +6196,9 @@ name = "spin" version = "0.9.8" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "6980e8d7511241f8acf4aebddbb1ff938df5eebe98691418c4468d0b72a96a67" +dependencies = [ + "lock_api", +] [[package]] name = "spki" @@ -5345,7 +6260,7 @@ dependencies = [ "heck", "proc-macro2", "quote", - "syn", + "syn 2.0.117", ] [[package]] @@ -5357,7 +6272,7 @@ dependencies = [ "heck", "proc-macro2", "quote", - "syn", + "syn 2.0.117", ] [[package]] @@ -5366,6 +6281,62 @@ version = "2.6.1" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "13c2bddecc57b384dee18652358fb23172facb8a2c51ccc10d74c157bdea3292" +[[package]] +name = "surrealdb-protocol" +version = "0.8.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "eb37698e0493bcfac3229ecb6ec6894a3ad705a3a2087b1562eeb881b3db19d4" +dependencies = [ + "anyhow", + "async-trait", + "bytes", + "chrono", + "flatbuffers", + "geo", + "rust_decimal", + "semver", + "serde", + "serde_json", + "uuid", +] + +[[package]] +name = "surrealdb-types" +version = "3.0.5" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "c79e71d035367b933cf528c09b7ed186bc17dea58c66a1bca84d22f9abf167db" +dependencies = [ + "anyhow", + "bytes", + "chrono", + "flatbuffers", + "geo", + "hex", + "http 1.4.0", + "papaya", + "rand 0.8.6", + "regex", + "rstest", + "rust_decimal", + "serde", + "serde_json", + "surrealdb-protocol", + "surrealdb-types-derive", + "ulid", + "uuid", +] + +[[package]] +name = "surrealdb-types-derive" +version = "3.0.5" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "a76abdbfc597e062daae5269251e18a84553f9090cfff423591f57c8c6765aa8" +dependencies = [ + "proc-macro2", + "quote", + "syn 2.0.117", +] + [[package]] name = "svi" version = "1.2.0" @@ -5375,6 +6346,17 @@ dependencies = [ "thiserror 2.0.18", ] +[[package]] +name = "syn" +version = "1.0.109" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "72b64191b275b66ffe2469e8af2c1cfe3bafa67b529ead792a6d0160888b4237" +dependencies = [ + "proc-macro2", + "quote", + "unicode-ident", +] + [[package]] name = "syn" version = "2.0.117" @@ -5403,7 +6385,7 @@ checksum = "728a70f3dbaf5bab7f0c4b1ac8d7ae5ea60a4b5549c8a5914361c99147a709d2" dependencies = [ "proc-macro2", "quote", - "syn", + "syn 2.0.117", ] [[package]] @@ -5422,11 +6404,11 @@ dependencies = [ [[package]] name = "system-configuration" -version = "0.6.1" +version = "0.7.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "3c879d448e9d986b661742763247d3693ed13609438cf3d006f51f5368a5ba6b" +checksum = "a13f3d0daba03132c0aa9767f98351b3488edc2c100cda2d2ec2b04f3d8d3c8b" dependencies = [ - "bitflags 2.10.0", + "bitflags 2.11.1", "core-foundation 0.9.4", "system-configuration-sys", ] @@ -5485,7 +6467,7 @@ checksum = "4fee6c4efc90059e10f81e6d42c60a18f76588c3d74cb83a0b242a2b6c7504c1" dependencies = [ "proc-macro2", "quote", - "syn", + "syn 2.0.117", ] [[package]] @@ -5496,7 +6478,7 @@ checksum = "ebc4ee7f67670e9b64d05fa4253e753e016c6c95ff35b89b7941d6b856dec1d5" dependencies = [ "proc-macro2", "quote", - "syn", + "syn 2.0.117", ] [[package]] @@ -5510,30 +6492,30 @@ dependencies = [ [[package]] name = "time" -version = "0.3.44" +version = "0.3.47" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "91e7d9e3bb61134e77bde20dd4825b97c010155709965fedf0f49bb138e52a9d" +checksum = "743bd48c283afc0388f9b8827b976905fb217ad9e647fae3a379a9283c4def2c" dependencies = [ "deranged", "itoa", "num-conv", "powerfmt", - "serde", + "serde_core", "time-core", "time-macros", ] [[package]] name = "time-core" -version = "0.1.6" +version = "0.1.8" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "40868e7c1d2f0b8d73e4a8c7f0ff63af4f6d19be117e90bd73eb1d62cf831c6b" +checksum = "7694e1cfe791f8d31026952abf09c69ca6f6fa4e1a1229e18988f06a04a12dca" [[package]] name = "time-macros" -version = "0.2.24" +version = "0.2.27" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "30cfb0125f12d9c277f35663a0a33f8c30190f4e4574868a330595412d34ebf3" +checksum = "2e70e4c5a0e0a8a4823ad65dfe1a6930e4f4d756dcd9dd7939022b5e8c501215" dependencies = [ "num-conv", "time-core", @@ -5550,9 +6532,9 @@ dependencies = [ [[package]] name = "tinystr" -version = "0.8.2" +version = "0.8.3" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "42d3e9c45c09de15d06dd8acf5f4e0e399e85927b7f00711024eb7ae10fa4869" +checksum = "c8323304221c2a851516f22236c5722a72eaa19749016521d6dff0824447d96d" dependencies = [ "displaydoc", "zerovec", @@ -5560,9 +6542,9 @@ dependencies = [ [[package]] name = "tinyvec" -version = "1.10.0" +version = "1.11.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "bfa5fdc3bce6191a1dbc8c02d5c8bffcf557bafa17c124c5264a458f1b0613fa" +checksum = "3e61e67053d25a4e82c844e8424039d9745781b3fc4f32b8d55ed50f5f667ef3" dependencies = [ "tinyvec_macros", ] @@ -5575,9 +6557,9 @@ checksum = "1f3ccbac311fea05f86f61904b462b55fb3df8837a366dfc601a0161d0532f20" [[package]] name = "tokio" -version = "1.50.0" +version = "1.52.2" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "27ad5e34374e03cfffefc301becb44e9dc3c17584f414349ebe29ed26661822d" +checksum = "110a78583f19d5cdb2c5ccf321d1290344e71313c6c37d43520d386027d18386" dependencies = [ "bytes", "libc", @@ -5585,20 +6567,20 @@ dependencies = [ "parking_lot", "pin-project-lite", "signal-hook-registry", - "socket2 0.6.1", + "socket2 0.6.3", "tokio-macros", "windows-sys 0.61.2", ] [[package]] name = "tokio-macros" -version = "2.6.0" +version = "2.7.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "af407857209536a95c8e56f8231ef2c2e2aff839b22e07a1ffcbc617e9db9fa5" +checksum = "385a6cb71ab9ab790c5fe8d67f1645e6c450a7ce006a33de03daa956cf70a496" dependencies = [ "proc-macro2", "quote", - "syn", + "syn 2.0.117", ] [[package]] @@ -5617,7 +6599,7 @@ version = "0.26.4" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "1729aa945f29d91ba541258c8df89027d5792d85a8841fb65e8bf0f4ede4ef61" dependencies = [ - "rustls 0.23.37", + "rustls 0.23.40", "tokio", ] @@ -5633,18 +6615,6 @@ dependencies = [ "tokio-util", ] -[[package]] -name = "tokio-tungstenite" -version = "0.28.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "d25a406cddcc431a75d3d9afc6a7c0f7428d4891dd973e4d54c56b46127bf857" -dependencies = [ - "futures-util", - "log", - "tokio", - "tungstenite 0.28.0", -] - [[package]] name = "tokio-tungstenite" version = "0.29.0" @@ -5653,12 +6623,12 @@ checksum = "8f72a05e828585856dacd553fba484c242c46e391fb0e58917c942ee9202915c" dependencies = [ "futures-util", "log", - "rustls 0.23.37", + "rustls 0.23.40", "rustls-native-certs", "rustls-pki-types", "tokio", "tokio-rustls 0.26.4", - "tungstenite 0.29.0", + "tungstenite", ] [[package]] @@ -5681,7 +6651,7 @@ version = "1.1.2+spec-1.1.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "81f3d15e84cbcd896376e6730314d59fb5a87f31e4b038454184435cd57defee" dependencies = [ - "indexmap 2.13.0", + "indexmap 2.14.0", "serde_core", "serde_spanned", "toml_datetime", @@ -5699,6 +6669,18 @@ dependencies = [ "serde_core", ] +[[package]] +name = "toml_edit" +version = "0.25.11+spec-1.1.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "0b59c4d22ed448339746c59b905d24568fcbb3ab65a500494f7b8c3e97739f2b" +dependencies = [ + "indexmap 2.14.0", + "toml_datetime", + "toml_parser", + "winnow", +] + [[package]] name = "toml_parser" version = "1.1.2+spec-1.1.0" @@ -5728,9 +6710,9 @@ checksum = "756daf9b1013ebe47a8776667b466417e2d4c5679d441c26230efd9ef78692db" [[package]] name = "tonic" -version = "0.14.2" +version = "0.14.5" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "eb7613188ce9f7df5bfe185db26c5814347d110db17920415cf2fbcad85e7203" +checksum = "fec7c61a0695dc1887c1b53952990f3ad2e3a31453e1f49f10e75424943a93ec" dependencies = [ "async-trait", "base64 0.22.1", @@ -5738,7 +6720,7 @@ dependencies = [ "http 1.4.0", "http-body 1.0.1", "http-body-util", - "hyper 1.8.1", + "hyper 1.9.0", "hyper-timeout", "hyper-util", "percent-encoding", @@ -5756,9 +6738,9 @@ dependencies = [ [[package]] name = "tonic-prost" -version = "0.14.2" +version = "0.14.5" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "66bd50ad6ce1252d87ef024b3d64fe4c3cf54a86fb9ef4c631fdd0ded7aeaa67" +checksum = "a55376a0bbaa4975a3f10d009ad763d8f4108f067c7c2e74f3001fb49778d309" dependencies = [ "bytes", "prost", @@ -5773,24 +6755,24 @@ checksum = "a2b36a9dd327e9f401320a2cb4572cc76ff43742bcfc3291f871691050f140ba" dependencies = [ "base32", "constant_time_eq", - "hmac", + "hmac 0.12.1", "qrcodegen-image", "serde", - "sha1", - "sha2", + "sha1 0.10.6", + "sha2 0.10.9", "url", "urlencoding", ] [[package]] name = "tower" -version = "0.5.2" +version = "0.5.3" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "d039ad9159c98b70ecfd540b2573b97f7f52c3e8d9f8ad57a24b916a536975f9" +checksum = "ebe5ef63511595f1344e2d5cfa636d973292adc0eec1f0ad45fae9f0851ab1d4" dependencies = [ "futures-core", "futures-util", - "indexmap 2.13.0", + "indexmap 2.14.0", "pin-project-lite", "slab", "sync_wrapper", @@ -5819,11 +6801,11 @@ dependencies = [ [[package]] name = "tower-http" -version = "0.6.8" +version = "0.6.10" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "d4e6559d53cc268e5031cd8429d05415bc4cb4aefc4aa5d6cc35fbf5b924a1f8" +checksum = "68d6fdd9f81c2819c9a8b0e0cd91660e7746a8e6ea2ba7c6b2b057985f6bcb51" dependencies = [ - "bitflags 2.10.0", + "bitflags 2.11.1", "bytes", "futures-core", "futures-util", @@ -5832,7 +6814,6 @@ dependencies = [ "http-body-util", "http-range-header", "httpdate", - "iri-string", "mime", "mime_guess", "percent-encoding", @@ -5842,7 +6823,7 @@ dependencies = [ "tower", "tower-layer", "tower-service", - "tracing", + "url", ] [[package]] @@ -5887,7 +6868,7 @@ dependencies = [ "futures", "http 1.4.0", "parking_lot", - "rand 0.9.2", + "rand 0.9.4", "serde", "serde_json", "thiserror 2.0.18", @@ -5928,7 +6909,7 @@ checksum = "7490cfa5ec963746568740651ac6781f701c9c5ea257c58e057f3ba8cf69e8da" dependencies = [ "proc-macro2", "quote", - "syn", + "syn 2.0.117", ] [[package]] @@ -5997,7 +6978,7 @@ dependencies = [ [[package]] name = "transport" -version = "2.1.2" +version = "2.2.0" dependencies = [ "anyhow", "axum", @@ -6009,13 +6990,13 @@ dependencies = [ "mogh_pki", "periphery_client", "pin-project-lite", - "rand 0.10.0", - "rustls 0.23.37", + "rand 0.10.1", + "rustls 0.23.40", "serde", - "sha1", - "sha2", + "sha1 0.11.0", + "sha2 0.11.0", "tokio", - "tokio-tungstenite 0.29.0", + "tokio-tungstenite", "tokio-util", "tracing", "url", @@ -6028,23 +7009,6 @@ version = "0.2.5" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "e421abadd41a4225275504ea4d6566923418b7f05506fbc9c0fe86ba7396114b" -[[package]] -name = "tungstenite" -version = "0.28.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "8628dcc84e5a09eb3d8423d6cb682965dea9133204e8fb3efee74c2a0c259442" -dependencies = [ - "bytes", - "data-encoding", - "http 1.4.0", - "httparse", - "log", - "rand 0.9.2", - "sha1", - "thiserror 2.0.18", - "utf-8", -] - [[package]] name = "tungstenite" version = "0.29.0" @@ -6056,10 +7020,10 @@ dependencies = [ "http 1.4.0", "httparse", "log", - "rand 0.9.2", - "rustls 0.23.37", + "rand 0.9.4", + "rustls 0.23.40", "rustls-pki-types", - "sha1", + "sha1 0.10.6", "thiserror 2.0.18", ] @@ -6080,14 +7044,14 @@ checksum = "0e48cea23f68d1f78eb7bc092881b6bb88d3d6b5b7e6234f6f9c911da1ffb221" dependencies = [ "proc-macro2", "quote", - "syn", + "syn 2.0.117", ] [[package]] name = "typenum" -version = "1.19.0" +version = "1.20.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "562d481066bde0658276a35467c4af00bdc6ee726305698a55b86e61d7ad82bb" +checksum = "40ce102ab67701b8526c123c1bab5cbe42d7040ccfd0f64af1a385808d2f43de" [[package]] name = "typeshare" @@ -6108,14 +7072,24 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "621963e302416b389a1ec177397e9e62de849a78bd8205d428608553def75350" dependencies = [ "quote", - "syn", + "syn 2.0.117", +] + +[[package]] +name = "ulid" +version = "1.2.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "470dbf6591da1b39d43c14523b2b469c86879a53e8b758c8e090a470fe7b1fbe" +dependencies = [ + "rand 0.9.4", + "web-time", ] [[package]] name = "unicase" -version = "2.8.1" +version = "2.9.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "75b844d17643ee918803943289730bec8aac480150456169e647ed0b576ba539" +checksum = "dbc4bc3a9f746d862c45cb89d705aa10f187bb96c76001afab07a0d35ce60142" [[package]] name = "unicode-bidi" @@ -6125,9 +7099,9 @@ checksum = "5c1cb5db39152898a79168971543b1cb5020dff7fe43c8dc468b0885f5e29df5" [[package]] name = "unicode-ident" -version = "1.0.22" +version = "1.0.24" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "9312f7c4f6ff9069b165498234ce8be658059c6728633667c526e27dc2cf1df5" +checksum = "e6e4313cd5fcd3dad5cafa179702e2b244f760991f45397d14d4ebf38247da75" [[package]] name = "unicode-normalization" @@ -6146,9 +7120,9 @@ checksum = "7df058c713841ad818f1dc5d3fd88063241cc61f49f5fbea4b951e8cf5a8d71d" [[package]] name = "unicode-segmentation" -version = "1.12.0" +version = "1.13.2" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "f6ccf251212114b54433ec949fd6a7841275f9ada20dddd2f29e9ceea4501493" +checksum = "9629274872b2bfaf8d66f5f15725007f635594914870f65218920345aa11aa8c" [[package]] name = "unicode-width" @@ -6168,7 +7142,7 @@ version = "0.5.1" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "fc1de2c688dc15305988b563c3854064043356019f97a4b46276fe734c4f07ea" dependencies = [ - "crypto-common", + "crypto-common 0.1.7", "subtle", ] @@ -6209,12 +7183,6 @@ version = "2.1.3" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "daf8dba3b7eb870caf1ddeed7bc9d2a049f3cfdfae7cb521b087cc33ae4c49da" -[[package]] -name = "utf-8" -version = "0.7.6" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "09cc8ee72d2a9becf2f2febe0205bbed8fc6615b7cb429ad062dc7b7ddd036a9" - [[package]] name = "utf8_iter" version = "1.0.4" @@ -6229,11 +7197,11 @@ checksum = "06abde3611657adf66d383f00b093d7faecc7fa57071cce2578660c9f1010821" [[package]] name = "utoipa" -version = "5.4.0" +version = "5.5.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "2fcc29c80c21c31608227e0912b2d7fddba57ad76b606890627ba8ee7964e993" +checksum = "8bde15df68e80b16c7d16b9616e80770ad158988daa56a27dccd1e55558b0160" dependencies = [ - "indexmap 2.13.0", + "indexmap 2.14.0", "serde", "serde_json", "utoipa-gen", @@ -6241,13 +7209,13 @@ dependencies = [ [[package]] name = "utoipa-gen" -version = "5.4.0" +version = "5.5.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "6d79d08d92ab8af4c5e8a6da20c47ae3f61a0f1dabc1997cdf2d082b757ca08b" +checksum = "6ba0b99ee52df3028635d93840c797102da61f8a7bb3cf751032455895b52ef8" dependencies = [ "proc-macro2", "quote", - "syn", + "syn 2.0.117", ] [[package]] @@ -6264,13 +7232,13 @@ dependencies = [ [[package]] name = "uuid" -version = "1.23.0" +version = "1.23.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "5ac8b6f42ead25368cf5b098aeb3dc8a1a2c05a3eee8a9a1a68c640edbfc79d9" +checksum = "ddd74a9687298c6858e9b88ec8935ec45d22e8fd5e6394fa1bd4e99a87789c76" dependencies = [ - "getrandom 0.4.1", + "getrandom 0.4.2", "js-sys", - "rand 0.10.0", + "rand 0.10.1", "serde_core", "wasm-bindgen", ] @@ -6326,11 +7294,11 @@ checksum = "ccf3ec651a847eb01de73ccad15eb7d99f80485de043efb2f370cd654f4ea44b" [[package]] name = "wasip2" -version = "1.0.1+wasi-0.2.4" +version = "1.0.3+wasi-0.2.9" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "0562428422c63773dad2c345a1882263bbf4d65cf3f42e90921f787ef5ad58e7" +checksum = "20064672db26d7cdc89c7798c48a0fdfac8213434a1186e5ef29fd560ae223d6" dependencies = [ - "wit-bindgen 0.46.0", + "wit-bindgen 0.57.1", ] [[package]] @@ -6344,36 +7312,33 @@ dependencies = [ [[package]] name = "wasm-bindgen" -version = "0.2.113" +version = "0.2.120" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "60722a937f594b7fde9adb894d7c092fc1bb6612897c46368d18e7a20208eff2" +checksum = "df52b6d9b87e0c74c9edfa1eb2d9bf85e5d63515474513aa50fa181b3c4f5db1" dependencies = [ "cfg-if", "once_cell", "rustversion", + "serde", "wasm-bindgen-macro", "wasm-bindgen-shared", ] [[package]] name = "wasm-bindgen-futures" -version = "0.4.63" +version = "0.4.70" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "8a89f4650b770e4521aa6573724e2aed4704372151bd0de9d16a3bbabb87441a" +checksum = "af934872acec734c2d80e6617bbb5ff4f12b052dd8e6332b0817bce889516084" dependencies = [ - "cfg-if", - "futures-util", "js-sys", - "once_cell", "wasm-bindgen", - "web-sys", ] [[package]] name = "wasm-bindgen-macro" -version = "0.2.113" +version = "0.2.120" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "0fac8c6395094b6b91c4af293f4c79371c163f9a6f56184d2c9a85f5a95f3950" +checksum = "78b1041f495fb322e64aca85f5756b2172e35cd459376e67f2a6c9dffcedb103" dependencies = [ "quote", "wasm-bindgen-macro-support", @@ -6381,22 +7346,22 @@ dependencies = [ [[package]] name = "wasm-bindgen-macro-support" -version = "0.2.113" +version = "0.2.120" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "ab3fabce6159dc20728033842636887e4877688ae94382766e00b180abac9d60" +checksum = "9dcd0ff20416988a18ac686d4d4d0f6aae9ebf08a389ff5d29012b05af2a1b41" dependencies = [ "bumpalo", "proc-macro2", "quote", - "syn", + "syn 2.0.117", "wasm-bindgen-shared", ] [[package]] name = "wasm-bindgen-shared" -version = "0.2.113" +version = "0.2.120" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "de0e091bdb824da87dc01d967388880d017a0a9bc4f3bdc0d86ee9f9336e3bb5" +checksum = "49757b3c82ebf16c57d69365a142940b384176c24df52a087fb748e2085359ea" dependencies = [ "unicode-ident", ] @@ -6418,7 +7383,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "bb0e353e6a2fbdc176932bbaab493762eb1255a7900fe0fea1a2f96c296cc909" dependencies = [ "anyhow", - "indexmap 2.13.0", + "indexmap 2.14.0", "wasm-encoder", "wasmparser", ] @@ -6442,17 +7407,17 @@ version = "0.244.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "47b807c72e1bac69382b3a6fb3dbe8ea4c0ed87ff5629b8685ae6b9a611028fe" dependencies = [ - "bitflags 2.10.0", + "bitflags 2.11.1", "hashbrown 0.15.5", - "indexmap 2.13.0", + "indexmap 2.14.0", "semver", ] [[package]] name = "web-sys" -version = "0.3.90" +version = "0.3.97" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "705eceb4ce901230f8625bd1d665128056ccbe4b7408faa625eec1ba80f59a97" +checksum = "2eadbac71025cd7b0834f20d1fe8472e8495821b4e9801eb0a60bd1f19827602" dependencies = [ "js-sys", "wasm-bindgen", @@ -6470,9 +7435,9 @@ dependencies = [ [[package]] name = "webauthn-attestation-ca" -version = "0.5.4" +version = "0.5.5" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "fafcf13f7dc1fb292ed4aea22cdd3757c285d7559e9748950ee390249da4da6b" +checksum = "6475c0bbd1a3f04afaa3e98880408c5be61680c5e6bd3c6f8c250990d5d3e18e" dependencies = [ "base64urlsafedata", "openssl", @@ -6484,9 +7449,9 @@ dependencies = [ [[package]] name = "webauthn-rs" -version = "0.5.4" +version = "0.5.5" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "1b24d082d3360258fefb6ffe56123beef7d6868c765c779f97b7a2fcf06727f8" +checksum = "6c548915e0e92ee946bbf2aecf01ea21bef53d974b0793cc6732ba81a03fc422" dependencies = [ "base64urlsafedata", "serde", @@ -6498,9 +7463,9 @@ dependencies = [ [[package]] name = "webauthn-rs-core" -version = "0.5.4" +version = "0.5.5" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "15784340a24c170ce60567282fb956a0938742dbfbf9eff5df793a686a009b8b" +checksum = "296d2d501feb715d80b8e186fb88bab1073bca17f460303a1013d17b673bea6a" dependencies = [ "base64 0.21.7", "base64urlsafedata", @@ -6509,7 +7474,7 @@ dependencies = [ "nom", "openssl", "openssl-sys", - "rand 0.9.2", + "rand 0.9.4", "rand_chacha 0.9.0", "serde", "serde_cbor_2", @@ -6525,9 +7490,9 @@ dependencies = [ [[package]] name = "webauthn-rs-proto" -version = "0.5.4" +version = "0.5.5" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "16a1fb2580ce73baa42d3011a24de2ceab0d428de1879ece06e02e8c416e497c" +checksum = "c37393beac9c1ed1ca6dbb30b1e01783fb316ab3a45d90ecd48c99052dd7ef1e" dependencies = [ "base64 0.21.7", "base64urlsafedata", @@ -6538,18 +7503,18 @@ dependencies = [ [[package]] name = "webpki-root-certs" -version = "1.0.5" +version = "1.0.7" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "36a29fc0408b113f68cf32637857ab740edfafdf460c326cd2afaa2d84cc05dc" +checksum = "f31141ce3fc3e300ae89b78c0dd67f9708061d1d2eda54b8209346fd6be9a92c" dependencies = [ "rustls-pki-types", ] [[package]] name = "webpki-roots" -version = "1.0.4" +version = "1.0.7" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "b2878ef029c47c6e8cf779119f20fcf52bde7ad42a731b2a304bc221df17571e" +checksum = "52f5ee44c96cf55f1b349600768e3ece3a8f26010c05265ab73f945bb1a2eb9d" dependencies = [ "rustls-pki-types", ] @@ -6653,7 +7618,7 @@ checksum = "053e2e040ab57b9dc951b72c264860db7eb3b0200ba345b4e4c3b14f67855ddf" dependencies = [ "proc-macro2", "quote", - "syn", + "syn 2.0.117", ] [[package]] @@ -6664,7 +7629,7 @@ checksum = "3f316c4a2570ba26bbec722032c4099d8c8bc095efccdc15688708623367e358" dependencies = [ "proc-macro2", "quote", - "syn", + "syn 2.0.117", ] [[package]] @@ -6712,24 +7677,6 @@ dependencies = [ "windows-link", ] -[[package]] -name = "windows-sys" -version = "0.45.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "75283be5efb2831d37ea142365f009c02ec203cd29a3ebecbc093d52315b66d0" -dependencies = [ - "windows-targets 0.42.2", -] - -[[package]] -name = "windows-sys" -version = "0.48.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "677d2418bec65e3338edb076e806bc1ec15693c5d0104683f2efe857f61056a9" -dependencies = [ - "windows-targets 0.48.5", -] - [[package]] name = "windows-sys" version = "0.52.0" @@ -6757,36 +7704,6 @@ dependencies = [ "windows-link", ] -[[package]] -name = "windows-targets" -version = "0.42.2" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "8e5180c00cd44c9b1c88adb3693291f1cd93605ded80c250a75d472756b4d071" -dependencies = [ - "windows_aarch64_gnullvm 0.42.2", - "windows_aarch64_msvc 0.42.2", - "windows_i686_gnu 0.42.2", - "windows_i686_msvc 0.42.2", - "windows_x86_64_gnu 0.42.2", - "windows_x86_64_gnullvm 0.42.2", - "windows_x86_64_msvc 0.42.2", -] - -[[package]] -name = "windows-targets" -version = "0.48.5" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "9a2fa6e2155d7247be68c096456083145c183cbbbc2764150dda45a87197940c" -dependencies = [ - "windows_aarch64_gnullvm 0.48.5", - "windows_aarch64_msvc 0.48.5", - "windows_i686_gnu 0.48.5", - "windows_i686_msvc 0.48.5", - "windows_x86_64_gnu 0.48.5", - "windows_x86_64_gnullvm 0.48.5", - "windows_x86_64_msvc 0.48.5", -] - [[package]] name = "windows-targets" version = "0.52.6" @@ -6829,18 +7746,6 @@ dependencies = [ "windows-link", ] -[[package]] -name = "windows_aarch64_gnullvm" -version = "0.42.2" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "597a5118570b68bc08d8d59125332c54f1ba9d9adeedeef5b99b02ba2b0698f8" - -[[package]] -name = "windows_aarch64_gnullvm" -version = "0.48.5" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "2b38e32f0abccf9987a4e3079dfb67dcd799fb61361e53e2882c3cbaf0d905d8" - [[package]] name = "windows_aarch64_gnullvm" version = "0.52.6" @@ -6853,18 +7758,6 @@ version = "0.53.1" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "a9d8416fa8b42f5c947f8482c43e7d89e73a173cead56d044f6a56104a6d1b53" -[[package]] -name = "windows_aarch64_msvc" -version = "0.42.2" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "e08e8864a60f06ef0d0ff4ba04124db8b0fb3be5776a5cd47641e942e58c4d43" - -[[package]] -name = "windows_aarch64_msvc" -version = "0.48.5" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "dc35310971f3b2dbbf3f0690a219f40e2d9afcf64f9ab7cc1be722937c26b4bc" - [[package]] name = "windows_aarch64_msvc" version = "0.52.6" @@ -6877,18 +7770,6 @@ version = "0.53.1" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "b9d782e804c2f632e395708e99a94275910eb9100b2114651e04744e9b125006" -[[package]] -name = "windows_i686_gnu" -version = "0.42.2" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "c61d927d8da41da96a81f029489353e68739737d3beca43145c8afec9a31a84f" - -[[package]] -name = "windows_i686_gnu" -version = "0.48.5" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "a75915e7def60c94dcef72200b9a8e58e5091744960da64ec734a6c6e9b3743e" - [[package]] name = "windows_i686_gnu" version = "0.52.6" @@ -6913,18 +7794,6 @@ version = "0.53.1" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "fa7359d10048f68ab8b09fa71c3daccfb0e9b559aed648a8f95469c27057180c" -[[package]] -name = "windows_i686_msvc" -version = "0.42.2" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "44d840b6ec649f480a41c8d80f9c65108b92d89345dd94027bfe06ac444d1060" - -[[package]] -name = "windows_i686_msvc" -version = "0.48.5" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "8f55c233f70c4b27f66c523580f78f1004e8b5a8b659e05a4eb49d4166cca406" - [[package]] name = "windows_i686_msvc" version = "0.52.6" @@ -6937,18 +7806,6 @@ version = "0.53.1" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "1e7ac75179f18232fe9c285163565a57ef8d3c89254a30685b57d83a38d326c2" -[[package]] -name = "windows_x86_64_gnu" -version = "0.42.2" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "8de912b8b8feb55c064867cf047dda097f92d51efad5b491dfb98f6bbb70cb36" - -[[package]] -name = "windows_x86_64_gnu" -version = "0.48.5" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "53d40abd2583d23e4718fddf1ebec84dbff8381c07cae67ff7768bbf19c6718e" - [[package]] name = "windows_x86_64_gnu" version = "0.52.6" @@ -6961,18 +7818,6 @@ version = "0.53.1" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "9c3842cdd74a865a8066ab39c8a7a473c0778a3f29370b5fd6b4b9aa7df4a499" -[[package]] -name = "windows_x86_64_gnullvm" -version = "0.42.2" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "26d41b46a36d453748aedef1486d5c7a85db22e56aff34643984ea85514e94a3" - -[[package]] -name = "windows_x86_64_gnullvm" -version = "0.48.5" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "0b7b52767868a23d5bab768e390dc5f5c55825b6d30b86c844ff2dc7414044cc" - [[package]] name = "windows_x86_64_gnullvm" version = "0.52.6" @@ -6985,18 +7830,6 @@ version = "0.53.1" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "0ffa179e2d07eee8ad8f57493436566c7cc30ac536a3379fdf008f47f6bb7ae1" -[[package]] -name = "windows_x86_64_msvc" -version = "0.42.2" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "9aec5da331524158c6d1a4ac0ab1541149c0b9505fde06423b02f5ef0106b9f0" - -[[package]] -name = "windows_x86_64_msvc" -version = "0.48.5" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "ed94fce61571a4006852b7389a063ab983c02eb1bb37b47f8272ce92d06d9538" - [[package]] name = "windows_x86_64_msvc" version = "0.52.6" @@ -7011,9 +7844,12 @@ checksum = "d6bbff5f0aada427a1e5a6da5f1f98158182f26556f345ac9e04d36d0ebed650" [[package]] name = "winnow" -version = "1.0.0" +version = "1.0.2" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "a90e88e4667264a994d34e6d1ab2d26d398dcdca8b7f52bec8668957517fc7d8" +checksum = "2ee1708bef14716a11bae175f579062d4554d95be2c6829f518df847b7b3fdd0" +dependencies = [ + "memchr", +] [[package]] name = "winreg" @@ -7024,22 +7860,6 @@ dependencies = [ "winapi", ] -[[package]] -name = "winreg" -version = "0.50.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "524e57b2c537c0f9b1e69f1965311ec12182b4122e45035b1508cd24d2adadb1" -dependencies = [ - "cfg-if", - "windows-sys 0.48.0", -] - -[[package]] -name = "wit-bindgen" -version = "0.46.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "f17a85883d4e6d00e8a97c586de764dabcc06133f7f1d55dce5cdc070ad7fe59" - [[package]] name = "wit-bindgen" version = "0.51.0" @@ -7049,6 +7869,12 @@ dependencies = [ "wit-bindgen-rust-macro", ] +[[package]] +name = "wit-bindgen" +version = "0.57.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "1ebf944e87a7c253233ad6766e082e3cd714b5d03812acc24c318f549614536e" + [[package]] name = "wit-bindgen-core" version = "0.51.0" @@ -7068,9 +7894,9 @@ checksum = "b7c566e0f4b284dd6561c786d9cb0142da491f46a9fbed79ea69cdad5db17f21" dependencies = [ "anyhow", "heck", - "indexmap 2.13.0", + "indexmap 2.14.0", "prettyplease", - "syn", + "syn 2.0.117", "wasm-metadata", "wit-bindgen-core", "wit-component", @@ -7086,7 +7912,7 @@ dependencies = [ "prettyplease", "proc-macro2", "quote", - "syn", + "syn 2.0.117", "wit-bindgen-core", "wit-bindgen-rust", ] @@ -7098,8 +7924,8 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "9d66ea20e9553b30172b5e831994e35fbde2d165325bec84fc43dbf6f4eb9cb2" dependencies = [ "anyhow", - "bitflags 2.10.0", - "indexmap 2.13.0", + "bitflags 2.11.1", + "indexmap 2.14.0", "log", "serde", "serde_derive", @@ -7118,7 +7944,7 @@ checksum = "ecc8ac4bc1dc3381b7f59c34f00b67e18f910c2c0f50015669dde7def656a736" dependencies = [ "anyhow", "id-arena", - "indexmap 2.13.0", + "indexmap 2.14.0", "log", "semver", "serde", @@ -7130,9 +7956,9 @@ dependencies = [ [[package]] name = "writeable" -version = "0.6.2" +version = "0.6.3" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "9edde0db4769d2dc68579893f2306b26c6ecfbe0ef499b013d731b7b9247e0b9" +checksum = "1ffae5123b2d3fc086436f8834ae3ab053a283cfac8fe0a0b8eaae044768a4c4" [[package]] name = "wyz" @@ -7166,11 +7992,21 @@ version = "0.13.6" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "66fee0b777b0f5ac1c69bb06d361268faafa61cd4682ae064a171c16c433e9e4" +[[package]] +name = "xtask" +version = "2.2.0" +dependencies = [ + "anyhow", + "clap", + "komodo_client", + "schemars 1.2.1", +] + [[package]] name = "yoke" -version = "0.8.1" +version = "0.8.2" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "72d6e5c6afb84d73944e5cedb052c4680d5657337201555f9f2a16b7406d4954" +checksum = "abe8c5fda708d9ca3df187cae8bfb9ceda00dd96231bed36e445a1a48e66f9ca" dependencies = [ "stable_deref_trait", "yoke-derive", @@ -7179,54 +8015,54 @@ dependencies = [ [[package]] name = "yoke-derive" -version = "0.8.1" +version = "0.8.2" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "b659052874eb698efe5b9e8cf382204678a0086ebf46982b79d6ca3182927e5d" +checksum = "de844c262c8848816172cef550288e7dc6c7b7814b4ee56b3e1553f275f1858e" dependencies = [ "proc-macro2", "quote", - "syn", + "syn 2.0.117", "synstructure", ] [[package]] name = "zerocopy" -version = "0.8.31" +version = "0.8.48" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "fd74ec98b9250adb3ca554bdde269adf631549f51d8a8f8f0a10b50f1cb298c3" +checksum = "eed437bf9d6692032087e337407a86f04cd8d6a16a37199ed57949d415bd68e9" dependencies = [ "zerocopy-derive", ] [[package]] name = "zerocopy-derive" -version = "0.8.31" +version = "0.8.48" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "d8a8d209fdf45cf5138cbb5a506f6b52522a25afccc534d1475dad8e31105c6a" +checksum = "70e3cd084b1788766f53af483dd21f93881ff30d7320490ec3ef7526d203bad4" dependencies = [ "proc-macro2", "quote", - "syn", + "syn 2.0.117", ] [[package]] name = "zerofrom" -version = "0.1.6" +version = "0.1.7" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "50cc42e0333e05660c3587f3bf9d0478688e15d870fab3346451ce7f8c9fbea5" +checksum = "69faa1f2a1ea75661980b013019ed6687ed0e83d069bc1114e2cc74c6c04c4df" dependencies = [ "zerofrom-derive", ] [[package]] name = "zerofrom-derive" -version = "0.1.6" +version = "0.1.7" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "d71e5d6e06ab090c67b5e44993ec16b72dcbaabc526db883a360057678b48502" +checksum = "11532158c46691caf0f2593ea8358fed6bbf68a0315e80aae9bd41fbade684a1" dependencies = [ "proc-macro2", "quote", - "syn", + "syn 2.0.117", "synstructure", ] @@ -7238,9 +8074,9 @@ checksum = "b97154e67e32c85465826e8bcc1c59429aaaf107c1e4a9e53c8d8ccd5eff88d0" [[package]] name = "zerotrie" -version = "0.2.3" +version = "0.2.4" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "2a59c17a5562d507e4b54960e8569ebee33bee890c70aa3fe7b97e85a9fd7851" +checksum = "0f9152d31db0792fa83f70fb2f83148effb5c1f5b8c7686c3459e361d9bc20bf" dependencies = [ "displaydoc", "yoke", @@ -7249,9 +8085,9 @@ dependencies = [ [[package]] name = "zerovec" -version = "0.11.5" +version = "0.11.6" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "6c28719294829477f525be0186d13efa9a3c602f7ec202ca9e353d310fb9a002" +checksum = "90f911cbc359ab6af17377d242225f4d75119aec87ea711a880987b18cd7b239" dependencies = [ "yoke", "zerofrom", @@ -7260,17 +8096,17 @@ dependencies = [ [[package]] name = "zerovec-derive" -version = "0.11.2" +version = "0.11.3" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "eadce39539ca5cb3985590102671f2567e659fca9666581ad3411d59207951f3" +checksum = "625dc425cab0dca6dc3c3319506e6593dcb08a9f387ea3b284dbd52a92c40555" dependencies = [ "proc-macro2", "quote", - "syn", + "syn 2.0.117", ] [[package]] name = "zmij" -version = "1.0.3" +version = "1.0.21" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "e9747e91771f56fd7893e1164abd78febd14a670ceec257caad15e051de35f06" +checksum = "b8848ee67ecc8aedbaf3e4122217aff892639231befc6a1b58d29fff4c2cabaa" diff --git a/Cargo.toml b/Cargo.toml index daf108e722..5b0b7e3b43 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -3,21 +3,19 @@ resolver = "2" members = [ "bin/*", "lib/*", + "xtask", "client/core/rs", "client/periphery/rs", ] [workspace.package] -version = "2.1.2" +version = "2.2.0" edition = "2024" authors = ["mbecker20 "] license = "GPL-3.0-or-later" repository = "https://github.com/moghtech/komodo" homepage = "https://komo.do" -[profile.release] -strip = "debuginfo" - [workspace.dependencies] # LOCAL komodo_client = { path = "client/core/rs" } @@ -33,29 +31,29 @@ git = { path = "lib/git" } # MOGH slack = { version = "2.0.0", package = "slack_client_rs", default-features = false, features = ["rustls"] } -mogh_error = { version = "1.0.3", default-features = false } +mogh_error = { version = "1.0.4", default-features = false } derive_default_builder = "0.1.8" async_timing_util = "1.1.0" -mogh_auth_client = "1.2.2" -mogh_auth_server = "1.2.13" +mogh_auth_client = "1.5.0" +mogh_auth_server = "1.5.0" mogh_secret_file = "1.0.1" mogh_validations = "1.0.1" mogh_rate_limit = "1.0.1" -partial_derive2 = "0.4.5" +partial_derive2 = "0.5.0" mongo_indexed = "2.0.2" mogh_resolver = "1.0.0" -mogh_config = "1.0.5" +mogh_config = "1.1.0" mogh_logger = "1.3.3" -mogh_server = "1.4.5" +mogh_server = "1.5.0" toml_pretty = "2.0.0" -mogh_cache = "1.1.1" +mogh_cache = "1.1.2" mogh_pki = "1.1.3" mungos = "3.2.2" svi = "1.2.0" # ASYNC -reqwest = { version = "0.13.2", default-features = false, features = ["json", "stream", "form", "query", "rustls"] } -tokio = { version = "1.50.0", features = ["full"] } +reqwest = { version = "0.13.3", default-features = false, features = ["json", "stream", "form", "query", "rustls"] } +tokio = { version = "1.52.2", features = ["full"] } tokio-util = { version = "0.7.18", features = ["io", "codec"] } tokio-stream = { version = "0.1.18", features = ["sync"] } pin-project-lite = "0.2.17" @@ -64,16 +62,16 @@ arc-swap = "1.9.0" # SERVER tokio-tungstenite = { version = "0.29.0", features = ["rustls-tls-native-roots"] } -axum = { version = "0.8.8", features = ["ws", "json", "macros"] } -axum-extra = { version = "0.12.5", features = ["typed-header"] } +axum = { version = "0.8.9", features = ["ws", "json", "macros"] } +axum-extra = { version = "0.12.6", features = ["typed-header"] } # OPENAPI utoipa-scalar = { version = "0.3.0", features = ["axum"] } -utoipa = "5.4.0" +utoipa = "5.5.0" # SER/DE ipnetwork = { version = "0.21.1", features = ["serde"] } -indexmap = { version = "2.13.0", features = ["serde"] } +indexmap = { version = "2.14.0", features = ["serde"] } serde = { version = "1.0.227", features = ["derive"] } strum = { version = "0.28.0", features = ["derive"] } bson = { version = "2.15.0" } # must keep in sync with mongodb version @@ -91,34 +89,34 @@ thiserror = "2.0.18" tracing = "0.1.44" # CONFIG -clap = { version = "4.5.60", features = ["derive"] } +clap = { version = "4.6.1", features = ["derive"] } dotenvy = "0.15.7" envy = "0.4.2" # CRYPTO / AUTH -uuid = { version = "1.23.0", features = ["v4", "fast-rng", "serde"] } -rustls = { version = "0.23.37", features = ["aws-lc-rs"] } +uuid = { version = "1.23.1", features = ["v4", "fast-rng", "serde"] } +rustls = { version = "0.23.40", features = ["aws-lc-rs"] } data-encoding = "2.10.0" urlencoding = "2.1.3" bcrypt = "0.19.0" -hmac = "0.12.1" -sha1 = "0.10.6" -sha2 = "0.10.9" -rand = "0.10.0" +hmac = "0.13.0" +sha1 = "0.11.0" +sha2 = "0.11.0" +rand = "0.10.1" hex = "0.4.3" # SYSTEM -hickory-resolver = "0.25.2" +hickory-resolver = "0.26.1" portable-pty = "0.9.0" shell-escape = "0.1.5" crossterm = "0.29.0" -bollard = "0.20.2" +bollard = "0.21.0" sysinfo = "0.38.4" shlex = "1.3.0" # CLOUD -aws-config = "1.8.15" -aws-sdk-ec2 = "1.220.1" +aws-config = "1.8.16" +aws-sdk-ec2 = "1.224.0" aws-credential-types = "1.2.14" ## CRON @@ -128,7 +126,8 @@ chrono = "0.4.44" croner = "3.0.1" # MISC -async-compression = { version = "0.4.41", features = ["tokio", "gzip"] } +async-compression = { version = "0.4.42", features = ["tokio", "gzip"] } +schemars = { version = "1.2.1", features = ["indexmap2"] } derive_builder = "0.20.2" comfy-table = "7.2.2" typeshare = "1.0.5" @@ -136,3 +135,6 @@ wildcard = "0.3.0" colored = "3.1.1" bytes = "1.11.1" regex = "1.12.3" + +[profile.release] +strip = "debuginfo" \ No newline at end of file diff --git a/bin/binaries.Dockerfile b/bin/binaries.Dockerfile index 59b9e228ad..6b7f878c45 100644 --- a/bin/binaries.Dockerfile +++ b/bin/binaries.Dockerfile @@ -1,7 +1,7 @@ ## Builds the Komodo Core, Periphery, and Util binaries ## for a specific architecture. Requires OpenSSL 3 or later. -FROM rust:1.94.1-bookworm AS builder +FROM rust:1.95.0-bookworm AS builder RUN cargo install cargo-strip WORKDIR /builder diff --git a/bin/chef.binaries.Dockerfile b/bin/chef.binaries.Dockerfile index 55e0828909..9933981b12 100644 --- a/bin/chef.binaries.Dockerfile +++ b/bin/chef.binaries.Dockerfile @@ -3,7 +3,7 @@ ## Uses chef for dependency caching to help speed up back-to-back builds. -FROM lukemathwalker/cargo-chef:latest-rust-1.94.1-bookworm AS chef +FROM lukemathwalker/cargo-chef:latest-rust-1.95.0-bookworm AS chef WORKDIR /builder # Plan just the RECIPE to see if things have changed diff --git a/bin/cli/aio.Dockerfile b/bin/cli/aio.Dockerfile index 11327e6518..df0aee90d0 100644 --- a/bin/cli/aio.Dockerfile +++ b/bin/cli/aio.Dockerfile @@ -1,4 +1,4 @@ -FROM rust:1.94.1-bullseye AS builder +FROM rust:1.95.0-trixie AS builder RUN cargo install cargo-strip WORKDIR /builder diff --git a/bin/cli/multi-arch.Dockerfile b/bin/cli/multi-arch.Dockerfile index 581b9bb630..9540fd6432 100644 --- a/bin/cli/multi-arch.Dockerfile +++ b/bin/cli/multi-arch.Dockerfile @@ -9,7 +9,7 @@ ARG AARCH64_BINARIES=${BINARIES_IMAGE}-aarch64 FROM ${X86_64_BINARIES} AS x86_64 FROM ${AARCH64_BINARIES} AS aarch64 -FROM debian:bullseye-slim +FROM debian:trixie-slim WORKDIR /app diff --git a/bin/core/aio.Dockerfile b/bin/core/aio.Dockerfile index 872976a8d5..5ce648ed2e 100644 --- a/bin/core/aio.Dockerfile +++ b/bin/core/aio.Dockerfile @@ -1,7 +1,7 @@ ## All in one, multi stage compile + runtime Docker build for your architecture. # Build Core -FROM rust:1.94.1-trixie AS core-builder +FROM rust:1.95.0-trixie AS core-builder RUN cargo install cargo-strip WORKDIR /builder @@ -58,7 +58,8 @@ ENV KOMODO_CLI_CONFIG_PATHS="/config" # This ensures any `komodo.cli.*` takes precedence over the Core `/config/*config.*` ENV KOMODO_CLI_CONFIG_KEYWORDS="*config.*,*komodo.cli*.*" -CMD [ "/bin/bash", "-c", "update-ca-certificates && core" ] +ENTRYPOINT [ "entrypoint.sh" ] +CMD [ "core" ] # Label to prevent Komodo from stopping with StopAllContainers LABEL komodo.skip="true" diff --git a/bin/core/src/api/execute/build.rs b/bin/core/src/api/execute/build.rs index 94efaf736c..4d511b82f3 100644 --- a/bin/core/src/api/execute/build.rs +++ b/bin/core/src/api/execute/build.rs @@ -509,10 +509,10 @@ pub async fn validate_cancel_build( )?; match (latest_build, latest_cancel) { - (Some(build), Some(cancel)) => { - if cancel.start_ts > build.start_ts { - return Err(anyhow!("Build has already been cancelled")); - } + (Some(build), Some(cancel)) + if cancel.start_ts > build.start_ts => + { + return Err(anyhow!("Build has already been cancelled")); } (None, _) => return Err(anyhow!("No build in progress")), _ => {} diff --git a/bin/core/src/api/execute/repo.rs b/bin/core/src/api/execute/repo.rs index 4ff321e39d..0fcc1badd6 100644 --- a/bin/core/src/api/execute/repo.rs +++ b/bin/core/src/api/execute/repo.rs @@ -698,13 +698,12 @@ pub async fn validate_cancel_repo_build( )?; match (latest_build, latest_cancel) { - (Some(build), Some(cancel)) => { - if cancel.start_ts > build.start_ts { - return Err(anyhow!( - "Repo build has already been cancelled" - )); - } + (Some(build), Some(cancel)) + if cancel.start_ts > build.start_ts => + { + return Err(anyhow!("Repo build has already been cancelled")); } + (None, _) => return Err(anyhow!("No repo build in progress")), _ => {} }; diff --git a/bin/core/src/api/execute/sync.rs b/bin/core/src/api/execute/sync.rs index 7b622a9284..7273b1aeae 100644 --- a/bin/core/src/api/execute/sync.rs +++ b/bin/core/src/api/execute/sync.rs @@ -283,6 +283,7 @@ impl Resolve for RunSync { Default::default() }; + // New resource types need to be added here manually. if deploy_cache.is_empty() && resource_sync_deltas.no_changes() && server_deltas.no_changes() @@ -339,10 +340,7 @@ impl Resolve for RunSync { ) .await, ); - maybe_extend( - &mut update.logs, - ResourceSync::execute_sync_updates(resource_sync_deltas).await, - ); + maybe_extend( &mut update.logs, Server::execute_sync_updates(server_deltas).await, @@ -356,38 +354,43 @@ impl Resolve for RunSync { Action::execute_sync_updates(action_deltas).await, ); - // Dependent on server + // Depends on server maybe_extend( &mut update.logs, Swarm::execute_sync_updates(swarm_deltas).await, ); + // Depends on server maybe_extend( &mut update.logs, Builder::execute_sync_updates(builder_deltas).await, ); + // Depends on server / builder maybe_extend( &mut update.logs, Repo::execute_sync_updates(repo_deltas).await, ); - // Dependant on builder + // Depends on builder / repo maybe_extend( &mut update.logs, Build::execute_sync_updates(build_deltas).await, ); - - // Dependant on server / build + // Depends on server / repo maybe_extend( &mut update.logs, - Deployment::execute_sync_updates(deployment_deltas).await, + Stack::execute_sync_updates(stack_deltas).await, ); - // stack only depends on server, but maybe will depend on build later. + // Depends on repo maybe_extend( &mut update.logs, - Stack::execute_sync_updates(stack_deltas).await, + ResourceSync::execute_sync_updates(resource_sync_deltas).await, ); - - // Dependant on everything + // Depends on server / build + maybe_extend( + &mut update.logs, + Deployment::execute_sync_updates(deployment_deltas).await, + ); + // Depends on everything maybe_extend( &mut update.logs, Procedure::execute_sync_updates(procedure_deltas).await, diff --git a/bin/core/src/api/listener/integrations/github.rs b/bin/core/src/api/listener/integrations/github.rs index b93a9eea45..f2aa1a02ab 100644 --- a/bin/core/src/api/listener/integrations/github.rs +++ b/bin/core/src/api/listener/integrations/github.rs @@ -1,7 +1,7 @@ use anyhow::{Context, anyhow}; use axum::http::HeaderMap; use hex::ToHex; -use hmac::{Hmac, Mac}; +use hmac::{Hmac, KeyInit as _, Mac}; use serde::Deserialize; use sha2::Sha256; diff --git a/bin/core/src/api/write/stack.rs b/bin/core/src/api/write/stack.rs index e16b359a01..ebfa1e6280 100644 --- a/bin/core/src/api/write/stack.rs +++ b/bin/core/src/api/write/stack.rs @@ -776,7 +776,13 @@ pub async fn check_stack_for_update_inner( if image.is_empty() || // Images with a hardcoded digest can't have update. - image.contains('@') + image.contains('@') || + // Services explicitly excluded from global auto-update checks. + // Manual checks should still evaluate all services. + (wait_for_auto_update && + stack.config.auto_update_skip_services.contains( + &service.service_name, + )) { service.image_digest = None; continue; diff --git a/bin/core/src/auth/mod.rs b/bin/core/src/auth/mod.rs index 48b833f893..8708b7cf83 100644 --- a/bin/core/src/auth/mod.rs +++ b/bin/core/src/auth/mod.rs @@ -362,6 +362,7 @@ impl AuthImpl for KomodoAuthImpl { additional_audiences: config .oidc_additional_audiences .clone(), + auto_redirect: config.oidc_auto_redirect, } }); Some(&OIDC_CONFIG) diff --git a/bin/core/src/config.rs b/bin/core/src/config.rs index 3c8f18a6c9..8459a70189 100644 --- a/bin/core/src/config.rs +++ b/bin/core/src/config.rs @@ -235,6 +235,9 @@ pub fn core_config() -> &'static CoreConfig { env.komodo_oidc_additional_audiences, ) .unwrap_or(config.oidc_additional_audiences), + oidc_auto_redirect: env + .komodo_oidc_auto_redirect + .unwrap_or(config.oidc_auto_redirect), google_oauth: NamedOauthConfig { enabled: env .komodo_google_oauth_enabled @@ -312,6 +315,21 @@ pub fn core_config() -> &'static CoreConfig { session_allow_cross_site: env .komodo_session_allow_cross_site .unwrap_or(config.session_allow_cross_site), + x_content_type_options: env + .komodo_x_content_type_options + .unwrap_or(config.x_content_type_options), + x_frame_options: env + .komodo_x_frame_options + .unwrap_or(config.x_frame_options), + x_xss_protection: env + .komodo_x_xss_protection + .unwrap_or(config.x_xss_protection), + referrer_policy: env + .komodo_referrer_policy + .unwrap_or(config.referrer_policy), + content_security_policy: env + .komodo_content_security_policy + .unwrap_or(config.content_security_policy), resource_poll_interval: env .komodo_resource_poll_interval .unwrap_or(config.resource_poll_interval), diff --git a/bin/core/src/sync/toml.rs b/bin/core/src/sync/toml.rs index 01c7cd00ce..1b0eb50254 100644 --- a/bin/core/src/sync/toml.rs +++ b/bin/core/src/sync/toml.rs @@ -458,6 +458,41 @@ impl ToToml for Builder { toml.push_str("\nparams = {}"); } } + + fn edit_config_object( + _resource: &ResourceToml, + config: IndexMap, + ) -> anyhow::Result> { + config + .into_iter() + .map(|(key, value)| { + #[allow(clippy::single_match)] + match key.as_str() { + "params" => match value { + serde_json::Value::Object(obj) => Ok(( + key, + serde_json::Value::Object( + obj + .into_iter() + .map(|(key, value)| { + match key.as_str() { + "server_id" => { + return (String::from("server"), value); + } + _ => {} + } + (key, value) + }) + .collect(), + ), + )), + value => Ok((key, value)), + }, + _ => Ok((key, value)), + } + }) + .collect() + } } impl ToToml for Procedure { diff --git a/bin/periphery/aio.Dockerfile b/bin/periphery/aio.Dockerfile index 4ab93d3ad0..b677f4dfc4 100644 --- a/bin/periphery/aio.Dockerfile +++ b/bin/periphery/aio.Dockerfile @@ -1,6 +1,6 @@ ## All in one, multi stage compile + runtime Docker build for your architecture. -FROM rust:1.94.1-trixie AS builder +FROM rust:1.95.0-trixie AS builder RUN cargo install cargo-strip WORKDIR /builder diff --git a/bin/periphery/src/api/build/mod.rs b/bin/periphery/src/api/build/mod.rs index 021491b115..b9fb37c22c 100644 --- a/bin/periphery/src/api/build/mod.rs +++ b/bin/periphery/src/api/build/mod.rs @@ -271,7 +271,11 @@ impl Resolve for build::Build { "Pre Build", pre_build_path.as_path(), &pre_build.command, - KomodoCommandMode::Multiline, + if pre_build.shell_mode { + KomodoCommandMode::Shell + } else { + KomodoCommandMode::Multiline + }, &replacers, ) .instrument(span) diff --git a/bin/periphery/src/api/compose.rs b/bin/periphery/src/api/compose.rs index 794067b250..d53e5016cc 100644 --- a/bin/periphery/src/api/compose.rs +++ b/bin/periphery/src/api/compose.rs @@ -490,7 +490,11 @@ impl Resolve for ComposeUp { "Pre Deploy", pre_deploy_path.as_path(), &stack.config.pre_deploy.command, - KomodoCommandMode::Multiline, + if stack.config.pre_deploy.shell_mode { + KomodoCommandMode::Shell + } else { + KomodoCommandMode::Multiline + }, &replacers, ) .instrument(span) @@ -760,7 +764,11 @@ impl Resolve for ComposeUp { "Post Deploy", post_deploy_path.as_path(), &stack.config.post_deploy.command, - KomodoCommandMode::Multiline, + if stack.config.post_deploy.shell_mode { + KomodoCommandMode::Shell + } else { + KomodoCommandMode::Multiline + }, &replacers, ) .instrument(span) diff --git a/bin/periphery/src/docker/container.rs b/bin/periphery/src/docker/container.rs index 1ebc46018b..0ac4fc128a 100644 --- a/bin/periphery/src/docker/container.rs +++ b/bin/periphery/src/docker/container.rs @@ -10,7 +10,7 @@ use crate::state::container_stats; use super::{ DockerClient, convert_health_config, convert_mount, - convert_mount_point_type, convert_resources_ulimits, + convert_resources_ulimits, }; impl DockerClient { @@ -360,10 +360,7 @@ impl DockerClient { .unwrap_or_default() .into_iter() .map(|mount| MountPoint { - typ: mount - .typ - .map(convert_mount_point_type) - .unwrap_or_default(), + typ: mount.typ, name: mount.name, source: mount.source, destination: mount.destination, @@ -482,6 +479,9 @@ fn convert_summary_container_state( bollard::config::ContainerSummaryStateEnum::EXITED => { ContainerStateStatusEnum::Exited } + bollard::config::ContainerSummaryStateEnum::STOPPING => { + ContainerStateStatusEnum::Stopping + } bollard::config::ContainerSummaryStateEnum::REMOVING => { ContainerStateStatusEnum::Removing } @@ -516,6 +516,9 @@ fn convert_container_state_status( bollard::config::ContainerStateStatusEnum::REMOVING => { ContainerStateStatusEnum::Removing } + bollard::config::ContainerStateStatusEnum::STOPPING => { + ContainerStateStatusEnum::Stopping + } bollard::config::ContainerStateStatusEnum::DEAD => { ContainerStateStatusEnum::Dead } diff --git a/bin/periphery/src/docker/mod.rs b/bin/periphery/src/docker/mod.rs index 26ce2e1678..40599bc2e5 100644 --- a/bin/periphery/src/docker/mod.rs +++ b/bin/periphery/src/docker/mod.rs @@ -150,17 +150,14 @@ fn convert_mount(mount: bollard::models::Mount) -> Mount { } } -fn convert_mount_type( - typ: bollard::config::MountTypeEnum, -) -> MountTypeEnum { +fn convert_mount_type(typ: bollard::config::MountType) -> MountType { match typ { - bollard::config::MountTypeEnum::EMPTY => MountTypeEnum::Empty, - bollard::config::MountTypeEnum::BIND => MountTypeEnum::Bind, - bollard::config::MountTypeEnum::VOLUME => MountTypeEnum::Volume, - bollard::config::MountTypeEnum::IMAGE => MountTypeEnum::Image, - bollard::config::MountTypeEnum::TMPFS => MountTypeEnum::Tmpfs, - bollard::config::MountTypeEnum::NPIPE => MountTypeEnum::Npipe, - bollard::config::MountTypeEnum::CLUSTER => MountTypeEnum::Cluster, + bollard::config::MountType::BIND => MountType::Bind, + bollard::config::MountType::VOLUME => MountType::Volume, + bollard::config::MountType::IMAGE => MountType::Image, + bollard::config::MountType::TMPFS => MountType::Tmpfs, + bollard::config::MountType::NPIPE => MountType::Npipe, + bollard::config::MountType::CLUSTER => MountType::Cluster, } } @@ -192,32 +189,6 @@ fn convert_mount_propogation( } } -fn convert_mount_point_type( - typ: bollard::config::MountPointTypeEnum, -) -> MountTypeEnum { - match typ { - bollard::config::MountPointTypeEnum::EMPTY => { - MountTypeEnum::Empty - } - bollard::config::MountPointTypeEnum::BIND => MountTypeEnum::Bind, - bollard::config::MountPointTypeEnum::VOLUME => { - MountTypeEnum::Volume - } - bollard::config::MountPointTypeEnum::IMAGE => { - MountTypeEnum::Image - } - bollard::config::MountPointTypeEnum::TMPFS => { - MountTypeEnum::Tmpfs - } - bollard::config::MountPointTypeEnum::NPIPE => { - MountTypeEnum::Npipe - } - bollard::config::MountPointTypeEnum::CLUSTER => { - MountTypeEnum::Cluster - } - } -} - fn convert_health_config( config: bollard::models::HealthConfig, ) -> HealthConfig { diff --git a/bin/periphery/src/docker/volume.rs b/bin/periphery/src/docker/volume.rs index c9756c26ea..0aa14b6baa 100644 --- a/bin/periphery/src/docker/volume.rs +++ b/bin/periphery/src/docker/volume.rs @@ -1,6 +1,6 @@ use bollard::query_parameters::ListVolumesOptions; use komodo_client::entities::docker::{ - PortBinding, container::ContainerListItem, volume::*, + Topology, container::ContainerListItem, volume::*, }; use crate::docker::DockerClient; @@ -108,8 +108,8 @@ impl DockerClient { }).collect(), accessibility_requirements: mode .accessibility_requirements.map(|req| ClusterVolumeSpecAccessModeAccessibilityRequirements { - requisite: req.requisite.unwrap_or_default().into_iter().map(|map| map.into_iter().map(|(k, v)| (k, v.unwrap_or_default().into_iter().map(|p| PortBinding { host_ip: p.host_ip, host_port: p.host_port }).collect())).collect()).collect(), - preferred: req.preferred.unwrap_or_default().into_iter().map(|map| map.into_iter().map(|(k, v)| (k, v.unwrap_or_default().into_iter().map(|p| PortBinding { host_ip: p.host_ip, host_port: p.host_port }).collect())).collect()).collect(), + requisite: req.requisite.map(|v| v.into_iter().map(|t| Topology { segments: t.segments }).collect()), + preferred: req.preferred.map(|v| v.into_iter().map(|t| Topology { segments: t.segments }).collect()), }), capacity_range: mode.capacity_range.map(|range| ClusterVolumeSpecAccessModeCapacityRange { required_bytes: range.required_bytes, @@ -128,7 +128,7 @@ impl DockerClient { capacity_bytes: info.capacity_bytes, volume_context: info.volume_context.unwrap_or_default(), volume_id: info.volume_id, - accessible_topology: info.accessible_topology.unwrap_or_default().into_iter().map(|map| map.into_iter().map(|(k, v)| (k, v.unwrap_or_default().into_iter().map(|p| PortBinding { host_ip: p.host_ip, host_port: p.host_port }).collect())).collect()).collect(), + accessible_topology: info.accessible_topology.map(|v| v.into_iter().map(|t| Topology { segments: t.segments }).collect()), }), publish_status: volume .publish_status diff --git a/bin/periphery/src/helpers.rs b/bin/periphery/src/helpers.rs index 623a4331ce..a17c052334 100644 --- a/bin/periphery/src/helpers.rs +++ b/bin/periphery/src/helpers.rs @@ -189,7 +189,11 @@ pub async fn handle_post_repo_execution( "On Clone", path.as_path(), on_clone.command, - KomodoCommandMode::Multiline, + if on_clone.shell_mode { + KomodoCommandMode::Shell + } else { + KomodoCommandMode::Multiline + }, &replacers, ) .await @@ -214,7 +218,11 @@ pub async fn handle_post_repo_execution( "On Pull", path.as_path(), on_pull.command, - KomodoCommandMode::Multiline, + if on_pull.shell_mode { + KomodoCommandMode::Shell + } else { + KomodoCommandMode::Multiline + }, &replacers, ) .await @@ -276,37 +284,31 @@ pub fn registry_token( // Public IP over DNS // ==================== -type OpenDNSResolver = hickory_resolver::Resolver< - hickory_resolver::name_server::TokioConnectionProvider, ->; +type OpenDNSResolver = hickory_resolver::TokioResolver; fn opendns_resolver() -> &'static OpenDNSResolver { static OPENDNS_RESOLVER: OnceLock = OnceLock::new(); OPENDNS_RESOLVER.get_or_init(|| { - // OpenDNS resolver ipv4s - let ips = [ + // OpenDNS resolver ipv4s. + let name_servers = [ IpAddr::from_str("208.67.220.220").unwrap(), IpAddr::from_str("208.67.222.222").unwrap(), - ]; - - // trust_negative_responses=true means NXDOMAIN/empty NOERROR from an - // authoritative upstream won’t be retried on other servers. - let ns = - hickory_resolver::config::NameServerConfigGroup::from_ips_clear( - &ips, 53, true, - ); + ] + .into_iter() + .map(hickory_resolver::config::NameServerConfig::udp_and_tcp) + .collect(); hickory_resolver::Resolver::builder_with_config( hickory_resolver::config::ResolverConfig::from_parts( None, vec![], - ns, - ), - hickory_resolver::name_server::TokioConnectionProvider::default( + name_servers, ), + hickory_resolver::net::runtime::TokioRuntimeProvider::default(), ) .build() + .expect("Failed to build OpenDNS resolver") }) } @@ -319,7 +321,7 @@ pub async fn resolve_host_public_ip() -> anyhow::Result { .context( "Failed to query OpenDNS resolvers for host public IP", )? - .into_iter() + .iter() .map(|ip| ip.to_string()) .next() .context("OpenDNS call for public IP didn't return anything") diff --git a/client/core/rs/Cargo.toml b/client/core/rs/Cargo.toml index 8ffb2944f7..2523df66d3 100644 --- a/client/core/rs/Cargo.toml +++ b/client/core/rs/Cargo.toml @@ -14,6 +14,7 @@ repository.workspace = true blocking = ["reqwest/blocking"] mongo = ["dep:mongo_indexed"] utoipa = ["dep:utoipa", "mogh_auth_client/utoipa", "mogh_error/utoipa"] +schemars = ["dep:schemars"] logger = ["dep:mogh_logger"] cli = ["logger", "dep:mogh_pki",] core = ["mongo", "utoipa", "logger", "dep:mogh_server"] @@ -33,6 +34,7 @@ partial_derive2.workspace = true mogh_resolver.workspace = true # external ipnetwork = { workspace = true, optional = true } +schemars = { workspace = true, optional = true } utoipa = { workspace = true, optional = true } tokio-tungstenite.workspace = true derive_builder.workspace = true diff --git a/client/core/rs/src/api/execute/action.rs b/client/core/rs/src/api/execute/action.rs index 48f243b438..02fd43452e 100644 --- a/client/core/rs/src/api/execute/action.rs +++ b/client/core/rs/src/api/execute/action.rs @@ -28,6 +28,7 @@ pub fn run_action() {} Debug, Clone, PartialEq, Serialize, Deserialize, Resolve, Parser, )] #[cfg_attr(feature = "utoipa", derive(utoipa::ToSchema))] +#[cfg_attr(feature = "schemars", derive(schemars::JsonSchema))] #[empty_traits(KomodoExecuteRequest)] #[response(Update)] #[error(mogh_error::Error)] @@ -68,6 +69,7 @@ pub fn batch_run_action() {} Debug, Clone, PartialEq, Serialize, Deserialize, Resolve, Parser, )] #[cfg_attr(feature = "utoipa", derive(utoipa::ToSchema))] +#[cfg_attr(feature = "schemars", derive(schemars::JsonSchema))] #[empty_traits(KomodoExecuteRequest)] #[response(BatchExecutionResponse)] #[error(mogh_error::Error)] diff --git a/client/core/rs/src/api/execute/alerter.rs b/client/core/rs/src/api/execute/alerter.rs index 9f6b96b437..6d66bd4de2 100644 --- a/client/core/rs/src/api/execute/alerter.rs +++ b/client/core/rs/src/api/execute/alerter.rs @@ -27,6 +27,7 @@ pub fn test_alerter() {} Serialize, Deserialize, Debug, Clone, PartialEq, Resolve, Parser, )] #[cfg_attr(feature = "utoipa", derive(utoipa::ToSchema))] +#[cfg_attr(feature = "schemars", derive(schemars::JsonSchema))] #[empty_traits(KomodoExecuteRequest)] #[response(Update)] #[error(mogh_error::Error)] @@ -56,6 +57,7 @@ pub fn send_alert() {} Serialize, Deserialize, Debug, Clone, PartialEq, Resolve, Parser, )] #[cfg_attr(feature = "utoipa", derive(utoipa::ToSchema))] +#[cfg_attr(feature = "schemars", derive(schemars::JsonSchema))] #[empty_traits(KomodoExecuteRequest)] #[response(Update)] #[error(mogh_error::Error)] diff --git a/client/core/rs/src/api/execute/build.rs b/client/core/rs/src/api/execute/build.rs index 750c6bbe1f..a0bc4a6f50 100644 --- a/client/core/rs/src/api/execute/build.rs +++ b/client/core/rs/src/api/execute/build.rs @@ -39,6 +39,7 @@ pub fn run_build() {} Debug, Clone, PartialEq, Serialize, Deserialize, Resolve, Parser, )] #[cfg_attr(feature = "utoipa", derive(utoipa::ToSchema))] +#[cfg_attr(feature = "schemars", derive(schemars::JsonSchema))] #[empty_traits(KomodoExecuteRequest)] #[response(Update)] #[error(mogh_error::Error)] @@ -67,6 +68,7 @@ pub fn batch_run_build() {} Debug, Clone, PartialEq, Serialize, Deserialize, Resolve, Parser, )] #[cfg_attr(feature = "utoipa", derive(utoipa::ToSchema))] +#[cfg_attr(feature = "schemars", derive(schemars::JsonSchema))] #[empty_traits(KomodoExecuteRequest)] #[response(BatchExecutionResponse)] #[error(mogh_error::Error)] @@ -106,6 +108,7 @@ pub fn cancel_build() {} Serialize, Deserialize, Debug, Clone, PartialEq, Resolve, Parser, )] #[cfg_attr(feature = "utoipa", derive(utoipa::ToSchema))] +#[cfg_attr(feature = "schemars", derive(schemars::JsonSchema))] #[empty_traits(KomodoExecuteRequest)] #[response(Update)] #[error(mogh_error::Error)] diff --git a/client/core/rs/src/api/execute/deployment.rs b/client/core/rs/src/api/execute/deployment.rs index ad4376a133..a4099685e0 100644 --- a/client/core/rs/src/api/execute/deployment.rs +++ b/client/core/rs/src/api/execute/deployment.rs @@ -34,6 +34,7 @@ pub fn deploy() {} Serialize, Deserialize, Debug, Clone, PartialEq, Resolve, Parser, )] #[cfg_attr(feature = "utoipa", derive(utoipa::ToSchema))] +#[cfg_attr(feature = "schemars", derive(schemars::JsonSchema))] #[empty_traits(KomodoExecuteRequest)] #[response(Update)] #[error(mogh_error::Error)] @@ -68,6 +69,7 @@ pub fn batch_deploy() {} Serialize, Deserialize, Debug, Clone, PartialEq, Resolve, Parser, )] #[cfg_attr(feature = "utoipa", derive(utoipa::ToSchema))] +#[cfg_attr(feature = "schemars", derive(schemars::JsonSchema))] #[empty_traits(KomodoExecuteRequest)] #[response(BatchExecutionResponse)] #[error(mogh_error::Error)] @@ -105,6 +107,7 @@ pub fn pull_deployment() {} Serialize, Deserialize, Debug, Clone, PartialEq, Resolve, Parser, )] #[cfg_attr(feature = "utoipa", derive(utoipa::ToSchema))] +#[cfg_attr(feature = "schemars", derive(schemars::JsonSchema))] #[empty_traits(KomodoExecuteRequest)] #[response(Update)] #[error(mogh_error::Error)] @@ -135,6 +138,7 @@ pub fn start_deployment() {} Serialize, Deserialize, Debug, Clone, PartialEq, Resolve, Parser, )] #[cfg_attr(feature = "utoipa", derive(utoipa::ToSchema))] +#[cfg_attr(feature = "schemars", derive(schemars::JsonSchema))] #[empty_traits(KomodoExecuteRequest)] #[response(Update)] #[error(mogh_error::Error)] @@ -165,6 +169,7 @@ pub fn restart_deployment() {} Serialize, Deserialize, Debug, Clone, PartialEq, Resolve, Parser, )] #[cfg_attr(feature = "utoipa", derive(utoipa::ToSchema))] +#[cfg_attr(feature = "schemars", derive(schemars::JsonSchema))] #[empty_traits(KomodoExecuteRequest)] #[response(Update)] #[error(mogh_error::Error)] @@ -195,6 +200,7 @@ pub fn pause_deployment() {} Serialize, Deserialize, Debug, Clone, PartialEq, Resolve, Parser, )] #[cfg_attr(feature = "utoipa", derive(utoipa::ToSchema))] +#[cfg_attr(feature = "schemars", derive(schemars::JsonSchema))] #[empty_traits(KomodoExecuteRequest)] #[response(Update)] #[error(mogh_error::Error)] @@ -228,6 +234,7 @@ pub fn unpause_deployment() {} Serialize, Deserialize, Debug, Clone, PartialEq, Resolve, Parser, )] #[cfg_attr(feature = "utoipa", derive(utoipa::ToSchema))] +#[cfg_attr(feature = "schemars", derive(schemars::JsonSchema))] #[empty_traits(KomodoExecuteRequest)] #[response(Update)] #[error(mogh_error::Error)] @@ -258,6 +265,7 @@ pub fn stop_deployment() {} Serialize, Deserialize, Debug, Clone, PartialEq, Resolve, Parser, )] #[cfg_attr(feature = "utoipa", derive(utoipa::ToSchema))] +#[cfg_attr(feature = "schemars", derive(schemars::JsonSchema))] #[empty_traits(KomodoExecuteRequest)] #[response(Update)] #[error(mogh_error::Error)] @@ -295,6 +303,7 @@ pub fn destroy_deployment() {} Serialize, Deserialize, Debug, Clone, PartialEq, Resolve, Parser, )] #[cfg_attr(feature = "utoipa", derive(utoipa::ToSchema))] +#[cfg_attr(feature = "schemars", derive(schemars::JsonSchema))] #[empty_traits(KomodoExecuteRequest)] #[response(Update)] #[error(mogh_error::Error)] @@ -327,6 +336,7 @@ pub fn batch_destroy_deployment() {} Serialize, Deserialize, Debug, Clone, PartialEq, Resolve, Parser, )] #[cfg_attr(feature = "utoipa", derive(utoipa::ToSchema))] +#[cfg_attr(feature = "schemars", derive(schemars::JsonSchema))] #[empty_traits(KomodoExecuteRequest)] #[response(BatchExecutionResponse)] #[error(mogh_error::Error)] diff --git a/client/core/rs/src/api/execute/maintenance.rs b/client/core/rs/src/api/execute/maintenance.rs index 1d30532219..c93f2043b9 100644 --- a/client/core/rs/src/api/execute/maintenance.rs +++ b/client/core/rs/src/api/execute/maintenance.rs @@ -28,6 +28,7 @@ pub fn clear_repo_cache() {} Debug, Clone, PartialEq, Serialize, Deserialize, Resolve, Parser, )] #[cfg_attr(feature = "utoipa", derive(utoipa::ToSchema))] +#[cfg_attr(feature = "schemars", derive(schemars::JsonSchema))] #[empty_traits(KomodoExecuteRequest)] #[response(Update)] #[error(mogh_error::Error)] @@ -60,6 +61,7 @@ pub fn backup_core_database() {} Debug, Clone, PartialEq, Serialize, Deserialize, Resolve, Parser, )] #[cfg_attr(feature = "utoipa", derive(utoipa::ToSchema))] +#[cfg_attr(feature = "schemars", derive(schemars::JsonSchema))] #[empty_traits(KomodoExecuteRequest)] #[response(Update)] #[error(mogh_error::Error)] @@ -92,6 +94,7 @@ pub fn global_auto_update() {} Debug, Clone, PartialEq, Serialize, Deserialize, Resolve, Parser, )] #[cfg_attr(feature = "utoipa", derive(utoipa::ToSchema))] +#[cfg_attr(feature = "schemars", derive(schemars::JsonSchema))] #[empty_traits(KomodoExecuteRequest)] #[response(Update)] #[error(mogh_error::Error)] @@ -125,6 +128,7 @@ pub fn rotate_all_server_keys() {} Debug, Clone, PartialEq, Serialize, Deserialize, Resolve, Parser, )] #[cfg_attr(feature = "utoipa", derive(utoipa::ToSchema))] +#[cfg_attr(feature = "schemars", derive(schemars::JsonSchema))] #[empty_traits(KomodoExecuteRequest)] #[response(Update)] #[error(mogh_error::Error)] @@ -155,6 +159,7 @@ pub fn rotate_core_keys() {} Debug, Clone, PartialEq, Serialize, Deserialize, Resolve, Parser, )] #[cfg_attr(feature = "utoipa", derive(utoipa::ToSchema))] +#[cfg_attr(feature = "schemars", derive(schemars::JsonSchema))] #[empty_traits(KomodoExecuteRequest)] #[response(Update)] #[error(mogh_error::Error)] diff --git a/client/core/rs/src/api/execute/mod.rs b/client/core/rs/src/api/execute/mod.rs index c3674cc785..963a035599 100644 --- a/client/core/rs/src/api/execute/mod.rs +++ b/client/core/rs/src/api/execute/mod.rs @@ -78,6 +78,7 @@ pub trait KomodoExecuteRequest: HasResponse {} utoipa::ToSchema )) )] +#[cfg_attr(feature = "schemars", derive(schemars::JsonSchema))] #[serde(tag = "type", content = "params")] pub enum Execution { /// The "null" execution. Does nothing. @@ -215,6 +216,7 @@ pub enum Execution { #[typeshare] #[derive(Debug, Clone, PartialEq, Serialize, Deserialize, Parser)] #[cfg_attr(feature = "utoipa", derive(utoipa::ToSchema))] +#[cfg_attr(feature = "schemars", derive(schemars::JsonSchema))] pub struct Sleep { #[serde(default)] pub duration_ms: I64, diff --git a/client/core/rs/src/api/execute/procedure.rs b/client/core/rs/src/api/execute/procedure.rs index 27745f13d5..c04ce92ae2 100644 --- a/client/core/rs/src/api/execute/procedure.rs +++ b/client/core/rs/src/api/execute/procedure.rs @@ -27,6 +27,7 @@ pub fn run_procedure() {} Debug, Clone, PartialEq, Serialize, Deserialize, Resolve, Parser, )] #[cfg_attr(feature = "utoipa", derive(utoipa::ToSchema))] +#[cfg_attr(feature = "schemars", derive(schemars::JsonSchema))] #[empty_traits(KomodoExecuteRequest)] #[response(Update)] #[error(mogh_error::Error)] @@ -55,6 +56,7 @@ pub fn batch_run_procedure() {} Debug, Clone, PartialEq, Serialize, Deserialize, Resolve, Parser, )] #[cfg_attr(feature = "utoipa", derive(utoipa::ToSchema))] +#[cfg_attr(feature = "schemars", derive(schemars::JsonSchema))] #[empty_traits(KomodoExecuteRequest)] #[response(BatchExecutionResponse)] #[error(mogh_error::Error)] diff --git a/client/core/rs/src/api/execute/repo.rs b/client/core/rs/src/api/execute/repo.rs index fe1cf2d0c5..8af2a2f713 100644 --- a/client/core/rs/src/api/execute/repo.rs +++ b/client/core/rs/src/api/execute/repo.rs @@ -35,6 +35,7 @@ pub fn clone_repo() {} Serialize, Deserialize, Debug, Clone, PartialEq, Resolve, Parser, )] #[cfg_attr(feature = "utoipa", derive(utoipa::ToSchema))] +#[cfg_attr(feature = "schemars", derive(schemars::JsonSchema))] #[empty_traits(KomodoExecuteRequest)] #[response(Update)] #[error(mogh_error::Error)] @@ -63,6 +64,7 @@ pub fn batch_clone_repo() {} Debug, Clone, PartialEq, Serialize, Deserialize, Resolve, Parser, )] #[cfg_attr(feature = "utoipa", derive(utoipa::ToSchema))] +#[cfg_attr(feature = "schemars", derive(schemars::JsonSchema))] #[empty_traits(KomodoExecuteRequest)] #[response(BatchExecutionResponse)] #[error(mogh_error::Error)] @@ -105,6 +107,7 @@ pub fn pull_repo() {} Serialize, Deserialize, Debug, Clone, PartialEq, Resolve, Parser, )] #[cfg_attr(feature = "utoipa", derive(utoipa::ToSchema))] +#[cfg_attr(feature = "schemars", derive(schemars::JsonSchema))] #[empty_traits(KomodoExecuteRequest)] #[response(Update)] #[error(mogh_error::Error)] @@ -133,6 +136,7 @@ pub fn batch_pull_repo() {} Debug, Clone, PartialEq, Serialize, Deserialize, Resolve, Parser, )] #[cfg_attr(feature = "utoipa", derive(utoipa::ToSchema))] +#[cfg_attr(feature = "schemars", derive(schemars::JsonSchema))] #[empty_traits(KomodoExecuteRequest)] #[response(BatchExecutionResponse)] #[error(mogh_error::Error)] @@ -179,6 +183,7 @@ pub fn build_repo() {} Serialize, Deserialize, Debug, Clone, PartialEq, Resolve, Parser, )] #[cfg_attr(feature = "utoipa", derive(utoipa::ToSchema))] +#[cfg_attr(feature = "schemars", derive(schemars::JsonSchema))] #[empty_traits(KomodoExecuteRequest)] #[response(Update)] #[error(mogh_error::Error)] @@ -207,6 +212,7 @@ pub fn batch_build_repo() {} Debug, Clone, PartialEq, Serialize, Deserialize, Resolve, Parser, )] #[cfg_attr(feature = "utoipa", derive(utoipa::ToSchema))] +#[cfg_attr(feature = "schemars", derive(schemars::JsonSchema))] #[empty_traits(KomodoExecuteRequest)] #[response(BatchExecutionResponse)] #[error(mogh_error::Error)] @@ -246,6 +252,7 @@ pub fn cancel_repo_build() {} Serialize, Deserialize, Debug, Clone, PartialEq, Resolve, Parser, )] #[cfg_attr(feature = "utoipa", derive(utoipa::ToSchema))] +#[cfg_attr(feature = "schemars", derive(schemars::JsonSchema))] #[empty_traits(KomodoExecuteRequest)] #[response(Update)] #[error(mogh_error::Error)] diff --git a/client/core/rs/src/api/execute/server.rs b/client/core/rs/src/api/execute/server.rs index 8e5bb8d05b..c3c97794f3 100644 --- a/client/core/rs/src/api/execute/server.rs +++ b/client/core/rs/src/api/execute/server.rs @@ -31,6 +31,7 @@ pub fn start_container() {} Serialize, Deserialize, Debug, Clone, PartialEq, Resolve, Parser, )] #[cfg_attr(feature = "utoipa", derive(utoipa::ToSchema))] +#[cfg_attr(feature = "schemars", derive(schemars::JsonSchema))] #[empty_traits(KomodoExecuteRequest)] #[response(Update)] #[error(mogh_error::Error)] @@ -63,6 +64,7 @@ pub fn restart_container() {} Serialize, Deserialize, Debug, Clone, PartialEq, Resolve, Parser, )] #[cfg_attr(feature = "utoipa", derive(utoipa::ToSchema))] +#[cfg_attr(feature = "schemars", derive(schemars::JsonSchema))] #[empty_traits(KomodoExecuteRequest)] #[response(Update)] #[error(mogh_error::Error)] @@ -95,6 +97,7 @@ pub fn pause_container() {} Serialize, Deserialize, Debug, Clone, PartialEq, Resolve, Parser, )] #[cfg_attr(feature = "utoipa", derive(utoipa::ToSchema))] +#[cfg_attr(feature = "schemars", derive(schemars::JsonSchema))] #[empty_traits(KomodoExecuteRequest)] #[response(Update)] #[error(mogh_error::Error)] @@ -129,6 +132,7 @@ pub fn unpause_container() {} Serialize, Deserialize, Debug, Clone, PartialEq, Resolve, Parser, )] #[cfg_attr(feature = "utoipa", derive(utoipa::ToSchema))] +#[cfg_attr(feature = "schemars", derive(schemars::JsonSchema))] #[empty_traits(KomodoExecuteRequest)] #[response(Update)] #[error(mogh_error::Error)] @@ -161,6 +165,7 @@ pub fn stop_container() {} Serialize, Deserialize, Debug, Clone, PartialEq, Resolve, Parser, )] #[cfg_attr(feature = "utoipa", derive(utoipa::ToSchema))] +#[cfg_attr(feature = "schemars", derive(schemars::JsonSchema))] #[empty_traits(KomodoExecuteRequest)] #[response(Update)] #[error(mogh_error::Error)] @@ -198,6 +203,7 @@ pub fn destroy_container() {} Serialize, Deserialize, Debug, Clone, PartialEq, Resolve, Parser, )] #[cfg_attr(feature = "utoipa", derive(utoipa::ToSchema))] +#[cfg_attr(feature = "schemars", derive(schemars::JsonSchema))] #[empty_traits(KomodoExecuteRequest)] #[response(Update)] #[error(mogh_error::Error)] @@ -232,6 +238,7 @@ pub fn start_all_containers() {} Serialize, Deserialize, Debug, Clone, PartialEq, Resolve, Parser, )] #[cfg_attr(feature = "utoipa", derive(utoipa::ToSchema))] +#[cfg_attr(feature = "schemars", derive(schemars::JsonSchema))] #[empty_traits(KomodoExecuteRequest)] #[response(Update)] #[error(mogh_error::Error)] @@ -260,6 +267,7 @@ pub fn restart_all_containers() {} Serialize, Deserialize, Debug, Clone, PartialEq, Resolve, Parser, )] #[cfg_attr(feature = "utoipa", derive(utoipa::ToSchema))] +#[cfg_attr(feature = "schemars", derive(schemars::JsonSchema))] #[empty_traits(KomodoExecuteRequest)] #[response(Update)] #[error(mogh_error::Error)] @@ -288,6 +296,7 @@ pub fn pause_all_containers() {} Serialize, Deserialize, Debug, Clone, PartialEq, Resolve, Parser, )] #[cfg_attr(feature = "utoipa", derive(utoipa::ToSchema))] +#[cfg_attr(feature = "schemars", derive(schemars::JsonSchema))] #[empty_traits(KomodoExecuteRequest)] #[response(Update)] #[error(mogh_error::Error)] @@ -316,6 +325,7 @@ pub fn unpause_all_containers() {} Serialize, Deserialize, Debug, Clone, PartialEq, Resolve, Parser, )] #[cfg_attr(feature = "utoipa", derive(utoipa::ToSchema))] +#[cfg_attr(feature = "schemars", derive(schemars::JsonSchema))] #[empty_traits(KomodoExecuteRequest)] #[response(Update)] #[error(mogh_error::Error)] @@ -344,6 +354,7 @@ pub fn stop_all_containers() {} Serialize, Deserialize, Debug, Clone, PartialEq, Resolve, Parser, )] #[cfg_attr(feature = "utoipa", derive(utoipa::ToSchema))] +#[cfg_attr(feature = "schemars", derive(schemars::JsonSchema))] #[empty_traits(KomodoExecuteRequest)] #[response(Update)] #[error(mogh_error::Error)] @@ -374,6 +385,7 @@ pub fn prune_containers() {} Serialize, Deserialize, Debug, Clone, PartialEq, Resolve, Parser, )] #[cfg_attr(feature = "utoipa", derive(utoipa::ToSchema))] +#[cfg_attr(feature = "schemars", derive(schemars::JsonSchema))] #[empty_traits(KomodoExecuteRequest)] #[response(Update)] #[error(mogh_error::Error)] @@ -405,6 +417,7 @@ pub fn delete_network() {} Serialize, Deserialize, Debug, Clone, PartialEq, Resolve, Parser, )] #[cfg_attr(feature = "utoipa", derive(utoipa::ToSchema))] +#[cfg_attr(feature = "schemars", derive(schemars::JsonSchema))] #[empty_traits(KomodoExecuteRequest)] #[response(Update)] #[error(mogh_error::Error)] @@ -437,6 +450,7 @@ pub fn prune_networks() {} Serialize, Deserialize, Debug, Clone, PartialEq, Resolve, Parser, )] #[cfg_attr(feature = "utoipa", derive(utoipa::ToSchema))] +#[cfg_attr(feature = "schemars", derive(schemars::JsonSchema))] #[empty_traits(KomodoExecuteRequest)] #[response(Update)] #[error(mogh_error::Error)] @@ -466,6 +480,7 @@ pub fn delete_image() {} Serialize, Deserialize, Debug, Clone, PartialEq, Resolve, Parser, )] #[cfg_attr(feature = "utoipa", derive(utoipa::ToSchema))] +#[cfg_attr(feature = "schemars", derive(schemars::JsonSchema))] #[empty_traits(KomodoExecuteRequest)] #[response(Update)] #[error(mogh_error::Error)] @@ -498,6 +513,7 @@ pub fn prune_images() {} Serialize, Deserialize, Debug, Clone, PartialEq, Resolve, Parser, )] #[cfg_attr(feature = "utoipa", derive(utoipa::ToSchema))] +#[cfg_attr(feature = "schemars", derive(schemars::JsonSchema))] #[empty_traits(KomodoExecuteRequest)] #[response(Update)] #[error(mogh_error::Error)] @@ -527,6 +543,7 @@ pub fn delete_volume() {} Serialize, Deserialize, Debug, Clone, PartialEq, Resolve, Parser, )] #[cfg_attr(feature = "utoipa", derive(utoipa::ToSchema))] +#[cfg_attr(feature = "schemars", derive(schemars::JsonSchema))] #[empty_traits(KomodoExecuteRequest)] #[response(Update)] #[error(mogh_error::Error)] @@ -559,6 +576,7 @@ pub fn prune_volumes() {} Serialize, Deserialize, Debug, Clone, PartialEq, Resolve, Parser, )] #[cfg_attr(feature = "utoipa", derive(utoipa::ToSchema))] +#[cfg_attr(feature = "schemars", derive(schemars::JsonSchema))] #[empty_traits(KomodoExecuteRequest)] #[response(Update)] #[error(mogh_error::Error)] @@ -589,6 +607,7 @@ pub fn prune_docker_builders() {} Serialize, Deserialize, Debug, Clone, PartialEq, Resolve, Parser, )] #[cfg_attr(feature = "utoipa", derive(utoipa::ToSchema))] +#[cfg_attr(feature = "schemars", derive(schemars::JsonSchema))] #[empty_traits(KomodoExecuteRequest)] #[response(Update)] #[error(mogh_error::Error)] @@ -619,6 +638,7 @@ pub fn prune_buildx() {} Serialize, Deserialize, Debug, Clone, PartialEq, Resolve, Parser, )] #[cfg_attr(feature = "utoipa", derive(utoipa::ToSchema))] +#[cfg_attr(feature = "schemars", derive(schemars::JsonSchema))] #[empty_traits(KomodoExecuteRequest)] #[response(Update)] #[error(mogh_error::Error)] @@ -649,6 +669,7 @@ pub fn prune_system() {} Serialize, Deserialize, Debug, Clone, PartialEq, Resolve, Parser, )] #[cfg_attr(feature = "utoipa", derive(utoipa::ToSchema))] +#[cfg_attr(feature = "schemars", derive(schemars::JsonSchema))] #[empty_traits(KomodoExecuteRequest)] #[response(Update)] #[error(mogh_error::Error)] diff --git a/client/core/rs/src/api/execute/stack.rs b/client/core/rs/src/api/execute/stack.rs index b3a55f12fa..a3fbc6da49 100644 --- a/client/core/rs/src/api/execute/stack.rs +++ b/client/core/rs/src/api/execute/stack.rs @@ -27,6 +27,7 @@ pub fn deploy_stack() {} Debug, Clone, PartialEq, Serialize, Deserialize, Resolve, Parser, )] #[cfg_attr(feature = "utoipa", derive(utoipa::ToSchema))] +#[cfg_attr(feature = "schemars", derive(schemars::JsonSchema))] #[empty_traits(KomodoExecuteRequest)] #[response(Update)] #[error(mogh_error::Error)] @@ -64,6 +65,7 @@ pub fn batch_deploy_stack() {} Serialize, Deserialize, Debug, Clone, PartialEq, Resolve, Parser, )] #[cfg_attr(feature = "utoipa", derive(utoipa::ToSchema))] +#[cfg_attr(feature = "schemars", derive(schemars::JsonSchema))] #[empty_traits(KomodoExecuteRequest)] #[response(BatchExecutionResponse)] #[error(mogh_error::Error)] @@ -103,6 +105,7 @@ pub fn deploy_stack_if_changed() {} Debug, Clone, PartialEq, Serialize, Deserialize, Resolve, Parser, )] #[cfg_attr(feature = "utoipa", derive(utoipa::ToSchema))] +#[cfg_attr(feature = "schemars", derive(schemars::JsonSchema))] #[empty_traits(KomodoExecuteRequest)] #[response(Update)] #[error(mogh_error::Error)] @@ -134,6 +137,7 @@ pub fn batch_deploy_stack_if_changed() {} Serialize, Deserialize, Debug, Clone, PartialEq, Resolve, Parser, )] #[cfg_attr(feature = "utoipa", derive(utoipa::ToSchema))] +#[cfg_attr(feature = "schemars", derive(schemars::JsonSchema))] #[empty_traits(KomodoExecuteRequest)] #[response(BatchExecutionResponse)] #[error(mogh_error::Error)] @@ -171,6 +175,7 @@ pub fn pull_stack() {} Debug, Clone, PartialEq, Serialize, Deserialize, Resolve, Parser, )] #[cfg_attr(feature = "utoipa", derive(utoipa::ToSchema))] +#[cfg_attr(feature = "schemars", derive(schemars::JsonSchema))] #[empty_traits(KomodoExecuteRequest)] #[response(Update)] #[error(mogh_error::Error)] @@ -203,6 +208,7 @@ pub fn batch_pull_stack() {} Serialize, Deserialize, Debug, Clone, PartialEq, Resolve, Parser, )] #[cfg_attr(feature = "utoipa", derive(utoipa::ToSchema))] +#[cfg_attr(feature = "schemars", derive(schemars::JsonSchema))] #[empty_traits(KomodoExecuteRequest)] #[response(BatchExecutionResponse)] #[error(mogh_error::Error)] @@ -240,6 +246,7 @@ pub fn start_stack() {} Debug, Clone, PartialEq, Serialize, Deserialize, Resolve, Parser, )] #[cfg_attr(feature = "utoipa", derive(utoipa::ToSchema))] +#[cfg_attr(feature = "schemars", derive(schemars::JsonSchema))] #[empty_traits(KomodoExecuteRequest)] #[response(Update)] #[error(mogh_error::Error)] @@ -272,6 +279,7 @@ pub fn restart_stack() {} Debug, Clone, PartialEq, Serialize, Deserialize, Resolve, Parser, )] #[cfg_attr(feature = "utoipa", derive(utoipa::ToSchema))] +#[cfg_attr(feature = "schemars", derive(schemars::JsonSchema))] #[empty_traits(KomodoExecuteRequest)] #[response(Update)] #[error(mogh_error::Error)] @@ -304,6 +312,7 @@ pub fn pause_stack() {} Debug, Clone, PartialEq, Serialize, Deserialize, Resolve, Parser, )] #[cfg_attr(feature = "utoipa", derive(utoipa::ToSchema))] +#[cfg_attr(feature = "schemars", derive(schemars::JsonSchema))] #[empty_traits(KomodoExecuteRequest)] #[response(Update)] #[error(mogh_error::Error)] @@ -338,6 +347,7 @@ pub fn unpause_stack() {} Debug, Clone, PartialEq, Serialize, Deserialize, Resolve, Parser, )] #[cfg_attr(feature = "utoipa", derive(utoipa::ToSchema))] +#[cfg_attr(feature = "schemars", derive(schemars::JsonSchema))] #[empty_traits(KomodoExecuteRequest)] #[response(Update)] #[error(mogh_error::Error)] @@ -370,6 +380,7 @@ pub fn stop_stack() {} Debug, Clone, PartialEq, Serialize, Deserialize, Resolve, Parser, )] #[cfg_attr(feature = "utoipa", derive(utoipa::ToSchema))] +#[cfg_attr(feature = "schemars", derive(schemars::JsonSchema))] #[empty_traits(KomodoExecuteRequest)] #[response(Update)] #[error(mogh_error::Error)] @@ -404,6 +415,7 @@ pub fn destroy_stack() {} Debug, Clone, PartialEq, Serialize, Deserialize, Resolve, Parser, )] #[cfg_attr(feature = "utoipa", derive(utoipa::ToSchema))] +#[cfg_attr(feature = "schemars", derive(schemars::JsonSchema))] #[empty_traits(KomodoExecuteRequest)] #[response(Update)] #[error(mogh_error::Error)] @@ -441,6 +453,7 @@ pub fn run_stack_service() {} Debug, Clone, PartialEq, Serialize, Deserialize, Resolve, Parser, )] #[cfg_attr(feature = "utoipa", derive(utoipa::ToSchema))] +#[cfg_attr(feature = "schemars", derive(schemars::JsonSchema))] #[empty_traits(KomodoExecuteRequest)] #[response(Update)] #[error(mogh_error::Error)] @@ -505,6 +518,7 @@ pub fn batch_destroy_stack() {} Serialize, Deserialize, Debug, Clone, PartialEq, Resolve, Parser, )] #[cfg_attr(feature = "utoipa", derive(utoipa::ToSchema))] +#[cfg_attr(feature = "schemars", derive(schemars::JsonSchema))] #[empty_traits(KomodoExecuteRequest)] #[response(BatchExecutionResponse)] #[error(mogh_error::Error)] diff --git a/client/core/rs/src/api/execute/swarm.rs b/client/core/rs/src/api/execute/swarm.rs index fe74d81b02..41880f59c2 100644 --- a/client/core/rs/src/api/execute/swarm.rs +++ b/client/core/rs/src/api/execute/swarm.rs @@ -35,6 +35,7 @@ pub fn remove_swarm_nodes() {} Serialize, Deserialize, Debug, Clone, PartialEq, Resolve, Parser, )] #[cfg_attr(feature = "utoipa", derive(utoipa::ToSchema))] +#[cfg_attr(feature = "schemars", derive(schemars::JsonSchema))] #[empty_traits(KomodoExecuteRequest)] #[response(Update)] #[error(mogh_error::Error)] @@ -69,6 +70,7 @@ pub fn update_swarm_node() {} Serialize, Deserialize, Debug, Clone, PartialEq, Resolve, Parser, )] #[cfg_attr(feature = "utoipa", derive(utoipa::ToSchema))] +#[cfg_attr(feature = "schemars", derive(schemars::JsonSchema))] #[empty_traits(KomodoExecuteRequest)] #[response(Update)] #[error(mogh_error::Error)] @@ -115,6 +117,7 @@ pub fn remove_swarm_stacks() {} Serialize, Deserialize, Debug, Clone, PartialEq, Resolve, Parser, )] #[cfg_attr(feature = "utoipa", derive(utoipa::ToSchema))] +#[cfg_attr(feature = "schemars", derive(schemars::JsonSchema))] #[empty_traits(KomodoExecuteRequest)] #[response(Update)] #[error(mogh_error::Error)] @@ -157,6 +160,7 @@ pub fn remove_swarm_services() {} Serialize, Deserialize, Debug, Clone, PartialEq, Resolve, Parser, )] #[cfg_attr(feature = "utoipa", derive(utoipa::ToSchema))] +#[cfg_attr(feature = "schemars", derive(schemars::JsonSchema))] #[empty_traits(KomodoExecuteRequest)] #[response(Update)] #[error(mogh_error::Error)] @@ -191,6 +195,7 @@ pub fn create_swarm_config() {} Serialize, Deserialize, Debug, Clone, PartialEq, Resolve, Parser, )] #[cfg_attr(feature = "utoipa", derive(utoipa::ToSchema))] +#[cfg_attr(feature = "schemars", derive(schemars::JsonSchema))] #[empty_traits(KomodoExecuteRequest)] #[response(Update)] #[error(mogh_error::Error)] @@ -240,6 +245,7 @@ pub fn rotate_swarm_config() {} Serialize, Deserialize, Debug, Clone, PartialEq, Resolve, Parser, )] #[cfg_attr(feature = "utoipa", derive(utoipa::ToSchema))] +#[cfg_attr(feature = "schemars", derive(schemars::JsonSchema))] #[empty_traits(KomodoExecuteRequest)] #[response(Update)] #[error(mogh_error::Error)] @@ -274,6 +280,7 @@ pub fn remove_swarm_configs() {} Serialize, Deserialize, Debug, Clone, PartialEq, Resolve, Parser, )] #[cfg_attr(feature = "utoipa", derive(utoipa::ToSchema))] +#[cfg_attr(feature = "schemars", derive(schemars::JsonSchema))] #[empty_traits(KomodoExecuteRequest)] #[response(Update)] #[error(mogh_error::Error)] @@ -308,6 +315,7 @@ pub fn create_swarm_secret() {} Serialize, Deserialize, Debug, Clone, PartialEq, Resolve, Parser, )] #[cfg_attr(feature = "utoipa", derive(utoipa::ToSchema))] +#[cfg_attr(feature = "schemars", derive(schemars::JsonSchema))] #[empty_traits(KomodoExecuteRequest)] #[response(Update)] #[error(mogh_error::Error)] @@ -359,6 +367,7 @@ pub fn rotate_swarm_secret() {} Serialize, Deserialize, Debug, Clone, PartialEq, Resolve, Parser, )] #[cfg_attr(feature = "utoipa", derive(utoipa::ToSchema))] +#[cfg_attr(feature = "schemars", derive(schemars::JsonSchema))] #[empty_traits(KomodoExecuteRequest)] #[response(Update)] #[error(mogh_error::Error)] @@ -393,6 +402,7 @@ pub fn remove_swarm_secrets() {} Serialize, Deserialize, Debug, Clone, PartialEq, Resolve, Parser, )] #[cfg_attr(feature = "utoipa", derive(utoipa::ToSchema))] +#[cfg_attr(feature = "schemars", derive(schemars::JsonSchema))] #[empty_traits(KomodoExecuteRequest)] #[response(Update)] #[error(mogh_error::Error)] diff --git a/client/core/rs/src/api/execute/sync.rs b/client/core/rs/src/api/execute/sync.rs index 566645b169..ef55baa37d 100644 --- a/client/core/rs/src/api/execute/sync.rs +++ b/client/core/rs/src/api/execute/sync.rs @@ -27,6 +27,7 @@ pub fn run_sync() {} Debug, Clone, PartialEq, Serialize, Deserialize, Resolve, Parser, )] #[cfg_attr(feature = "utoipa", derive(utoipa::ToSchema))] +#[cfg_attr(feature = "schemars", derive(schemars::JsonSchema))] #[empty_traits(KomodoExecuteRequest)] #[response(Update)] #[error(mogh_error::Error)] diff --git a/client/core/rs/src/api/read/mod.rs b/client/core/rs/src/api/read/mod.rs index 9f046aa5af..888e7ce426 100644 --- a/client/core/rs/src/api/read/mod.rs +++ b/client/core/rs/src/api/read/mod.rs @@ -144,7 +144,7 @@ pub struct GetCoreInfoResponse { pub enable_fancy_toml: bool, /// TZ identifier Core is using, if manually set. pub timezone: String, - /// Default public key allowing this Core to authenticate to Periphery agents. + /// Public key for Core / Periphery authentication. pub public_key: String, } diff --git a/client/core/rs/src/api/write/onboarding_key.rs b/client/core/rs/src/api/write/onboarding_key.rs index 8a9b391705..e91d9abb6a 100644 --- a/client/core/rs/src/api/write/onboarding_key.rs +++ b/client/core/rs/src/api/write/onboarding_key.rs @@ -40,7 +40,8 @@ pub struct CreateOnboardingKey { #[serde(default)] pub expires: I64, /// Optionally specify an existing private key, otherwise - /// generate fresh key. + /// generate fresh key. This key is not stored directly, + /// only the public key. pub private_key: Option, /// Default tags to apply to Servers created using this key. #[serde(default)] diff --git a/client/core/rs/src/api/write/sync.rs b/client/core/rs/src/api/write/sync.rs index 57cb5b9889..3ec0e27d00 100644 --- a/client/core/rs/src/api/write/sync.rs +++ b/client/core/rs/src/api/write/sync.rs @@ -242,6 +242,7 @@ pub fn commit_sync() {} Debug, Clone, PartialEq, Serialize, Deserialize, Resolve, Parser, )] #[cfg_attr(feature = "utoipa", derive(utoipa::ToSchema))] +#[cfg_attr(feature = "schemars", derive(schemars::JsonSchema))] #[empty_traits(KomodoWriteRequest)] #[response(Update)] #[error(mogh_error::Error)] diff --git a/client/core/rs/src/entities/action.rs b/client/core/rs/src/entities/action.rs index cc03dbd6bd..92ce10bc6f 100644 --- a/client/core/rs/src/entities/action.rs +++ b/client/core/rs/src/entities/action.rs @@ -81,6 +81,10 @@ pub type _PartialActionConfig = PartialActionConfig; #[derive(Serialize, Deserialize, Debug, Clone, Builder, Partial)] #[cfg_attr(feature = "utoipa", derive(utoipa::ToSchema))] #[partial_derive(Serialize, Deserialize, Debug, Clone, Default)] +#[cfg_attr( + feature = "schemars", + partial_derive(schemars::JsonSchema) +)] #[diff_derive(Serialize, Deserialize, Debug, Clone, Default)] #[partial(skip_serializing_none, from, diff)] pub struct ActionConfig { diff --git a/client/core/rs/src/entities/alert.rs b/client/core/rs/src/entities/alert.rs index 41632b8209..fc4d80af0d 100644 --- a/client/core/rs/src/entities/alert.rs +++ b/client/core/rs/src/entities/alert.rs @@ -74,6 +74,10 @@ pub struct Alert { utoipa::ToSchema )) )] +#[cfg_attr( + feature = "schemars", + strum_discriminants(derive(schemars::JsonSchema)) +)] #[serde(tag = "type", content = "data")] pub enum AlertData { /// A null alert @@ -382,6 +386,7 @@ impl Default for AlertDataVariant { EnumString, )] #[cfg_attr(feature = "utoipa", derive(utoipa::ToSchema))] +#[cfg_attr(feature = "schemars", derive(schemars::JsonSchema))] #[serde(rename_all = "UPPERCASE")] #[strum(serialize_all = "UPPERCASE")] pub enum SeverityLevel { diff --git a/client/core/rs/src/entities/alerter.rs b/client/core/rs/src/entities/alerter.rs index 9f8b9f9f7f..7a4d9c2d6f 100644 --- a/client/core/rs/src/entities/alerter.rs +++ b/client/core/rs/src/entities/alerter.rs @@ -45,6 +45,10 @@ pub type _PartialAlerterConfig = PartialAlerterConfig; #[derive(Serialize, Deserialize, Debug, Clone, Builder, Partial)] #[cfg_attr(feature = "utoipa", derive(utoipa::ToSchema))] #[partial_derive(Serialize, Deserialize, Debug, Clone, Default)] +#[cfg_attr( + feature = "schemars", + partial_derive(schemars::JsonSchema) +)] #[diff_derive(Serialize, Deserialize, Debug, Clone, Default)] #[partial(skip_serializing_none, from, diff)] pub struct AlerterConfig { @@ -149,6 +153,7 @@ impl utoipa::ToSchema for PartialAlerterConfig {} utoipa::ToSchema )) )] +#[cfg_attr(feature = "schemars", derive(schemars::JsonSchema))] #[serde(tag = "type", content = "params")] pub enum AlerterEndpoint { /// Send alert serialized to JSON to an http endpoint. @@ -179,6 +184,7 @@ impl Default for AlerterEndpoint { Debug, Clone, PartialEq, Serialize, Deserialize, Builder, )] #[cfg_attr(feature = "utoipa", derive(utoipa::ToSchema))] +#[cfg_attr(feature = "schemars", derive(schemars::JsonSchema))] pub struct CustomAlerterEndpoint { /// The http/s endpoint to send the POST to #[serde(default = "default_custom_url")] @@ -204,6 +210,7 @@ fn default_custom_url() -> String { Debug, Clone, PartialEq, Serialize, Deserialize, Builder, )] #[cfg_attr(feature = "utoipa", derive(utoipa::ToSchema))] +#[cfg_attr(feature = "schemars", derive(schemars::JsonSchema))] pub struct SlackAlerterEndpoint { /// The Slack app webhook url #[serde(default = "default_slack_url")] @@ -231,6 +238,7 @@ fn default_slack_url() -> String { Debug, Clone, PartialEq, Serialize, Deserialize, Builder, )] #[cfg_attr(feature = "utoipa", derive(utoipa::ToSchema))] +#[cfg_attr(feature = "schemars", derive(schemars::JsonSchema))] pub struct DiscordAlerterEndpoint { /// The Discord webhook url #[serde(default = "default_discord_url")] @@ -258,6 +266,7 @@ fn default_discord_url() -> String { Debug, Clone, PartialEq, Serialize, Deserialize, Builder, )] #[cfg_attr(feature = "utoipa", derive(utoipa::ToSchema))] +#[cfg_attr(feature = "schemars", derive(schemars::JsonSchema))] pub struct NtfyAlerterEndpoint { /// The ntfy topic URL #[serde(default = "default_ntfy_url")] @@ -288,6 +297,7 @@ fn default_ntfy_url() -> String { Debug, Clone, PartialEq, Serialize, Deserialize, Builder, )] #[cfg_attr(feature = "utoipa", derive(utoipa::ToSchema))] +#[cfg_attr(feature = "schemars", derive(schemars::JsonSchema))] pub struct PushoverAlerterEndpoint { /// The pushover URL including application and user tokens in parameters. #[serde(default = "default_pushover_url")] diff --git a/client/core/rs/src/entities/build.rs b/client/core/rs/src/entities/build.rs index b5b3c3771e..d2ae5ae794 100644 --- a/client/core/rs/src/entities/build.rs +++ b/client/core/rs/src/entities/build.rs @@ -260,18 +260,30 @@ pub type _PartialBuildConfig = PartialBuildConfig; #[derive(Debug, Clone, Serialize, Deserialize, Builder, Partial)] #[cfg_attr(feature = "utoipa", derive(utoipa::ToSchema))] #[partial_derive(Debug, Clone, Default, Serialize, Deserialize)] +#[cfg_attr( + feature = "schemars", + partial_derive(schemars::JsonSchema) +)] #[diff_derive(Debug, Clone, Default, Serialize, Deserialize)] #[partial(skip_serializing_none, from, diff)] pub struct BuildConfig { /// Which builder is used to build the image. #[serde(default, alias = "builder")] #[partial_attr(serde(alias = "builder"))] + #[cfg_attr( + feature = "schemars", + partial_attr(schemars(rename = "builder")) + )] #[builder(default)] pub builder_id: String, /// The current version of the build. #[serde(default)] #[builder(default)] + #[cfg_attr( + feature = "schemars", + partial_attr(schemars(default, schema_with = "version_schema")) + )] pub version: Version, /// Whether to automatically increment the patch on every build. @@ -523,6 +535,26 @@ fn default_webhook_enabled() -> bool { true } +#[cfg(feature = "schemars")] +fn version_schema( + _: &mut schemars::SchemaGenerator, +) -> schemars::Schema { + schemars::json_schema!({ + "description": "The current version of the build.", + "anyOf": [ + { + "$ref": "#/$defs/Version" + }, + { + "type": "string" + }, + { + "type": "null" + } + ] + }) +} + impl Default for BuildConfig { fn default() -> Self { Self { @@ -577,6 +609,7 @@ impl utoipa::ToSchema for PartialBuildConfig {} Debug, Clone, Default, PartialEq, Serialize, Deserialize, )] #[cfg_attr(feature = "utoipa", derive(utoipa::ToSchema))] +#[cfg_attr(feature = "schemars", derive(schemars::JsonSchema))] pub struct ImageRegistryConfig { /// Specify the registry provider domain, eg `docker.io`. /// If not provided, will not push to any registry. diff --git a/client/core/rs/src/entities/builder.rs b/client/core/rs/src/entities/builder.rs index f3812585f7..46e0f235c7 100644 --- a/client/core/rs/src/entities/builder.rs +++ b/client/core/rs/src/entities/builder.rs @@ -125,6 +125,7 @@ impl Default for BuilderConfig { utoipa::ToSchema )) )] +#[cfg_attr(feature = "schemars", derive(schemars::JsonSchema))] #[serde(tag = "type", content = "params")] #[allow(clippy::large_enum_variant)] pub enum PartialBuilderConfig { @@ -370,13 +371,10 @@ pub type _PartialUrlBuilderConfig = PartialUrlBuilderConfig; #[typeshare] #[derive(Serialize, Deserialize, Debug, Clone, Builder, Partial)] #[cfg_attr(feature = "utoipa", derive(utoipa::ToSchema))] +#[partial_derive(Serialize, Deserialize, Debug, Clone, Default)] #[cfg_attr( - not(feature = "utoipa"), - partial_derive(Serialize, Deserialize, Debug, Clone, Default) -)] -#[cfg_attr( - feature = "utoipa", - partial_derive(Serialize, Deserialize, Debug, Clone, Default,) + feature = "schemars", + partial_derive(schemars::JsonSchema) )] #[diff_derive(Serialize, Deserialize, Debug, Clone, Default)] #[partial(skip_serializing_none, from, diff)] @@ -451,12 +449,20 @@ pub type _PartialServerBuilderConfig = PartialServerBuilderConfig; )] #[cfg_attr(feature = "utoipa", derive(utoipa::ToSchema))] #[partial_derive(Serialize, Deserialize, Debug, Clone, Default)] +#[cfg_attr( + feature = "schemars", + partial_derive(schemars::JsonSchema) +)] #[diff_derive(Serialize, Deserialize, Debug, Clone, Default)] #[partial(skip_serializing_none, from, diff)] pub struct ServerBuilderConfig { /// The server id of the builder #[serde(default, alias = "server")] #[partial_attr(serde(alias = "server"))] + #[cfg_attr( + feature = "schemars", + partial_attr(schemars(rename = "server")) + )] pub server_id: String, } @@ -485,6 +491,10 @@ pub type _PartialAwsBuilderConfig = PartialAwsBuilderConfig; #[derive(Debug, Clone, Serialize, Deserialize, Builder, Partial)] #[cfg_attr(feature = "utoipa", derive(utoipa::ToSchema))] #[partial_derive(Serialize, Deserialize, Debug, Clone, Default)] +#[cfg_attr( + feature = "schemars", + partial_derive(schemars::JsonSchema) +)] #[diff_derive(Serialize, Deserialize, Debug, Clone, Default)] #[partial(skip_serializing_none, from, diff)] pub struct AwsBuilderConfig { diff --git a/client/core/rs/src/entities/config/core.rs b/client/core/rs/src/entities/config/core.rs index 69ce8fc97d..1a1692a35c 100644 --- a/client/core/rs/src/entities/config/core.rs +++ b/client/core/rs/src/entities/config/core.rs @@ -174,6 +174,8 @@ pub struct Env { pub komodo_oidc_additional_audiences: Option>, /// Override `oidc_additional_audiences` from file pub komodo_oidc_additional_audiences_file: Option, + /// Override `oidc_auto_redirect` + pub komodo_oidc_auto_redirect: Option, /// Override `google_oauth.enabled` pub komodo_google_oauth_enabled: Option, @@ -211,6 +213,17 @@ pub struct Env { /// Override `session_allow_cross_site` pub komodo_session_allow_cross_site: Option, + /// Override `x_content_type_options` + pub komodo_x_content_type_options: Option, + /// Override `x_frame_options` + pub komodo_x_frame_options: Option, + /// Override `x_xss_protection` + pub komodo_x_xss_protection: Option, + /// Override `x_referrer_policy` + pub komodo_referrer_policy: Option, + /// Override `content_security_policy` + pub komodo_content_security_policy: Option, + /// Override `database.uri` #[serde(alias = "komodo_mongo_uri")] pub komodo_database_uri: Option, @@ -543,6 +556,12 @@ pub struct CoreConfig { #[serde(default, skip_serializing_if = "Vec::is_empty")] pub oidc_additional_audiences: Vec, + /// Automatically redirect unauthenticated users to the OIDC provider + /// instead of showing the login page. + /// Users can bypass the redirect by appending `?disableAutoLogin` to the login URL. + #[serde(default)] + pub oidc_auto_redirect: bool, + // ========= // = Oauth = // ========= @@ -589,6 +608,37 @@ pub struct CoreConfig { #[serde(default)] pub session_allow_cross_site: bool, + // ==================== + // = Security Headers = + // ==================== + /// `X-Content-Type-Options` header value. + /// Default is `nosniff`. Set as empty string + /// to omit the header. + #[serde(default = "default_x_content_type_options")] + pub x_content_type_options: String, + /// `X-Frame-Options` header value. Return an empty string to + /// omit the header entirely and allow iframe on any origin. Use `"SAMEORIGIN"` to allow + /// same-origin embedding only. Defaults to `"DENY"`. + #[serde(default = "default_x_frame_options")] + pub x_frame_options: String, + /// `X-XSS-PROTECTION` header value. Return an empty string to + /// omit the header entirely. Default: `1; mode=block` + #[serde(default = "default_x_xss_protection")] + pub x_xss_protection: String, + /// Apply Referrer Policy directives. + /// If empty string, no header is applied. + /// Default: `strict-origin-when-cross-origin` + #[serde(default = "default_referrer_policy")] + pub referrer_policy: String, + /// Apply Content Security Policy directives. + /// If empty string, no header is applied. + /// Default: None + /// + /// Example: + /// `default-src 'self'; object-src 'none'; base-uri 'self'; frame-ancestors 'self'; form-action 'self'` + #[serde(default)] + pub content_security_policy: String, + // ============ // = Webhooks = // ============ @@ -785,6 +835,22 @@ fn default_auth_rate_limit_window_seconds() -> u64 { 15 } +fn default_x_content_type_options() -> String { + String::from("nosniff") +} + +fn default_x_frame_options() -> String { + String::from("DENY") +} + +fn default_x_xss_protection() -> String { + String::from("1; mode=block") +} + +fn default_referrer_policy() -> String { + String::from("strict-origin-when-cross-origin") +} + fn default_sync_directory() -> PathBuf { PathBuf::from("/syncs") } @@ -857,6 +923,7 @@ impl Default for CoreConfig { oidc_client_secret: Default::default(), oidc_use_full_email: Default::default(), oidc_additional_audiences: Default::default(), + oidc_auto_redirect: Default::default(), google_oauth: Default::default(), github_oauth: Default::default(), auth_rate_limit_disabled: Default::default(), @@ -867,6 +934,11 @@ impl Default for CoreConfig { cors_allowed_origins: Default::default(), cors_allow_credentials: Default::default(), session_allow_cross_site: Default::default(), + x_content_type_options: default_x_content_type_options(), + x_frame_options: default_x_frame_options(), + x_xss_protection: default_x_xss_protection(), + referrer_policy: default_referrer_policy(), + content_security_policy: Default::default(), webhook_secret: Default::default(), webhook_base_url: Default::default(), logging: Default::default(), @@ -956,6 +1028,7 @@ impl CoreConfig { .iter() .map(|aud| empty_or_redacted(aud)) .collect(), + oidc_auto_redirect: config.oidc_auto_redirect, google_oauth: NamedOauthConfig { enabled: config.google_oauth.enabled, client_id: empty_or_redacted(&config.google_oauth.client_id), @@ -978,6 +1051,11 @@ impl CoreConfig { cors_allowed_origins: config.cors_allowed_origins, cors_allow_credentials: config.cors_allow_credentials, session_allow_cross_site: config.session_allow_cross_site, + x_content_type_options: config.x_content_type_options, + x_frame_options: config.x_frame_options, + x_xss_protection: config.x_xss_protection, + referrer_policy: config.referrer_policy, + content_security_policy: config.content_security_policy, webhook_secret: empty_or_redacted(&config.webhook_secret), webhook_base_url: config.webhook_base_url, database: config.database.sanitized(), @@ -1056,6 +1134,21 @@ impl mogh_server::ServerConfig for &CoreConfig { fn ssl_cert_file(&self) -> &str { &self.ssl_cert_file } + fn x_content_type_options(&self) -> &str { + &self.x_content_type_options + } + fn x_frame_options(&self) -> &str { + &self.x_frame_options + } + fn x_xss_protection(&self) -> &str { + &self.x_xss_protection + } + fn referrer_policy(&self) -> &str { + &self.referrer_policy + } + fn content_security_policy(&self) -> &str { + &self.content_security_policy + } } impl mogh_server::cors::CorsConfig for &CoreConfig { diff --git a/client/core/rs/src/entities/config/mod.rs b/client/core/rs/src/entities/config/mod.rs index 1e568442ec..6ec7babed8 100644 --- a/client/core/rs/src/entities/config/mod.rs +++ b/client/core/rs/src/entities/config/mod.rs @@ -119,6 +119,7 @@ impl DatabaseConfig { Deserialize, )] #[cfg_attr(feature = "utoipa", derive(utoipa::ToSchema))] +#[cfg_attr(feature = "schemars", derive(schemars::JsonSchema))] pub struct GitProvider { /// The git provider domain. Default: `github.com`. #[serde(default = "default_git_provider")] @@ -152,6 +153,7 @@ fn default_git_https() -> bool { Deserialize, )] #[cfg_attr(feature = "utoipa", derive(utoipa::ToSchema))] +#[cfg_attr(feature = "schemars", derive(schemars::JsonSchema))] pub struct DockerRegistry { /// The docker provider domain. Default: `docker.io`. #[serde(default = "default_docker_provider")] @@ -182,6 +184,7 @@ fn default_docker_provider() -> String { Deserialize, )] #[cfg_attr(feature = "utoipa", derive(utoipa::ToSchema))] +#[cfg_attr(feature = "schemars", derive(schemars::JsonSchema))] pub struct ProviderAccount { /// The account username. Required. #[serde(alias = "account")] diff --git a/client/core/rs/src/entities/deployment.rs b/client/core/rs/src/entities/deployment.rs index 9e3dc69f5f..8e3c2eecab 100644 --- a/client/core/rs/src/entities/deployment.rs +++ b/client/core/rs/src/entities/deployment.rs @@ -80,6 +80,10 @@ pub type _PartialDeploymentConfig = PartialDeploymentConfig; #[derive(Serialize, Deserialize, Debug, Clone, Builder, Partial)] #[cfg_attr(feature = "utoipa", derive(utoipa::ToSchema))] #[partial_derive(Serialize, Deserialize, Debug, Clone, Default)] +#[cfg_attr( + feature = "schemars", + partial_derive(schemars::JsonSchema) +)] #[diff_derive(Serialize, Deserialize, Debug, Clone, Default)] #[partial(skip_serializing_none, from, diff)] pub struct DeploymentConfig { @@ -89,6 +93,10 @@ pub struct DeploymentConfig { /// swarm_id overrides server_id and the Deployment will be in Swarm mode. #[serde(default, alias = "swarm")] #[partial_attr(serde(alias = "swarm"))] + #[cfg_attr( + feature = "schemars", + partial_attr(schemars(rename = "swarm")) + )] #[builder(default)] pub swarm_id: String, @@ -98,6 +106,10 @@ pub struct DeploymentConfig { /// swarm_id overrides server_id and the Deployment will be in Swarm mode. #[serde(default, alias = "server")] #[partial_attr(serde(alias = "server"))] + #[cfg_attr( + feature = "schemars", + partial_attr(schemars(rename = "server")) + )] #[builder(default)] pub server_id: String, @@ -355,6 +367,7 @@ impl utoipa::ToSchema for PartialDeploymentConfig {} utoipa::ToSchema )) )] +#[cfg_attr(feature = "schemars", derive(schemars::JsonSchema))] #[serde(tag = "type", content = "params")] pub enum DeploymentImage { /// Deploy any external image. @@ -368,6 +381,7 @@ pub enum DeploymentImage { Build { /// The id of the Build #[serde(default, alias = "build")] + #[cfg_attr(feature = "schemars", schemars(rename = "build"))] build_id: String, /// Use a custom / older version of the image produced by the build. /// if version is 0.0.0, this means `latest` image. @@ -450,6 +464,8 @@ pub enum DeploymentState { Created, /// Server mode only. Container is in restart loop Restarting, + /// Server mode only. Container is in the process of stopping + Stopping, /// Server mode only. Container is being removed Removing, /// Server mode only. Container is paused @@ -477,6 +493,7 @@ impl From for DeploymentState { ContainerStateStatusEnum::Restarting => { DeploymentState::Restarting } + ContainerStateStatusEnum::Stopping => DeploymentState::Stopping, ContainerStateStatusEnum::Removing => DeploymentState::Removing, ContainerStateStatusEnum::Exited => DeploymentState::Exited, ContainerStateStatusEnum::Dead => DeploymentState::Dead, @@ -500,6 +517,7 @@ impl From for DeploymentState { AsRefStr, )] #[cfg_attr(feature = "utoipa", derive(utoipa::ToSchema))] +#[cfg_attr(feature = "schemars", derive(schemars::JsonSchema))] pub enum RestartMode { #[default] #[serde(rename = "no")] diff --git a/client/core/rs/src/entities/docker/container.rs b/client/core/rs/src/entities/docker/container.rs index 2f2eaca429..aa2c9a033f 100644 --- a/client/core/rs/src/entities/docker/container.rs +++ b/client/core/rs/src/entities/docker/container.rs @@ -8,8 +8,8 @@ use typeshare::typeshare; use crate::entities::{I64, Usize}; use super::{ - ContainerConfig, GraphDriverData, Mount, MountTypeEnum, - PortBinding, ResourcesUlimits, + ContainerConfig, GraphDriverData, Mount, PortBinding, + ResourcesUlimits, }; /// Container summary returned by container list apis. @@ -294,6 +294,7 @@ pub enum ContainerStateStatusEnum { Paused, Restarting, Exited, + Stopping, Removing, Dead, #[default] @@ -858,8 +859,8 @@ pub enum HostConfigCgroupnsModeEnum { #[cfg_attr(feature = "utoipa", derive(utoipa::ToSchema))] pub struct MountPoint { /// The mount type: - `bind` a mount of a file or directory from the host into the container. - `volume` a docker volume with the given `Name`. - `tmpfs` a `tmpfs`. - `npipe` a named pipe from the host into the container. - `cluster` a Swarm cluster volume - #[serde(default, rename = "Type")] - pub typ: MountTypeEnum, + #[serde(rename = "Type")] + pub typ: Option, /// Name is the name reference to the underlying data defined by `Source` e.g., the volume name. #[serde(rename = "Name")] diff --git a/client/core/rs/src/entities/docker/mod.rs b/client/core/rs/src/entities/docker/mod.rs index 2375a5223b..a64b0d78fa 100644 --- a/client/core/rs/src/entities/docker/mod.rs +++ b/client/core/rs/src/entities/docker/mod.rs @@ -267,7 +267,7 @@ pub struct Mount { /// - `tmpfs` Create a tmpfs with the given options. The mount source cannot be specified for tmpfs. - `npipe` Mounts a named pipe from the host into the container. Must exist prior to creating the container. /// - `cluster` a Swarm cluster volume #[serde(default, rename = "Type")] - pub typ: MountTypeEnum, + pub typ: MountType, /// Whether the mount should be read-only. #[serde(rename = "ReadOnly")] @@ -301,10 +301,8 @@ pub struct Mount { Default, )] #[cfg_attr(feature = "utoipa", derive(utoipa::ToSchema))] -pub enum MountTypeEnum { +pub enum MountType { #[default] - #[serde(rename = "")] - Empty, #[serde(rename = "bind")] Bind, #[serde(rename = "volume")] @@ -643,3 +641,15 @@ pub struct TlsInfo { #[serde(rename = "CertIssuerPublicKey")] pub cert_issuer_public_key: Option, } + +/// A map of topological domains to topological segments. For in depth details, see documentation for the Topology object in the CSI specification. +#[typeshare] +#[derive( + Debug, Clone, Default, PartialEq, Serialize, Deserialize, +)] +#[cfg_attr(feature = "utoipa", derive(utoipa::ToSchema))] +pub struct Topology { + #[serde(rename = "Segments")] + #[serde(skip_serializing_if = "Option::is_none")] + pub segments: Option>, +} diff --git a/client/core/rs/src/entities/docker/node.rs b/client/core/rs/src/entities/docker/node.rs index 040eacedab..2b5d8bf09d 100644 --- a/client/core/rs/src/entities/docker/node.rs +++ b/client/core/rs/src/entities/docker/node.rs @@ -129,6 +129,7 @@ pub struct NodeSpec { ValueEnum, )] #[cfg_attr(feature = "utoipa", derive(utoipa::ToSchema))] +#[cfg_attr(feature = "schemars", derive(schemars::JsonSchema))] pub enum NodeSpecRoleEnum { #[default] #[serde(rename = "")] @@ -155,6 +156,7 @@ pub enum NodeSpecRoleEnum { ValueEnum, )] #[cfg_attr(feature = "utoipa", derive(utoipa::ToSchema))] +#[cfg_attr(feature = "schemars", derive(schemars::JsonSchema))] pub enum NodeSpecAvailabilityEnum { #[default] #[serde(rename = "")] diff --git a/client/core/rs/src/entities/docker/volume.rs b/client/core/rs/src/entities/docker/volume.rs index 14a42ceeb7..db9a66d6ef 100644 --- a/client/core/rs/src/entities/docker/volume.rs +++ b/client/core/rs/src/entities/docker/volume.rs @@ -3,9 +3,9 @@ use std::collections::HashMap; use serde::{Deserialize, Serialize}; use typeshare::typeshare; -use crate::entities::I64; +use crate::entities::{I64, docker::Topology}; -use super::{ObjectVersion, PortBinding}; +use super::ObjectVersion; #[typeshare] #[derive( @@ -145,8 +145,8 @@ pub struct ClusterVolumeInfo { pub volume_id: Option, /// The topology this volume is actually accessible from. - #[serde(default, rename = "AccessibleTopology")] - pub accessible_topology: Vec, + #[serde(rename = "AccessibleTopology")] + pub accessible_topology: Option>, } #[typeshare] @@ -319,17 +319,14 @@ pub struct ClusterVolumeSpecAccessModeSecrets { #[cfg_attr(feature = "utoipa", derive(utoipa::ToSchema))] pub struct ClusterVolumeSpecAccessModeAccessibilityRequirements { /// A list of required topologies, at least one of which the volume must be accessible from. - #[serde(default, rename = "Requisite")] - pub requisite: Vec, + #[serde(rename = "Requisite")] + pub requisite: Option>, /// A list of topologies that the volume should attempt to be provisioned in. - #[serde(default, rename = "Preferred")] - pub preferred: Vec, + #[serde(rename = "Preferred")] + pub preferred: Option>, } -#[typeshare] -pub type Topology = HashMap>; - /// The desired capacity that the volume should be created with. If empty, the plugin will decide the capacity. #[typeshare] #[derive( diff --git a/client/core/rs/src/entities/mod.rs b/client/core/rs/src/entities/mod.rs index 3b569532a1..cd3a31b0e1 100644 --- a/client/core/rs/src/entities/mod.rs +++ b/client/core/rs/src/entities/mod.rs @@ -103,6 +103,7 @@ pub type _Serror = Serror; Debug, Clone, Default, PartialEq, Serialize, Deserialize, Parser, )] #[cfg_attr(feature = "utoipa", derive(utoipa::ToSchema))] +#[cfg_attr(feature = "schemars", derive(schemars::JsonSchema))] pub struct NoData {} pub trait MergePartial: Sized { @@ -210,11 +211,14 @@ pub struct __Serror { Serialize, Deserialize, Debug, Clone, Default, PartialEq, Eq, )] #[cfg_attr(feature = "utoipa", derive(utoipa::ToSchema))] +#[cfg_attr(feature = "schemars", derive(schemars::JsonSchema))] pub struct SystemCommand { #[serde(default)] pub path: String, #[serde(default, deserialize_with = "file_contents_deserializer")] pub command: String, + #[serde(default)] + pub shell_mode: bool, } impl SystemCommand { @@ -238,6 +242,7 @@ impl SystemCommand { #[typeshare] #[derive(Serialize, Debug, Clone, Copy, Default, PartialEq)] #[cfg_attr(feature = "utoipa", derive(utoipa::ToSchema))] +#[cfg_attr(feature = "schemars", derive(schemars::JsonSchema))] pub struct Version { pub major: i32, pub minor: i32, @@ -488,6 +493,7 @@ impl ImageDigest { #[typeshare] #[derive(Serialize, Deserialize, Debug, Clone, PartialEq)] #[cfg_attr(feature = "utoipa", derive(utoipa::ToSchema))] +#[cfg_attr(feature = "schemars", derive(schemars::JsonSchema))] pub struct MaintenanceWindow { /// Name for the maintenance window (required) pub name: String, @@ -920,6 +926,7 @@ pub enum DayOfWeek { Deserialize, )] #[cfg_attr(feature = "utoipa", derive(utoipa::ToSchema))] +#[cfg_attr(feature = "schemars", derive(schemars::JsonSchema))] pub enum MaintenanceScheduleType { /// Daily at the specified time #[default] @@ -1364,6 +1371,7 @@ pub enum SearchCombinator { EnumString, )] #[cfg_attr(feature = "utoipa", derive(utoipa::ToSchema))] +#[cfg_attr(feature = "schemars", derive(schemars::JsonSchema))] #[serde(rename_all = "UPPERCASE")] #[strum(serialize_all = "UPPERCASE")] pub enum TerminationSignal { @@ -1421,6 +1429,11 @@ pub enum TerminationSignal { utoipa::ToSchema, )) )] +#[cfg_attr( + feature = "schemars", + strum_discriminants(derive(schemars::JsonSchema)) +)] +#[cfg_attr(feature = "schemars", derive(schemars::JsonSchema))] #[serde(tag = "type", content = "id")] pub enum ResourceTarget { System(String), @@ -1577,6 +1590,7 @@ impl ResourceTargetVariant { Debug, Clone, Copy, PartialEq, Eq, Default, Serialize, Deserialize, )] #[cfg_attr(feature = "utoipa", derive(utoipa::ToSchema))] +#[cfg_attr(feature = "schemars", derive(schemars::JsonSchema))] pub enum ScheduleFormat { #[default] English, @@ -1588,6 +1602,7 @@ pub enum ScheduleFormat { Debug, Clone, Copy, PartialEq, Eq, Default, Serialize, Deserialize, )] #[cfg_attr(feature = "utoipa", derive(utoipa::ToSchema))] +#[cfg_attr(feature = "schemars", derive(schemars::JsonSchema))] #[serde(rename_all = "snake_case")] pub enum FileFormat { #[default] diff --git a/client/core/rs/src/entities/permission.rs b/client/core/rs/src/entities/permission.rs index 9143cf5d58..18d295291a 100644 --- a/client/core/rs/src/entities/permission.rs +++ b/client/core/rs/src/entities/permission.rs @@ -118,6 +118,7 @@ impl UserTarget { Default, )] #[cfg_attr(feature = "utoipa", derive(utoipa::ToSchema))] +#[cfg_attr(feature = "schemars", derive(schemars::JsonSchema))] pub enum PermissionLevel { /// No permissions. #[default] @@ -156,6 +157,7 @@ impl Default for &PermissionLevel { Ord, )] #[cfg_attr(feature = "utoipa", derive(utoipa::ToSchema))] +#[cfg_attr(feature = "schemars", derive(schemars::JsonSchema))] pub enum SpecificPermission { /// On **Server** /// - Access the terminal apis @@ -193,6 +195,7 @@ impl SpecificPermission { #[typeshare] #[derive(Debug, Clone, Default)] #[cfg_attr(feature = "utoipa", derive(utoipa::ToSchema))] +#[cfg_attr(feature = "schemars", derive(schemars::JsonSchema))] pub struct PermissionLevelAndSpecifics { pub level: PermissionLevel, #[cfg_attr(feature = "utoipa", schema(value_type = Vec))] diff --git a/client/core/rs/src/entities/procedure.rs b/client/core/rs/src/entities/procedure.rs index a61a6871a5..a534da0da2 100644 --- a/client/core/rs/src/entities/procedure.rs +++ b/client/core/rs/src/entities/procedure.rs @@ -82,12 +82,20 @@ pub type _PartialProcedureConfig = PartialProcedureConfig; #[derive(Debug, Clone, Serialize, Deserialize, Partial, Builder)] #[cfg_attr(feature = "utoipa", derive(utoipa::ToSchema))] #[partial_derive(Debug, Clone, Default, Serialize, Deserialize)] +#[cfg_attr( + feature = "schemars", + partial_derive(schemars::JsonSchema) +)] #[diff_derive(Debug, Clone, Default, Serialize, Deserialize)] #[partial(skip_serializing_none, from, diff)] pub struct ProcedureConfig { /// The stages to be run by the procedure. #[serde(default, alias = "stage")] #[partial_attr(serde(alias = "stage"))] + #[cfg_attr( + feature = "schemars", + partial_attr(schemars(rename = "stage")) + )] #[builder(default)] pub stages: Vec, @@ -207,6 +215,7 @@ impl utoipa::ToSchema for PartialProcedureConfig {} #[typeshare] #[derive(Debug, Clone, PartialEq, Serialize, Deserialize)] #[cfg_attr(feature = "utoipa", derive(utoipa::ToSchema))] +#[cfg_attr(feature = "schemars", derive(schemars::JsonSchema))] pub struct ProcedureStage { /// A name for the procedure pub name: String, @@ -222,6 +231,7 @@ pub struct ProcedureStage { #[typeshare] #[derive(Debug, Clone, PartialEq, Serialize, Deserialize)] #[cfg_attr(feature = "utoipa", derive(utoipa::ToSchema))] +#[cfg_attr(feature = "schemars", derive(schemars::JsonSchema))] pub struct EnabledExecution { /// The execution request to run. pub execution: Execution, diff --git a/client/core/rs/src/entities/repo.rs b/client/core/rs/src/entities/repo.rs index 3b86c35854..3c48af4478 100644 --- a/client/core/rs/src/entities/repo.rs +++ b/client/core/rs/src/entities/repo.rs @@ -113,18 +113,30 @@ pub type _PartialRepoConfig = PartialRepoConfig; #[derive(Serialize, Deserialize, Debug, Clone, Builder, Partial)] #[cfg_attr(feature = "utoipa", derive(utoipa::ToSchema))] #[partial_derive(Serialize, Deserialize, Debug, Clone, Default)] +#[cfg_attr( + feature = "schemars", + partial_derive(schemars::JsonSchema) +)] #[diff_derive(Serialize, Deserialize, Debug, Clone, Default)] #[partial(skip_serializing_none, from, diff)] pub struct RepoConfig { /// The server to clone the repo on. #[serde(default, alias = "server")] #[partial_attr(serde(alias = "server"))] + #[cfg_attr( + feature = "schemars", + partial_attr(schemars(rename = "server")) + )] #[builder(default)] pub server_id: String, /// Attach a builder to 'build' the repo. #[serde(default, alias = "builder")] #[partial_attr(serde(alias = "builder"))] + #[cfg_attr( + feature = "schemars", + partial_attr(schemars(rename = "builder")) + )] #[builder(default)] pub builder_id: String, diff --git a/client/core/rs/src/entities/server.rs b/client/core/rs/src/entities/server.rs index c80328cd14..823f1846e0 100644 --- a/client/core/rs/src/entities/server.rs +++ b/client/core/rs/src/entities/server.rs @@ -96,6 +96,10 @@ pub type _PartialServerConfig = PartialServerConfig; #[derive(Serialize, Deserialize, Debug, Clone, Builder, Partial)] #[cfg_attr(feature = "utoipa", derive(utoipa::ToSchema))] #[partial_derive(Serialize, Deserialize, Debug, Clone, Default)] +#[cfg_attr( + feature = "schemars", + partial_derive(schemars::JsonSchema) +)] #[diff_derive(Serialize, Deserialize, Debug, Clone, Default)] #[partial(skip_serializing_none, from, diff)] pub struct ServerConfig { diff --git a/client/core/rs/src/entities/stack.rs b/client/core/rs/src/entities/stack.rs index 1cff045ddc..1b62304bd2 100644 --- a/client/core/rs/src/entities/stack.rs +++ b/client/core/rs/src/entities/stack.rs @@ -293,6 +293,10 @@ pub type _PartialStackConfig = PartialStackConfig; #[derive(Debug, Clone, Serialize, Deserialize, Builder, Partial)] #[cfg_attr(feature = "utoipa", derive(utoipa::ToSchema))] #[partial_derive(Debug, Clone, Default, Serialize, Deserialize)] +#[cfg_attr( + feature = "schemars", + partial_derive(schemars::JsonSchema) +)] #[diff_derive(Debug, Clone, Default, Serialize, Deserialize)] #[partial(skip_serializing_none, from, diff)] pub struct StackConfig { @@ -302,6 +306,10 @@ pub struct StackConfig { /// swarm_id overrides server_id and the Stack will be in Swarm mode. #[serde(default, alias = "swarm")] #[partial_attr(serde(alias = "swarm"))] + #[cfg_attr( + feature = "schemars", + partial_attr(schemars(rename = "swarm")) + )] #[builder(default)] pub swarm_id: String, @@ -311,6 +319,10 @@ pub struct StackConfig { /// swarm_id overrides server_id and the Stack will be in Swarm mode. #[serde(default, alias = "server")] #[partial_attr(serde(alias = "server"))] + #[cfg_attr( + feature = "schemars", + partial_attr(schemars(rename = "server")) + )] #[builder(default)] pub server_id: String, @@ -371,6 +383,17 @@ pub struct StackConfig { #[builder(default)] pub auto_update_all_services: bool, + /// Ignore certain services during Global Auto Update polling. + /// Services listed here are skipped only in the global auto-update flow. + /// Manual checks still include all services. + #[serde(default, deserialize_with = "string_list_deserializer")] + #[partial_attr(serde( + default, + deserialize_with = "option_string_list_deserializer" + ))] + #[builder(default)] + pub auto_update_skip_services: Vec, + /// Whether to run `docker compose down` before `compose up`. #[serde(default)] #[builder(default)] @@ -688,6 +711,7 @@ impl Default for StackConfig { poll_for_updates: Default::default(), auto_update: Default::default(), auto_update_all_services: Default::default(), + auto_update_skip_services: Default::default(), ignore_services: Default::default(), pre_deploy: Default::default(), post_deploy: Default::default(), @@ -915,6 +939,7 @@ pub struct StackRemoteFileContents { Deserialize, )] #[cfg_attr(feature = "utoipa", derive(utoipa::ToSchema))] +#[cfg_attr(feature = "schemars", derive(schemars::JsonSchema))] pub enum StackFileRequires { /// Diff requires service redeploy. #[serde(alias = "redeploy")] @@ -933,6 +958,7 @@ pub enum StackFileRequires { #[typeshare] #[derive(Debug, Clone, PartialEq, Eq, Hash, Serialize)] #[cfg_attr(feature = "utoipa", derive(utoipa::ToSchema))] +#[cfg_attr(feature = "schemars", derive(schemars::JsonSchema))] pub struct AdditionalEnvFile { /// File path relative to run directory pub path: String, @@ -1012,6 +1038,7 @@ impl<'de> Deserialize<'de> for AdditionalEnvFile { #[typeshare] #[derive(Debug, Clone, PartialEq, Eq, Hash, Serialize)] #[cfg_attr(feature = "utoipa", derive(utoipa::ToSchema))] +#[cfg_attr(feature = "schemars", derive(schemars::JsonSchema))] pub struct StackFileDependency { /// Specify the file pub path: String, diff --git a/client/core/rs/src/entities/swarm.rs b/client/core/rs/src/entities/swarm.rs index aa641d9e7c..966d64cc03 100644 --- a/client/core/rs/src/entities/swarm.rs +++ b/client/core/rs/src/entities/swarm.rs @@ -82,6 +82,10 @@ pub type _PartialSwarmConfig = PartialSwarmConfig; )] #[cfg_attr(feature = "utoipa", derive(utoipa::ToSchema))] #[partial_derive(Serialize, Deserialize, Debug, Clone, Default)] +#[cfg_attr( + feature = "schemars", + partial_derive(schemars::JsonSchema) +)] #[diff_derive(Serialize, Deserialize, Debug, Clone, Default)] #[partial(skip_serializing_none, from, diff)] pub struct SwarmConfig { @@ -90,6 +94,10 @@ pub struct SwarmConfig { /// tries the next Server. #[serde(default, alias = "servers")] #[partial_attr(serde(alias = "servers"))] + #[cfg_attr( + feature = "schemars", + partial_attr(schemars(rename = "servers")) + )] #[builder(default)] pub server_ids: Vec, diff --git a/client/core/rs/src/entities/sync.rs b/client/core/rs/src/entities/sync.rs index 066510c1d5..0c720e0477 100644 --- a/client/core/rs/src/entities/sync.rs +++ b/client/core/rs/src/entities/sync.rs @@ -186,6 +186,10 @@ pub type _PartialResourceSyncConfig = PartialResourceSyncConfig; #[derive(Debug, Clone, Serialize, Deserialize, Builder, Partial)] #[cfg_attr(feature = "utoipa", derive(utoipa::ToSchema))] #[partial_derive(Debug, Clone, Default, Serialize, Deserialize)] +#[cfg_attr( + feature = "schemars", + partial_derive(schemars::JsonSchema) +)] #[diff_derive(Debug, Clone, Default, Serialize, Deserialize)] #[partial(skip_serializing_none, from, diff)] pub struct ResourceSyncConfig { diff --git a/client/core/rs/src/entities/toml.rs b/client/core/rs/src/entities/toml.rs index d5ebc63d61..6d1a623440 100644 --- a/client/core/rs/src/entities/toml.rs +++ b/client/core/rs/src/entities/toml.rs @@ -26,102 +26,134 @@ use super::{ #[typeshare] #[derive(Debug, Clone, Default, Serialize, Deserialize)] #[cfg_attr(feature = "utoipa", derive(utoipa::ToSchema))] +#[cfg_attr(feature = "schemars", derive(schemars::JsonSchema))] +#[cfg_attr(feature = "schemars", schemars(rename = "Resources"))] pub struct ResourcesToml { + /// Declare a swarm #[serde( default, alias = "swarm", skip_serializing_if = "Vec::is_empty" )] + #[cfg_attr(feature = "schemars", schemars(rename = "swarm"))] pub swarms: Vec>, + /// Declare a server #[serde( default, alias = "server", skip_serializing_if = "Vec::is_empty" )] + #[cfg_attr(feature = "schemars", schemars(rename = "server"))] pub servers: Vec>, + /// Declare a stack #[serde( default, - alias = "deployment", + alias = "stack", skip_serializing_if = "Vec::is_empty" )] - pub deployments: Vec>, + #[cfg_attr(feature = "schemars", schemars(rename = "stack"))] + pub stacks: Vec>, + /// Declare a deployment #[serde( default, - alias = "stack", + alias = "deployment", skip_serializing_if = "Vec::is_empty" )] - pub stacks: Vec>, + #[cfg_attr(feature = "schemars", schemars(rename = "deployment"))] + pub deployments: Vec>, + /// Declare a build #[serde( default, alias = "build", skip_serializing_if = "Vec::is_empty" )] + #[cfg_attr(feature = "schemars", schemars(rename = "build"))] pub builds: Vec>, + /// Declare a repo #[serde( default, alias = "repo", skip_serializing_if = "Vec::is_empty" )] + #[cfg_attr(feature = "schemars", schemars(rename = "repo"))] pub repos: Vec>, + /// Declare a procedure #[serde( default, alias = "procedure", skip_serializing_if = "Vec::is_empty" )] + #[cfg_attr(feature = "schemars", schemars(rename = "procedure"))] pub procedures: Vec>, + /// Declare an action #[serde( default, alias = "action", skip_serializing_if = "Vec::is_empty" )] + #[cfg_attr(feature = "schemars", schemars(rename = "action"))] pub actions: Vec>, + /// Declare an alerter #[serde( default, alias = "alerter", skip_serializing_if = "Vec::is_empty" )] + #[cfg_attr(feature = "schemars", schemars(rename = "alerter"))] pub alerters: Vec>, + /// Declare a builder #[serde( default, alias = "builder", skip_serializing_if = "Vec::is_empty" )] + #[cfg_attr(feature = "schemars", schemars(rename = "builder"))] pub builders: Vec>, + /// Declare a resource sync #[serde( default, alias = "resource_sync", skip_serializing_if = "Vec::is_empty" )] + #[cfg_attr( + feature = "schemars", + schemars(rename = "resource_sync") + )] pub resource_syncs: Vec>, + /// Declare a user group #[serde( default, alias = "user_group", skip_serializing_if = "Vec::is_empty" )] + #[cfg_attr(feature = "schemars", schemars(rename = "user_group"))] pub user_groups: Vec, + /// Declare a variable #[serde( default, alias = "variable", skip_serializing_if = "Vec::is_empty" )] + #[cfg_attr(feature = "schemars", schemars(rename = "variable"))] pub variables: Vec, } #[typeshare] #[derive(Debug, Clone, Serialize, Deserialize)] #[cfg_attr(feature = "utoipa", derive(utoipa::ToSchema))] +#[cfg_attr(feature = "schemars", derive(schemars::JsonSchema))] pub struct ResourceToml { /// The resource name. Required pub name: String, @@ -165,6 +197,7 @@ fn is_false(b: &bool) -> bool { #[typeshare] #[derive(Debug, Clone, Serialize, Deserialize)] #[cfg_attr(feature = "utoipa", derive(utoipa::ToSchema))] +#[cfg_attr(feature = "schemars", derive(schemars::JsonSchema))] pub struct UserGroupToml { /// User group name pub name: String, @@ -191,6 +224,7 @@ pub struct UserGroupToml { #[typeshare] #[derive(Debug, Clone, PartialEq, Serialize, Deserialize)] #[cfg_attr(feature = "utoipa", derive(utoipa::ToSchema))] +#[cfg_attr(feature = "schemars", derive(schemars::JsonSchema))] pub struct PermissionToml { /// Id can be: /// - resource name. `id = "abcd-build"` diff --git a/client/core/rs/src/entities/variable.rs b/client/core/rs/src/entities/variable.rs index 56154ff4e3..3721974d4b 100644 --- a/client/core/rs/src/entities/variable.rs +++ b/client/core/rs/src/entities/variable.rs @@ -6,6 +6,7 @@ use typeshare::typeshare; #[typeshare] #[derive(Serialize, Deserialize, Debug, Clone, Default)] #[cfg_attr(feature = "utoipa", derive(utoipa::ToSchema))] +#[cfg_attr(feature = "schemars", derive(schemars::JsonSchema))] #[cfg_attr( feature = "mongo", derive(mongo_indexed::derive::MongoIndexed) diff --git a/client/core/ts/package.json b/client/core/ts/package.json index 0a0eddb55f..96e668a679 100644 --- a/client/core/ts/package.json +++ b/client/core/ts/package.json @@ -1,6 +1,6 @@ { "name": "komodo_client", - "version": "2.1.2", + "version": "2.2.0", "description": "Komodo client package", "homepage": "https://komo.do", "main": "dist/lib.js", @@ -13,7 +13,7 @@ "build": "tsc" }, "dependencies": { - "mogh_auth_client": "^1.2.1" + "mogh_auth_client": "^1.5.0" }, "devDependencies": { "typescript": "^6.0.2" diff --git a/client/core/ts/src/types.ts b/client/core/ts/src/types.ts index dba43aa9c4..cb7f0c110f 100644 --- a/client/core/ts/src/types.ts +++ b/client/core/ts/src/types.ts @@ -612,6 +612,7 @@ export interface ImageRegistryConfig { export interface SystemCommand { path?: string; command?: string; + shell_mode?: boolean; } /** The build configuration. */ @@ -1427,6 +1428,8 @@ export enum DeploymentState { Created = "created", /** Server mode only. Container is in restart loop */ Restarting = "restarting", + /** Server mode only. Container is in the process of stopping */ + Stopping = "stopping", /** Server mode only. Container is being removed */ Removing = "removing", /** Server mode only. Container is paused */ @@ -2470,6 +2473,12 @@ export interface StackConfig { * Komodo will redeploy the whole Stack (all services). */ auto_update_all_services?: boolean; + /** + * Ignore certain services during Global Auto Update polling. + * Services listed here are skipped only in the global auto-update flow. + * Manual checks still include all services. + */ + auto_update_skip_services?: string[]; /** Whether to run `docker compose down` before `compose up`. */ destroy_before_deploy?: boolean; /** Whether to skip secret interpolation into the stack environment variables. */ @@ -2956,6 +2965,7 @@ export enum ContainerStateStatusEnum { Paused = "paused", Restarting = "restarting", Exited = "exited", + Stopping = "stopping", Removing = "removing", Dead = "dead", Empty = "", @@ -3087,8 +3097,7 @@ export interface RestartPolicy { MaximumRetryCount?: I64; } -export enum MountTypeEnum { - Empty = "", +export enum MountType { Bind = "bind", Volume = "volume", Image = "image", @@ -3160,7 +3169,7 @@ export interface Mount { * - `tmpfs` Create a tmpfs with the given options. The mount source cannot be specified for tmpfs. - `npipe` Mounts a named pipe from the host into the container. Must exist prior to creating the container. * - `cluster` a Swarm cluster volume */ - Type?: MountTypeEnum; + Type?: MountType; /** Whether the mount should be read-only. */ ReadOnly?: boolean; /** The consistency requirement for the mount: `default`, `consistent`, `cached`, or `delegated`. */ @@ -3333,7 +3342,7 @@ export interface GraphDriverData { /** MountPoint represents a mount point configuration inside the container. This is used for reporting the mountpoints in use by a container. */ export interface MountPoint { /** The mount type: - `bind` a mount of a file or directory from the host into the container. - `volume` a docker volume with the given `Name`. - `tmpfs` a `tmpfs`. - `npipe` a named pipe from the host into the container. - `cluster` a Swarm cluster volume */ - Type?: MountTypeEnum; + Type?: string; /** Name is the name reference to the underlying data defined by `Source` e.g., the volume name. */ Name?: string; /** Source location of the mount. For volumes, this contains the storage location of the volume (within `/var/lib/docker/volumes/`). For bind-mounts, and `npipe`, this contains the source (host) part of the bind-mount. For `tmpfs` mount points, this field is empty. */ @@ -4293,7 +4302,10 @@ export interface ClusterVolumeSpecAccessModeSecrets { Secret?: string; } -export type Topology = Record; +/** A map of topological domains to topological segments. For in depth details, see documentation for the Topology object in the CSI specification. */ +export interface Topology { + Segments?: Record; +} /** Requirements for the accessible topology of the volume. These fields are optional. For an in-depth description of what these fields mean, see the CSI specification. */ export interface ClusterVolumeSpecAccessModeAccessibilityRequirements { @@ -6816,7 +6828,8 @@ export interface CreateOnboardingKey { expires?: I64; /** * Optionally specify an existing private key, otherwise - * generate fresh key. + * generate fresh key. This key is not stored directly, + * only the public key. */ private_key?: string; /** Default tags to apply to Servers created using this key. */ @@ -7438,18 +7451,31 @@ export interface UserGroupToml { /** Specifies resources to sync on Komodo */ export interface ResourcesToml { + /** Declare a swarm */ swarms?: ResourceToml<_PartialSwarmConfig>[]; + /** Declare a server */ servers?: ResourceToml<_PartialServerConfig>[]; - deployments?: ResourceToml<_PartialDeploymentConfig>[]; + /** Declare a stack */ stacks?: ResourceToml<_PartialStackConfig>[]; + /** Declare a deployment */ + deployments?: ResourceToml<_PartialDeploymentConfig>[]; + /** Declare a build */ builds?: ResourceToml<_PartialBuildConfig>[]; + /** Declare a repo */ repos?: ResourceToml<_PartialRepoConfig>[]; + /** Declare a procedure */ procedures?: ResourceToml<_PartialProcedureConfig>[]; + /** Declare an action */ actions?: ResourceToml<_PartialActionConfig>[]; + /** Declare an alerter */ alerters?: ResourceToml<_PartialAlerterConfig>[]; + /** Declare a builder */ builders?: ResourceToml<_PartialBuilderConfig>[]; + /** Declare a resource sync */ resource_syncs?: ResourceToml<_PartialResourceSyncConfig>[]; + /** Declare a user group */ user_groups?: UserGroupToml[]; + /** Declare a variable */ variables?: Variable[]; } @@ -7738,7 +7764,7 @@ export interface GetCoreInfoResponse { enable_fancy_toml: boolean; /** TZ identifier Core is using, if manually set. */ timezone: string; - /** Default public key allowing this Core to authenticate to Periphery agents. */ + /** Public key for Core / Periphery authentication. */ public_key: string; } diff --git a/client/core/ts/yarn.lock b/client/core/ts/yarn.lock index dd0a833b6e..45934a5002 100644 --- a/client/core/ts/yarn.lock +++ b/client/core/ts/yarn.lock @@ -7,10 +7,10 @@ jwt-decode@^4.0.0: resolved "https://registry.yarnpkg.com/jwt-decode/-/jwt-decode-4.0.0.tgz#2270352425fd413785b2faf11f6e755c5151bd4b" integrity sha512-+KJGIyHgkGuIq3IEBNftfhW/LfWhXUIY6OmyVWjliu5KH1y0fw7VQ8YndE2O4qZdMSd9SqbnC8GOcZEy0Om7sA== -mogh_auth_client@^1.2.1: - version "1.2.1" - resolved "https://registry.yarnpkg.com/mogh_auth_client/-/mogh_auth_client-1.2.1.tgz#c8b5e9da101dc8da7b30586e5c5463f5f7a95edb" - integrity sha512-8uUjgqagwbMW8BKtTRzfQ4txpw+54hqLszbIvcYf99murVIQu5+NsRZ8/vjP/fOMawgXJXCVsR6O2lamm1BCnQ== +mogh_auth_client@^1.5.0: + version "1.5.0" + resolved "https://registry.yarnpkg.com/mogh_auth_client/-/mogh_auth_client-1.5.0.tgz#f54b8ae35648d5bf1e60d7b67fcdcef45b0ccd7a" + integrity sha512-eUQmx682AzJRaY4QJSALtIGxXzg2r2Tr8exnDeFMrNe0Ibn4Oqm3h9SkOzYiqqZjKQ13wvHm0RoxT2QKo+908g== dependencies: jwt-decode "^4.0.0" diff --git a/compose/compose.env b/compose/compose.env index 611f5e40cb..a3fe6553f8 100644 --- a/compose/compose.env +++ b/compose/compose.env @@ -145,6 +145,7 @@ PERIPHERY_CORE_PUBLIC_KEYS=file:/config/keys/core.pub ## ------ ./my_stack_2 ## --- ./repos ## ------ ./my_repo_1 +## --- ./builds PERIPHERY_ROOT_DIRECTORY=/etc/komodo ## Specify whether to disable the terminals feature @@ -164,4 +165,4 @@ PERIPHERY_INCLUDE_DISK_MOUNTS=/etc/hostname ## Prettier logging with empty lines between logs PERIPHERY_LOGGING_PRETTY=false ## More human readable logging of startup config (multi-line) -PERIPHERY_PRETTY_STARTUP_CONFIG=false \ No newline at end of file +PERIPHERY_PRETTY_STARTUP_CONFIG=false diff --git a/config/core.config.toml b/config/core.config.toml index 62b263591a..a662275249 100644 --- a/config/core.config.toml +++ b/config/core.config.toml @@ -169,14 +169,14 @@ disable_user_registration = false ## Disable local (username/password) user registration only. ## When set to true, the "Sign Up" button is hidden and local signups are blocked, -## but OIDC and other external provider signups are still allowed. +## but OIDC and other external provider signups may still be allowed. ## If not set, falls back to `disable_user_registration`. ## Env: KOMODO_DISABLE_LOCAL_USER_REGISTRATION # disable_local_user_registration = true ## Disable OIDC user registration only. ## When set to true, new users cannot register via OIDC, -## but local and other provider signups are still allowed. +## but local and other provider signups may still be allowed. ## If not set, falls back to `disable_user_registration`. ## Env: KOMODO_DISABLE_OIDC_USER_REGISTRATION # disable_oidc_user_registration = true @@ -281,6 +281,13 @@ oidc_use_full_email = false ## Default: empty oidc_additional_audiences = [] +## Automatically redirect unauthenticated users to the OIDC provider +## instead of showing the login page. +## Users can bypass the redirect by appending `?disableAutoLogin` to the login URL. +## Env: KOMODO_OIDC_AUTO_REDIRECT +## Default: false +oidc_auto_redirect = false + ######### # OAUTH # ######### @@ -338,9 +345,9 @@ auth_rate_limit_max_attempts = 5 ## Default: 15 auth_rate_limit_window_seconds = 15 -################## -# CORS / SESSION # -################## +############################ +# CORS / SESSION / HEADERS # +############################ ## Specifically set list of CORS allowed origins. ## If empty, allows all origins (`*`). @@ -357,8 +364,44 @@ cors_allow_credentials = false ## Enabling this sets 'SameSite=None', which allows externally ## hosted UIs to use the login flows. +## Env: KOMODO_SESSION_ALLOW_CROSS_SITE +## Default: false session_allow_cross_site = false +## `X-Content-Type-Options` header value. +## Set as empty string to omit the header. +## Env: KOMODO_X_CONTENT_TYPE_OPTIONS +## Default: "nosniff" +x_content_type_options = "nosniff" + +## `X-Frame-Options` header value. +## Set as empty string to omit the header. +## Use "SAMEORIGIN" to allow same-origin embedding only. +## Env: KOMODO_X_FRAME_OPTIONS +## Default: "DENY" +x_frame_options = "DENY" + +## `X-Xss-Protection` header value. +## Set as empty string to omit the header. +## Env: KOMODO_X_XSS_PROTECTION +## Default: "1; mode=block" +x_xss_protection = "1; mode=block" + +## Apply Referrer Policy directives. +## If empty string, no header is applied. +## Env: KOMODO_REFERRER_POLICY +## Default: "strict-origin-when-cross-origin" +referrer_policy = "strict-origin-when-cross-origin" + +## Apply Content Security Policy directives. +## If empty string, no header is applied. +## Env: KOMODO_CONTENT_SECURITY_POLICY +## Default: "" +## +## Example: +## `default-src 'self'; object-src 'none'; base-uri 'self'; frame-ancestors 'self'; form-action 'self'` +content_security_policy = "" + ################## # POLL INTERVALS # ################## diff --git a/config/periphery.config.toml b/config/periphery.config.toml index fd769e1f72..0da92f59bc 100644 --- a/config/periphery.config.toml +++ b/config/periphery.config.toml @@ -33,6 +33,7 @@ ## ------ ./my_stack_2 ## --- ./repos ## ------ ./my_repo_1 +## --- ./builds ## Each specific sub-directory (like ./stacks) can be overridden below. ## Env: PERIPHERY_ROOT_DIRECTORY ## Default: /etc/komodo @@ -291,4 +292,4 @@ pretty_startup_config = false ## Provide periphery-based secrets # [secrets] # SECRET_1 = "value_1" -# SECRET_2 = "value_2" \ No newline at end of file +# SECRET_2 = "value_2" diff --git a/docsite/docs/setup/connect-servers.mdx b/docsite/docs/setup/connect-servers.mdx index 122483bc9e..45ba15b277 100644 --- a/docsite/docs/setup/connect-servers.mdx +++ b/docsite/docs/setup/connect-servers.mdx @@ -141,7 +141,7 @@ Core and Periphery authenticate using automatically generated public/private key ### How it works -1. When you create an **onboarding key** in the UI or API, Komodo Core generates a key pair, and the private key is returned once the the user as the "onboarding key". +1. When you create an **onboarding key** in the UI or API, Komodo Core generates a key pair, and the private key is returned once to the user as the "onboarding key". 2. When Periphery first connects using the onboarding key, it generates its own key pair, and sends just the public key to Core. Core stores this public key for each Server. 3. All subsequent communication is authenticated by performing a @@ -163,7 +163,7 @@ Keys can also be specified inline in config instead of as file paths. ### Automatic key rotation Komodo supports automatic rotation of the Periphery key pairs. -When triggered, already connected Periphery agents generate a new key pair and sends the new public key to Komodo Core, +When triggered, already connected Periphery agents generate a new key pair and send the public key to Komodo Core, which updates its expected public key for that server. Each Server has an `auto_rotate_keys` setting (default: `true`) that controls whether it participates in the bulk `RotateAllServerKeys` operation. diff --git a/example/alerter/Dockerfile b/example/alerter/Dockerfile index 414d1f59d0..9ffd8a07f3 100644 --- a/example/alerter/Dockerfile +++ b/example/alerter/Dockerfile @@ -1,4 +1,4 @@ -FROM rust:1.94.1-bullseye as builder +FROM rust:1.95.0-trixie as builder WORKDIR /builder COPY . . diff --git a/example/update_logger/Dockerfile b/example/update_logger/Dockerfile index 9cfab17732..a4bc44fa1e 100644 --- a/example/update_logger/Dockerfile +++ b/example/update_logger/Dockerfile @@ -1,4 +1,4 @@ -FROM rust:1.94.1-bullseye as builder +FROM rust:1.95.0-trixie as builder WORKDIR /builder COPY . . diff --git a/lib/command/src/lib.rs b/lib/command/src/lib.rs index 5834099b4a..53c5baed02 100644 --- a/lib/command/src/lib.rs +++ b/lib/command/src/lib.rs @@ -167,8 +167,13 @@ fn shell() -> &'static str { String::from("/bin/bash") } else if PathBuf::from("/usr/bin/bash").exists() { String::from("/usr/bin/bash") - } else { + } else if PathBuf::from("/bin/sh").exists() { String::from("/bin/sh") + } else if PathBuf::from("/usr/bin/sh").exists() { + String::from("/usr/bin/sh") + } else { + // try to use sh wherever it is on host by name. + String::from("sh") } }) } diff --git a/runfile.toml b/runfile.toml index f1b4ab9c78..07b76e26ad 100644 --- a/runfile.toml +++ b/runfile.toml @@ -24,6 +24,13 @@ cd ../docsite && yarn && \ cd ../client/core/ts && yarn """ +[gen-resource-schema] +alias = "grs" +description = "generates resource toml definitions for edition autosuggest" +cmd = """ +cargo xtask generate resource-schema --pretty --file=./ui/public/schema/resources.json +""" + [gen-client] alias = "gc" description = "generates typescript types and build the ts client" diff --git a/ui/package.json b/ui/package.json index b3d2f95780..474a40a12f 100644 --- a/ui/package.json +++ b/ui/package.json @@ -10,34 +10,36 @@ "build-client": "cd ../client/core/ts && yarn && yarn build && yarn link" }, "dependencies": { - "@mantine/core": "^8.3.15", - "@mantine/form": "^8.3.15", - "@mantine/hooks": "^8.3.15", - "@mantine/notifications": "^8.3.15", - "@mantine/spotlight": "^8.3.15", + "@mantine/core": "^9.0.0", + "@mantine/form": "^9.0.0", + "@mantine/hooks": "^9.0.0", + "@mantine/notifications": "^9.0.0", + "@mantine/spotlight": "^9.0.0", "@monaco-editor/react": "^4.7.0", - "@tanstack/react-query": "^5.90.21", + "@tanstack/react-query": "^5.96.1", "@tanstack/react-table": "^8.21.3", "@xterm/addon-fit": "^0.11.0", "@xterm/xterm": "^6.0.0", "ansi-to-html": "^0.7.2", - "jotai": "^2.18.0", + "jotai": "^2.19.0", "jotai-family": "^1.0.1", "jotai-location": "^0.6.2", - "lucide-react": "^1.6.0", + "lucide-react": "^1.7.0", + "mogh_auth_client": "^1.5.0", + "mogh_ui": "^0.5.1", "monaco-editor": "^0.55.1", "monaco-yaml": "^5.4.1", "react": "^19.2.4", "react-dom": "^19.2.4", "react-minimal-pie-chart": "^9.1.2", - "react-router-dom": "^7.13.0", + "react-router-dom": "^7.14.0", "react-xtermjs": "^1.0.10", - "recharts": "^3.7.0", - "sanitize-html": "^2.17.1", + "recharts": "^3.8.1", + "sanitize-html": "^2.17.2", "shell-quote": "^1.8.3" }, "devDependencies": { - "@types/node": "^25.3.0", + "@types/node": "^25.5.0", "@types/react": "^19.2.14", "@types/react-dom": "^19.2.3", "@types/sanitize-html": "^2.16.0", @@ -47,7 +49,7 @@ "postcss": "^8.5.6", "postcss-preset-mantine": "^1.18.0", "postcss-simple-vars": "^7.0.1", - "sass-embedded": "^1.97.3", + "sass-embedded": "^1.99.0", "typescript": "^6.0.2", "vite": "^8.0.2" }, diff --git a/ui/public/client/types.d.ts b/ui/public/client/types.d.ts index a25b5291e0..244a4c6fc4 100644 --- a/ui/public/client/types.d.ts +++ b/ui/public/client/types.d.ts @@ -607,6 +607,7 @@ export interface ImageRegistryConfig { export interface SystemCommand { path?: string; command?: string; + shell_mode?: boolean; } /** The build configuration. */ export interface BuildConfig { @@ -1568,6 +1569,8 @@ export declare enum DeploymentState { Created = "created", /** Server mode only. Container is in restart loop */ Restarting = "restarting", + /** Server mode only. Container is in the process of stopping */ + Stopping = "stopping", /** Server mode only. Container is being removed */ Removing = "removing", /** Server mode only. Container is paused */ @@ -2614,6 +2617,12 @@ export interface StackConfig { * Komodo will redeploy the whole Stack (all services). */ auto_update_all_services?: boolean; + /** + * Ignore certain services during Global Auto Update polling. + * Services listed here are skipped only in the global auto-update flow. + * Manual checks still include all services. + */ + auto_update_skip_services?: string[]; /** Whether to run `docker compose down` before `compose up`. */ destroy_before_deploy?: boolean; /** Whether to skip secret interpolation into the stack environment variables. */ @@ -3073,6 +3082,7 @@ export declare enum ContainerStateStatusEnum { Paused = "paused", Restarting = "restarting", Exited = "exited", + Stopping = "stopping", Removing = "removing", Dead = "dead", Empty = "" @@ -3189,8 +3199,7 @@ export interface RestartPolicy { /** If `on-failure` is used, the number of times to retry before giving up. */ MaximumRetryCount?: I64; } -export declare enum MountTypeEnum { - Empty = "", +export declare enum MountType { Bind = "bind", Volume = "volume", Image = "image", @@ -3256,7 +3265,7 @@ export interface Mount { * - `tmpfs` Create a tmpfs with the given options. The mount source cannot be specified for tmpfs. - `npipe` Mounts a named pipe from the host into the container. Must exist prior to creating the container. * - `cluster` a Swarm cluster volume */ - Type?: MountTypeEnum; + Type?: MountType; /** Whether the mount should be read-only. */ ReadOnly?: boolean; /** The consistency requirement for the mount: `default`, `consistent`, `cached`, or `delegated`. */ @@ -3424,7 +3433,7 @@ export interface GraphDriverData { /** MountPoint represents a mount point configuration inside the container. This is used for reporting the mountpoints in use by a container. */ export interface MountPoint { /** The mount type: - `bind` a mount of a file or directory from the host into the container. - `volume` a docker volume with the given `Name`. - `tmpfs` a `tmpfs`. - `npipe` a named pipe from the host into the container. - `cluster` a Swarm cluster volume */ - Type?: MountTypeEnum; + Type?: string; /** Name is the name reference to the underlying data defined by `Source` e.g., the volume name. */ Name?: string; /** Source location of the mount. For volumes, this contains the storage location of the volume (within `/var/lib/docker/volumes/`). For bind-mounts, and `npipe`, this contains the source (host) part of the bind-mount. For `tmpfs` mount points, this field is empty. */ @@ -4298,7 +4307,10 @@ export interface ClusterVolumeSpecAccessModeSecrets { /** Secret is the swarm Secret object from which to read data. This can be a Secret name or ID. The Secret data is retrieved by swarm and used as the value of the key-value pair passed to the plugin. */ Secret?: string; } -export type Topology = Record; +/** A map of topological domains to topological segments. For in depth details, see documentation for the Topology object in the CSI specification. */ +export interface Topology { + Segments?: Record; +} /** Requirements for the accessible topology of the volume. These fields are optional. For an in-depth description of what these fields mean, see the CSI specification. */ export interface ClusterVolumeSpecAccessModeAccessibilityRequirements { /** A list of required topologies, at least one of which the volume must be accessible from. */ @@ -6563,7 +6575,8 @@ export interface CreateOnboardingKey { expires?: I64; /** * Optionally specify an existing private key, otherwise - * generate fresh key. + * generate fresh key. This key is not stored directly, + * only the public key. */ private_key?: string; /** Default tags to apply to Servers created using this key. */ @@ -7132,18 +7145,31 @@ export interface UserGroupToml { } /** Specifies resources to sync on Komodo */ export interface ResourcesToml { + /** Declare a swarm */ swarms?: ResourceToml<_PartialSwarmConfig>[]; + /** Declare a server */ servers?: ResourceToml<_PartialServerConfig>[]; - deployments?: ResourceToml<_PartialDeploymentConfig>[]; + /** Declare a stack */ stacks?: ResourceToml<_PartialStackConfig>[]; + /** Declare a deployment */ + deployments?: ResourceToml<_PartialDeploymentConfig>[]; + /** Declare a build */ builds?: ResourceToml<_PartialBuildConfig>[]; + /** Declare a repo */ repos?: ResourceToml<_PartialRepoConfig>[]; + /** Declare a procedure */ procedures?: ResourceToml<_PartialProcedureConfig>[]; + /** Declare an action */ actions?: ResourceToml<_PartialActionConfig>[]; + /** Declare an alerter */ alerters?: ResourceToml<_PartialAlerterConfig>[]; + /** Declare a builder */ builders?: ResourceToml<_PartialBuilderConfig>[]; + /** Declare a resource sync */ resource_syncs?: ResourceToml<_PartialResourceSyncConfig>[]; + /** Declare a user group */ user_groups?: UserGroupToml[]; + /** Declare a variable */ variables?: Variable[]; } /** @@ -7408,7 +7434,7 @@ export interface GetCoreInfoResponse { enable_fancy_toml: boolean; /** TZ identifier Core is using, if manually set. */ timezone: string; - /** Default public key allowing this Core to authenticate to Periphery agents. */ + /** Public key for Core / Periphery authentication. */ public_key: string; } /** Get a specific deployment by name or id. Response: [Deployment]. */ diff --git a/ui/public/client/types.js b/ui/public/client/types.js index 744f149bee..d48eebac66 100644 --- a/ui/public/client/types.js +++ b/ui/public/client/types.js @@ -253,6 +253,8 @@ export var DeploymentState; DeploymentState["Created"] = "created"; /** Server mode only. Container is in restart loop */ DeploymentState["Restarting"] = "restarting"; + /** Server mode only. Container is in the process of stopping */ + DeploymentState["Stopping"] = "stopping"; /** Server mode only. Container is being removed */ DeploymentState["Removing"] = "removing"; /** Server mode only. Container is paused */ @@ -418,6 +420,7 @@ export var ContainerStateStatusEnum; ContainerStateStatusEnum["Paused"] = "paused"; ContainerStateStatusEnum["Restarting"] = "restarting"; ContainerStateStatusEnum["Exited"] = "exited"; + ContainerStateStatusEnum["Stopping"] = "stopping"; ContainerStateStatusEnum["Removing"] = "removing"; ContainerStateStatusEnum["Dead"] = "dead"; ContainerStateStatusEnum["Empty"] = ""; @@ -438,16 +441,15 @@ export var RestartPolicyNameEnum; RestartPolicyNameEnum["UnlessStopped"] = "unless-stopped"; RestartPolicyNameEnum["OnFailure"] = "on-failure"; })(RestartPolicyNameEnum || (RestartPolicyNameEnum = {})); -export var MountTypeEnum; -(function (MountTypeEnum) { - MountTypeEnum["Empty"] = ""; - MountTypeEnum["Bind"] = "bind"; - MountTypeEnum["Volume"] = "volume"; - MountTypeEnum["Image"] = "image"; - MountTypeEnum["Tmpfs"] = "tmpfs"; - MountTypeEnum["Npipe"] = "npipe"; - MountTypeEnum["Cluster"] = "cluster"; -})(MountTypeEnum || (MountTypeEnum = {})); +export var MountType; +(function (MountType) { + MountType["Bind"] = "bind"; + MountType["Volume"] = "volume"; + MountType["Image"] = "image"; + MountType["Tmpfs"] = "tmpfs"; + MountType["Npipe"] = "npipe"; + MountType["Cluster"] = "cluster"; +})(MountType || (MountType = {})); export var MountBindOptionsPropagationEnum; (function (MountBindOptionsPropagationEnum) { MountBindOptionsPropagationEnum["Empty"] = ""; diff --git a/ui/public/schema/resources.json b/ui/public/schema/resources.json new file mode 100644 index 0000000000..c3a8609551 --- /dev/null +++ b/ui/public/schema/resources.json @@ -0,0 +1,6324 @@ +{ + "$schema": "http://json-schema.org/draft-07/schema#", + "title": "Resources", + "description": "Specifies resources to sync on Komodo", + "type": "object", + "properties": { + "swarm": { + "description": "Declare a swarm", + "type": "array", + "items": { + "$ref": "#/definitions/ResourceToml" + } + }, + "server": { + "description": "Declare a server", + "type": "array", + "items": { + "$ref": "#/definitions/ResourceToml2" + } + }, + "stack": { + "description": "Declare a stack", + "type": "array", + "items": { + "$ref": "#/definitions/ResourceToml3" + } + }, + "deployment": { + "description": "Declare a deployment", + "type": "array", + "items": { + "$ref": "#/definitions/ResourceToml4" + } + }, + "build": { + "description": "Declare a build", + "type": "array", + "items": { + "$ref": "#/definitions/ResourceToml5" + } + }, + "repo": { + "description": "Declare a repo", + "type": "array", + "items": { + "$ref": "#/definitions/ResourceToml6" + } + }, + "procedure": { + "description": "Declare a procedure", + "type": "array", + "items": { + "$ref": "#/definitions/ResourceToml7" + } + }, + "action": { + "description": "Declare an action", + "type": "array", + "items": { + "$ref": "#/definitions/ResourceToml8" + } + }, + "alerter": { + "description": "Declare an alerter", + "type": "array", + "items": { + "$ref": "#/definitions/ResourceToml9" + } + }, + "builder": { + "description": "Declare a builder", + "type": "array", + "items": { + "$ref": "#/definitions/ResourceToml10" + } + }, + "resource_sync": { + "description": "Declare a resource sync", + "type": "array", + "items": { + "$ref": "#/definitions/ResourceToml11" + } + }, + "user_group": { + "description": "Declare a user group", + "type": "array", + "items": { + "$ref": "#/definitions/UserGroupToml" + } + }, + "variable": { + "description": "Declare a variable", + "type": "array", + "items": { + "$ref": "#/definitions/Variable" + } + } + }, + "definitions": { + "ResourceToml": { + "type": "object", + "properties": { + "name": { + "description": "The resource name. Required", + "type": "string" + }, + "description": { + "description": "The resource description. Optional.", + "type": "string" + }, + "template": { + "description": "Mark resource as a template", + "type": "boolean" + }, + "tags": { + "description": "Tag ids or names. Optional", + "type": "array", + "items": { + "type": "string" + } + }, + "deploy": { + "description": "Optional. Only relevant for deployments / stacks.\n\nWill ensure deployment / stack is running with the latest configuration.\nDeploy actions to achieve this will be included in the sync.\nDefault is false.", + "type": "boolean" + }, + "after": { + "description": "Optional. Only relevant for deployments / stacks using the 'deploy' sync feature.\n\nSpecify other deployments / stacks by name as dependencies.\nThe sync will ensure the deployment / stack will only be deployed 'after' its dependencies.", + "type": "array", + "items": { + "type": "string" + } + }, + "config": { + "description": "Resource specific configuration.", + "allOf": [ + { + "$ref": "#/definitions/PartialSwarmConfig" + } + ] + } + }, + "required": [ + "name" + ] + }, + "PartialSwarmConfig": { + "type": "object", + "properties": { + "servers": { + "description": "The Servers which are swarm manager nodes.\nIf a Server is not reachable or gives error,\ntries the next Server.", + "type": [ + "array", + "null" + ], + "items": { + "type": "string" + } + }, + "links": { + "description": "Configure quick links that are displayed in the resource header", + "type": [ + "array", + "null" + ], + "items": { + "type": "string" + } + }, + "send_unhealthy_alerts": { + "description": "Whether to send alerts about the swarm health.", + "type": [ + "boolean", + "null" + ] + }, + "maintenance_windows": { + "description": "Scheduled maintenance windows during which alerts will be suppressed.", + "type": [ + "array", + "null" + ], + "items": { + "$ref": "#/definitions/MaintenanceWindow" + } + } + } + }, + "MaintenanceWindow": { + "description": "Represents a scheduled maintenance window", + "type": "object", + "properties": { + "name": { + "description": "Name for the maintenance window (required)", + "type": "string" + }, + "description": { + "description": "Description of what maintenance is performed (optional)", + "type": "string", + "default": "" + }, + "schedule_type": { + "description": "The type of maintenance schedule:\n - Daily (default)\n - Weekly\n - OneTime", + "default": "Daily", + "allOf": [ + { + "$ref": "#/definitions/MaintenanceScheduleType" + } + ] + }, + "day_of_week": { + "description": "For Weekly schedules: Specify the day of the week (Monday, Tuesday, etc.)", + "type": "string", + "default": "" + }, + "date": { + "description": "For OneTime window: ISO 8601 date format (YYYY-MM-DD)", + "type": "string", + "default": "" + }, + "hour": { + "description": "Start hour in 24-hour format (0-23) (optional, defaults to 0)", + "type": "integer", + "format": "uint8", + "minimum": 0, + "maximum": 255, + "default": 0 + }, + "minute": { + "description": "Start minute (0-59) (optional, defaults to 0)", + "type": "integer", + "format": "uint8", + "minimum": 0, + "maximum": 255, + "default": 0 + }, + "duration_minutes": { + "description": "Duration of the maintenance window in minutes (required)", + "type": "integer", + "format": "uint32", + "minimum": 0 + }, + "timezone": { + "description": "Timezone for maintenance window specificiation.\nIf empty, will use Core timezone.", + "type": "string", + "default": "" + }, + "enabled": { + "description": "Whether this maintenance window is currently enabled", + "type": "boolean", + "default": true + } + }, + "required": [ + "name", + "duration_minutes" + ] + }, + "MaintenanceScheduleType": { + "description": "Types of maintenance schedules", + "oneOf": [ + { + "description": "Daily at the specified time", + "type": "string", + "const": "Daily" + }, + { + "description": "Weekly on the specified day and time", + "type": "string", + "const": "Weekly" + }, + { + "description": "One-time maintenance on a specific date and time", + "type": "string", + "const": "OneTime" + } + ] + }, + "ResourceToml2": { + "type": "object", + "properties": { + "name": { + "description": "The resource name. Required", + "type": "string" + }, + "description": { + "description": "The resource description. Optional.", + "type": "string" + }, + "template": { + "description": "Mark resource as a template", + "type": "boolean" + }, + "tags": { + "description": "Tag ids or names. Optional", + "type": "array", + "items": { + "type": "string" + } + }, + "deploy": { + "description": "Optional. Only relevant for deployments / stacks.\n\nWill ensure deployment / stack is running with the latest configuration.\nDeploy actions to achieve this will be included in the sync.\nDefault is false.", + "type": "boolean" + }, + "after": { + "description": "Optional. Only relevant for deployments / stacks using the 'deploy' sync feature.\n\nSpecify other deployments / stacks by name as dependencies.\nThe sync will ensure the deployment / stack will only be deployed 'after' its dependencies.", + "type": "array", + "items": { + "type": "string" + } + }, + "config": { + "description": "Resource specific configuration.", + "allOf": [ + { + "$ref": "#/definitions/PartialServerConfig" + } + ] + } + }, + "required": [ + "name" + ] + }, + "PartialServerConfig": { + "type": "object", + "properties": { + "address": { + "description": "The ws/s address of the periphery client.\nIf unset, Server expects Periphery -> Core connection.", + "type": [ + "string", + "null" + ] + }, + "insecure_tls": { + "description": "Only relevant for Core -> Periphery connections.\nWhether to skip Periphery tls certificate validation.\nThis defaults to true because Periphery generates self-signed certificates by default,\nbut if you use valid certs you can switch this to false.", + "type": [ + "boolean", + "null" + ] + }, + "external_address": { + "description": "The address to use with links for containers on the server.\nIf empty, will use the 'address' for links.", + "type": [ + "string", + "null" + ] + }, + "region": { + "description": "An optional region label", + "type": [ + "string", + "null" + ] + }, + "enabled": { + "description": "Whether a server is enabled.\nIf a server is disabled,\nyou won't be able to perform any actions on it or see deployment's status.\nDefault: false", + "type": [ + "boolean", + "null" + ] + }, + "auto_rotate_keys": { + "description": "Whether to automatically rotate Server keys when\nRotateAllServerKeys is called.\nDefault: true", + "type": [ + "boolean", + "null" + ] + }, + "passkey": { + "description": "Deprecated. Use private / public keys instead.\nAn optional override passkey to use\nto authenticate with periphery agent.\nIf this is empty, will use passkey in core config.", + "type": [ + "string", + "null" + ] + }, + "ignore_mounts": { + "description": "Sometimes the system stats reports a mount path that is not desired.\nUse this field to filter it out from the report.", + "type": [ + "array", + "null" + ], + "items": { + "type": "string" + } + }, + "auto_prune": { + "description": "Whether to trigger 'docker image prune -a -f' every 24 hours.\ndefault: true", + "type": [ + "boolean", + "null" + ] + }, + "links": { + "description": "Configure quick links that are displayed in the resource header", + "type": [ + "array", + "null" + ], + "items": { + "type": "string" + } + }, + "stats_monitoring": { + "description": "Whether to monitor any server stats beyond passing health check.\ndefault: true", + "type": [ + "boolean", + "null" + ] + }, + "send_unreachable_alerts": { + "description": "Whether to send alerts about the servers reachability", + "type": [ + "boolean", + "null" + ] + }, + "send_cpu_alerts": { + "description": "Whether to send alerts about the servers CPU status", + "type": [ + "boolean", + "null" + ] + }, + "send_mem_alerts": { + "description": "Whether to send alerts about the servers MEM status", + "type": [ + "boolean", + "null" + ] + }, + "send_disk_alerts": { + "description": "Whether to send alerts about the servers DISK status", + "type": [ + "boolean", + "null" + ] + }, + "send_version_mismatch_alerts": { + "description": "Whether to send alerts about the servers version mismatch with core", + "type": [ + "boolean", + "null" + ] + }, + "cpu_warning": { + "description": "The percentage threshhold which triggers WARNING state for CPU.", + "type": [ + "number", + "null" + ], + "format": "float" + }, + "cpu_critical": { + "description": "The percentage threshhold which triggers CRITICAL state for CPU.", + "type": [ + "number", + "null" + ], + "format": "float" + }, + "mem_warning": { + "description": "The percentage threshhold which triggers WARNING state for MEM.", + "type": [ + "number", + "null" + ], + "format": "double" + }, + "mem_critical": { + "description": "The percentage threshhold which triggers CRITICAL state for MEM.", + "type": [ + "number", + "null" + ], + "format": "double" + }, + "disk_warning": { + "description": "The percentage threshhold which triggers WARNING state for DISK.", + "type": [ + "number", + "null" + ], + "format": "double" + }, + "disk_critical": { + "description": "The percentage threshhold which triggers CRITICAL state for DISK.", + "type": [ + "number", + "null" + ], + "format": "double" + }, + "maintenance_windows": { + "description": "Scheduled maintenance windows during which alerts will be suppressed.", + "type": [ + "array", + "null" + ], + "items": { + "$ref": "#/definitions/MaintenanceWindow" + } + } + } + }, + "ResourceToml3": { + "type": "object", + "properties": { + "name": { + "description": "The resource name. Required", + "type": "string" + }, + "description": { + "description": "The resource description. Optional.", + "type": "string" + }, + "template": { + "description": "Mark resource as a template", + "type": "boolean" + }, + "tags": { + "description": "Tag ids or names. Optional", + "type": "array", + "items": { + "type": "string" + } + }, + "deploy": { + "description": "Optional. Only relevant for deployments / stacks.\n\nWill ensure deployment / stack is running with the latest configuration.\nDeploy actions to achieve this will be included in the sync.\nDefault is false.", + "type": "boolean" + }, + "after": { + "description": "Optional. Only relevant for deployments / stacks using the 'deploy' sync feature.\n\nSpecify other deployments / stacks by name as dependencies.\nThe sync will ensure the deployment / stack will only be deployed 'after' its dependencies.", + "type": "array", + "items": { + "type": "string" + } + }, + "config": { + "description": "Resource specific configuration.", + "allOf": [ + { + "$ref": "#/definitions/PartialStackConfig" + } + ] + } + }, + "required": [ + "name" + ] + }, + "PartialStackConfig": { + "type": "object", + "properties": { + "swarm": { + "description": "The Swarm to deploy the Stack on, setting the Stack into Swarm mode.\n\nNote. If both swarm_id and server_id are set,\nswarm_id overrides server_id and the Stack will be in Swarm mode.", + "type": [ + "string", + "null" + ] + }, + "server": { + "description": "The Server to deploy the Stack on, setting the Stack into Compose mode.\n\nNote. If both swarm_id and server_id are set,\nswarm_id overrides server_id and the Stack will be in Swarm mode.", + "type": [ + "string", + "null" + ] + }, + "links": { + "description": "Configure quick links that are displayed in the resource header", + "type": [ + "array", + "null" + ], + "items": { + "type": "string" + } + }, + "project_name": { + "description": "Optionally specify a custom project name for the stack.\nIf this is empty string, it will default to the stack name.\nUsed with `docker compose -p {project_name}` / `docker stack deploy {project_name}`.\n\nNote. Can be used to import pre-existing stacks with names that do not match Stack name.", + "type": [ + "string", + "null" + ] + }, + "auto_pull": { + "description": "Whether to automatically `compose pull` before redeploying stack.\nEnsured latest images are deployed.\nWill fail if the compose file specifies a locally build image.\n\nNote. Not used in Swarm mode.", + "type": [ + "boolean", + "null" + ] + }, + "run_build": { + "description": "Whether to `docker compose build` before `compose down` / `compose up`.\nCombine with build_extra_args for custom behaviors.\n\nNote. Not used in Swarm mode.", + "type": [ + "boolean", + "null" + ] + }, + "poll_for_updates": { + "description": "Whether to poll for any updates to the images.", + "type": [ + "boolean", + "null" + ] + }, + "auto_update": { + "description": "Whether to automatically redeploy when\nnewer images are found. Will implicitly\nenable `poll_for_updates`, you don't need to\nenable both.", + "type": [ + "boolean", + "null" + ] + }, + "auto_update_all_services": { + "description": "If auto update is enabled, Komodo will\nby default only update the specific services\nwith image updates. If this parameter is set to true,\nKomodo will redeploy the whole Stack (all services).", + "type": [ + "boolean", + "null" + ] + }, + "destroy_before_deploy": { + "description": "Whether to run `docker compose down` before `compose up`.", + "type": [ + "boolean", + "null" + ] + }, + "skip_secret_interp": { + "description": "Whether to skip secret interpolation into the stack environment variables.", + "type": [ + "boolean", + "null" + ] + }, + "linked_repo": { + "description": "Choose a Komodo Repo (Resource) to source the compose files.", + "type": [ + "string", + "null" + ] + }, + "git_provider": { + "description": "The git provider domain. Default: github.com", + "type": [ + "string", + "null" + ] + }, + "git_https": { + "description": "Whether to use https to clone the repo (versus http). Default: true\n\nNote. Komodo does not currently support cloning repos via ssh.", + "type": [ + "boolean", + "null" + ] + }, + "git_account": { + "description": "The git account used to access private repos.\nPassing empty string can only clone public repos.\n\nNote. A token for the account must be available in the core config or the builder server's periphery config\nfor the configured git provider.", + "type": [ + "string", + "null" + ] + }, + "repo": { + "description": "The repo used as the source of the build.\n{namespace}/{repo_name}", + "type": [ + "string", + "null" + ] + }, + "branch": { + "description": "The branch of the repo.", + "type": [ + "string", + "null" + ] + }, + "commit": { + "description": "Optionally set a specific commit hash.", + "type": [ + "string", + "null" + ] + }, + "clone_path": { + "description": "Optionally set a specific clone path", + "type": [ + "string", + "null" + ] + }, + "reclone": { + "description": "By default, the Stack will `git pull` the repo after it is first cloned.\nIf this option is enabled, the repo folder will be deleted and recloned instead.", + "type": [ + "boolean", + "null" + ] + }, + "webhook_enabled": { + "description": "Whether incoming webhooks actually trigger action.", + "type": [ + "boolean", + "null" + ] + }, + "webhook_secret": { + "description": "Optionally provide an alternate webhook secret for this stack.\nIf its an empty string, use the default secret from the config.", + "type": [ + "string", + "null" + ] + }, + "webhook_force_deploy": { + "description": "By default, the Stack will `DeployStackIfChanged`.\nIf this option is enabled, will always run `DeployStack` without diffing.", + "type": [ + "boolean", + "null" + ] + }, + "files_on_host": { + "description": "If this is checked, the stack will source the files on the host.\nUse `run_directory` and `file_paths` to specify the path on the host.\nThis is useful for those who wish to setup their files on the host,\nrather than defining the contents in UI or in a git repo.", + "type": [ + "boolean", + "null" + ] + }, + "run_directory": { + "description": "Directory to change to (`cd`) before running `docker compose up -d`.", + "type": [ + "string", + "null" + ] + }, + "file_paths": { + "description": "Add paths to compose files, relative to the run path.\nIf this is empty, will use file `compose.yaml`.", + "type": [ + "array", + "null" + ], + "items": { + "type": "string" + } + }, + "env_file_path": { + "description": "The name of the written environment file before `docker compose up`.\nRelative to the run directory root.\nDefault: .env\n\nNote. Not used in Swarm mode.", + "type": [ + "string", + "null" + ] + }, + "additional_env_files": { + "description": "Add additional env files to attach with `--env-file`.\nRelative to the run directory root.\n\nNote. It is already included as an `additional_file`.\nDon't add it again there.", + "type": [ + "array", + "null" + ], + "items": { + "$ref": "#/definitions/AdditionalEnvFile" + } + }, + "config_files": { + "description": "Add additional config files either in repo or on host to track.\nCan add any files associated with the stack to enable editing them in the UI.\nDoing so will also include diffing these when deciding to deploy in `DeployStackIfChanged`.\nRelative to the run directory.\n\nNote. If the config file is .env and should be included in compose command\nusing `--env-file`, add it to `additional_env_files` instead.", + "type": [ + "array", + "null" + ], + "items": { + "$ref": "#/definitions/StackFileDependency" + } + }, + "send_alerts": { + "description": "Whether to send StackStateChange alerts for this stack.", + "type": [ + "boolean", + "null" + ] + }, + "registry_provider": { + "description": "Used with `registry_account` to login to a registry before docker compose up.", + "type": [ + "string", + "null" + ] + }, + "registry_account": { + "description": "Used with `registry_provider` to login to a registry before docker compose up.", + "type": [ + "string", + "null" + ] + }, + "pre_deploy": { + "description": "The optional command to run before the Stack is deployed.", + "anyOf": [ + { + "$ref": "#/definitions/SystemCommand" + }, + { + "type": "null" + } + ] + }, + "post_deploy": { + "description": "The optional command to run after the Stack is deployed.", + "anyOf": [ + { + "$ref": "#/definitions/SystemCommand" + }, + { + "type": "null" + } + ] + }, + "extra_args": { + "description": "The extra arguments to pass to the deploy command.\n\n- For Compose stack, uses `docker compose up -d [EXTRA_ARGS]`.\n- For Swarm mode. `docker stack deploy [EXTRA_ARGS] STACK_NAME`\n\nIf empty, no extra arguments will be passed.", + "type": [ + "array", + "null" + ], + "items": { + "type": "string" + } + }, + "build_extra_args": { + "description": "The extra arguments to pass after `docker compose build`.\nIf empty, no extra build arguments will be passed.\nOnly used if `run_build: true`\n\nNote. Not used in Swarm mode.", + "type": [ + "array", + "null" + ], + "items": { + "type": "string" + } + }, + "compose_cmd_wrapper": { + "description": "Optional command wrapper for secrets management tools.\nWraps the docker compose up command with a prefix command.\nUse [[COMPOSE_COMMAND]] as placeholder for the full compose command.\n\nExamples:\n- \"op run -- [[COMPOSE_COMMAND]]\" (1password CLI)\n- \"sops exec-file --no-fifo /path/to/secret.env '[[COMPOSE_COMMAND]]'\" (sops)", + "type": [ + "string", + "null" + ] + }, + "compose_cmd_wrapper_include": { + "description": "Which compose subcommands should use the wrapper.\nValid values for Compose: \"config\", \"build\", \"pull\", \"up\", \"run\"\nValid values for Swarm: \"config\", \"deploy\"\nDefault: [] (empty). If empty and wrapper is set, defaults to [\"up\"] (Compose) or [\"deploy\"] (Swarm).\nSet to [\"config\", \"build\", \"pull\", \"up\"] for sops exec-file with {} placeholder.", + "type": [ + "array", + "null" + ], + "items": { + "type": "string" + } + }, + "ignore_services": { + "description": "Ignore certain services declared in the compose file when checking\nthe stack status. For example, an init service might be exited, but the\nstack should be healthy. This init service should be in `ignore_services`", + "type": [ + "array", + "null" + ], + "items": { + "type": "string" + } + }, + "file_contents": { + "description": "The contents of the file directly, for management in the UI.\nIf this is empty, it will fall back to checking git config for\nrepo based compose file.\nSupports variable / secret interpolation.", + "type": [ + "string", + "null" + ] + }, + "environment": { + "description": "The environment variables passed to the compose file.\nThey will be written to path defined in env_file_path,\nwhich is given relative to the run directory.\n\nIf it is empty, no file will be written.\n\nNote. Not used in Swarm mode.", + "type": [ + "string", + "null" + ] + } + } + }, + "AdditionalEnvFile": { + "description": "Additional env file configuration for Stack.\nSupports backward compatibility with string-only format.", + "type": "object", + "properties": { + "path": { + "description": "File path relative to run directory", + "type": "string" + }, + "track": { + "description": "Whether Komodo should track this file's contents.\nIf true (default), Komodo will read, display, diff, and validate.\nIf false, only passed to docker compose via --env-file.\nUseful for externally managed files (e.g., sops decrypted files).", + "type": "boolean", + "default": true + } + }, + "required": [ + "path" + ] + }, + "StackFileDependency": { + "description": "Configure additional file dependencies of the Stack.", + "type": "object", + "properties": { + "path": { + "description": "Specify the file", + "type": "string" + }, + "services": { + "description": "Specify specific service/s", + "type": "array", + "items": { + "type": "string" + } + }, + "requires": { + "description": "Specify", + "allOf": [ + { + "$ref": "#/definitions/StackFileRequires" + } + ] + } + }, + "required": [ + "path" + ] + }, + "StackFileRequires": { + "oneOf": [ + { + "description": "Diff requires service redeploy.", + "type": "string", + "const": "Redeploy" + }, + { + "description": "Diff requires service restart", + "type": "string", + "const": "Restart" + }, + { + "description": "Diff requires no action. Default.", + "type": "string", + "const": "None" + } + ] + }, + "SystemCommand": { + "type": "object", + "properties": { + "path": { + "type": "string", + "default": "" + }, + "command": { + "type": "string", + "default": "" + }, + "shell_mode": { + "type": "boolean", + "default": false + } + } + }, + "ResourceToml4": { + "type": "object", + "properties": { + "name": { + "description": "The resource name. Required", + "type": "string" + }, + "description": { + "description": "The resource description. Optional.", + "type": "string" + }, + "template": { + "description": "Mark resource as a template", + "type": "boolean" + }, + "tags": { + "description": "Tag ids or names. Optional", + "type": "array", + "items": { + "type": "string" + } + }, + "deploy": { + "description": "Optional. Only relevant for deployments / stacks.\n\nWill ensure deployment / stack is running with the latest configuration.\nDeploy actions to achieve this will be included in the sync.\nDefault is false.", + "type": "boolean" + }, + "after": { + "description": "Optional. Only relevant for deployments / stacks using the 'deploy' sync feature.\n\nSpecify other deployments / stacks by name as dependencies.\nThe sync will ensure the deployment / stack will only be deployed 'after' its dependencies.", + "type": "array", + "items": { + "type": "string" + } + }, + "config": { + "description": "Resource specific configuration.", + "allOf": [ + { + "$ref": "#/definitions/PartialDeploymentConfig" + } + ] + } + }, + "required": [ + "name" + ] + }, + "PartialDeploymentConfig": { + "type": "object", + "properties": { + "swarm": { + "description": "The Swarm to deploy the Deployment on (as a Swarm Service), setting the Deployment into Swarm mode.\n\nNote. If both swarm_id and server_id are set,\nswarm_id overrides server_id and the Deployment will be in Swarm mode.", + "type": [ + "string", + "null" + ] + }, + "server": { + "description": "The Server to deploy the Deployment on, setting the Deployment into Container mode.\n\nNote. If both swarm_id and server_id are set,\nswarm_id overrides server_id and the Deployment will be in Swarm mode.", + "type": [ + "string", + "null" + ] + }, + "image": { + "description": "The image which the deployment deploys.\nCan either be a user inputted image, or a Komodo Build.", + "anyOf": [ + { + "$ref": "#/definitions/DeploymentImage" + }, + { + "type": "null" + } + ] + }, + "image_registry_account": { + "description": "Configure the account used to pull the image from the registry.\nUsed with `docker login`.\n\n - If the field is empty string, will use the same account config as the build, or none at all if using image.\n - If the field contains an account, a token for the account must be available.\n - Will get the registry domain from the build / image", + "type": [ + "string", + "null" + ] + }, + "skip_secret_interp": { + "description": "Whether to skip secret interpolation into the deployment environment variables.", + "type": [ + "boolean", + "null" + ] + }, + "redeploy_on_build": { + "description": "Whether to redeploy the deployment whenever the attached build finishes.", + "type": [ + "boolean", + "null" + ] + }, + "poll_for_updates": { + "description": "Whether to poll for any updates to the image.", + "type": [ + "boolean", + "null" + ] + }, + "auto_update": { + "description": "Whether to automatically redeploy when\nnewer a image is found. Will implicitly\nenable `poll_for_updates`, you don't need to\nenable both.", + "type": [ + "boolean", + "null" + ] + }, + "send_alerts": { + "description": "Whether to send ContainerStateChange alerts for this deployment.", + "type": [ + "boolean", + "null" + ] + }, + "links": { + "description": "Configure quick links that are displayed in the resource header", + "type": [ + "array", + "null" + ], + "items": { + "type": "string" + } + }, + "network": { + "description": "The network attached to the container.\nDefault is `host`.", + "type": [ + "string", + "null" + ] + }, + "restart": { + "description": "The restart mode given to the container.", + "anyOf": [ + { + "$ref": "#/definitions/RestartMode" + }, + { + "type": "null" + } + ] + }, + "command": { + "description": "This is interpolated at the end of the `docker run` command,\nwhich means they are either passed to the containers inner process,\nor replaces the container command, depending on use of ENTRYPOINT or CMD in dockerfile.\nEmpty is no command.", + "type": [ + "string", + "null" + ] + }, + "replicas": { + "description": "The number of replicas for the Service.\n\nNote. Only used in Swarm mode.", + "type": [ + "integer", + "null" + ], + "format": "int32" + }, + "termination_signal": { + "description": "The default termination signal to use to stop the deployment. Defaults to SigTerm (default docker signal).", + "anyOf": [ + { + "$ref": "#/definitions/TerminationSignal" + }, + { + "type": "null" + } + ] + }, + "termination_timeout": { + "description": "The termination timeout.", + "type": [ + "integer", + "null" + ], + "format": "int32" + }, + "extra_args": { + "description": "Extra args which are interpolated into the\n`docker run` / `docker service create` command,\nand affect the container configuration.\n\n- Container ref: https://docs.docker.com/reference/cli/docker/container/run/#options\n- Swarm Service ref: https://docs.docker.com/reference/cli/docker/service/create/#options", + "type": [ + "array", + "null" + ], + "items": { + "type": "string" + } + }, + "term_signal_labels": { + "description": "Labels attached to various termination signal options.\nUsed to specify different shutdown functionality depending\non the termination signal.", + "type": [ + "string", + "null" + ] + }, + "ports": { + "description": "The container port mapping.\nIrrelevant if container network is `host`.\nMaps ports on host to ports on container.", + "type": [ + "string", + "null" + ] + }, + "volumes": { + "description": "The container volume mapping.\nMaps files / folders on host to files / folders in container.", + "type": [ + "string", + "null" + ] + }, + "environment": { + "description": "The environment variables passed to the container / service.", + "type": [ + "string", + "null" + ] + }, + "labels": { + "description": "The docker labels given to the container.", + "type": [ + "string", + "null" + ] + } + } + }, + "DeploymentImage": { + "oneOf": [ + { + "description": "Deploy any external image.", + "type": "object", + "properties": { + "type": { + "type": "string", + "const": "Image" + }, + "params": { + "type": "object", + "properties": { + "image": { + "description": "The docker image, can be from any registry that works with docker and that the host server can reach.", + "type": "string", + "default": "" + } + } + } + }, + "required": [ + "type", + "params" + ] + }, + { + "description": "Deploy a Komodo Build.", + "type": "object", + "properties": { + "type": { + "type": "string", + "const": "Build" + }, + "params": { + "type": "object", + "properties": { + "build": { + "description": "The id of the Build", + "type": "string", + "default": "" + }, + "version": { + "description": "Use a custom / older version of the image produced by the build.\nif version is 0.0.0, this means `latest` image.", + "default": { + "major": 0, + "minor": 0, + "patch": 0 + }, + "allOf": [ + { + "$ref": "#/definitions/Version" + } + ] + } + } + } + }, + "required": [ + "type", + "params" + ] + } + ] + }, + "Version": { + "type": "object", + "properties": { + "major": { + "type": "integer", + "format": "int32" + }, + "minor": { + "type": "integer", + "format": "int32" + }, + "patch": { + "type": "integer", + "format": "int32" + } + }, + "required": [ + "major", + "minor", + "patch" + ] + }, + "RestartMode": { + "type": "string", + "enum": [ + "no", + "on-failure", + "always", + "unless-stopped" + ] + }, + "TerminationSignal": { + "type": "string", + "enum": [ + "SIGHUP", + "SIGINT", + "SIGQUIT", + "SIGTERM" + ] + }, + "ResourceToml5": { + "type": "object", + "properties": { + "name": { + "description": "The resource name. Required", + "type": "string" + }, + "description": { + "description": "The resource description. Optional.", + "type": "string" + }, + "template": { + "description": "Mark resource as a template", + "type": "boolean" + }, + "tags": { + "description": "Tag ids or names. Optional", + "type": "array", + "items": { + "type": "string" + } + }, + "deploy": { + "description": "Optional. Only relevant for deployments / stacks.\n\nWill ensure deployment / stack is running with the latest configuration.\nDeploy actions to achieve this will be included in the sync.\nDefault is false.", + "type": "boolean" + }, + "after": { + "description": "Optional. Only relevant for deployments / stacks using the 'deploy' sync feature.\n\nSpecify other deployments / stacks by name as dependencies.\nThe sync will ensure the deployment / stack will only be deployed 'after' its dependencies.", + "type": "array", + "items": { + "type": "string" + } + }, + "config": { + "description": "Resource specific configuration.", + "allOf": [ + { + "$ref": "#/definitions/PartialBuildConfig" + } + ] + } + }, + "required": [ + "name" + ] + }, + "PartialBuildConfig": { + "type": "object", + "properties": { + "builder": { + "description": "Which builder is used to build the image.", + "type": [ + "string", + "null" + ] + }, + "version": { + "description": "The current version of the build.", + "anyOf": [ + { + "$ref": "#/$defs/Version" + }, + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "auto_increment_version": { + "description": "Whether to automatically increment the patch on every build.\nDefault is `true`", + "type": [ + "boolean", + "null" + ] + }, + "image_name": { + "description": "An alternate name for the image pushed to the repository.\nIf this is empty, it will use the build name.\n\nCan be used in conjunction with `image_tag` to direct multiple builds\nwith different configs to push to the same image registry, under different,\nindependantly versioned tags.", + "type": [ + "string", + "null" + ] + }, + "image_tag": { + "description": "An extra tag put after the build version, for the image pushed to the repository.\nEg. in image tag of `aarch64` would push to moghtech/komodo-core:1.13.2-aarch64.\nIf this is empty, the image tag will just be the build version.\n\nCan be used in conjunction with `image_name` to direct multiple builds\nwith different configs to push to the same image registry, under different,\nindependantly versioned tags.", + "type": [ + "string", + "null" + ] + }, + "include_latest_tag": { + "description": "Push `:latest` / `:latest-image_tag` tags.", + "type": [ + "boolean", + "null" + ] + }, + "include_version_tags": { + "description": "Push build version semver `:1.19.5` + `1.19` / `:1.19.5-image_tag` tags.", + "type": [ + "boolean", + "null" + ] + }, + "include_commit_tag": { + "description": "Push commit hash `:a6v8h83` / `:a6v8h83-image_tag` tags.", + "type": [ + "boolean", + "null" + ] + }, + "links": { + "description": "Configure quick links that are displayed in the resource header", + "type": [ + "array", + "null" + ], + "items": { + "type": "string" + } + }, + "linked_repo": { + "description": "Choose a Komodo Repo (Resource) to source the build files.", + "type": [ + "string", + "null" + ] + }, + "git_provider": { + "description": "The git provider domain. Default: github.com", + "type": [ + "string", + "null" + ] + }, + "git_https": { + "description": "Whether to use https to clone the repo (versus http). Default: true\n\nNote. Komodo does not currently support cloning repos via ssh.", + "type": [ + "boolean", + "null" + ] + }, + "git_account": { + "description": "The git account used to access private repos.\nPassing empty string can only clone public repos.\n\nNote. A token for the account must be available in the core config or the builder server's periphery config\nfor the configured git provider.", + "type": [ + "string", + "null" + ] + }, + "repo": { + "description": "The repo used as the source of the build.", + "type": [ + "string", + "null" + ] + }, + "branch": { + "description": "The branch of the repo.", + "type": [ + "string", + "null" + ] + }, + "commit": { + "description": "Optionally set a specific commit hash.", + "type": [ + "string", + "null" + ] + }, + "webhook_enabled": { + "description": "Whether incoming webhooks actually trigger action.", + "type": [ + "boolean", + "null" + ] + }, + "webhook_secret": { + "description": "Optionally provide an alternate webhook secret for this build.\nIf its an empty string, use the default secret from the config.", + "type": [ + "string", + "null" + ] + }, + "files_on_host": { + "description": "If this is checked, the build will source the files on the host.\nUse `build_path` and `dockerfile_path` to specify the path on the host.\nThis is useful for those who wish to setup their files on the host,\nrather than defining the contents in UI or in a git repo.", + "type": [ + "boolean", + "null" + ] + }, + "build_path": { + "description": "The path of the docker build context relative to the root of the repo.\nDefault: \".\" (the root of the repo).", + "type": [ + "string", + "null" + ] + }, + "dockerfile_path": { + "description": "The path of the dockerfile relative to the build path.", + "type": [ + "string", + "null" + ] + }, + "image_registry": { + "description": "Configuration for the registry/s to push the built image to.\nThe first registry in this list will be used with attached Deployments.", + "type": [ + "array", + "null" + ], + "items": { + "$ref": "#/definitions/ImageRegistryConfig" + } + }, + "skip_secret_interp": { + "description": "Whether to skip secret interpolation in the build_args.", + "type": [ + "boolean", + "null" + ] + }, + "use_buildx": { + "description": "Whether to use buildx to build (eg `docker buildx build ...`)", + "type": [ + "boolean", + "null" + ] + }, + "extra_args": { + "description": "Any extra docker cli arguments to be included in the build command", + "type": [ + "array", + "null" + ], + "items": { + "type": "string" + } + }, + "pre_build": { + "description": "The optional command run after repo clone and before docker build.", + "anyOf": [ + { + "$ref": "#/definitions/SystemCommand" + }, + { + "type": "null" + } + ] + }, + "dockerfile": { + "description": "UI defined dockerfile contents.\nSupports variable / secret interpolation.", + "type": [ + "string", + "null" + ] + }, + "build_args": { + "description": "Docker build arguments.\n\nThese values are visible in the final image by running `docker inspect`.", + "type": [ + "string", + "null" + ] + }, + "secret_args": { + "description": "Secret arguments.\n\nThese values remain hidden in the final image by using\ndocker secret mounts. See .\n\nThe values can be used in RUN commands:\n```sh\nRUN --mount=type=secret,id=SECRET_KEY \\\n SECRET_KEY=$(cat /run/secrets/SECRET_KEY) ...\n```", + "type": [ + "string", + "null" + ] + }, + "labels": { + "description": "Docker labels", + "type": [ + "string", + "null" + ] + } + } + }, + "ImageRegistryConfig": { + "description": "Configuration for an image registry", + "type": "object", + "properties": { + "domain": { + "description": "Specify the registry provider domain, eg `docker.io`.\nIf not provided, will not push to any registry.", + "type": "string", + "default": "" + }, + "account": { + "description": "Specify an account to use with the registry.", + "type": "string", + "default": "" + }, + "organization": { + "description": "Optional. Specify an organization to push the image under.\nEmpty string means no organization.", + "type": "string", + "default": "" + } + } + }, + "ResourceToml6": { + "type": "object", + "properties": { + "name": { + "description": "The resource name. Required", + "type": "string" + }, + "description": { + "description": "The resource description. Optional.", + "type": "string" + }, + "template": { + "description": "Mark resource as a template", + "type": "boolean" + }, + "tags": { + "description": "Tag ids or names. Optional", + "type": "array", + "items": { + "type": "string" + } + }, + "deploy": { + "description": "Optional. Only relevant for deployments / stacks.\n\nWill ensure deployment / stack is running with the latest configuration.\nDeploy actions to achieve this will be included in the sync.\nDefault is false.", + "type": "boolean" + }, + "after": { + "description": "Optional. Only relevant for deployments / stacks using the 'deploy' sync feature.\n\nSpecify other deployments / stacks by name as dependencies.\nThe sync will ensure the deployment / stack will only be deployed 'after' its dependencies.", + "type": "array", + "items": { + "type": "string" + } + }, + "config": { + "description": "Resource specific configuration.", + "allOf": [ + { + "$ref": "#/definitions/PartialRepoConfig" + } + ] + } + }, + "required": [ + "name" + ] + }, + "PartialRepoConfig": { + "type": "object", + "properties": { + "server": { + "description": "The server to clone the repo on.", + "type": [ + "string", + "null" + ] + }, + "builder": { + "description": "Attach a builder to 'build' the repo.", + "type": [ + "string", + "null" + ] + }, + "git_provider": { + "description": "The git provider domain. Default: github.com", + "type": [ + "string", + "null" + ] + }, + "git_https": { + "description": "Whether to use https to clone the repo (versus http). Default: true\n\nNote. Komodo does not currently support cloning repos via ssh.", + "type": [ + "boolean", + "null" + ] + }, + "git_account": { + "description": "The git account used to access private repos.\nPassing empty string can only clone public repos.\n\nNote. A token for the account must be available in the core config or the builder server's periphery config\nfor the configured git provider.", + "type": [ + "string", + "null" + ] + }, + "repo": { + "description": "The github repo to clone.", + "type": [ + "string", + "null" + ] + }, + "branch": { + "description": "The repo branch.", + "type": [ + "string", + "null" + ] + }, + "commit": { + "description": "Optionally set a specific commit hash.", + "type": [ + "string", + "null" + ] + }, + "path": { + "description": "Explicitly specify the folder to clone the repo in.\n- If absolute (has leading '/')\n - Used directly as the path\n- If relative\n - Taken relative to Periphery `repo_dir` (ie `${root_directory}/repos`)", + "type": [ + "string", + "null" + ] + }, + "webhook_enabled": { + "description": "Whether incoming webhooks actually trigger action.", + "type": [ + "boolean", + "null" + ] + }, + "webhook_secret": { + "description": "Optionally provide an alternate webhook secret for this repo.\nIf its an empty string, use the default secret from the config.", + "type": [ + "string", + "null" + ] + }, + "on_clone": { + "description": "Command to be run after the repo is cloned.\nThe path is relative to the root of the repo.", + "anyOf": [ + { + "$ref": "#/definitions/SystemCommand" + }, + { + "type": "null" + } + ] + }, + "on_pull": { + "description": "Command to be run after the repo is pulled.\nThe path is relative to the root of the repo.", + "anyOf": [ + { + "$ref": "#/definitions/SystemCommand" + }, + { + "type": "null" + } + ] + }, + "links": { + "description": "Configure quick links that are displayed in the resource header", + "type": [ + "array", + "null" + ], + "items": { + "type": "string" + } + }, + "environment": { + "description": "The environment variables passed to the compose file.\nThey will be written to path defined in env_file_path,\nwhich is given relative to the run directory.\n\nIf it is empty, no file will be written.", + "type": [ + "string", + "null" + ] + }, + "env_file_path": { + "description": "The name of the written environment file before `docker compose up`.\nRelative to the repo root.\nDefault: .env", + "type": [ + "string", + "null" + ] + }, + "skip_secret_interp": { + "description": "Whether to skip secret interpolation into the repo environment variable file.", + "type": [ + "boolean", + "null" + ] + } + } + }, + "ResourceToml7": { + "type": "object", + "properties": { + "name": { + "description": "The resource name. Required", + "type": "string" + }, + "description": { + "description": "The resource description. Optional.", + "type": "string" + }, + "template": { + "description": "Mark resource as a template", + "type": "boolean" + }, + "tags": { + "description": "Tag ids or names. Optional", + "type": "array", + "items": { + "type": "string" + } + }, + "deploy": { + "description": "Optional. Only relevant for deployments / stacks.\n\nWill ensure deployment / stack is running with the latest configuration.\nDeploy actions to achieve this will be included in the sync.\nDefault is false.", + "type": "boolean" + }, + "after": { + "description": "Optional. Only relevant for deployments / stacks using the 'deploy' sync feature.\n\nSpecify other deployments / stacks by name as dependencies.\nThe sync will ensure the deployment / stack will only be deployed 'after' its dependencies.", + "type": "array", + "items": { + "type": "string" + } + }, + "config": { + "description": "Resource specific configuration.", + "allOf": [ + { + "$ref": "#/definitions/PartialProcedureConfig" + } + ] + } + }, + "required": [ + "name" + ] + }, + "PartialProcedureConfig": { + "type": "object", + "properties": { + "stage": { + "description": "The stages to be run by the procedure.", + "type": [ + "array", + "null" + ], + "items": { + "$ref": "#/definitions/ProcedureStage" + } + }, + "schedule_format": { + "description": "Choose whether to specify schedule as regular CRON, or using the english to CRON parser.", + "anyOf": [ + { + "$ref": "#/definitions/ScheduleFormat" + }, + { + "type": "null" + } + ] + }, + "schedule": { + "description": "Optionally provide a schedule for the procedure to run on.\n\nThere are 2 ways to specify a schedule:\n\n1. Regular CRON expression:\n\n(second, minute, hour, day, month, day-of-week)\n```text\n0 0 0 1,15 * ?\n```\n\n2. \"English\" expression via [english-to-cron](https://crates.io/crates/english-to-cron):\n\n```text\nat midnight on the 1st and 15th of the month\n```", + "type": [ + "string", + "null" + ] + }, + "schedule_enabled": { + "description": "Whether schedule is enabled if one is provided.\nCan be used to temporarily disable the schedule.", + "type": [ + "boolean", + "null" + ] + }, + "schedule_timezone": { + "description": "Optional. A TZ Identifier. If not provided, will use Core local timezone.\nhttps://en.wikipedia.org/wiki/List_of_tz_database_time_zones.", + "type": [ + "string", + "null" + ] + }, + "schedule_alert": { + "description": "Whether to send alerts when the schedule was run.", + "type": [ + "boolean", + "null" + ] + }, + "failure_alert": { + "description": "Whether to send alerts when this procedure fails.", + "type": [ + "boolean", + "null" + ] + }, + "webhook_enabled": { + "description": "Whether incoming webhooks actually trigger action.", + "type": [ + "boolean", + "null" + ] + }, + "webhook_secret": { + "description": "Optionally provide an alternate webhook secret for this procedure.\nIf its an empty string, use the default secret from the config.", + "type": [ + "string", + "null" + ] + } + } + }, + "ProcedureStage": { + "description": "A single stage of a procedure. Runs a list of executions in parallel.", + "type": "object", + "properties": { + "name": { + "description": "A name for the procedure", + "type": "string" + }, + "enabled": { + "description": "Whether the stage should be run as part of the procedure.", + "type": "boolean", + "default": true + }, + "executions": { + "description": "The executions in the stage", + "type": "array", + "items": { + "$ref": "#/definitions/EnabledExecution" + }, + "default": [] + } + }, + "required": [ + "name" + ] + }, + "EnabledExecution": { + "description": "Allows to enable / disabled procedures in the sequence / parallel vec on the fly", + "type": "object", + "properties": { + "execution": { + "description": "The execution request to run.", + "allOf": [ + { + "$ref": "#/definitions/Execution" + } + ] + }, + "enabled": { + "description": "Whether the execution is enabled to run in the procedure.", + "type": "boolean", + "default": true + } + }, + "required": [ + "execution" + ] + }, + "Execution": { + "description": "A wrapper for all Komodo exections.", + "oneOf": [ + { + "description": "The \"null\" execution. Does nothing.", + "type": "object", + "properties": { + "type": { + "type": "string", + "const": "None" + }, + "params": { + "$ref": "#/definitions/NoData" + } + }, + "required": [ + "type", + "params" + ] + }, + { + "description": "Deploy the target stack. (alias: `stack`, `st`)", + "type": "object", + "properties": { + "type": { + "type": "string", + "const": "DeployStack" + }, + "params": { + "$ref": "#/definitions/DeployStack" + } + }, + "required": [ + "type", + "params" + ] + }, + { + "type": "object", + "properties": { + "type": { + "type": "string", + "const": "BatchDeployStack" + }, + "params": { + "$ref": "#/definitions/BatchDeployStack" + } + }, + "required": [ + "type", + "params" + ] + }, + { + "type": "object", + "properties": { + "type": { + "type": "string", + "const": "DeployStackIfChanged" + }, + "params": { + "$ref": "#/definitions/DeployStackIfChanged" + } + }, + "required": [ + "type", + "params" + ] + }, + { + "type": "object", + "properties": { + "type": { + "type": "string", + "const": "BatchDeployStackIfChanged" + }, + "params": { + "$ref": "#/definitions/BatchDeployStackIfChanged" + } + }, + "required": [ + "type", + "params" + ] + }, + { + "type": "object", + "properties": { + "type": { + "type": "string", + "const": "PullStack" + }, + "params": { + "$ref": "#/definitions/PullStack" + } + }, + "required": [ + "type", + "params" + ] + }, + { + "type": "object", + "properties": { + "type": { + "type": "string", + "const": "BatchPullStack" + }, + "params": { + "$ref": "#/definitions/BatchPullStack" + } + }, + "required": [ + "type", + "params" + ] + }, + { + "type": "object", + "properties": { + "type": { + "type": "string", + "const": "StartStack" + }, + "params": { + "$ref": "#/definitions/StartStack" + } + }, + "required": [ + "type", + "params" + ] + }, + { + "type": "object", + "properties": { + "type": { + "type": "string", + "const": "RestartStack" + }, + "params": { + "$ref": "#/definitions/RestartStack" + } + }, + "required": [ + "type", + "params" + ] + }, + { + "type": "object", + "properties": { + "type": { + "type": "string", + "const": "PauseStack" + }, + "params": { + "$ref": "#/definitions/PauseStack" + } + }, + "required": [ + "type", + "params" + ] + }, + { + "type": "object", + "properties": { + "type": { + "type": "string", + "const": "UnpauseStack" + }, + "params": { + "$ref": "#/definitions/UnpauseStack" + } + }, + "required": [ + "type", + "params" + ] + }, + { + "type": "object", + "properties": { + "type": { + "type": "string", + "const": "StopStack" + }, + "params": { + "$ref": "#/definitions/StopStack" + } + }, + "required": [ + "type", + "params" + ] + }, + { + "type": "object", + "properties": { + "type": { + "type": "string", + "const": "DestroyStack" + }, + "params": { + "$ref": "#/definitions/DestroyStack" + } + }, + "required": [ + "type", + "params" + ] + }, + { + "type": "object", + "properties": { + "type": { + "type": "string", + "const": "BatchDestroyStack" + }, + "params": { + "$ref": "#/definitions/BatchDestroyStack" + } + }, + "required": [ + "type", + "params" + ] + }, + { + "type": "object", + "properties": { + "type": { + "type": "string", + "const": "RunStackService" + }, + "params": { + "$ref": "#/definitions/RunStackService" + } + }, + "required": [ + "type", + "params" + ] + }, + { + "description": "Deploy the target deployment. (alias: `dp`)", + "type": "object", + "properties": { + "type": { + "type": "string", + "const": "Deploy" + }, + "params": { + "$ref": "#/definitions/Deploy" + } + }, + "required": [ + "type", + "params" + ] + }, + { + "type": "object", + "properties": { + "type": { + "type": "string", + "const": "BatchDeploy" + }, + "params": { + "$ref": "#/definitions/BatchDeploy" + } + }, + "required": [ + "type", + "params" + ] + }, + { + "type": "object", + "properties": { + "type": { + "type": "string", + "const": "PullDeployment" + }, + "params": { + "$ref": "#/definitions/PullDeployment" + } + }, + "required": [ + "type", + "params" + ] + }, + { + "type": "object", + "properties": { + "type": { + "type": "string", + "const": "StartDeployment" + }, + "params": { + "$ref": "#/definitions/StartDeployment" + } + }, + "required": [ + "type", + "params" + ] + }, + { + "type": "object", + "properties": { + "type": { + "type": "string", + "const": "RestartDeployment" + }, + "params": { + "$ref": "#/definitions/RestartDeployment" + } + }, + "required": [ + "type", + "params" + ] + }, + { + "type": "object", + "properties": { + "type": { + "type": "string", + "const": "PauseDeployment" + }, + "params": { + "$ref": "#/definitions/PauseDeployment" + } + }, + "required": [ + "type", + "params" + ] + }, + { + "type": "object", + "properties": { + "type": { + "type": "string", + "const": "UnpauseDeployment" + }, + "params": { + "$ref": "#/definitions/UnpauseDeployment" + } + }, + "required": [ + "type", + "params" + ] + }, + { + "type": "object", + "properties": { + "type": { + "type": "string", + "const": "StopDeployment" + }, + "params": { + "$ref": "#/definitions/StopDeployment" + } + }, + "required": [ + "type", + "params" + ] + }, + { + "type": "object", + "properties": { + "type": { + "type": "string", + "const": "DestroyDeployment" + }, + "params": { + "$ref": "#/definitions/DestroyDeployment" + } + }, + "required": [ + "type", + "params" + ] + }, + { + "type": "object", + "properties": { + "type": { + "type": "string", + "const": "BatchDestroyDeployment" + }, + "params": { + "$ref": "#/definitions/BatchDestroyDeployment" + } + }, + "required": [ + "type", + "params" + ] + }, + { + "description": "Run the target build. (alias: `build`, `bd`)", + "type": "object", + "properties": { + "type": { + "type": "string", + "const": "RunBuild" + }, + "params": { + "$ref": "#/definitions/RunBuild" + } + }, + "required": [ + "type", + "params" + ] + }, + { + "type": "object", + "properties": { + "type": { + "type": "string", + "const": "BatchRunBuild" + }, + "params": { + "$ref": "#/definitions/BatchRunBuild" + } + }, + "required": [ + "type", + "params" + ] + }, + { + "type": "object", + "properties": { + "type": { + "type": "string", + "const": "CancelBuild" + }, + "params": { + "$ref": "#/definitions/CancelBuild" + } + }, + "required": [ + "type", + "params" + ] + }, + { + "description": "Clone the target repo", + "type": "object", + "properties": { + "type": { + "type": "string", + "const": "CloneRepo" + }, + "params": { + "$ref": "#/definitions/CloneRepo" + } + }, + "required": [ + "type", + "params" + ] + }, + { + "type": "object", + "properties": { + "type": { + "type": "string", + "const": "BatchCloneRepo" + }, + "params": { + "$ref": "#/definitions/BatchCloneRepo" + } + }, + "required": [ + "type", + "params" + ] + }, + { + "type": "object", + "properties": { + "type": { + "type": "string", + "const": "PullRepo" + }, + "params": { + "$ref": "#/definitions/PullRepo" + } + }, + "required": [ + "type", + "params" + ] + }, + { + "type": "object", + "properties": { + "type": { + "type": "string", + "const": "BatchPullRepo" + }, + "params": { + "$ref": "#/definitions/BatchPullRepo" + } + }, + "required": [ + "type", + "params" + ] + }, + { + "type": "object", + "properties": { + "type": { + "type": "string", + "const": "BuildRepo" + }, + "params": { + "$ref": "#/definitions/BuildRepo" + } + }, + "required": [ + "type", + "params" + ] + }, + { + "type": "object", + "properties": { + "type": { + "type": "string", + "const": "BatchBuildRepo" + }, + "params": { + "$ref": "#/definitions/BatchBuildRepo" + } + }, + "required": [ + "type", + "params" + ] + }, + { + "type": "object", + "properties": { + "type": { + "type": "string", + "const": "CancelRepoBuild" + }, + "params": { + "$ref": "#/definitions/CancelRepoBuild" + } + }, + "required": [ + "type", + "params" + ] + }, + { + "description": "Run the target procedure. (alias: `procedure`, `pr`)", + "type": "object", + "properties": { + "type": { + "type": "string", + "const": "RunProcedure" + }, + "params": { + "$ref": "#/definitions/RunProcedure" + } + }, + "required": [ + "type", + "params" + ] + }, + { + "type": "object", + "properties": { + "type": { + "type": "string", + "const": "BatchRunProcedure" + }, + "params": { + "$ref": "#/definitions/BatchRunProcedure" + } + }, + "required": [ + "type", + "params" + ] + }, + { + "description": "Run the target action. (alias: `action`, `ac`)", + "type": "object", + "properties": { + "type": { + "type": "string", + "const": "RunAction" + }, + "params": { + "$ref": "#/definitions/RunAction" + } + }, + "required": [ + "type", + "params" + ] + }, + { + "type": "object", + "properties": { + "type": { + "type": "string", + "const": "BatchRunAction" + }, + "params": { + "$ref": "#/definitions/BatchRunAction" + } + }, + "required": [ + "type", + "params" + ] + }, + { + "description": "Execute a Resource Sync. (alias: `sync`)", + "type": "object", + "properties": { + "type": { + "type": "string", + "const": "RunSync" + }, + "params": { + "$ref": "#/definitions/RunSync" + } + }, + "required": [ + "type", + "params" + ] + }, + { + "description": "Commit a Resource Sync. (alias: `commit`)", + "type": "object", + "properties": { + "type": { + "type": "string", + "const": "CommitSync" + }, + "params": { + "$ref": "#/definitions/CommitSync" + } + }, + "required": [ + "type", + "params" + ] + }, + { + "type": "object", + "properties": { + "type": { + "type": "string", + "const": "TestAlerter" + }, + "params": { + "$ref": "#/definitions/TestAlerter" + } + }, + "required": [ + "type", + "params" + ] + }, + { + "type": "object", + "properties": { + "type": { + "type": "string", + "const": "SendAlert" + }, + "params": { + "$ref": "#/definitions/SendAlert" + } + }, + "required": [ + "type", + "params" + ] + }, + { + "type": "object", + "properties": { + "type": { + "type": "string", + "const": "StartContainer" + }, + "params": { + "$ref": "#/definitions/StartContainer" + } + }, + "required": [ + "type", + "params" + ] + }, + { + "type": "object", + "properties": { + "type": { + "type": "string", + "const": "RestartContainer" + }, + "params": { + "$ref": "#/definitions/RestartContainer" + } + }, + "required": [ + "type", + "params" + ] + }, + { + "type": "object", + "properties": { + "type": { + "type": "string", + "const": "PauseContainer" + }, + "params": { + "$ref": "#/definitions/PauseContainer" + } + }, + "required": [ + "type", + "params" + ] + }, + { + "type": "object", + "properties": { + "type": { + "type": "string", + "const": "UnpauseContainer" + }, + "params": { + "$ref": "#/definitions/UnpauseContainer" + } + }, + "required": [ + "type", + "params" + ] + }, + { + "type": "object", + "properties": { + "type": { + "type": "string", + "const": "StopContainer" + }, + "params": { + "$ref": "#/definitions/StopContainer" + } + }, + "required": [ + "type", + "params" + ] + }, + { + "type": "object", + "properties": { + "type": { + "type": "string", + "const": "DestroyContainer" + }, + "params": { + "$ref": "#/definitions/DestroyContainer" + } + }, + "required": [ + "type", + "params" + ] + }, + { + "type": "object", + "properties": { + "type": { + "type": "string", + "const": "StartAllContainers" + }, + "params": { + "$ref": "#/definitions/StartAllContainers" + } + }, + "required": [ + "type", + "params" + ] + }, + { + "type": "object", + "properties": { + "type": { + "type": "string", + "const": "RestartAllContainers" + }, + "params": { + "$ref": "#/definitions/RestartAllContainers" + } + }, + "required": [ + "type", + "params" + ] + }, + { + "type": "object", + "properties": { + "type": { + "type": "string", + "const": "PauseAllContainers" + }, + "params": { + "$ref": "#/definitions/PauseAllContainers" + } + }, + "required": [ + "type", + "params" + ] + }, + { + "type": "object", + "properties": { + "type": { + "type": "string", + "const": "UnpauseAllContainers" + }, + "params": { + "$ref": "#/definitions/UnpauseAllContainers" + } + }, + "required": [ + "type", + "params" + ] + }, + { + "type": "object", + "properties": { + "type": { + "type": "string", + "const": "StopAllContainers" + }, + "params": { + "$ref": "#/definitions/StopAllContainers" + } + }, + "required": [ + "type", + "params" + ] + }, + { + "type": "object", + "properties": { + "type": { + "type": "string", + "const": "PruneContainers" + }, + "params": { + "$ref": "#/definitions/PruneContainers" + } + }, + "required": [ + "type", + "params" + ] + }, + { + "type": "object", + "properties": { + "type": { + "type": "string", + "const": "DeleteNetwork" + }, + "params": { + "$ref": "#/definitions/DeleteNetwork" + } + }, + "required": [ + "type", + "params" + ] + }, + { + "type": "object", + "properties": { + "type": { + "type": "string", + "const": "PruneNetworks" + }, + "params": { + "$ref": "#/definitions/PruneNetworks" + } + }, + "required": [ + "type", + "params" + ] + }, + { + "type": "object", + "properties": { + "type": { + "type": "string", + "const": "DeleteImage" + }, + "params": { + "$ref": "#/definitions/DeleteImage" + } + }, + "required": [ + "type", + "params" + ] + }, + { + "type": "object", + "properties": { + "type": { + "type": "string", + "const": "PruneImages" + }, + "params": { + "$ref": "#/definitions/PruneImages" + } + }, + "required": [ + "type", + "params" + ] + }, + { + "type": "object", + "properties": { + "type": { + "type": "string", + "const": "DeleteVolume" + }, + "params": { + "$ref": "#/definitions/DeleteVolume" + } + }, + "required": [ + "type", + "params" + ] + }, + { + "type": "object", + "properties": { + "type": { + "type": "string", + "const": "PruneVolumes" + }, + "params": { + "$ref": "#/definitions/PruneVolumes" + } + }, + "required": [ + "type", + "params" + ] + }, + { + "type": "object", + "properties": { + "type": { + "type": "string", + "const": "PruneDockerBuilders" + }, + "params": { + "$ref": "#/definitions/PruneDockerBuilders" + } + }, + "required": [ + "type", + "params" + ] + }, + { + "type": "object", + "properties": { + "type": { + "type": "string", + "const": "PruneBuildx" + }, + "params": { + "$ref": "#/definitions/PruneBuildx" + } + }, + "required": [ + "type", + "params" + ] + }, + { + "type": "object", + "properties": { + "type": { + "type": "string", + "const": "PruneSystem" + }, + "params": { + "$ref": "#/definitions/PruneSystem" + } + }, + "required": [ + "type", + "params" + ] + }, + { + "type": "object", + "properties": { + "type": { + "type": "string", + "const": "RemoveSwarmNodes" + }, + "params": { + "$ref": "#/definitions/RemoveSwarmNodes" + } + }, + "required": [ + "type", + "params" + ] + }, + { + "type": "object", + "properties": { + "type": { + "type": "string", + "const": "UpdateSwarmNode" + }, + "params": { + "$ref": "#/definitions/UpdateSwarmNode" + } + }, + "required": [ + "type", + "params" + ] + }, + { + "type": "object", + "properties": { + "type": { + "type": "string", + "const": "RemoveSwarmStacks" + }, + "params": { + "$ref": "#/definitions/RemoveSwarmStacks" + } + }, + "required": [ + "type", + "params" + ] + }, + { + "type": "object", + "properties": { + "type": { + "type": "string", + "const": "RemoveSwarmServices" + }, + "params": { + "$ref": "#/definitions/RemoveSwarmServices" + } + }, + "required": [ + "type", + "params" + ] + }, + { + "type": "object", + "properties": { + "type": { + "type": "string", + "const": "CreateSwarmConfig" + }, + "params": { + "$ref": "#/definitions/CreateSwarmConfig" + } + }, + "required": [ + "type", + "params" + ] + }, + { + "type": "object", + "properties": { + "type": { + "type": "string", + "const": "RotateSwarmConfig" + }, + "params": { + "$ref": "#/definitions/RotateSwarmConfig" + } + }, + "required": [ + "type", + "params" + ] + }, + { + "type": "object", + "properties": { + "type": { + "type": "string", + "const": "RemoveSwarmConfigs" + }, + "params": { + "$ref": "#/definitions/RemoveSwarmConfigs" + } + }, + "required": [ + "type", + "params" + ] + }, + { + "type": "object", + "properties": { + "type": { + "type": "string", + "const": "CreateSwarmSecret" + }, + "params": { + "$ref": "#/definitions/CreateSwarmSecret" + } + }, + "required": [ + "type", + "params" + ] + }, + { + "type": "object", + "properties": { + "type": { + "type": "string", + "const": "RotateSwarmSecret" + }, + "params": { + "$ref": "#/definitions/RotateSwarmSecret" + } + }, + "required": [ + "type", + "params" + ] + }, + { + "type": "object", + "properties": { + "type": { + "type": "string", + "const": "RemoveSwarmSecrets" + }, + "params": { + "$ref": "#/definitions/RemoveSwarmSecrets" + } + }, + "required": [ + "type", + "params" + ] + }, + { + "type": "object", + "properties": { + "type": { + "type": "string", + "const": "ClearRepoCache" + }, + "params": { + "$ref": "#/definitions/ClearRepoCache" + } + }, + "required": [ + "type", + "params" + ] + }, + { + "type": "object", + "properties": { + "type": { + "type": "string", + "const": "BackupCoreDatabase" + }, + "params": { + "$ref": "#/definitions/BackupCoreDatabase" + } + }, + "required": [ + "type", + "params" + ] + }, + { + "type": "object", + "properties": { + "type": { + "type": "string", + "const": "GlobalAutoUpdate" + }, + "params": { + "$ref": "#/definitions/GlobalAutoUpdate" + } + }, + "required": [ + "type", + "params" + ] + }, + { + "type": "object", + "properties": { + "type": { + "type": "string", + "const": "RotateAllServerKeys" + }, + "params": { + "$ref": "#/definitions/RotateAllServerKeys" + } + }, + "required": [ + "type", + "params" + ] + }, + { + "type": "object", + "properties": { + "type": { + "type": "string", + "const": "RotateCoreKeys" + }, + "params": { + "$ref": "#/definitions/RotateCoreKeys" + } + }, + "required": [ + "type", + "params" + ] + }, + { + "type": "object", + "properties": { + "type": { + "type": "string", + "const": "Sleep" + }, + "params": { + "$ref": "#/definitions/Sleep" + } + }, + "required": [ + "type", + "params" + ] + } + ] + }, + "NoData": { + "description": "Represents an empty json object: `{}`", + "type": "object" + }, + "DeployStack": { + "description": "Deploys the target stack. `docker compose up`. Response: [Update]", + "type": "object", + "properties": { + "stack": { + "description": "Id or name", + "type": "string" + }, + "services": { + "description": "Filter to only deploy specific services.\nIf empty, will deploy all services.\n\nNote. For Swarm mode Stacks, this field is not supported and will be ignored.", + "type": "array", + "items": { + "type": "string" + }, + "default": [] + }, + "stop_time": { + "description": "Override the default termination max time.\nOnly used if the stack needs to be taken down first.", + "type": [ + "integer", + "null" + ], + "format": "int32" + } + }, + "required": [ + "stack" + ] + }, + "BatchDeployStack": { + "description": "Deploys multiple Stacks in parallel that match pattern. Response: [BatchExecutionResponse].", + "type": "object", + "properties": { + "pattern": { + "description": "Id or name or wildcard pattern or regex.\nSupports multiline and comma delineated combinations of the above.\n\nExample:\n```text\n# match all foo-* stacks\nfoo-*\n# add some more\nextra-stack-1, extra-stack-2\n```", + "type": "string" + } + }, + "required": [ + "pattern" + ] + }, + "DeployStackIfChanged": { + "description": "Checks deployed contents vs latest contents,\nand only if any changes found\nwill `docker compose up`. Response: [Update]", + "type": "object", + "properties": { + "stack": { + "description": "Id or name", + "type": "string" + }, + "stop_time": { + "description": "Override the default termination max time.\nOnly used if the stack needs to be taken down first.", + "type": [ + "integer", + "null" + ], + "format": "int32" + } + }, + "required": [ + "stack" + ] + }, + "BatchDeployStackIfChanged": { + "description": "Deploys multiple Stacks if changed in parallel that match pattern. Response: [BatchExecutionResponse].", + "type": "object", + "properties": { + "pattern": { + "description": "Id or name or wildcard pattern or regex.\nSupports multiline and comma delineated combinations of the above.\n\nExample:\n```text\n# match all foo-* stacks\nfoo-*\n# add some more\nextra-stack-1, extra-stack-2\n```", + "type": "string" + } + }, + "required": [ + "pattern" + ] + }, + "PullStack": { + "description": "Pulls images for the target stack. `docker compose pull`. Response: [Update]", + "type": "object", + "properties": { + "stack": { + "description": "Id or name", + "type": "string" + }, + "services": { + "description": "Filter to only pull specific services.\nIf empty, will pull all services.", + "type": "array", + "items": { + "type": "string" + }, + "default": [] + } + }, + "required": [ + "stack" + ] + }, + "BatchPullStack": { + "description": "Pulls multiple Stacks in parallel that match pattern. Response: [BatchExecutionResponse].", + "type": "object", + "properties": { + "pattern": { + "description": "Id or name or wildcard pattern or regex.\nSupports multiline and comma delineated combinations of the above.\n\nExample:\n```text\n# match all foo-* stacks\nfoo-*\n# add some more\nextra-stack-1, extra-stack-2\n```", + "type": "string" + } + }, + "required": [ + "pattern" + ] + }, + "StartStack": { + "description": "Starts the target stack. `docker compose start`. Response: [Update]", + "type": "object", + "properties": { + "stack": { + "description": "Id or name", + "type": "string" + }, + "services": { + "description": "Filter to only start specific services.\nIf empty, will start all services.", + "type": "array", + "items": { + "type": "string" + }, + "default": [] + } + }, + "required": [ + "stack" + ] + }, + "RestartStack": { + "description": "Restarts the target stack. `docker compose restart`. Response: [Update]", + "type": "object", + "properties": { + "stack": { + "description": "Id or name", + "type": "string" + }, + "services": { + "description": "Filter to only restart specific services.\nIf empty, will restart all services.", + "type": "array", + "items": { + "type": "string" + }, + "default": [] + } + }, + "required": [ + "stack" + ] + }, + "PauseStack": { + "description": "Pauses the target stack. `docker compose pause`. Response: [Update]", + "type": "object", + "properties": { + "stack": { + "description": "Id or name", + "type": "string" + }, + "services": { + "description": "Filter to only pause specific services.\nIf empty, will pause all services.", + "type": "array", + "items": { + "type": "string" + }, + "default": [] + } + }, + "required": [ + "stack" + ] + }, + "UnpauseStack": { + "description": "Unpauses the target stack. `docker compose unpause`. Response: [Update].\n\nNote. This is the only way to restart a paused container.", + "type": "object", + "properties": { + "stack": { + "description": "Id or name", + "type": "string" + }, + "services": { + "description": "Filter to only unpause specific services.\nIf empty, will unpause all services.", + "type": "array", + "items": { + "type": "string" + }, + "default": [] + } + }, + "required": [ + "stack" + ] + }, + "StopStack": { + "description": "Stops the target stack. `docker compose stop`. Response: [Update]", + "type": "object", + "properties": { + "stack": { + "description": "Id or name", + "type": "string" + }, + "stop_time": { + "description": "Override the default termination max time.", + "type": [ + "integer", + "null" + ], + "format": "int32" + }, + "services": { + "description": "Filter to only stop specific services.\nIf empty, will stop all services.", + "type": "array", + "items": { + "type": "string" + }, + "default": [] + } + }, + "required": [ + "stack" + ] + }, + "DestroyStack": { + "description": "Destoys the target stack. `docker compose down`. Response: [Update]", + "type": "object", + "properties": { + "stack": { + "description": "Id or name", + "type": "string" + }, + "services": { + "description": "Filter to only destroy specific services.\nIf empty, will destroy all services.", + "type": "array", + "items": { + "type": "string" + }, + "default": [] + }, + "remove_orphans": { + "description": "Pass `--remove-orphans`", + "type": "boolean", + "default": false + }, + "stop_time": { + "description": "Override the default termination max time.", + "type": [ + "integer", + "null" + ], + "format": "int32" + } + }, + "required": [ + "stack" + ] + }, + "BatchDestroyStack": { + "description": "Destroys multiple Stacks in parallel that match pattern. Response: [BatchExecutionResponse].", + "type": "object", + "properties": { + "pattern": { + "description": "Id or name or wildcard pattern or regex.\nSupports multiline and comma delineated combinations of the above.\n\nExample:\n```text\n# match all foo-* stacks\nfoo-*\n# add some more\nextra-stack-1, extra-stack-2\n```", + "type": "string" + } + }, + "required": [ + "pattern" + ] + }, + "RunStackService": { + "description": "Runs a one-time command against a service using `docker compose run`. Response: [Update]", + "type": "object", + "properties": { + "stack": { + "description": "Id or name", + "type": "string" + }, + "service": { + "description": "Service to run", + "type": "string" + }, + "command": { + "description": "Command and args to pass to the service container", + "type": [ + "array", + "null" + ], + "items": { + "type": "string" + } + }, + "no_tty": { + "description": "Do not allocate TTY", + "type": [ + "boolean", + "null" + ] + }, + "no_deps": { + "description": "Do not start linked services", + "type": [ + "boolean", + "null" + ] + }, + "detach": { + "description": "Detach container on run", + "type": [ + "boolean", + "null" + ] + }, + "service_ports": { + "description": "Map service ports to the host", + "type": [ + "boolean", + "null" + ] + }, + "env": { + "description": "Extra environment variables for the run", + "type": [ + "object", + "null" + ], + "additionalProperties": { + "type": "string" + } + }, + "workdir": { + "description": "Working directory inside the container", + "type": [ + "string", + "null" + ] + }, + "user": { + "description": "User to run as inside the container", + "type": [ + "string", + "null" + ] + }, + "entrypoint": { + "description": "Override the default entrypoint", + "type": [ + "string", + "null" + ] + }, + "pull": { + "description": "Pull the image before running", + "type": [ + "boolean", + "null" + ] + } + }, + "required": [ + "stack", + "service" + ] + }, + "Deploy": { + "description": "Deploys the container / swarm service for the target Deployment. Response: [Update].\n\nFor Server based Deployments (just a container):\n1. Pulls the image onto the target server.\n2. If the container is already running,\nit will be stopped and removed using `docker container rm ${container_name}`.\n3. The container will be run using `docker run {...params}`,\nwhere params are determined by the deployment's configuration.", + "type": "object", + "properties": { + "deployment": { + "description": "Name or id", + "type": "string" + }, + "stop_signal": { + "description": "Override the default termination signal specified in the deployment.\nOnly used when deployment needs to be taken down before redeploy.", + "anyOf": [ + { + "$ref": "#/definitions/TerminationSignal" + }, + { + "type": "null" + } + ] + }, + "stop_time": { + "description": "Override the default termination max time.\nOnly used when deployment needs to be taken down before redeploy.", + "type": [ + "integer", + "null" + ], + "format": "int32" + } + }, + "required": [ + "deployment" + ] + }, + "BatchDeploy": { + "description": "Deploys multiple Deployments in parallel that match pattern. Response: [BatchExecutionResponse].", + "type": "object", + "properties": { + "pattern": { + "description": "Id or name or wildcard pattern or regex.\nSupports multiline and comma delineated combinations of the above.\n\nExample:\n```text\n# match all foo-* deployments\nfoo-*\n# add some more\nextra-deployment-1, extra-deployment-2\n```", + "type": "string" + } + }, + "required": [ + "pattern" + ] + }, + "PullDeployment": { + "description": "Pulls the image for the target deployment. Response: [Update]", + "type": "object", + "properties": { + "deployment": { + "description": "Name or id", + "type": "string" + } + }, + "required": [ + "deployment" + ] + }, + "StartDeployment": { + "description": "Starts the container for the target deployment. Response: [Update]\n\n1. Runs `docker start ${container_name}`.", + "type": "object", + "properties": { + "deployment": { + "description": "Name or id", + "type": "string" + } + }, + "required": [ + "deployment" + ] + }, + "RestartDeployment": { + "description": "Restarts the container for the target deployment. Response: [Update]\n\n1. Runs `docker restart ${container_name}`.", + "type": "object", + "properties": { + "deployment": { + "description": "Name or id", + "type": "string" + } + }, + "required": [ + "deployment" + ] + }, + "PauseDeployment": { + "description": "Pauses the container for the target deployment. Response: [Update]\n\n1. Runs `docker pause ${container_name}`.", + "type": "object", + "properties": { + "deployment": { + "description": "Name or id", + "type": "string" + } + }, + "required": [ + "deployment" + ] + }, + "UnpauseDeployment": { + "description": "Unpauses the container for the target deployment. Response: [Update]\n\n1. Runs `docker unpause ${container_name}`.\n\nNote. This is the only way to restart a paused container.", + "type": "object", + "properties": { + "deployment": { + "description": "Name or id", + "type": "string" + } + }, + "required": [ + "deployment" + ] + }, + "StopDeployment": { + "description": "Stops the container for the target deployment. Response: [Update]\n\n1. Runs `docker stop ${container_name}`.", + "type": "object", + "properties": { + "deployment": { + "description": "Name or id", + "type": "string" + }, + "signal": { + "description": "Override the default termination signal specified in the deployment.", + "anyOf": [ + { + "$ref": "#/definitions/TerminationSignal" + }, + { + "type": "null" + } + ] + }, + "time": { + "description": "Override the default termination max time.", + "type": [ + "integer", + "null" + ], + "format": "int32" + } + }, + "required": [ + "deployment" + ] + }, + "DestroyDeployment": { + "description": "Stops and destroys the container for the target deployment.\nReponse: [Update].\n\n1. The container is stopped and removed using `docker container rm ${container_name}`.", + "type": "object", + "properties": { + "deployment": { + "description": "Name or id.", + "type": "string" + }, + "signal": { + "description": "Override the default termination signal specified in the deployment.", + "anyOf": [ + { + "$ref": "#/definitions/TerminationSignal" + }, + { + "type": "null" + } + ] + }, + "time": { + "description": "Override the default termination max time.", + "type": [ + "integer", + "null" + ], + "format": "int32" + } + }, + "required": [ + "deployment" + ] + }, + "BatchDestroyDeployment": { + "description": "Destroys multiple Deployments in parallel that match pattern. Response: [BatchExecutionResponse].", + "type": "object", + "properties": { + "pattern": { + "description": "Id or name or wildcard pattern or regex.\nSupports multiline and comma delineated combinations of the above.\n\nExample:\n```text\n# match all foo-* deployments\nfoo-*\n# add some more\nextra-deployment-1, extra-deployment-2\n```", + "type": "string" + } + }, + "required": [ + "pattern" + ] + }, + "RunBuild": { + "description": "Runs the target build. Response: [Update].\n\n1. Get a handle to the builder. If using AWS builder, this means starting a builder ec2 instance.\n\n2. Clone the repo on the builder. If an `on_clone` commmand is given, it will be executed.\n\n3. Execute `docker build {...params}`, where params are determined using the builds configuration.\n\n4. If a docker registry is configured, the build will be pushed to the registry.\n\n5. If using AWS builder, destroy the builder ec2 instance.\n\n6. Deploy any Deployments with *Redeploy on Build* enabled.", + "type": "object", + "properties": { + "build": { + "description": "Can be build id or name", + "type": "string" + } + }, + "required": [ + "build" + ] + }, + "BatchRunBuild": { + "description": "Runs multiple builds in parallel that match pattern. Response: [BatchExecutionResponse].", + "type": "object", + "properties": { + "pattern": { + "description": "Id or name or wildcard pattern or regex.\nSupports multiline and comma delineated combinations of the above.\n\nExample:\n```text\n# match all foo-* builds\nfoo-*\n# add some more\nextra-build-1, extra-build-2\n```", + "type": "string" + } + }, + "required": [ + "pattern" + ] + }, + "CancelBuild": { + "description": "Cancels the target build.\nOnly does anything if the build is `building` when called.\nResponse: [Update]", + "type": "object", + "properties": { + "build": { + "description": "Can be id or name", + "type": "string" + } + }, + "required": [ + "build" + ] + }, + "CloneRepo": { + "description": "Clones the target repo. Response: [Update].\n\nNote. Repo must have server attached at `server_id`.\n\n1. Clones the repo on the target server using `git clone https://{$token?}@github.com/${repo} -b ${branch}`.\nThe token will only be used if a github account is specified,\nand must be declared in the periphery configuration on the target server.\n2. If `on_clone` and `on_pull` are specified, they will be executed.\n`on_clone` will be executed before `on_pull`.", + "type": "object", + "properties": { + "repo": { + "description": "Id or name", + "type": "string" + } + }, + "required": [ + "repo" + ] + }, + "BatchCloneRepo": { + "description": "Clones multiple Repos in parallel that match pattern. Response: [BatchExecutionResponse].", + "type": "object", + "properties": { + "pattern": { + "description": "Id or name or wildcard pattern or regex.\nSupports multiline and comma delineated combinations of the above.\n\nExample:\n```text\n# match all foo-* repos\nfoo-*\n# add some more\nextra-repo-1, extra-repo-2\n```", + "type": "string" + } + }, + "required": [ + "pattern" + ] + }, + "PullRepo": { + "description": "Pulls the target repo. Response: [Update].\n\nNote. Repo must have server attached at `server_id`.\n\n1. Pulls the repo on the target server using `git pull`.\n2. If `on_pull` is specified, it will be executed after the pull is complete.", + "type": "object", + "properties": { + "repo": { + "description": "Id or name", + "type": "string" + } + }, + "required": [ + "repo" + ] + }, + "BatchPullRepo": { + "description": "Pulls multiple Repos in parallel that match pattern. Response: [BatchExecutionResponse].", + "type": "object", + "properties": { + "pattern": { + "description": "Id or name or wildcard pattern or regex.\nSupports multiline and comma delineated combinations of the above.\n\nExample:\n```text\n# match all foo-* repos\nfoo-*\n# add some more\nextra-repo-1, extra-repo-2\n```", + "type": "string" + } + }, + "required": [ + "pattern" + ] + }, + "BuildRepo": { + "description": "Builds the target repo, using the attached builder. Response: [Update].\n\nNote. Repo must have builder attached at `builder_id`.\n\n1. Spawns the target builder instance (For AWS type. For Server type, just use CloneRepo).\n2. Clones the repo on the builder using `git clone https://{$token?}@github.com/${repo} -b ${branch}`.\nThe token will only be used if a github account is specified,\nand must be declared in the periphery configuration on the builder instance.\n3. If `on_clone` and `on_pull` are specified, they will be executed.\n`on_clone` will be executed before `on_pull`.", + "type": "object", + "properties": { + "repo": { + "description": "Id or name", + "type": "string" + } + }, + "required": [ + "repo" + ] + }, + "BatchBuildRepo": { + "description": "Builds multiple Repos in parallel that match pattern. Response: [BatchExecutionResponse].", + "type": "object", + "properties": { + "pattern": { + "description": "Id or name or wildcard pattern or regex.\nSupports multiline and comma delineated combinations of the above.\n\nExample:\n```text\n# match all foo-* repos\nfoo-*\n# add some more\nextra-repo-1, extra-repo-2\n```", + "type": "string" + } + }, + "required": [ + "pattern" + ] + }, + "CancelRepoBuild": { + "description": "Cancels the target repo build.\nOnly does anything if the repo build is `building` when called.\nResponse: [Update]", + "type": "object", + "properties": { + "repo": { + "description": "Can be id or name", + "type": "string" + } + }, + "required": [ + "repo" + ] + }, + "RunProcedure": { + "description": "Runs the target Procedure. Response: [Update]", + "type": "object", + "properties": { + "procedure": { + "description": "Id or name", + "type": "string" + } + }, + "required": [ + "procedure" + ] + }, + "BatchRunProcedure": { + "description": "Runs multiple Procedures in parallel that match pattern. Response: [BatchExecutionResponse].", + "type": "object", + "properties": { + "pattern": { + "description": "Id or name or wildcard pattern or regex.\nSupports multiline and comma delineated combinations of the above.\n\nExample:\n```text\n# match all foo-* procedures\nfoo-*\n# add some more\nextra-procedure-1, extra-procedure-2\n```", + "type": "string" + } + }, + "required": [ + "pattern" + ] + }, + "RunAction": { + "description": "Runs the target Action. Response: [Update]", + "type": "object", + "properties": { + "action": { + "description": "Id or name", + "type": "string" + }, + "args": { + "description": "Custom arguments which are merged on top of the default arguments.\nCLI Format: `\"VAR1=val1&VAR2=val2\"`\n\nWebhook-triggered actions use this to pass WEBHOOK_BRANCH and WEBHOOK_BODY.", + "type": [ + "object", + "null" + ], + "additionalProperties": true + } + }, + "required": [ + "action" + ] + }, + "BatchRunAction": { + "description": "Runs multiple Actions in parallel that match pattern. Response: [BatchExecutionResponse]", + "type": "object", + "properties": { + "pattern": { + "description": "Id or name or wildcard pattern or regex.\nSupports multiline and comma delineated combinations of the above.\n\nExample:\n```text\n# match all foo-* actions\nfoo-*\n# add some more\nextra-action-1, extra-action-2\n```", + "type": "string" + } + }, + "required": [ + "pattern" + ] + }, + "RunSync": { + "description": "Runs the target resource sync. Response: [Update]", + "type": "object", + "properties": { + "sync": { + "description": "Id or name", + "type": "string" + }, + "resource_type": { + "description": "Only execute sync on a specific resource type.\nCombine with `resource_id` to specify resource.", + "anyOf": [ + { + "$ref": "#/definitions/ResourceTargetVariant" + }, + { + "type": "null" + } + ] + }, + "resources": { + "description": "Only execute sync on a specific resources.\nCombine with `resource_type` to specify resources.\nSupports name or id.", + "type": [ + "array", + "null" + ], + "items": { + "type": "string" + } + } + }, + "required": [ + "sync" + ] + }, + "ResourceTargetVariant": { + "description": "Auto-generated discriminant enum variants", + "type": "string", + "enum": [ + "System", + "Swarm", + "Server", + "Stack", + "Deployment", + "Build", + "Repo", + "Procedure", + "Action", + "Builder", + "Alerter", + "ResourceSync" + ] + }, + "CommitSync": { + "description": "Exports matching resources, and writes to the target sync's resource file. Response: [Update]\n\nNote. Will fail if the Sync is not `managed`.", + "type": "object", + "properties": { + "sync": { + "description": "Id or name", + "type": "string" + } + }, + "required": [ + "sync" + ] + }, + "TestAlerter": { + "description": "Tests an Alerters ability to reach the configured endpoint. Response: [Update]", + "type": "object", + "properties": { + "alerter": { + "description": "Name or id", + "type": "string" + } + }, + "required": [ + "alerter" + ] + }, + "SendAlert": { + "description": "Send a custom alert message to configured Alerters. Response: [Update].\nAlias: `alert`", + "type": "object", + "properties": { + "level": { + "description": "The alert level.", + "default": "OK", + "allOf": [ + { + "$ref": "#/definitions/SeverityLevel" + } + ] + }, + "message": { + "description": "The alert message. Required.", + "type": "string" + }, + "details": { + "description": "The alert details. Optional.", + "type": "string", + "default": "" + }, + "alerters": { + "description": "Specific alerter names or ids.\nIf empty / not passed, sends to all configured alerters\nwith the `Custom` alert type whitelisted / not blacklisted.", + "type": "array", + "items": { + "type": "string" + }, + "default": [] + } + }, + "required": [ + "message" + ] + }, + "SeverityLevel": { + "description": "Severity level of problem.", + "oneOf": [ + { + "description": "No problem.\n\nAliases: ok, low, l", + "type": "string", + "const": "OK" + }, + { + "description": "Problem is imminent.\n\nAliases: warning, w, medium, m", + "type": "string", + "const": "WARNING" + }, + { + "description": "Problem fully realized.\n\nAliases: critical, c, high, h", + "type": "string", + "const": "CRITICAL" + } + ] + }, + "StartContainer": { + "description": "Starts the container on the target server. Response: [Update]\n\n1. Runs `docker start ${container_name}`.", + "type": "object", + "properties": { + "server": { + "description": "Name or id", + "type": "string" + }, + "container": { + "description": "The container name", + "type": "string" + } + }, + "required": [ + "server", + "container" + ] + }, + "RestartContainer": { + "description": "Restarts the container on the target server. Response: [Update]\n\n1. Runs `docker restart ${container_name}`.", + "type": "object", + "properties": { + "server": { + "description": "Name or id", + "type": "string" + }, + "container": { + "description": "The container name", + "type": "string" + } + }, + "required": [ + "server", + "container" + ] + }, + "PauseContainer": { + "description": "Pauses the container on the target server. Response: [Update]\n\n1. Runs `docker pause ${container_name}`.", + "type": "object", + "properties": { + "server": { + "description": "Name or id", + "type": "string" + }, + "container": { + "description": "The container name", + "type": "string" + } + }, + "required": [ + "server", + "container" + ] + }, + "UnpauseContainer": { + "description": "Unpauses the container on the target server. Response: [Update]\n\n1. Runs `docker unpause ${container_name}`.\n\nNote. This is the only way to restart a paused container.", + "type": "object", + "properties": { + "server": { + "description": "Name or id", + "type": "string" + }, + "container": { + "description": "The container name", + "type": "string" + } + }, + "required": [ + "server", + "container" + ] + }, + "StopContainer": { + "description": "Stops the container on the target server. Response: [Update]\n\n1. Runs `docker stop ${container_name}`.", + "type": "object", + "properties": { + "server": { + "description": "Name or id", + "type": "string" + }, + "container": { + "description": "The container name", + "type": "string" + }, + "signal": { + "description": "Override the default termination signal.", + "anyOf": [ + { + "$ref": "#/definitions/TerminationSignal" + }, + { + "type": "null" + } + ] + }, + "time": { + "description": "Override the default termination max time.", + "type": [ + "integer", + "null" + ], + "format": "int32" + } + }, + "required": [ + "server", + "container" + ] + }, + "DestroyContainer": { + "description": "Stops and destroys the container on the target server.\nReponse: [Update].\n\n1. The container is stopped and removed using `docker container rm ${container_name}`.", + "type": "object", + "properties": { + "server": { + "description": "Name or id", + "type": "string" + }, + "container": { + "description": "The container name", + "type": "string" + }, + "signal": { + "description": "Override the default termination signal.", + "anyOf": [ + { + "$ref": "#/definitions/TerminationSignal" + }, + { + "type": "null" + } + ] + }, + "time": { + "description": "Override the default termination max time.", + "type": [ + "integer", + "null" + ], + "format": "int32" + } + }, + "required": [ + "server", + "container" + ] + }, + "StartAllContainers": { + "description": "Starts all containers on the target server. Response: [Update]", + "type": "object", + "properties": { + "server": { + "description": "Name or id", + "type": "string" + } + }, + "required": [ + "server" + ] + }, + "RestartAllContainers": { + "description": "Restarts all containers on the target server. Response: [Update]", + "type": "object", + "properties": { + "server": { + "description": "Name or id", + "type": "string" + } + }, + "required": [ + "server" + ] + }, + "PauseAllContainers": { + "description": "Pauses all containers on the target server. Response: [Update]", + "type": "object", + "properties": { + "server": { + "description": "Name or id", + "type": "string" + } + }, + "required": [ + "server" + ] + }, + "UnpauseAllContainers": { + "description": "Unpauses all containers on the target server. Response: [Update]", + "type": "object", + "properties": { + "server": { + "description": "Name or id", + "type": "string" + } + }, + "required": [ + "server" + ] + }, + "StopAllContainers": { + "description": "Stops all containers on the target server. Response: [Update]", + "type": "object", + "properties": { + "server": { + "description": "Name or id", + "type": "string" + } + }, + "required": [ + "server" + ] + }, + "PruneContainers": { + "description": "Prunes the docker containers on the target server. Response: [Update].\n\n1. Runs `docker container prune -f`.", + "type": "object", + "properties": { + "server": { + "description": "Id or name", + "type": "string" + } + }, + "required": [ + "server" + ] + }, + "DeleteNetwork": { + "description": "Delete a docker network.\nResponse: [Update]", + "type": "object", + "properties": { + "server": { + "description": "Id or name.", + "type": "string" + }, + "name": { + "description": "The name of the network to delete.", + "type": "string" + } + }, + "required": [ + "server", + "name" + ] + }, + "PruneNetworks": { + "description": "Prunes the docker networks on the target server. Response: [Update].\n\n1. Runs `docker network prune -f`.", + "type": "object", + "properties": { + "server": { + "description": "Id or name", + "type": "string" + } + }, + "required": [ + "server" + ] + }, + "DeleteImage": { + "description": "Delete a docker image.\nResponse: [Update]", + "type": "object", + "properties": { + "server": { + "description": "Id or name.", + "type": "string" + }, + "name": { + "description": "The name of the image to delete.", + "type": "string" + } + }, + "required": [ + "server", + "name" + ] + }, + "PruneImages": { + "description": "Prunes the docker images on the target server. Response: [Update].\n\n1. Runs `docker image prune -a -f`.", + "type": "object", + "properties": { + "server": { + "description": "Id or name", + "type": "string" + } + }, + "required": [ + "server" + ] + }, + "DeleteVolume": { + "description": "Delete a docker volume.\nResponse: [Update]", + "type": "object", + "properties": { + "server": { + "description": "Id or name.", + "type": "string" + }, + "name": { + "description": "The name of the volume to delete.", + "type": "string" + } + }, + "required": [ + "server", + "name" + ] + }, + "PruneVolumes": { + "description": "Prunes the docker volumes on the target server. Response: [Update].\n\n1. Runs `docker volume prune -a -f`.", + "type": "object", + "properties": { + "server": { + "description": "Id or name", + "type": "string" + } + }, + "required": [ + "server" + ] + }, + "PruneDockerBuilders": { + "description": "Prunes the docker builders on the target server. Response: [Update].\n\n1. Runs `docker builder prune -a -f`.", + "type": "object", + "properties": { + "server": { + "description": "Id or name", + "type": "string" + } + }, + "required": [ + "server" + ] + }, + "PruneBuildx": { + "description": "Prunes the docker buildx cache on the target server. Response: [Update].\n\n1. Runs `docker buildx prune -a -f`.", + "type": "object", + "properties": { + "server": { + "description": "Id or name", + "type": "string" + } + }, + "required": [ + "server" + ] + }, + "PruneSystem": { + "description": "Prunes the docker system on the target server, including volumes. Response: [Update].\n\n1. Runs `docker system prune -a -f --volumes`.", + "type": "object", + "properties": { + "server": { + "description": "Id or name", + "type": "string" + } + }, + "required": [ + "server" + ] + }, + "RemoveSwarmNodes": { + "description": "`docker node rm [OPTIONS] NODE [NODE...]`\n\nhttps://docs.docker.com/reference/cli/docker/node/rm/", + "type": "object", + "properties": { + "swarm": { + "description": "Name or id", + "type": "string" + }, + "nodes": { + "description": "Node names or ids to remove", + "type": "array", + "items": { + "type": "string" + } + }, + "force": { + "description": "Force remove a node from the swarm", + "type": "boolean", + "default": false + } + }, + "required": [ + "swarm", + "nodes" + ] + }, + "UpdateSwarmNode": { + "description": "`docker node update [OPTIONS] NODE`\n\nhttps://docs.docker.com/reference/cli/docker/node/update/", + "type": "object", + "properties": { + "swarm": { + "description": "Name or id", + "type": "string" + }, + "node": { + "description": "Node hostname or id", + "type": "string" + }, + "availability": { + "description": "Update the node's availability: 'active', 'pause', or 'drain'", + "anyOf": [ + { + "$ref": "#/definitions/NodeSpecAvailabilityEnum" + }, + { + "type": "null" + } + ] + }, + "label_add": { + "description": "Add labels to node (`key=value`).", + "type": [ + "array", + "null" + ], + "items": { + "type": "string" + } + }, + "label_rm": { + "description": "Add labels to node (`key=value`). (alias: `lr`)", + "type": [ + "array", + "null" + ], + "items": { + "type": "string" + } + }, + "role": { + "description": "Update the node's role: 'worker' or 'manager'", + "anyOf": [ + { + "$ref": "#/definitions/NodeSpecRoleEnum" + }, + { + "type": "null" + } + ] + } + }, + "required": [ + "swarm", + "node" + ] + }, + "NodeSpecAvailabilityEnum": { + "type": "string", + "enum": [ + "", + "active", + "pause", + "drain" + ] + }, + "NodeSpecRoleEnum": { + "type": "string", + "enum": [ + "", + "worker", + "manager" + ] + }, + "RemoveSwarmStacks": { + "description": "`docker stack rm [OPTIONS] STACK [STACK...]`\n\nhttps://docs.docker.com/reference/cli/docker/stack/rm/", + "type": "object", + "properties": { + "swarm": { + "description": "Name or id", + "type": "string" + }, + "stacks": { + "description": "Node names to remove", + "type": "array", + "items": { + "type": "string" + } + }, + "detach": { + "description": "Do not wait for stack removal", + "type": "boolean", + "default": true + } + }, + "required": [ + "swarm", + "stacks" + ] + }, + "RemoveSwarmServices": { + "description": "`docker service rm SERVICE [SERVICE...]`\n\nhttps://docs.docker.com/reference/cli/docker/service/rm/", + "type": "object", + "properties": { + "swarm": { + "description": "Name or id", + "type": "string" + }, + "services": { + "description": "Service names or ids", + "type": "array", + "items": { + "type": "string" + } + } + }, + "required": [ + "swarm", + "services" + ] + }, + "CreateSwarmConfig": { + "description": "`docker config create [OPTIONS] CONFIG file|-`\n\nhttps://docs.docker.com/reference/cli/docker/config/create/", + "type": "object", + "properties": { + "swarm": { + "description": "Name or id", + "type": "string" + }, + "name": { + "description": "The name of the config to create", + "type": "string" + }, + "data": { + "description": "The data to store in the config", + "type": "string" + }, + "labels": { + "description": "Docker labels to give the config", + "type": "array", + "items": { + "type": "string" + }, + "default": [] + }, + "template_driver": { + "description": "Optional custom template driver", + "type": [ + "string", + "null" + ] + } + }, + "required": [ + "swarm", + "name", + "data" + ] + }, + "RotateSwarmConfig": { + "description": "https://docs.docker.com/engine/swarm/configs/#example-rotate-a-config\n\nSwarm configs / secrets are immutable after creation.\nThis making updating values awkward when you have services actively using them.\nThe following steps allows for config rotation while minimizing downtime.\n\n1. Query for all services using the config\n - If not in use by any services, can simply `remove` and `create` the config.\n - Otherwise, continue with following steps\n2. `Create` config `{config}-tmp` using provided data\n3. `Update` services to use `tmp` config\n4. `Remove` and `create` the actual config. This is now possible because services are using the tmp config.\n5. `Update` services to use actual (not `tmp`) config again.", + "type": "object", + "properties": { + "swarm": { + "description": "Name or id", + "type": "string" + }, + "config": { + "description": "Config name", + "type": "string" + }, + "data": { + "description": "The new config data as a string", + "type": "string" + } + }, + "required": [ + "swarm", + "config", + "data" + ] + }, + "RemoveSwarmConfigs": { + "description": "`docker config rm CONFIG [CONFIG...]`\n\nhttps://docs.docker.com/reference/cli/docker/config/rm/", + "type": "object", + "properties": { + "swarm": { + "description": "Name or id", + "type": "string" + }, + "configs": { + "description": "Config names or ids", + "type": "array", + "items": { + "type": "string" + } + } + }, + "required": [ + "swarm", + "configs" + ] + }, + "CreateSwarmSecret": { + "description": "`docker config create [OPTIONS] CONFIG file|-`\n\nhttps://docs.docker.com/reference/cli/docker/config/create/", + "type": "object", + "properties": { + "swarm": { + "description": "Name or id", + "type": "string" + }, + "name": { + "description": "The name of the secret to create", + "type": "string" + }, + "data": { + "description": "The data to store in the secret", + "type": "string" + }, + "driver": { + "description": "Optional custom secret driver", + "type": [ + "string", + "null" + ] + }, + "labels": { + "description": "Docker labels to give the secret", + "type": "array", + "items": { + "type": "string" + }, + "default": [] + }, + "template_driver": { + "description": "Optional custom template driver", + "type": [ + "string", + "null" + ] + } + }, + "required": [ + "swarm", + "name", + "data" + ] + }, + "RotateSwarmSecret": { + "description": "https://docs.docker.com/engine/swarm/secrets/#example-rotate-a-secret\n\nSwarm configs / secrets are immutable after creation.\nThis making updating values awkward when you have services actively using them.\nThe following steps allows for secret rotation while minimizing downtime.\n\n1. Query for all services using the secret\n - If not in use by any services, can simply `remove` and `create` the secret.\n - Otherwise, continue with following steps\n2. `Create` secret `{secret}-tmp` using provided data\n3. `Update` services to use `tmp` secret\n4. `Remove` and `create` the actual secret. This is now possible because services are using the tmp secret.\n5. `Update` services to use actual (not `tmp`) secret again.", + "type": "object", + "properties": { + "swarm": { + "description": "Name or id", + "type": "string" + }, + "secret": { + "description": "Secret name", + "type": "string" + }, + "data": { + "description": "The new secret data as a string", + "type": "string" + } + }, + "required": [ + "swarm", + "secret", + "data" + ] + }, + "RemoveSwarmSecrets": { + "description": "`docker secret rm SECRET [SECRET...]`\n\nhttps://docs.docker.com/reference/cli/docker/secret/rm/", + "type": "object", + "properties": { + "swarm": { + "description": "Name or id", + "type": "string" + }, + "secrets": { + "description": "Secret names or ids", + "type": "array", + "items": { + "type": "string" + } + } + }, + "required": [ + "swarm", + "secrets" + ] + }, + "ClearRepoCache": { + "description": "**Admin only.** Clears all repos from the Core repo cache.\nResponse: [Update]", + "type": "object" + }, + "BackupCoreDatabase": { + "description": "**Admin only.** Backs up the Komodo Core database to compressed jsonl files.\nResponse: [Update]. Aliases: `backup-database`, `backup-db`, `backup`.\n\nMount a folder to `/backups`, and Core will use it to create\ntimestamped database dumps, which can be restored using\nthe Komodo CLI.\n\nhttps://komo.do/docs/setup/backup", + "type": "object" + }, + "GlobalAutoUpdate": { + "description": "**Admin only.** Trigger a global poll for image updates on Stacks and Deployments\nwith `poll_for_updates` or `auto_update` enabled.\nResponse: [Update]. Alias: `auto-update`.\n\n1. Run CheckStackForUpdate / CheckDeploymentForUpdate any Stacks / Deployments with `poll_for_updates` or `auto_update` enabled.\n This will pick up any available updates.\n2. Redeploy Stacks / Deployments that have updates found and 'auto_update' enabled.\n - Skip this using 'skip_auto_update', preferring to only alert even for 'auto_update' resources.", + "type": "object", + "properties": { + "skip_auto_update": { + "description": "Normally resources with 'auto_update' will be\nredeployed immediately if updates are found.\nWith this enabled, convert this into an UpdateAvailable alert.", + "type": "boolean", + "default": false + } + } + }, + "RotateAllServerKeys": { + "description": "**Admin only.** Rotates all connected Server keys.\nResponse: [Update]. Alias: `rotate-keys`.", + "type": "object" + }, + "RotateCoreKeys": { + "description": "**Admin only.** Rotates the Core private key,\nand all Server public keys.\nResponse: [Update].\n\nIf any Server is `NotOk`, this will fail.\nTo proceed anyways, pass `force: true`.", + "type": "object", + "properties": { + "force": { + "description": "Force the rotation to proceed even if a Server is `NotOk`.\nThe Core Public Key in Periphery config may have to be updated manually.\n(alias: `f`)", + "type": "boolean", + "default": false + } + } + }, + "Sleep": { + "description": "Sleeps for the specified time.", + "type": "object", + "properties": { + "duration_ms": { + "type": "integer", + "format": "int64", + "default": 0 + } + } + }, + "ScheduleFormat": { + "type": "string", + "enum": [ + "English", + "Cron" + ] + }, + "ResourceToml8": { + "type": "object", + "properties": { + "name": { + "description": "The resource name. Required", + "type": "string" + }, + "description": { + "description": "The resource description. Optional.", + "type": "string" + }, + "template": { + "description": "Mark resource as a template", + "type": "boolean" + }, + "tags": { + "description": "Tag ids or names. Optional", + "type": "array", + "items": { + "type": "string" + } + }, + "deploy": { + "description": "Optional. Only relevant for deployments / stacks.\n\nWill ensure deployment / stack is running with the latest configuration.\nDeploy actions to achieve this will be included in the sync.\nDefault is false.", + "type": "boolean" + }, + "after": { + "description": "Optional. Only relevant for deployments / stacks using the 'deploy' sync feature.\n\nSpecify other deployments / stacks by name as dependencies.\nThe sync will ensure the deployment / stack will only be deployed 'after' its dependencies.", + "type": "array", + "items": { + "type": "string" + } + }, + "config": { + "description": "Resource specific configuration.", + "allOf": [ + { + "$ref": "#/definitions/PartialActionConfig" + } + ] + } + }, + "required": [ + "name" + ] + }, + "PartialActionConfig": { + "type": "object", + "properties": { + "run_at_startup": { + "description": "Whether this action should run at startup.", + "type": [ + "boolean", + "null" + ] + }, + "schedule_format": { + "description": "Choose whether to specify schedule as regular CRON, or using the english to CRON parser.", + "anyOf": [ + { + "$ref": "#/definitions/ScheduleFormat" + }, + { + "type": "null" + } + ] + }, + "schedule": { + "description": "Optionally provide a schedule for the procedure to run on.\n\nThere are 2 ways to specify a schedule:\n\n1. Regular CRON expression:\n\n(second, minute, hour, day, month, day-of-week)\n```text\n0 0 0 1,15 * ?\n```\n\n2. \"English\" expression via [english-to-cron](https://crates.io/crates/english-to-cron):\n\n```text\nat midnight on the 1st and 15th of the month\n```", + "type": [ + "string", + "null" + ] + }, + "schedule_enabled": { + "description": "Whether schedule is enabled if one is provided.\nCan be used to temporarily disable the schedule.", + "type": [ + "boolean", + "null" + ] + }, + "schedule_timezone": { + "description": "Optional. A TZ Identifier. If not provided, will use Core local timezone.\nhttps://en.wikipedia.org/wiki/List_of_tz_database_time_zones.", + "type": [ + "string", + "null" + ] + }, + "schedule_alert": { + "description": "Whether to send alerts when the schedule was run.", + "type": [ + "boolean", + "null" + ] + }, + "failure_alert": { + "description": "Whether to send alerts when this action fails.", + "type": [ + "boolean", + "null" + ] + }, + "webhook_enabled": { + "description": "Whether incoming webhooks actually trigger action.", + "type": [ + "boolean", + "null" + ] + }, + "webhook_secret": { + "description": "Optionally provide an alternate webhook secret for this procedure.\nIf its an empty string, use the default secret from the config.", + "type": [ + "string", + "null" + ] + }, + "reload_deno_deps": { + "description": "Whether deno will be instructed to reload all dependencies,\nthis can usually be kept false outside of development.", + "type": [ + "boolean", + "null" + ] + }, + "file_contents": { + "description": "Typescript file contents using pre-initialized `komodo` client.\nSupports variable / secret interpolation.", + "type": [ + "string", + "null" + ] + }, + "arguments_format": { + "description": "Specify the format in which the arguments are defined.\nDefault: `key_value` (like environment)", + "anyOf": [ + { + "$ref": "#/definitions/FileFormat" + }, + { + "type": "null" + } + ] + }, + "arguments": { + "description": "Default arguments to give to the Action for use in the script at `ARGS`.", + "type": [ + "string", + "null" + ] + } + } + }, + "FileFormat": { + "type": "string", + "enum": [ + "key_value", + "toml", + "yaml", + "json" + ] + }, + "ResourceToml9": { + "type": "object", + "properties": { + "name": { + "description": "The resource name. Required", + "type": "string" + }, + "description": { + "description": "The resource description. Optional.", + "type": "string" + }, + "template": { + "description": "Mark resource as a template", + "type": "boolean" + }, + "tags": { + "description": "Tag ids or names. Optional", + "type": "array", + "items": { + "type": "string" + } + }, + "deploy": { + "description": "Optional. Only relevant for deployments / stacks.\n\nWill ensure deployment / stack is running with the latest configuration.\nDeploy actions to achieve this will be included in the sync.\nDefault is false.", + "type": "boolean" + }, + "after": { + "description": "Optional. Only relevant for deployments / stacks using the 'deploy' sync feature.\n\nSpecify other deployments / stacks by name as dependencies.\nThe sync will ensure the deployment / stack will only be deployed 'after' its dependencies.", + "type": "array", + "items": { + "type": "string" + } + }, + "config": { + "description": "Resource specific configuration.", + "allOf": [ + { + "$ref": "#/definitions/PartialAlerterConfig" + } + ] + } + }, + "required": [ + "name" + ] + }, + "PartialAlerterConfig": { + "type": "object", + "properties": { + "enabled": { + "description": "Whether the alerter is enabled", + "type": [ + "boolean", + "null" + ] + }, + "endpoint": { + "description": "Where to route the alert messages.\n\nDefault: Custom endpoint `http://localhost:7000`", + "anyOf": [ + { + "$ref": "#/definitions/AlerterEndpoint" + }, + { + "type": "null" + } + ] + }, + "alert_types": { + "description": "Only send specific alert types.\nIf empty, will send all alert types.", + "type": [ + "array", + "null" + ], + "items": { + "$ref": "#/definitions/AlertDataVariant" + } + }, + "resources": { + "description": "Only send alerts on specific resources.\nIf empty, will send alerts for all resources.", + "type": [ + "array", + "null" + ], + "items": { + "$ref": "#/definitions/ResourceTarget" + } + }, + "except_resources": { + "description": "DON'T send alerts on these resources.", + "type": [ + "array", + "null" + ], + "items": { + "$ref": "#/definitions/ResourceTarget" + } + }, + "maintenance_windows": { + "description": "Scheduled maintenance windows during which alerts will be suppressed.", + "type": [ + "array", + "null" + ], + "items": { + "$ref": "#/definitions/MaintenanceWindow" + } + } + } + }, + "AlerterEndpoint": { + "oneOf": [ + { + "description": "Send alert serialized to JSON to an http endpoint.", + "type": "object", + "properties": { + "type": { + "type": "string", + "const": "Custom" + }, + "params": { + "$ref": "#/definitions/CustomAlerterEndpoint" + } + }, + "required": [ + "type", + "params" + ] + }, + { + "description": "Send alert to a Slack app", + "type": "object", + "properties": { + "type": { + "type": "string", + "const": "Slack" + }, + "params": { + "$ref": "#/definitions/SlackAlerterEndpoint" + } + }, + "required": [ + "type", + "params" + ] + }, + { + "description": "Send alert to a Discord app", + "type": "object", + "properties": { + "type": { + "type": "string", + "const": "Discord" + }, + "params": { + "$ref": "#/definitions/DiscordAlerterEndpoint" + } + }, + "required": [ + "type", + "params" + ] + }, + { + "description": "Send alert to Ntfy", + "type": "object", + "properties": { + "type": { + "type": "string", + "const": "Ntfy" + }, + "params": { + "$ref": "#/definitions/NtfyAlerterEndpoint" + } + }, + "required": [ + "type", + "params" + ] + }, + { + "description": "Send alert to Pushover", + "type": "object", + "properties": { + "type": { + "type": "string", + "const": "Pushover" + }, + "params": { + "$ref": "#/definitions/PushoverAlerterEndpoint" + } + }, + "required": [ + "type", + "params" + ] + } + ] + }, + "CustomAlerterEndpoint": { + "description": "Configuration for a Custom alerter endpoint.", + "type": "object", + "properties": { + "url": { + "description": "The http/s endpoint to send the POST to", + "type": "string", + "default": "http://localhost:7000" + } + } + }, + "SlackAlerterEndpoint": { + "description": "Configuration for a Slack alerter.", + "type": "object", + "properties": { + "url": { + "description": "The Slack app webhook url", + "type": "string", + "default": "https://hooks.slack.com/services/T00000000/B00000000/XXXXXXXXXXXXXXXXXXXXXXXX" + } + } + }, + "DiscordAlerterEndpoint": { + "description": "Configuration for a Discord alerter.", + "type": "object", + "properties": { + "url": { + "description": "The Discord webhook url", + "type": "string", + "default": "https://discord.com/api/webhooks/XXXXXXXXXXXX/XXXX-XXXXXXXXXX" + } + } + }, + "NtfyAlerterEndpoint": { + "description": "Configuration for a Ntfy alerter.", + "type": "object", + "properties": { + "url": { + "description": "The ntfy topic URL", + "type": "string", + "default": "http://localhost:8080/komodo" + }, + "email": { + "description": "Optional E-Mail Address to enable ntfy email notifications.\nSMTP must be configured on the ntfy server.", + "type": [ + "string", + "null" + ] + } + } + }, + "PushoverAlerterEndpoint": { + "description": "Configuration for a Pushover alerter.", + "type": "object", + "properties": { + "url": { + "description": "The pushover URL including application and user tokens in parameters.", + "type": "string", + "default": "https://api.pushover.net/1/messages.json?token=XXXXXXXXXXXXX&user=XXXXXXXXXXXXX" + } + } + }, + "AlertDataVariant": { + "description": "Auto-generated discriminant enum variants", + "oneOf": [ + { + "description": "A null alert", + "type": "string", + "const": "None" + }, + { + "description": "The user triggered a test of the\nAlerter configuration.", + "type": "string", + "const": "Test" + }, + { + "description": "A server could not be reached.", + "type": "string", + "const": "SwarmUnhealthy" + }, + { + "description": "A server could not be reached.", + "type": "string", + "const": "ServerUnreachable" + }, + { + "description": "A server has high CPU usage.", + "type": "string", + "const": "ServerCpu" + }, + { + "description": "A server has high memory usage.", + "type": "string", + "const": "ServerMem" + }, + { + "description": "A server has high disk usage.", + "type": "string", + "const": "ServerDisk" + }, + { + "description": "A server has a version mismatch with the core.", + "type": "string", + "const": "ServerVersionMismatch" + }, + { + "description": "A container's state has changed unexpectedly.\nFor swarms, this refers to swarm service.", + "type": "string", + "const": "ContainerStateChange" + }, + { + "description": "A Deployment has an image update available", + "type": "string", + "const": "DeploymentImageUpdateAvailable" + }, + { + "description": "A Deployment has an image update available", + "type": "string", + "const": "DeploymentAutoUpdated" + }, + { + "description": "A stack's state has changed unexpectedly.", + "type": "string", + "const": "StackStateChange" + }, + { + "description": "A Stack has an image update available", + "type": "string", + "const": "StackImageUpdateAvailable" + }, + { + "description": "A Stack was auto updated", + "type": "string", + "const": "StackAutoUpdated" + }, + { + "description": "An AWS builder failed to terminate.", + "type": "string", + "const": "AwsBuilderTerminationFailed" + }, + { + "description": "A resource sync has pending updates", + "type": "string", + "const": "ResourceSyncPendingUpdates" + }, + { + "description": "A build has failed", + "type": "string", + "const": "BuildFailed" + }, + { + "description": "A repo has failed", + "type": "string", + "const": "RepoBuildFailed" + }, + { + "description": "A procedure has failed", + "type": "string", + "const": "ProcedureFailed" + }, + { + "description": "An action has failed", + "type": "string", + "const": "ActionFailed" + }, + { + "description": "A schedule was run", + "type": "string", + "const": "ScheduleRun" + }, + { + "description": "Custom header / body.\nProduced using `/execute/SendAlert`", + "type": "string", + "const": "Custom" + } + ] + }, + "ResourceTarget": { + "description": "Used to reference a specific resource across all resource types", + "oneOf": [ + { + "type": "object", + "properties": { + "type": { + "type": "string", + "const": "System" + }, + "id": { + "type": "string" + } + }, + "required": [ + "type", + "id" + ] + }, + { + "type": "object", + "properties": { + "type": { + "type": "string", + "const": "Swarm" + }, + "id": { + "type": "string" + } + }, + "required": [ + "type", + "id" + ] + }, + { + "type": "object", + "properties": { + "type": { + "type": "string", + "const": "Server" + }, + "id": { + "type": "string" + } + }, + "required": [ + "type", + "id" + ] + }, + { + "type": "object", + "properties": { + "type": { + "type": "string", + "const": "Stack" + }, + "id": { + "type": "string" + } + }, + "required": [ + "type", + "id" + ] + }, + { + "type": "object", + "properties": { + "type": { + "type": "string", + "const": "Deployment" + }, + "id": { + "type": "string" + } + }, + "required": [ + "type", + "id" + ] + }, + { + "type": "object", + "properties": { + "type": { + "type": "string", + "const": "Build" + }, + "id": { + "type": "string" + } + }, + "required": [ + "type", + "id" + ] + }, + { + "type": "object", + "properties": { + "type": { + "type": "string", + "const": "Repo" + }, + "id": { + "type": "string" + } + }, + "required": [ + "type", + "id" + ] + }, + { + "type": "object", + "properties": { + "type": { + "type": "string", + "const": "Procedure" + }, + "id": { + "type": "string" + } + }, + "required": [ + "type", + "id" + ] + }, + { + "type": "object", + "properties": { + "type": { + "type": "string", + "const": "Action" + }, + "id": { + "type": "string" + } + }, + "required": [ + "type", + "id" + ] + }, + { + "type": "object", + "properties": { + "type": { + "type": "string", + "const": "Builder" + }, + "id": { + "type": "string" + } + }, + "required": [ + "type", + "id" + ] + }, + { + "type": "object", + "properties": { + "type": { + "type": "string", + "const": "Alerter" + }, + "id": { + "type": "string" + } + }, + "required": [ + "type", + "id" + ] + }, + { + "type": "object", + "properties": { + "type": { + "type": "string", + "const": "ResourceSync" + }, + "id": { + "type": "string" + } + }, + "required": [ + "type", + "id" + ] + } + ] + }, + "ResourceToml10": { + "type": "object", + "properties": { + "name": { + "description": "The resource name. Required", + "type": "string" + }, + "description": { + "description": "The resource description. Optional.", + "type": "string" + }, + "template": { + "description": "Mark resource as a template", + "type": "boolean" + }, + "tags": { + "description": "Tag ids or names. Optional", + "type": "array", + "items": { + "type": "string" + } + }, + "deploy": { + "description": "Optional. Only relevant for deployments / stacks.\n\nWill ensure deployment / stack is running with the latest configuration.\nDeploy actions to achieve this will be included in the sync.\nDefault is false.", + "type": "boolean" + }, + "after": { + "description": "Optional. Only relevant for deployments / stacks using the 'deploy' sync feature.\n\nSpecify other deployments / stacks by name as dependencies.\nThe sync will ensure the deployment / stack will only be deployed 'after' its dependencies.", + "type": "array", + "items": { + "type": "string" + } + }, + "config": { + "description": "Resource specific configuration.", + "allOf": [ + { + "$ref": "#/definitions/PartialBuilderConfig" + } + ] + } + }, + "required": [ + "name" + ] + }, + "PartialBuilderConfig": { + "description": "Partial representation of [BuilderConfig]", + "oneOf": [ + { + "type": "object", + "properties": { + "type": { + "type": "string", + "const": "Url" + }, + "params": { + "$ref": "#/definitions/PartialUrlBuilderConfig" + } + }, + "required": [ + "type", + "params" + ] + }, + { + "type": "object", + "properties": { + "type": { + "type": "string", + "const": "Server" + }, + "params": { + "$ref": "#/definitions/PartialServerBuilderConfig" + } + }, + "required": [ + "type", + "params" + ] + }, + { + "type": "object", + "properties": { + "type": { + "type": "string", + "const": "Aws" + }, + "params": { + "$ref": "#/definitions/PartialAwsBuilderConfig" + } + }, + "required": [ + "type", + "params" + ] + } + ] + }, + "PartialUrlBuilderConfig": { + "type": "object", + "properties": { + "address": { + "description": "The address of the Periphery agent", + "type": [ + "string", + "null" + ] + }, + "periphery_public_key": { + "description": "An expected public key associated with Periphery private key.\nIf empty, doesn't validate Periphery public key.", + "type": [ + "string", + "null" + ] + }, + "insecure_tls": { + "description": "Whether to validate the Periphery tls certificates.", + "type": [ + "boolean", + "null" + ] + }, + "passkey": { + "description": "Deprecated. Use private / public keys instead.\nAn optional override passkey to use\nto authenticate with periphery agent.\nIf this is empty, will use passkey in core config.", + "type": [ + "string", + "null" + ] + } + } + }, + "PartialServerBuilderConfig": { + "type": "object", + "properties": { + "server": { + "description": "The server id of the builder", + "type": [ + "string", + "null" + ] + } + } + }, + "PartialAwsBuilderConfig": { + "type": "object", + "properties": { + "region": { + "description": "The AWS region to create the instance in", + "type": [ + "string", + "null" + ] + }, + "instance_type": { + "description": "The instance type to create for the build", + "type": [ + "string", + "null" + ] + }, + "volume_gb": { + "description": "The size of the builder volume in gb", + "type": [ + "integer", + "null" + ], + "format": "int32" + }, + "ami_id": { + "description": "The EC2 ami id to create.\nThe ami should have the periphery client configured to start on startup,\nand should have the necessary github / dockerhub accounts configured.", + "type": [ + "string", + "null" + ] + }, + "subnet_id": { + "description": "The subnet id to create the instance in.", + "type": [ + "string", + "null" + ] + }, + "key_pair_name": { + "description": "The key pair name to attach to the instance", + "type": [ + "string", + "null" + ] + }, + "assign_public_ip": { + "description": "Whether to assign the instance a public IP address.\nLikely needed for the instance to be able to reach the open internet.", + "type": [ + "boolean", + "null" + ] + }, + "use_public_ip": { + "description": "Whether core should use the public IP address to communicate with periphery on the builder.\nIf false, core will communicate with the instance using the private IP.", + "type": [ + "boolean", + "null" + ] + }, + "security_group_ids": { + "description": "The security group ids to attach to the instance.\nThis should include a security group to allow core inbound access to the periphery port.", + "type": [ + "array", + "null" + ], + "items": { + "type": "string" + } + }, + "user_data": { + "description": "The user data to deploy the instance with.", + "type": [ + "string", + "null" + ] + }, + "port": { + "description": "The port periphery will be running on.\nDefault: `8120`", + "type": [ + "integer", + "null" + ], + "format": "int32" + }, + "use_https": { + "type": [ + "boolean", + "null" + ] + }, + "periphery_public_key": { + "description": "An expected public key associated with Periphery private key.\nIf empty, doesn't validate Periphery public key.", + "type": [ + "string", + "null" + ] + }, + "insecure_tls": { + "description": "Whether to validate the Periphery tls certificates.", + "type": [ + "boolean", + "null" + ] + }, + "git_providers": { + "description": "Which git providers are available on the AMI", + "type": [ + "array", + "null" + ], + "items": { + "$ref": "#/definitions/GitProvider" + } + }, + "docker_registries": { + "description": "Which docker registries are available on the AMI.", + "type": [ + "array", + "null" + ], + "items": { + "$ref": "#/definitions/DockerRegistry" + } + }, + "secrets": { + "description": "Which secrets are available on the AMI.", + "type": [ + "array", + "null" + ], + "items": { + "type": "string" + } + } + } + }, + "GitProvider": { + "type": "object", + "properties": { + "domain": { + "description": "The git provider domain. Default: `github.com`.", + "type": "string", + "default": "github.com" + }, + "https": { + "description": "Whether to use https. Default: true.", + "type": "boolean", + "default": true + }, + "accounts": { + "description": "The accounts on the git provider. Required.", + "type": "array", + "items": { + "$ref": "#/definitions/ProviderAccount" + } + } + }, + "required": [ + "accounts" + ] + }, + "ProviderAccount": { + "type": "object", + "properties": { + "username": { + "description": "The account username. Required.", + "type": "string" + }, + "token": { + "description": "The account access token. Required.", + "type": "string", + "writeOnly": true + } + }, + "required": [ + "username" + ] + }, + "DockerRegistry": { + "type": "object", + "properties": { + "domain": { + "description": "The docker provider domain. Default: `docker.io`.", + "type": "string", + "default": "docker.io" + }, + "accounts": { + "description": "The accounts on the registry. Required.", + "type": "array", + "items": { + "$ref": "#/definitions/ProviderAccount" + } + }, + "organizations": { + "description": "Available organizations on the registry provider.\nUsed to push an image under an organization's repo rather than an account's repo.", + "type": "array", + "items": { + "type": "string" + }, + "default": [] + } + }, + "required": [ + "accounts" + ] + }, + "ResourceToml11": { + "type": "object", + "properties": { + "name": { + "description": "The resource name. Required", + "type": "string" + }, + "description": { + "description": "The resource description. Optional.", + "type": "string" + }, + "template": { + "description": "Mark resource as a template", + "type": "boolean" + }, + "tags": { + "description": "Tag ids or names. Optional", + "type": "array", + "items": { + "type": "string" + } + }, + "deploy": { + "description": "Optional. Only relevant for deployments / stacks.\n\nWill ensure deployment / stack is running with the latest configuration.\nDeploy actions to achieve this will be included in the sync.\nDefault is false.", + "type": "boolean" + }, + "after": { + "description": "Optional. Only relevant for deployments / stacks using the 'deploy' sync feature.\n\nSpecify other deployments / stacks by name as dependencies.\nThe sync will ensure the deployment / stack will only be deployed 'after' its dependencies.", + "type": "array", + "items": { + "type": "string" + } + }, + "config": { + "description": "Resource specific configuration.", + "allOf": [ + { + "$ref": "#/definitions/PartialResourceSyncConfig" + } + ] + } + }, + "required": [ + "name" + ] + }, + "PartialResourceSyncConfig": { + "type": "object", + "properties": { + "linked_repo": { + "description": "Choose a Komodo Repo (Resource) to source the sync files.", + "type": [ + "string", + "null" + ] + }, + "git_provider": { + "description": "The git provider domain. Default: github.com", + "type": [ + "string", + "null" + ] + }, + "git_https": { + "description": "Whether to use https to clone the repo (versus http). Default: true\n\nNote. Komodo does not currently support cloning repos via ssh.", + "type": [ + "boolean", + "null" + ] + }, + "repo": { + "description": "The Github repo used as the source of the build.", + "type": [ + "string", + "null" + ] + }, + "branch": { + "description": "The branch of the repo.", + "type": [ + "string", + "null" + ] + }, + "commit": { + "description": "Optionally set a specific commit hash.", + "type": [ + "string", + "null" + ] + }, + "git_account": { + "description": "The git account used to access private repos.\nPassing empty string can only clone public repos.\n\nNote. A token for the account must be available in the core config or the builder server's periphery config\nfor the configured git provider.", + "type": [ + "string", + "null" + ] + }, + "webhook_enabled": { + "description": "Whether incoming webhooks actually trigger action.", + "type": [ + "boolean", + "null" + ] + }, + "webhook_secret": { + "description": "Optionally provide an alternate webhook secret for this sync.\nIf its an empty string, use the default secret from the config.", + "type": [ + "string", + "null" + ] + }, + "files_on_host": { + "description": "Files are available on the Komodo Core host.\nSpecify the file / folder with [ResourceSyncConfig::resource_path].", + "type": [ + "boolean", + "null" + ] + }, + "resource_path": { + "description": "The path of the resource file(s) to sync.\n - If Files on Host, this is relative to the configured `sync_directory` in core config.\n - If Git Repo based, this is relative to the root of the repo.\nCan be a specific file, or a directory containing multiple files / folders.\nSee [https://komo.do/docs/sync-resources](https://komo.do/docs/sync-resources) for more information.", + "type": [ + "array", + "null" + ], + "items": { + "type": "string" + } + }, + "managed": { + "description": "Enable \"pushes\" to the file,\nwhich exports resources matching tags to single file.\n - If using `files_on_host`, it is stored in the file_contents, which must point to a .toml file path (it will be created if it doesn't exist).\n - If using `file_contents`, it is stored in the database.\nWhen using this, \"delete\" mode is always enabled.", + "type": [ + "boolean", + "null" + ] + }, + "delete": { + "description": "Whether sync should delete resources\nnot declared in the resource files", + "type": [ + "boolean", + "null" + ] + }, + "include_resources": { + "description": "Whether sync should include resources.\nDefault: true", + "type": [ + "boolean", + "null" + ] + }, + "match_tags": { + "description": "When using `managed` resource sync, will only export resources\nmatching all of the given tags. If none, will match all resources.", + "type": [ + "array", + "null" + ], + "items": { + "type": "string" + } + }, + "include_variables": { + "description": "Whether sync should include variables.", + "type": [ + "boolean", + "null" + ] + }, + "include_user_groups": { + "description": "Whether sync should include user groups.", + "type": [ + "boolean", + "null" + ] + }, + "pending_alert": { + "description": "Whether sync should send alert when it enters Pending state.\nDefault: true", + "type": [ + "boolean", + "null" + ] + }, + "file_contents": { + "description": "Manage the file contents in the UI.", + "type": [ + "string", + "null" + ] + } + } + }, + "UserGroupToml": { + "type": "object", + "properties": { + "name": { + "description": "User group name", + "type": "string" + }, + "everyone": { + "description": "Whether all users will implicitly have the permissions in this group.", + "type": "boolean", + "default": false + }, + "users": { + "description": "Users in the group", + "type": "array", + "items": { + "type": "string" + }, + "default": [] + }, + "all": { + "description": "Give the user group elevated permissions on all resources of a certain type", + "type": "object", + "properties": { + "Action": { + "$ref": "#/definitions/PermissionLevelAndSpecifics" + }, + "Alerter": { + "$ref": "#/definitions/PermissionLevelAndSpecifics" + }, + "Build": { + "$ref": "#/definitions/PermissionLevelAndSpecifics" + }, + "Builder": { + "$ref": "#/definitions/PermissionLevelAndSpecifics" + }, + "Deployment": { + "$ref": "#/definitions/PermissionLevelAndSpecifics" + }, + "Procedure": { + "$ref": "#/definitions/PermissionLevelAndSpecifics" + }, + "Repo": { + "$ref": "#/definitions/PermissionLevelAndSpecifics" + }, + "ResourceSync": { + "$ref": "#/definitions/PermissionLevelAndSpecifics" + }, + "Server": { + "$ref": "#/definitions/PermissionLevelAndSpecifics" + }, + "Stack": { + "$ref": "#/definitions/PermissionLevelAndSpecifics" + }, + "Swarm": { + "$ref": "#/definitions/PermissionLevelAndSpecifics" + }, + "System": { + "$ref": "#/definitions/PermissionLevelAndSpecifics" + } + }, + "additionalProperties": false, + "default": {} + }, + "permissions": { + "description": "Permissions given to the group", + "type": "array", + "items": { + "$ref": "#/definitions/PermissionToml" + }, + "default": [] + } + }, + "required": [ + "name" + ] + }, + "PermissionLevelAndSpecifics": { + "type": "object", + "properties": { + "level": { + "$ref": "#/definitions/PermissionLevel" + }, + "specific": { + "type": "array", + "uniqueItems": true, + "items": { + "$ref": "#/definitions/SpecificPermission" + } + } + }, + "required": [ + "level", + "specific" + ] + }, + "PermissionLevel": { + "description": "The levels of permission that a User or UserGroup can have on a resource.", + "oneOf": [ + { + "description": "No permissions.", + "type": "string", + "const": "None" + }, + { + "description": "Can read resource information and config", + "type": "string", + "const": "Read" + }, + { + "description": "Can execute actions on the resource", + "type": "string", + "const": "Execute" + }, + { + "description": "Can update the resource configuration", + "type": "string", + "const": "Write" + } + ] + }, + "SpecificPermission": { + "description": "The specific types of permission that a User or UserGroup can have on a resource.", + "oneOf": [ + { + "description": "On **Server**\n - Access the terminal apis\nOn **Stack / Deployment**\n - Access the container exec Apis", + "type": "string", + "const": "Terminal" + }, + { + "description": "On **Server**\n - Allowed to attach Stacks, Deployments, Repos, Builders to the Server\nOn **Builder**\n - Allowed to attach Builds to the Builder\nOn **Build**\n - Allowed to attach Deployments to the Build", + "type": "string", + "const": "Attach" + }, + { + "description": "On **Server**\n - Access the `container inspect` apis\nOn **Stack / Deployment**\n - Access `container inspect` apis for associated containers", + "type": "string", + "const": "Inspect" + }, + { + "description": "On **Server**\n - Read all container logs on the server\nOn **Stack / Deployment**\n - Read the container logs", + "type": "string", + "const": "Logs" + }, + { + "description": "On **Server**\n - Read all the processes on the host", + "type": "string", + "const": "Processes" + } + ] + }, + "PermissionToml": { + "type": "object", + "properties": { + "target": { + "description": "Id can be:\n - resource name. `id = \"abcd-build\"`\n - regex matching resource names. `id = \"\\^(.+)-build-([0-9]+)$\\\"`", + "allOf": [ + { + "$ref": "#/definitions/ResourceTarget" + } + ] + }, + "level": { + "description": "The permission level:\n - None\n - Read\n - Execute\n - Write", + "default": "None", + "allOf": [ + { + "$ref": "#/definitions/PermissionLevel" + } + ] + }, + "specific": { + "description": "Any [SpecificPermissions](SpecificPermission) on the resource", + "type": "array", + "uniqueItems": true, + "items": { + "$ref": "#/definitions/SpecificPermission" + } + } + }, + "required": [ + "target" + ] + }, + "Variable": { + "description": "A non-secret global variable which can be interpolated into deployment\nenvironment variable values and build argument values.", + "type": "object", + "properties": { + "name": { + "description": "Unique name associated with the variable.\nInstances of '[[variable.name]]' in value will be replaced with 'variable.value'.", + "type": "string" + }, + "description": { + "description": "A description for the variable.", + "type": "string" + }, + "value": { + "description": "The value associated with the variable.", + "type": "string", + "default": "" + }, + "is_secret": { + "description": "If marked as secret, the variable value will be hidden in updates / logs.\nAdditionally the value will not be served in read requests by non admin users.\n\nNote that the value is NOT encrypted in the database, and will likely show up in database logs.\nThe security of these variables comes down to the security\nof the database (system level encryption, network isolation, etc.)", + "type": "boolean", + "default": false + } + }, + "required": [ + "name" + ] + } + } +} \ No newline at end of file diff --git a/ui/src/app/index.tsx b/ui/src/app/index.tsx index 51eedf9055..4da9a3b2d0 100644 --- a/ui/src/app/index.tsx +++ b/ui/src/app/index.tsx @@ -4,7 +4,7 @@ import { Suspense } from "react"; import { Outlet } from "react-router-dom"; import Topbar from "@/app/topbar"; import Sidebar from "@/app/sidebar"; -import LoadingScreen from "@/ui/loading-screen"; +import { LoadingScreen } from "mogh_ui"; import UpdateDetails from "@/components/updates/details"; import AlertDetails from "@/components/alerts/details"; diff --git a/ui/src/app/sidebar.tsx b/ui/src/app/sidebar.tsx index 154254d5ac..bfff9c1f67 100644 --- a/ui/src/app/sidebar.tsx +++ b/ui/src/app/sidebar.tsx @@ -1,4 +1,4 @@ -import { ICONS } from "@/theme/icons"; +import { ICONS } from "@/lib/icons"; import { usableResourcePath } from "@/lib/utils"; import { SIDEBAR_RESOURCES } from "@/resources"; import { Button, Divider, ScrollArea, Stack, Text } from "@mantine/core"; diff --git a/ui/src/app/topbar/alerts.tsx b/ui/src/app/topbar/alerts.tsx index ff3571c21d..e42176120c 100644 --- a/ui/src/app/topbar/alerts.tsx +++ b/ui/src/app/topbar/alerts.tsx @@ -1,5 +1,5 @@ import { useRead } from "@/lib/hooks"; -import { ICONS } from "@/theme/icons"; +import { ICONS } from "@/lib/icons"; import { ActionIcon, Box, Center, Menu } from "@mantine/core"; import { useDisclosure } from "@mantine/hooks"; import AlertList from "@/components/alerts/list"; diff --git a/ui/src/app/topbar/index.tsx b/ui/src/app/topbar/index.tsx index 90b6217a34..15a863175a 100644 --- a/ui/src/app/topbar/index.tsx +++ b/ui/src/app/topbar/index.tsx @@ -9,8 +9,8 @@ import { SimpleGrid, Text, } from "@mantine/core"; -import { useNavigate } from "react-router-dom"; -import ThemeToggle from "@/ui/theme-toggle"; +import { Link } from "react-router-dom"; +import { ThemeToggle } from "mogh_ui"; import UserDropdown from "@/app/topbar/user-dropdown"; import TopbarUpdates from "@/app/topbar/updates"; import OmniSearch from "@/app/topbar/omni-search"; @@ -27,7 +27,6 @@ const Topbar = ({ opened: boolean; toggle: () => void; }) => { - const nav = useNavigate(); const version = useRead("GetVersion", {}, { refetchInterval: 30_000 }).data ?.version; return ( @@ -46,21 +45,22 @@ const Topbar = ({ {/** LEFT AREA */} + nav("/")} + renderRoot={(props) => } size="lg" hiddenFrom="md" > moghtech + - )} - - ); -} diff --git a/ui/src/ui/config/layout.tsx b/ui/src/ui/config/layout.tsx deleted file mode 100644 index 325b850e4c..0000000000 --- a/ui/src/ui/config/layout.tsx +++ /dev/null @@ -1,22 +0,0 @@ -import { ReactNode } from "react"; -import Section, { SectionProps } from "@/ui/section"; -import { ICONS } from "@/theme/icons"; - -/** Includes save buttons */ -export default function ConfigLayout({ - title, - icon, - titleOther, - SaveOrReset, - ...sectionProps -}: { - SaveOrReset: ReactNode | undefined; -} & SectionProps) { - const titleProps = titleOther - ? { titleOther } - : { - title: title ?? "Config", - icon: icon ?? , - }; - return
; -} diff --git a/ui/src/ui/config/unsaved-changes.tsx b/ui/src/ui/config/unsaved-changes.tsx deleted file mode 100644 index 4378132662..0000000000 --- a/ui/src/ui/config/unsaved-changes.tsx +++ /dev/null @@ -1,17 +0,0 @@ -import { ICONS } from "@/theme/icons"; -import { Group } from "@mantine/core"; - -export default function UnsavedChanges({ fullWidth }: { fullWidth?: boolean }) { - return ( - - - Unsaved changes - - - ); -} diff --git a/ui/src/ui/confirm-button.tsx b/ui/src/ui/confirm-button.tsx deleted file mode 100644 index 4bcf665867..0000000000 --- a/ui/src/ui/confirm-button.tsx +++ /dev/null @@ -1,93 +0,0 @@ -import { ICONS } from "@/theme/icons"; -import { - Button, - ButtonProps, - createPolymorphicComponent, - Loader, -} from "@mantine/core"; -import { Check } from "lucide-react"; -import { - FocusEventHandler, - forwardRef, - MouseEventHandler, - ReactNode, - useEffect, - useState, -} from "react"; - -// https://mantine.dev/guides/polymorphic/#create-your-own-polymorphic-components - -export interface ConfirmButtonProps extends ButtonProps { - icon?: ReactNode; - onClick?: MouseEventHandler; - onBlur?: FocusEventHandler; - /** Passed when button is in confirm mode */ - confirmProps?: ButtonProps; -} - -const ConfirmButton = createPolymorphicComponent<"button", ConfirmButtonProps>( - forwardRef( - ( - { - icon, - rightSection, - children, - onClick, - onBlur, - miw, - loading, - disabled, - confirmProps, - ...props - }, - ref, - ) => { - const [clickedOnce, setClickedOnce] = useState(false); - useEffect(() => { - if (clickedOnce) { - const timeout = setTimeout(() => { - setClickedOnce(false); - }, 4_000); - return () => clearTimeout(timeout); - } - }, [clickedOnce]); - return ( - - ); - }, - ), -); - -export default ConfirmButton; diff --git a/ui/src/ui/confirm-icon.tsx b/ui/src/ui/confirm-icon.tsx deleted file mode 100644 index 71edcce793..0000000000 --- a/ui/src/ui/confirm-icon.tsx +++ /dev/null @@ -1,69 +0,0 @@ -import { ICONS } from "@/theme/icons"; -import { - ActionIcon, - ActionIconProps, - createPolymorphicComponent, - Loader, -} from "@mantine/core"; -import { Check } from "lucide-react"; -import { - FocusEventHandler, - forwardRef, - MouseEventHandler, - useEffect, - useState, -} from "react"; - -// https://mantine.dev/guides/polymorphic/#create-your-own-polymorphic-components - -export interface ConfirmIconProps extends ActionIconProps { - onClick?: MouseEventHandler; - onBlur?: FocusEventHandler; -} - -const ConfirmIcon = createPolymorphicComponent<"button", ConfirmIconProps>( - forwardRef( - ({ children, onClick, onBlur, miw, loading, disabled, ...props }, ref) => { - const [clickedOnce, setClickedOnce] = useState(false); - useEffect(() => { - if (clickedOnce) { - const timeout = setTimeout(() => { - setClickedOnce(false); - }, 4_000); - return () => clearTimeout(timeout); - } - }, [clickedOnce]); - return ( - { - e.stopPropagation(); - if (clickedOnce) { - onClick?.(e); - setClickedOnce(false); - } else { - setClickedOnce(true); - } - }} - onBlur={(e) => { - setClickedOnce(false); - onBlur?.(e); - }} - onPointerDown={(e) => e.stopPropagation()} - disabled={disabled || loading} - {...props} - ref={ref} - > - {clickedOnce ? ( - - ) : loading ? ( - - ) : ( - (children ?? ) - )} - - ); - }, - ), -); - -export default ConfirmIcon; diff --git a/ui/src/ui/confirm-modal.tsx b/ui/src/ui/confirm-modal.tsx deleted file mode 100644 index 6f71389e55..0000000000 --- a/ui/src/ui/confirm-modal.tsx +++ /dev/null @@ -1,164 +0,0 @@ -import { - Button, - ButtonProps, - Group, - Loader, - Modal, - ModalProps, - Stack, - Text, - TextInput, -} from "@mantine/core"; -import { useDisclosure } from "@mantine/hooks"; -import { ReactNode, useState } from "react"; -import ConfirmButton from "./confirm-button"; -import { sendCopyNotification } from "@/lib/utils"; - -export interface ConfirmModalProps extends Omit< - Omit, "onClose">, - "onClick" -> { - children?: ReactNode; - icon?: ReactNode; - disabled?: boolean; - /** User must enter this text to confirm */ - confirmText: string; - title?: ReactNode; - confirmButtonContent?: ReactNode; - onConfirm?: () => Promise; - loading?: boolean; - additional?: ReactNode; - topAdditonal?: ReactNode; - targetProps?: ButtonProps; - targetNoIcon?: boolean; - confirmProps?: ButtonProps; - /** Converts into ConfirmButton */ - disableModal?: boolean; -} - -export default function ConfirmModal({ - children, - icon, - disabled, - confirmText, - title, - confirmButtonContent, - onConfirm, - loading, - additional, - topAdditonal, - targetProps, - targetNoIcon, - confirmProps, - disableModal, - ...modalProps -}: ConfirmModalProps) { - const [opened, { open, close }] = useDisclosure(); - const [input, setInput] = useState(""); - - if (disableModal) { - return ( - - {children} - - ); - } - - return ( - <> - - {title ?? ( - <> - Confirm {children} - - )} - - } - styles={{ content: { padding: "0.5rem" } }} - size="lg" - onClick={(e) => e.stopPropagation()} - {...modalProps} - > - - {topAdditonal} - - { - navigator.clipboard.writeText(confirmText); - sendCopyNotification(); - }} - style={{ cursor: "pointer" }} - > - Please enter {confirmText} below to confirm this action. - {(location.origin.startsWith("https") || - // For dev - location.origin.startsWith("http://localhost:")) && ( - - You may click the text in bold to copy it - - )} - - - setInput(e.target.value)} - error={input === confirmText ? undefined : "Does not match"} - /> - - {additional} - - - - - - - - - - ); -} diff --git a/ui/src/ui/copy-button.tsx b/ui/src/ui/copy-button.tsx deleted file mode 100644 index 0c3b6f0145..0000000000 --- a/ui/src/ui/copy-button.tsx +++ /dev/null @@ -1,42 +0,0 @@ -import { sendCopyNotification } from "@/lib/utils"; -import { - ActionIcon, - ActionIconProps, - CopyButton as MantineCopyButton, -} from "@mantine/core"; -import { Check, Copy } from "lucide-react"; -import { ReactNode } from "react"; - -export interface CopyButtonProps { - content: string; - icon?: ReactNode; - label?: string; - size?: string | number; - buttonSize?: ActionIconProps["size"]; -} - -export default function CopyButton({ - content, - icon, - label = "content", - size = "1.1rem", - buttonSize = "lg", -}: CopyButtonProps) { - return ( - - {({ copied, copy }) => ( - { - e.stopPropagation(); - copy(); - sendCopyNotification(label); - }} - size={buttonSize} - > - {copied ? : (icon ?? )} - - )} - - ); -} diff --git a/ui/src/ui/copy-text.tsx b/ui/src/ui/copy-text.tsx deleted file mode 100644 index c2b6309560..0000000000 --- a/ui/src/ui/copy-text.tsx +++ /dev/null @@ -1,42 +0,0 @@ -import { Group, GroupProps, Text, TextProps } from "@mantine/core"; -import CopyButton from "@/ui/copy-button"; -import { sendCopyNotification } from "@/lib/utils"; - -export interface CopyTextProps extends TextProps { - content: string; - label?: string; - groupProps?: GroupProps; -} - -export default function CopyText({ - content, - label, - groupProps, - ...textProps -}: CopyTextProps) { - return ( - - { - navigator.clipboard.writeText(content); - sendCopyNotification(label); - }} - {...textProps} - > - {content} - - - - ); -} diff --git a/ui/src/ui/create-modal.tsx b/ui/src/ui/create-modal.tsx deleted file mode 100644 index f9e244e5f5..0000000000 --- a/ui/src/ui/create-modal.tsx +++ /dev/null @@ -1,88 +0,0 @@ -import { useShiftKeyListener } from "@/lib/hooks"; -import { ICONS } from "@/theme/icons"; -import { - Button, - ButtonProps, - Group, - Modal, - ModalBaseProps, - Stack, - Text, -} from "@mantine/core"; -import { useDisclosure } from "@mantine/hooks"; -import { ReactNode, useEffect } from "react"; - -export interface CreateModalProps extends ButtonProps { - entityType: string; - configSection: (close: () => void) => ReactNode; - loading?: boolean; - onConfirm: () => Promise; - onOpenChange?: (opened: boolean) => void; - configureLabel?: string; - openShiftKeyListener?: string; - children?: ReactNode; - modalSize?: ModalBaseProps["size"]; -} - -export default function CreateModal({ - entityType, - configSection, - disabled, - loading, - onConfirm, - onOpenChange, - configureLabel = "a unique name", - openShiftKeyListener, - leftSection, - children, - modalSize = "md", - ...targetProps -}: CreateModalProps) { - const [opened, { open, close }] = useDisclosure(); - useEffect(() => onOpenChange?.(opened), [opened]); - useShiftKeyListener( - openShiftKeyListener ?? "___", - () => openShiftKeyListener && !opened && open(), - ); - return ( - <> - - - - Enter {configureLabel} for the new {entityType}. - - - {configSection(close)} - - - - - - - - - - ); -} diff --git a/ui/src/ui/data-table.tsx b/ui/src/ui/data-table.tsx deleted file mode 100644 index b93e59fa52..0000000000 --- a/ui/src/ui/data-table.tsx +++ /dev/null @@ -1,317 +0,0 @@ -import { - Dispatch, - ReactNode, - SetStateAction, - useEffect, - useState, -} from "react"; -import { - Column, - ColumnDef, - flexRender, - getCoreRowModel, - getSortedRowModel, - Row, - RowSelectionState, - SortingState, - useReactTable, -} from "@tanstack/react-table"; -import { - Box, - BoxProps, - Center, - Checkbox, - Group, - HoverCard, - Loader, - Table, - TableProps, - Text, - UnstyledButton, -} from "@mantine/core"; -import { ArrowDown, ArrowUp, Info, Minus } from "lucide-react"; -import { hexColorByIntention } from "@/lib/color"; - -export interface DataTableProps extends BoxProps { - /** Unique key given to table so sorting can be remembered on local storage */ - tableKey: string; - columns: (ColumnDef | false | undefined)[]; - data: TData[]; - loading?: boolean; - onRowClick?: (row: TData) => void; - noResults?: ReactNode; - defaultSort?: SortingState; - sortDescFirst?: boolean; - selectOptions?: { - selectKey: (row: TData) => string; - onSelect?: (selected: string[]) => void; - state?: [RowSelectionState, Dispatch>]; - disableRow?: boolean | ((row: Row) => boolean); - }; - caption?: string; - tableProps?: TableProps; - noBox?: boolean; - noBorder?: boolean; -} - -export function DataTable({ - tableKey, - columns, - data, - loading, - onRowClick, - noResults = No results, - sortDescFirst = false, - defaultSort = [], - selectOptions, - caption, - tableProps, - noBox, - noBorder, - mah = "max(150px, calc(100vh - 320px))", - ...boxProps -}: DataTableProps) { - const [sorting, setSorting] = useState(defaultSort); - - // intentionally not initialized to clear selected values on table mount - // could add some prop for adding default selected state to preserve between mounts - const _internalState = useState({}); - const [rowSelection, setRowSelection] = selectOptions?.state - ? selectOptions.state - : _internalState; - - const table = useReactTable({ - data, - columns: columns.filter((c) => c) as any, - getCoreRowModel: getCoreRowModel(), - onSortingChange: setSorting, - getSortedRowModel: getSortedRowModel(), - state: { - sorting, - rowSelection, - }, - sortDescFirst, - onRowSelectionChange: setRowSelection, - getRowId: selectOptions?.selectKey, - enableRowSelection: selectOptions?.disableRow, - }); - - useEffect(() => { - const stored = localStorage.getItem("data-table-" + tableKey); - const sorting = stored ? (JSON.parse(stored) as SortingState) : null; - if (sorting) setSorting(sorting); - }, [tableKey]); - - useEffect(() => { - localStorage.setItem("data-table-" + tableKey, JSON.stringify(sorting)); - }, [tableKey, sorting]); - - useEffect(() => { - selectOptions?.onSelect?.(Object.keys(rowSelection)); - }, [rowSelection]); - - const rows = table.getPrePaginationRowModel().rows; - - const tableNode = ( - - {caption ? {caption} : null} - - - {table.getHeaderGroups().map((hg, i) => ( - - {i === 0 && selectOptions && ( - - selectOptions.disableRow !== true && - table.toggleAllRowsSelected() - } - style={{ - cursor: "pointer", - borderColor: "var(--mantine-color-accent-border-0)", - borderWidth: 0, - borderRightWidth: 1, - borderStyle: "solid", - }} - > - - - )} - {hg.headers.map((header, i) => { - // const canSort = header.column.getCanSort(); - // const sortState = header.column.getIsSorted(); - return ( - - {header.isPlaceholder ? null : ( - - {flexRender( - header.column.columnDef.header, - header.getContext(), - )} - - )} - - ); - })} - - ))} - - - - {loading ? ( - - - - - - - - ) : rows.length === 0 ? ( - - - - {noResults} - - - - ) : ( - rows.map((row) => ( - - {selectOptions && ( - row.toggleSelected()}> - - - )} - {row.getVisibleCells().map((cell) => ( - onRowClick(row.original) : undefined - } - style={{ flexWrap: "nowrap", textWrap: "nowrap" }} - > - {flexRender(cell.column.columnDef.cell, cell.getContext())} - - ))} - - )) - )} - -
- ); - - if (noBox) { - return tableNode; - } else { - return ( - - {tableNode} - - ); - } -} - -export const SortableHeader = ({ - column, - title, - description, - sortDescFirst, -}: { - column: Column; - title: string; - description?: ReactNode; - sortDescFirst?: boolean; -}) => { - return ( - - - - - {title} - - {description && ( - - - - - - {description} - - - )} - -
- -
-
-
- ); -}; - -function SortIcon({ - state, - sortDescFirst, -}: { - state: false | "asc" | "desc"; - sortDescFirst?: boolean; -}) { - if (state === "asc") - return sortDescFirst ? : ; - if (state === "desc") - return sortDescFirst ? : ; - return ; -} diff --git a/ui/src/ui/divided-children/index.module.scss b/ui/src/ui/divided-children/index.module.scss deleted file mode 100644 index a3741a7639..0000000000 --- a/ui/src/ui/divided-children/index.module.scss +++ /dev/null @@ -1,4 +0,0 @@ -.divided-children > *:not(:last-child) { - padding-right: var(--mantine-spacing-md); - border-right: 1px solid var(--mantine-color-accent-border-0); -} \ No newline at end of file diff --git a/ui/src/ui/divided-children/index.tsx b/ui/src/ui/divided-children/index.tsx deleted file mode 100644 index e9ee69c88a..0000000000 --- a/ui/src/ui/divided-children/index.tsx +++ /dev/null @@ -1,22 +0,0 @@ -import { createPolymorphicComponent, Group, GroupProps } from "@mantine/core"; -import { forwardRef } from "react"; -import classes from "./index.module.scss"; - -// https://mantine.dev/guides/polymorphic/#create-your-own-polymorphic-components - -const DividedChildren = createPolymorphicComponent<"div", GroupProps>( - forwardRef(({ className, ...props }, ref) => ( - - )), -); - -export default DividedChildren; diff --git a/ui/src/ui/enable-switch.tsx b/ui/src/ui/enable-switch.tsx deleted file mode 100644 index 5caac7a8a4..0000000000 --- a/ui/src/ui/enable-switch.tsx +++ /dev/null @@ -1,45 +0,0 @@ -import { Badge, Group, GroupProps, Switch, SwitchProps } from "@mantine/core"; - -export interface EnableSwitchProps extends SwitchProps { - checked?: boolean; - onCheckedChange?: (checked: boolean) => void; - redDisabled?: boolean; - labelProps?: GroupProps; -} - -export default function EnableSwitch({ - checked, - color = "green.9", - label, - onChange, - onCheckedChange, - disabled, - redDisabled = true, - labelProps, - ...props -}: EnableSwitchProps) { - return ( - - {label} - - {checked ? "Enabled" : "Disabled"} - - - } - onChange={(e) => { - onChange?.(e); - onCheckedChange?.(e.target.checked); - }} - {...props} - /> - ); -} diff --git a/ui/src/ui/entity-header.tsx b/ui/src/ui/entity-header.tsx deleted file mode 100644 index 62c3967206..0000000000 --- a/ui/src/ui/entity-header.tsx +++ /dev/null @@ -1,125 +0,0 @@ -import { ColorIntention, hexColorByIntention } from "@/lib/color"; -import { ICONS } from "@/theme/icons"; -import { ActionIcon, Group, Stack, Text, TextInput } from "@mantine/core"; -import { FC, ReactNode, useEffect, useState } from "react"; - -export interface EntityHeaderProps { - name?: string; - icon: FC<{ size?: string | number; color?: string }>; - intent: ColorIntention; - state?: ReactNode; - status?: ReactNode; - action?: ReactNode; - onRename?: (name: string) => Promise; - renamePending?: boolean; -} - -export default function EntityHeader({ - name, - icon: Icon, - intent, - state, - status, - action, - onRename: _onRename, - renamePending, -}: EntityHeaderProps) { - const [editingName, setEditingName] = useState(false); - const [newName, setNewName] = useState(name); - useEffect(() => { - setNewName(name); - }, [name]); - const color = hexColorByIntention(intent); - const background = color ? color + "25" : undefined; - const onRename = - _onRename && - (() => { - if (!newName) return; - if (name === newName) { - setEditingName(false); - } else { - _onRename(newName).then(() => setEditingName(false)); - } - }); - return ( - - - - - {name && !onRename && ( - - {name} - - )} - {onRename && ( - setEditingName(true)} - style={{ cursor: editingName ? undefined : "pointer" }} - > - {!editingName && ( - <> - - {name} - - - - - - )} - {editingName && ( - <> - setNewName(e.target.value)} - onKeyDown={(e) => e.key === "Enter" && onRename()} - disabled={renamePending} - size="lg" - autoFocus - /> - - - - { - setNewName(name); - setEditingName(false); - }} - > - - - - )} - - )} - - - {state} - - {status} - - - - {action} - - ); -} diff --git a/ui/src/ui/entity-page.tsx b/ui/src/ui/entity-page.tsx deleted file mode 100644 index 74f903782c..0000000000 --- a/ui/src/ui/entity-page.tsx +++ /dev/null @@ -1,25 +0,0 @@ -import { Group, Stack, StackProps } from "@mantine/core"; -import BackButton from "./back-button"; -import { ReactNode } from "react"; - -export interface EntityPageProps extends StackProps { - backTo?: string; - actions?: ReactNode; -} - -export default function EntityPage({ - backTo, - actions, - children, - ...props -}: EntityPageProps) { - return ( - - - - {actions && {actions}} - - {children} - - ); -} diff --git a/ui/src/ui/fancy-card/index.module.css b/ui/src/ui/fancy-card/index.module.css deleted file mode 100644 index e208a4e97e..0000000000 --- a/ui/src/ui/fancy-card/index.module.css +++ /dev/null @@ -1,13 +0,0 @@ -.fancy-card { - cursor: pointer; - border: 1px solid color-mix(in srgb, var(--mantine-color-accent-border-1) 40%, transparent); - box-shadow: var(--mantine-shadow-xs); - transition: all 150ms ease; -} - -.fancy-card:hover { - border-color: color-mix(in srgb, var(--mantine-color-accent-border-4) 40%, transparent); - background-color: var(--mantine-color-accent-0); - transform: translateY(-4%); - box-shadow: var(--mantine-shadow-md); -} \ No newline at end of file diff --git a/ui/src/ui/fancy-card/index.tsx b/ui/src/ui/fancy-card/index.tsx deleted file mode 100644 index 8c1e4d7fc5..0000000000 --- a/ui/src/ui/fancy-card/index.tsx +++ /dev/null @@ -1,23 +0,0 @@ -import { forwardRef } from "react"; -import { Box, BoxProps, createPolymorphicComponent } from "@mantine/core"; -import classes from "./index.module.css"; - -// https://mantine.dev/guides/polymorphic/#create-your-own-polymorphic-components - -interface FancyCardProps extends BoxProps {} - -const FancyCard = createPolymorphicComponent<"div", FancyCardProps>( - forwardRef(({ className, ...props }, ref) => ( - - )), -); - -export default FancyCard; diff --git a/ui/src/ui/hover-error.tsx b/ui/src/ui/hover-error.tsx deleted file mode 100644 index 1b7864f2c8..0000000000 --- a/ui/src/ui/hover-error.tsx +++ /dev/null @@ -1,48 +0,0 @@ -import { ICONS } from "@/theme/icons"; -import { Button, Code, Group, HoverCard, Stack, Text } from "@mantine/core"; - -export interface HoverErrorProps { - error: string; - trace: string[]; -} - -export default function HoverError({ error, trace }: HoverErrorProps) { - return ( - - - - - - - - - ERROR: - - {error} - - {trace.length > 0 && ( - - - TRACE: - - {trace.map((error, i) => ( - - - {i + 1}: - - {error} - - ))} - - )} - - - - ); -} diff --git a/ui/src/ui/info-card.tsx b/ui/src/ui/info-card.tsx deleted file mode 100644 index 554514ffc8..0000000000 --- a/ui/src/ui/info-card.tsx +++ /dev/null @@ -1,37 +0,0 @@ -import { - createPolymorphicComponent, - Group, - Stack, - StackProps, - Text, - TextProps, -} from "@mantine/core"; -import { forwardRef, ReactNode } from "react"; - -// https://mantine.dev/guides/polymorphic/#create-your-own-polymorphic-components - -export interface InfoCardProps extends StackProps { - title: string; - titleProps?: TextProps; - info?: ReactNode; -} - -const InfoCard = createPolymorphicComponent<"div", InfoCardProps>( - forwardRef( - ({ title, info, titleProps, children, ...props }, ref) => { - return ( - - - - {title} - - {info} - - {children} - - ); - }, - ), -); - -export default InfoCard; diff --git a/ui/src/ui/input-list.tsx b/ui/src/ui/input-list.tsx deleted file mode 100644 index 2b00ec669b..0000000000 --- a/ui/src/ui/input-list.tsx +++ /dev/null @@ -1,56 +0,0 @@ -import { ICONS } from "@/theme/icons"; -import { ActionIcon, TextInput, TextInputProps } from "@mantine/core"; - -export interface InputListProps { - field: keyof T; - values: string[]; - disabled: boolean; - set: (update: Partial) => void; - placeholder?: string; - inputProps?: TextInputProps; -} - -export default function InputList({ - field, - values, - disabled, - set, - placeholder, - inputProps, -}: InputListProps) { - return ( - <> - {values.map((arg, i) => ( - { - set({ - [field]: values.map((v, index) => - i === index ? e.target.value : v, - ), - } as Partial); - }} - disabled={disabled} - w={{ base: 230, md: 400 }} - rightSection={ - !disabled && ( - - set({ - [field]: [...values.filter((_, idx) => idx !== i)], - } as Partial) - } - > - - - ) - } - placeholder={placeholder} - {...inputProps} - /> - ))} - - ); -} diff --git a/ui/src/ui/labelled-switch.tsx b/ui/src/ui/labelled-switch.tsx deleted file mode 100644 index 10dafaa018..0000000000 --- a/ui/src/ui/labelled-switch.tsx +++ /dev/null @@ -1,53 +0,0 @@ -import { - Group, - GroupProps, - Switch, - SwitchProps, - Text, - TextProps, -} from "@mantine/core"; -import { ReactNode } from "react"; - -export interface LabelledSwitchProps extends SwitchProps { - checked: boolean | undefined; - onCheckedChange: (checked: boolean) => void; - label?: ReactNode; - groupProps?: GroupProps; - labelProps?: TextProps; -} - -export default function LabelledSwitch({ - checked, - onCheckedChange, - label, - groupProps, - labelProps, - ...switchProps -}: LabelledSwitchProps) { - return ( - { - e.preventDefault(); - onCheckedChange(!checked); - }} - className="bordered-light" - px="xs" - py={4} - bdrs="sm" - style={{ cursor: "pointer" }} - justify="space-between" - w={{ base: "100%", xs: "fit-content" }} - {...groupProps} - > - - {label} - - - - ); -} diff --git a/ui/src/ui/labels-group.tsx b/ui/src/ui/labels-group.tsx deleted file mode 100644 index 968b207266..0000000000 --- a/ui/src/ui/labels-group.tsx +++ /dev/null @@ -1,27 +0,0 @@ -import { Badge, Group, GroupProps } from "@mantine/core"; - -export interface LabelsGroupProps extends GroupProps { - labels: [string, string][]; - showEllipsis?: boolean; -} - -export default function LabelsGroup({ - labels, - showEllipsis, - ...groupProps -}: LabelsGroupProps) { - return ( - - {labels.map(([key, val]) => ( - - {key}={val} - - ))} - {showEllipsis && ( - - ... - - )} - - ); -} diff --git a/ui/src/ui/loading-screen.tsx b/ui/src/ui/loading-screen.tsx deleted file mode 100644 index 8df83df66e..0000000000 --- a/ui/src/ui/loading-screen.tsx +++ /dev/null @@ -1,15 +0,0 @@ -import { Center, CenterProps, Loader, LoaderProps } from "@mantine/core"; - -export default function LoadingScreen({ - size = "xl", - mt = "30vh", - ...centerProps -}: { - size?: LoaderProps["size"]; -} & CenterProps) { - return ( -
- -
- ); -} diff --git a/ui/src/ui/mobile-friendly-tabs.tsx b/ui/src/ui/mobile-friendly-tabs.tsx deleted file mode 100644 index 4ae85e7eb4..0000000000 --- a/ui/src/ui/mobile-friendly-tabs.tsx +++ /dev/null @@ -1,162 +0,0 @@ -import { ICONS } from "@/theme/icons"; -import { - Box, - Group, - GroupProps, - MantineBreakpoint, - Select, - Stack, - Tabs, - TabsProps, -} from "@mantine/core"; -import { FC, ReactNode } from "react"; - -export interface Tab { - label?: string; - icon?: FC<{ size?: string | number }>; - hidden?: boolean; - disabled?: boolean; - value: string; - content: ReactNode; -} - -export type TabNoContent = Omit; - -export interface MobileFriendlyTabsProps extends MobileFriendlyTabsSelectorProps { - tabs: Tab[]; - tabsProps?: Omit; -} - -export default function MobileFriendlyTabs(props: MobileFriendlyTabsProps) { - return ( - } - tabs={props.tabs} - value={props.value} - {...props.tabsProps} - /> - ); -} - -export interface MobileFriendlyTabsWrapper extends TabsProps { - Selector: ReactNode; - tabs: Tab[]; - value: string; -} - -export function MobileFriendlyTabsWrapper({ - Selector, - tabs, - value, - children, - ...tabsProps -}: MobileFriendlyTabsWrapper) { - return ( - - {Selector} - - - - - ); -} - -export interface MobileFriendlyTabsSelectorProps { - tabs: TabNoContent[]; - actions?: ReactNode; - value: string; - onValueChange: (value: string) => void; - changeAt?: MantineBreakpoint; - fullIconSize?: string | number; - mobileIconSize?: string | number; - tabProps?: GroupProps; -} - -export function MobileFriendlyTabsSelector({ - tabs: _tabs, - actions, - value, - onValueChange, - changeAt: _changeAt, - fullIconSize = "1.1rem", - mobileIconSize = "1rem", - tabProps, -}: MobileFriendlyTabsSelectorProps) { - const tabs = _tabs.filter((t) => !t.hidden); - const changeAt = - _changeAt ?? (tabs.length > 6 ? "lg" : tabs.length > 3 ? "md" : "sm"); - const SelectedIcon = tabs.find((tab) => tab.value === value)?.icon; - return ( - <> - {/* DESKTOP VIEW */} - - - {tabs.map(({ value: tabValue, label, icon: Icon, disabled }) => ( - onValueChange(tabValue)} - w="fit-content" - > - - {Icon && } - {label ?? tabValue} - - - ))} - - {actions} - - - {/* MOBILE VIEW */} - -