From 02bdf78e2348e58c94acb4bb682dba29584b90ea Mon Sep 17 00:00:00 2001 From: Mike Bombard <37379633+mbomb67@users.noreply.github.com> Date: Mon, 19 Oct 2026 11:57:42 -0400 Subject: [PATCH 1/3] Add the governance tools of the POC Onboarding Toolkit (slice 3) onb_parameter creates a parameter and attaches it to environments and groups with options and constraints (user-defined parameter, cost center, power schedule, expiration with a maximum lease); onb_group creates a group with entitled environments, auto-approval and a server quota; onb_user creates a local user with no usable password, returning the edit link where the admin sets one, and assigns roles; onb_action_approval toggles Requires approval on a server or resource action; onb_tag_mapping manages a handler's attribute-to-tag mappings; onb_ldap_mapping maps a directory group DN to a CloudBolt group with roles and onb_verify_ldap returns the real bind error; onb_smtp sets the non-secret mail settings and onb_smtp_test sends a test message. Package 0.3.0. Co-Authored-By: Claude Fable 5.1 --- CATALOG.md | 24 +- catalog.json | 283 +++++++++++++++++- .../MTA-0689nxjy/MTA-0689nxjy_metadata.json | 77 +++++ mcp_tool_actions/MTA-0689nxjy/README.md | 24 ++ .../MTA-70aez9bm/MTA-70aez9bm_metadata.json | 210 +++++++++++++ mcp_tool_actions/MTA-70aez9bm/README.md | 32 ++ .../MTA-89w58iux/MTA-89w58iux_metadata.json | 134 +++++++++ mcp_tool_actions/MTA-89w58iux/README.md | 28 ++ .../MTA-bp0rkcq9/MTA-bp0rkcq9_metadata.json | 58 ++++ mcp_tool_actions/MTA-bp0rkcq9/README.md | 23 ++ .../MTA-cpq7bvz4/MTA-cpq7bvz4_metadata.json | 134 +++++++++ mcp_tool_actions/MTA-cpq7bvz4/README.md | 27 ++ .../MTA-e5qv0zay/MTA-e5qv0zay_metadata.json | 96 ++++++ mcp_tool_actions/MTA-e5qv0zay/README.md | 25 ++ .../MTA-kw8krevn/MTA-kw8krevn_metadata.json | 39 +++ mcp_tool_actions/MTA-kw8krevn/README.md | 23 ++ .../MTA-qab6r2gk/MTA-qab6r2gk_metadata.json | 39 +++ mcp_tool_actions/MTA-qab6r2gk/README.md | 23 ++ .../MTA-tuzkb8h4/MTA-tuzkb8h4_metadata.json | 153 ++++++++++ mcp_tool_actions/MTA-tuzkb8h4/README.md | 29 ++ mcp_tool_actions/README.md | 9 + .../PKG-8aaadefz/PKG-8aaadefz_metadata.json | 13 +- packages/PKG-8aaadefz/README.md | 13 +- packages/README.md | 2 +- plugins/OHK-5zg1dkcr/OHK-5zg1dkcr_script.py | 9 + .../OHK-8in52yhn/OHK-8in52yhn_metadata.json | 155 ++++++++++ plugins/OHK-8in52yhn/OHK-8in52yhn_script.py | 194 ++++++++++++ .../OHK-b8c90uok/OHK-b8c90uok_metadata.json | 75 +++++ plugins/OHK-b8c90uok/OHK-b8c90uok_script.py | 170 +++++++++++ .../OHK-be18kqal/OHK-be18kqal_metadata.json | 135 +++++++++ plugins/OHK-be18kqal/OHK-be18kqal_script.py | 135 +++++++++ .../OHK-efxm9m2b/OHK-efxm9m2b_metadata.json | 135 +++++++++ plugins/OHK-efxm9m2b/OHK-efxm9m2b_script.py | 225 ++++++++++++++ .../OHK-f6kqrklx/OHK-f6kqrklx_metadata.json | 215 +++++++++++++ plugins/OHK-f6kqrklx/OHK-f6kqrklx_script.py | 267 +++++++++++++++++ plugins/OHK-j60flmb3/OHK-j60flmb3_script.py | 9 + .../OHK-j82f4ibp/OHK-j82f4ibp_metadata.json | 35 +++ plugins/OHK-j82f4ibp/OHK-j82f4ibp_script.py | 120 ++++++++ .../OHK-jdyan3in/OHK-jdyan3in_metadata.json | 35 +++ plugins/OHK-jdyan3in/OHK-jdyan3in_script.py | 97 ++++++ .../OHK-ndsuxv0k/OHK-ndsuxv0k_metadata.json | 55 ++++ plugins/OHK-ndsuxv0k/OHK-ndsuxv0k_script.py | 114 +++++++ .../OHK-s76tknmk/OHK-s76tknmk_metadata.json | 95 ++++++ plugins/OHK-s76tknmk/OHK-s76tknmk_script.py | 161 ++++++++++ plugins/README.md | 9 + 45 files changed, 3953 insertions(+), 10 deletions(-) create mode 100644 mcp_tool_actions/MTA-0689nxjy/MTA-0689nxjy_metadata.json create mode 100644 mcp_tool_actions/MTA-0689nxjy/README.md create mode 100644 mcp_tool_actions/MTA-70aez9bm/MTA-70aez9bm_metadata.json create mode 100644 mcp_tool_actions/MTA-70aez9bm/README.md create mode 100644 mcp_tool_actions/MTA-89w58iux/MTA-89w58iux_metadata.json create mode 100644 mcp_tool_actions/MTA-89w58iux/README.md create mode 100644 mcp_tool_actions/MTA-bp0rkcq9/MTA-bp0rkcq9_metadata.json create mode 100644 mcp_tool_actions/MTA-bp0rkcq9/README.md create mode 100644 mcp_tool_actions/MTA-cpq7bvz4/MTA-cpq7bvz4_metadata.json create mode 100644 mcp_tool_actions/MTA-cpq7bvz4/README.md create mode 100644 mcp_tool_actions/MTA-e5qv0zay/MTA-e5qv0zay_metadata.json create mode 100644 mcp_tool_actions/MTA-e5qv0zay/README.md create mode 100644 mcp_tool_actions/MTA-kw8krevn/MTA-kw8krevn_metadata.json create mode 100644 mcp_tool_actions/MTA-kw8krevn/README.md create mode 100644 mcp_tool_actions/MTA-qab6r2gk/MTA-qab6r2gk_metadata.json create mode 100644 mcp_tool_actions/MTA-qab6r2gk/README.md create mode 100644 mcp_tool_actions/MTA-tuzkb8h4/MTA-tuzkb8h4_metadata.json create mode 100644 mcp_tool_actions/MTA-tuzkb8h4/README.md create mode 100644 plugins/OHK-8in52yhn/OHK-8in52yhn_metadata.json create mode 100644 plugins/OHK-8in52yhn/OHK-8in52yhn_script.py create mode 100644 plugins/OHK-b8c90uok/OHK-b8c90uok_metadata.json create mode 100644 plugins/OHK-b8c90uok/OHK-b8c90uok_script.py create mode 100644 plugins/OHK-be18kqal/OHK-be18kqal_metadata.json create mode 100644 plugins/OHK-be18kqal/OHK-be18kqal_script.py create mode 100644 plugins/OHK-efxm9m2b/OHK-efxm9m2b_metadata.json create mode 100644 plugins/OHK-efxm9m2b/OHK-efxm9m2b_script.py create mode 100644 plugins/OHK-f6kqrklx/OHK-f6kqrklx_metadata.json create mode 100644 plugins/OHK-f6kqrklx/OHK-f6kqrklx_script.py create mode 100644 plugins/OHK-j82f4ibp/OHK-j82f4ibp_metadata.json create mode 100644 plugins/OHK-j82f4ibp/OHK-j82f4ibp_script.py create mode 100644 plugins/OHK-jdyan3in/OHK-jdyan3in_metadata.json create mode 100644 plugins/OHK-jdyan3in/OHK-jdyan3in_script.py create mode 100644 plugins/OHK-ndsuxv0k/OHK-ndsuxv0k_metadata.json create mode 100644 plugins/OHK-ndsuxv0k/OHK-ndsuxv0k_script.py create mode 100644 plugins/OHK-s76tknmk/OHK-s76tknmk_metadata.json create mode 100644 plugins/OHK-s76tknmk/OHK-s76tknmk_script.py diff --git a/CATALOG.md b/CATALOG.md index 62b799e9..3b041cee 100644 --- a/CATALOG.md +++ b/CATALOG.md @@ -12,8 +12,8 @@ Every piece of content in this repo, grouped by type. Names and descriptions com | [Orchestration actions](#orchestration-actions) | 21 | | [Recurring jobs](#recurring-jobs) | 5 | | [Webhooks](#webhooks) | 5 | -| [MCP tool actions](#mcp-tool-actions) | 23 | -| [Plugins](#plugins) | 162 | +| [MCP tool actions](#mcp-tool-actions) | 32 | +| [Plugins](#plugins) | 171 | | [Shared modules](#shared-modules) | 21 | | [UI extensions](#ui-extensions) | 11 | | [Parameters](#parameters) | 2 | @@ -30,7 +30,7 @@ Named sets of content that the Content Package Manager extension (`extensions/XU | Data Disk Blueprints | [PKG-t1k7drin](packages/PKG-t1k7drin/README.md) | Deploys Windows Server and Oracle Linux VMs with order-time data disks through the Windows, Oracle Linux, and disk map blueprints, with the Post-Provision orchestration actions that attach the disk map's disks and prepare them inside the guest. | 1.0.0 | [Attach Data Disks from Disk Map](orchestration_actions/HPA-n67skws4/README.md) (orchestration action), [Configure Data Disks from Disk Map (Windows)](orchestration_actions/HPA-42uy9dyo/README.md) (orchestration action), [Configure Data Disks from Disk Map (Oracle Linux)](orchestration_actions/HPA-4ptcwgg4/README.md) (orchestration action), [Windows Server with Data Disks](blueprints/BP-9ph7xcok/README.md) (blueprint), [Oracle Linux Server with Data Disks](blueprints/BP-rgdg9gho/README.md) (blueprint), [Server with Data Disks](blueprints/BP-g9zwqjoa/README.md) (blueprint) | | Data Disks from a Disk Map | [PKG-zny1ynfs](packages/PKG-zny1ynfs/README.md) | Adds order-time data disks to Windows Server and Oracle Linux VMs through an environment disk_map parameter, a form function that turns it into a disk table, and Post-Provision orchestration actions that attach the disks and prepare them inside the guest. | 1.0.0 | [Server with Data Disks](blueprints/BP-g9zwqjoa/README.md) (blueprint), [Attach Data Disks from Disk Map](orchestration_actions/HPA-n67skws4/README.md) (orchestration action), [Configure Data Disks from Disk Map (Oracle Linux)](orchestration_actions/HPA-4ptcwgg4/README.md) (orchestration action), [Configure Data Disks from Disk Map (Windows)](orchestration_actions/HPA-42uy9dyo/README.md) (orchestration action), [Data Disks](parameters/CF-q3bexgap/README.md) (parameter) | | HCP Terraform | [PKG-0bo7vlxp](packages/PKG-0bo7vlxp/README.md) | Provisions VMs and no-code modules through HCP Terraform in a workspace per deployment, optionally followed by Ansible job templates, with their day-2 actions, the form options webhook, and the UI extension that adds Terraform tabs. | 1.0.0 | [HCP Terraform VM](blueprints/BP-b0qm83lh/README.md) (blueprint), [HCP Terraform No-Code Module](blueprints/BP-00meiwwz/README.md) (blueprint), [HCP Terraform No-Code + Ansible](blueprints/BP-uh9v24v3/README.md) (blueprint), [Form Options](webhooks/IWH-yj93is5z/) (webhook), [HCP Terraform Workspace](extensions/XUI-ax1sluwi/README.md) (UI extension) | -| POC Onboarding Toolkit | [PKG-8aaadefz](packages/PKG-8aaadefz/README.md) | Installs the MCP tools the POC onboarding skill drives: appliance status with next steps, admin UI links, log and failure diagnosis, resource handler verification and location import, environment creation, order-form trimming, OS build import, Custom Server setup, the playbook text, the install step and POC item tracking, plus the repository sync, job log and blueprint permission tools they reuse. | 0.2.0 | [POC Onboarding: Install](mcp_tool_actions/MTA-6zxrhdls/README.md) (MCP tool action), [POC Onboarding: Status](mcp_tool_actions/MTA-1985b88g/README.md) (MCP tool action), [POC Onboarding: UI Link](mcp_tool_actions/MTA-zpohocjt/README.md) (MCP tool action), [POC Onboarding: Recent Errors](mcp_tool_actions/MTA-hwg74btd/README.md) (MCP tool action), [POC Onboarding: Failure Trace](mcp_tool_actions/MTA-jzscq0mk/README.md) (MCP tool action), [POC Onboarding: Verify Resource Handler](mcp_tool_actions/MTA-r5v1eblg/README.md) (MCP tool action), [POC Onboarding: Playbook](mcp_tool_actions/MTA-92b836jb/README.md) (MCP tool action), [POC Onboarding: Set Item Status](mcp_tool_actions/MTA-p72v9y76/README.md) (MCP tool action), [POC Onboarding: Handler Locations](mcp_tool_actions/MTA-89dxppus/README.md) (MCP tool action), [POC Onboarding: Import Environments](mcp_tool_actions/MTA-i6p4j2l7/README.md) (MCP tool action), [POC Onboarding: Trim Environment Order Form](mcp_tool_actions/MTA-iyknuxox/README.md) (MCP tool action), [POC Onboarding: Import OS Build](mcp_tool_actions/MTA-0dr8xi4i/README.md) (MCP tool action), [POC Onboarding: Configure Custom Server](mcp_tool_actions/MTA-i1kmy5fd/README.md) (MCP tool action), [POC Onboarding: Remove Environment](mcp_tool_actions/MTA-pz5o2gjl/README.md) (MCP tool action), [Sync From Source Control Repo](mcp_tool_actions/MTA-543b19sa/README.md) (MCP tool action), [Fetch Job Log](mcp_tool_actions/MTA-8j9c0tb0/README.md) (MCP tool action), [Manage Blueprint Permissions](mcp_tool_actions/MTA-ntmcnvv7/README.md) (MCP tool action) | +| POC Onboarding Toolkit | [PKG-8aaadefz](packages/PKG-8aaadefz/README.md) | Installs the MCP tools the POC onboarding skill drives: appliance status with next steps, admin UI links, log and failure diagnosis, resource handler verification and location import, environment creation, order-form trimming, OS build import, Custom Server setup, parameters, groups, users, action approval, tag and LDAP mappings, SMTP, the playbook text, the install step and POC item tracking, plus the repository sync, job log and blueprint permission tools they reuse. | 0.3.0 | [POC Onboarding: Install](mcp_tool_actions/MTA-6zxrhdls/README.md) (MCP tool action), [POC Onboarding: Status](mcp_tool_actions/MTA-1985b88g/README.md) (MCP tool action), [POC Onboarding: UI Link](mcp_tool_actions/MTA-zpohocjt/README.md) (MCP tool action), [POC Onboarding: Recent Errors](mcp_tool_actions/MTA-hwg74btd/README.md) (MCP tool action), [POC Onboarding: Failure Trace](mcp_tool_actions/MTA-jzscq0mk/README.md) (MCP tool action), [POC Onboarding: Verify Resource Handler](mcp_tool_actions/MTA-r5v1eblg/README.md) (MCP tool action), [POC Onboarding: Playbook](mcp_tool_actions/MTA-92b836jb/README.md) (MCP tool action), [POC Onboarding: Set Item Status](mcp_tool_actions/MTA-p72v9y76/README.md) (MCP tool action), [POC Onboarding: Handler Locations](mcp_tool_actions/MTA-89dxppus/README.md) (MCP tool action), [POC Onboarding: Import Environments](mcp_tool_actions/MTA-i6p4j2l7/README.md) (MCP tool action), [POC Onboarding: Trim Environment Order Form](mcp_tool_actions/MTA-iyknuxox/README.md) (MCP tool action), [POC Onboarding: Import OS Build](mcp_tool_actions/MTA-0dr8xi4i/README.md) (MCP tool action), [POC Onboarding: Configure Custom Server](mcp_tool_actions/MTA-i1kmy5fd/README.md) (MCP tool action), [POC Onboarding: Remove Environment](mcp_tool_actions/MTA-pz5o2gjl/README.md) (MCP tool action), [POC Onboarding: Parameter](mcp_tool_actions/MTA-70aez9bm/README.md) (MCP tool action), [POC Onboarding: Group](mcp_tool_actions/MTA-cpq7bvz4/README.md) (MCP tool action), [POC Onboarding: User](mcp_tool_actions/MTA-tuzkb8h4/README.md) (MCP tool action), [POC Onboarding: Action Approval](mcp_tool_actions/MTA-bp0rkcq9/README.md) (MCP tool action), [POC Onboarding: Tag Mapping](mcp_tool_actions/MTA-0689nxjy/README.md) (MCP tool action), [POC Onboarding: LDAP Mapping](mcp_tool_actions/MTA-e5qv0zay/README.md) (MCP tool action), [POC Onboarding: Verify LDAP](mcp_tool_actions/MTA-kw8krevn/README.md) (MCP tool action), [POC Onboarding: SMTP Settings](mcp_tool_actions/MTA-89w58iux/README.md) (MCP tool action), [POC Onboarding: SMTP Test](mcp_tool_actions/MTA-qab6r2gk/README.md) (MCP tool action), [Sync From Source Control Repo](mcp_tool_actions/MTA-543b19sa/README.md) (MCP tool action), [Fetch Job Log](mcp_tool_actions/MTA-8j9c0tb0/README.md) (MCP tool action), [Manage Blueprint Permissions](mcp_tool_actions/MTA-ntmcnvv7/README.md) (MCP tool action) | | Runbooks | [PKG-v20qv308](packages/PKG-v20qv308/README.md) | Adds Run Task and Run Workflow, actions that run any Remote Script that fits a VM or an ordered workflow of CloudBolt actions on it, with base, example and installer task scripts, the Runbooks page for building workflows, base actions and file archives, and an example blueprint that runs a workflow. | 1.0.0 | [Runbook Task Template (Windows)](plugins/OHK-lhm2916o/) (plugin), [Runbook Task Template (Linux)](plugins/OHK-iub9a2jg/) (plugin), [Manage Windows Service](plugins/OHK-01kmavro/) (plugin), [Manage Linux Service](plugins/OHK-5yh12jiq/) (plugin), [Run Installer from File Archive (Linux)](plugins/OHK-hgv6wp65/) (plugin), [Run Installer from File Archive (Windows)](plugins/OHK-ow68kerl/) (plugin), [Runbook Tasks](webhooks/IWH-cdf543g3/) (webhook), [Runbook Workflows](webhooks/IWH-xjlrmvc8/) (webhook), [Run Task](server_actions/SVA-4sin3s0q/README.md) (server action), [Run Workflow](server_actions/SVA-j7rbsh39/README.md) (server action), [Runbooks](extensions/XUI-jbm5ac9e/README.md) (UI extension), [VM with Workflow](blueprints/BP-vy9ytey6/README.md) (blueprint) | | Windows AD Domain Join | [PKG-nf407lm5](packages/PKG-nf407lm5/README.md) | Joins provisioned Windows servers to Active Directory in the OU picked from a type-ahead domain_ou parameter, taking the domain and its LDAP Utility from the OU, and deletes the computer object at decommission. | 1.0.0 | [Delete Windows Computer Object from AD](orchestration_actions/HPA-q181uofy/README.md) (orchestration action), [Join Windows Server to AD Domain](orchestration_actions/HPA-jjp1vlfi/README.md) (orchestration action), [Suggest Domain OUs](orchestration_actions/HPA-0zcrvpwu/README.md) (orchestration action), [Domain OU](parameters/CF-8pif9mbf/README.md) (parameter) | @@ -186,19 +186,28 @@ Actions published as tools on CloudBolt's MCP server for AI agents to call. Each | Fetch Job Log | [MTA-8j9c0tb0](mcp_tool_actions/MTA-8j9c0tb0/README.md) | Returns a job's status, output, errors, progress log, child jobs, failed descendants, and sync results in one call so a failed job can be diagnosed. | `fetch_job_log` | yes | [Fetch Job Log](plugins/OHK-2p0rhzup/) | | Manage Blueprint Permissions | [MTA-ntmcnvv7](mcp_tool_actions/MTA-ntmcnvv7/README.md) | Lists, grants, or revokes a group's DEPLOY or MANAGE permission on a blueprint, so a repository sync's loss of group permissions can be snapshotted and restored. | `manage_blueprint_permissions` | yes | [Manage Blueprint Permissions](plugins/OHK-mgta9oez/) | | Order Counts by Blueprint | [MTA-lp8lgi7e](mcp_tool_actions/MTA-lp8lgi7e/) | Return the number of orders placed for each blueprint, optionally filtered by order status. | `order_counts_by_blueprint` | yes | [Order Counts by Blueprint](plugins/OHK-yjblxbwg/) | +| POC Onboarding: Action Approval | [MTA-bp0rkcq9](mcp_tool_actions/MTA-bp0rkcq9/README.md) | Turns Requires approval on or off for a server or resource action, which the API cannot change, so a day-2 action pauses as an order for an approver. | `onb_action_approval` | yes | [POC Onboarding: Action Approval](plugins/OHK-ndsuxv0k/) | | POC Onboarding: Configure Custom Server | [MTA-i1kmy5fd](mcp_tool_actions/MTA-i1kmy5fd/README.md) | Makes the shipped Custom Server blueprint orderable for the POC: recreates it when missing, activates it, enables every environment on its server tier, and sets a hostname template on the tier or on the listed environments. | `onb_configure_custom_server` | yes | [POC Onboarding: Configure Custom Server](plugins/OHK-ilstyopk/) | | POC Onboarding: Failure Trace | [MTA-jzscq0mk](mcp_tool_actions/MTA-jzscq0mk/README.md) | Walks an order or job down to the jobs that actually failed and returns their errors, output, progress tail, failed children and a hint for the common provisioning failures, naming the job id to pass to fetch_job_log for the traceback. | `onb_failure_trace` | yes | [POC Onboarding: Failure Trace](plugins/OHK-y95w8ai0/) | +| POC Onboarding: Group | [MTA-cpq7bvz4](mcp_tool_actions/MTA-cpq7bvz4/README.md) | Creates or updates a group with its parent, entitled environments, auto-approval flag and server-count quota, covering the test plan's entitlement, approval and quota items. | `onb_group` | yes | [POC Onboarding: Group](plugins/OHK-efxm9m2b/) | | POC Onboarding: Handler Locations | [MTA-89dxppus](mcp_tool_actions/MTA-89dxppus/README.md) | Lists the regions, locations or clusters a resource handler can turn into environments, flags the ones already imported, lists the existing environments, and for an AWS region lists its VPCs. | `onb_handler_locations` | yes | [POC Onboarding: Handler Locations](plugins/OHK-0nuhjdxl/) | | POC Onboarding: Import Environments | [MTA-i6p4j2l7](mcp_tool_actions/MTA-i6p4j2l7/README.md) | Creates one environment per listed location on a resource handler the way the Import locations dialog does, brings the networks over (AWS subnets with the environment, Azure subnets synced, vCenter cluster networks attached to NIC 1), and reports existing environments instead of duplicating them. | `onb_import_environments` | yes | [POC Onboarding: Import Environments](plugins/OHK-8j06wtoe/) | | POC Onboarding: Import OS Build | [MTA-0dr8xi4i](mcp_tool_actions/MTA-0dr8xi4i/README.md) | Imports one image (AWS AMI, Azure marketplace image, vCenter template) into an OS build, reusing an existing build of the same name so one build spans handlers, and attaches the build to the handler's environments. | `onb_import_os_build` | yes | [POC Onboarding: Import OS Build](plugins/OHK-k2p8ll4p/) | | POC Onboarding: Install | [MTA-6zxrhdls](mcp_tool_actions/MTA-6zxrhdls/README.md) | Finishes the toolkit install after a sync or package import: sets Synchronous Action on the inline tools, enables every tool, checks outbound access to the Content Library and GitHub, and records the toolkit version. | `onb_install` | yes | [POC Onboarding: Install](plugins/OHK-j60flmb3/) | +| POC Onboarding: LDAP Mapping | [MTA-e5qv0zay](mcp_tool_actions/MTA-e5qv0zay/README.md) | Maps an AD or LDAP group DN to a CloudBolt group with roles on an existing LDAP utility, so directory users land in the right group at first login. | `onb_ldap_mapping` | yes | [POC Onboarding: LDAP Mapping](plugins/OHK-s76tknmk/) | +| POC Onboarding: Parameter | [MTA-70aez9bm](mcp_tool_actions/MTA-70aez9bm/README.md) | Creates or updates a parameter and attaches it to environments and groups with options and constraints, covering the test plan's user-defined parameter, cost-center tag source, power schedule and expiration date with a maximum lease. | `onb_parameter` | yes | [POC Onboarding: Parameter](plugins/OHK-f6kqrklx/) | | POC Onboarding: Playbook | [MTA-92b836jb](mcp_tool_actions/MTA-92b836jb/README.md) | Returns a section of the POC onboarding skill text from the public cloudbolt-as-code repository, so MCP clients without skill support follow the same procedure. | `onb_playbook` | yes | [POC Onboarding: Playbook](plugins/OHK-1am7i73s/) | | POC Onboarding: Recent Errors | [MTA-hwg74btd](mcp_tool_actions/MTA-hwg74btd/README.md) | Reads the tail of a CloudBolt log and returns the recent WARNING-and-above entries grouped by exception and message, secrets redacted, each group with a hint for the failures a new appliance hits most. | `onb_recent_errors` | yes | [POC Onboarding: Recent Errors](plugins/OHK-4vwq70dg/) | | POC Onboarding: Remove Environment | [MTA-pz5o2gjl](mcp_tool_actions/MTA-pz5o2gjl/README.md) | Deletes an environment imported by mistake so the POC can start over; refuses while active servers live in it. | `onb_remove_environment` | yes | [POC Onboarding: Remove Environment](plugins/OHK-1wmzl7sp/) | | POC Onboarding: Set Item Status | [MTA-p72v9y76](mcp_tool_actions/MTA-p72v9y76/README.md) | Records a POC test plan item or prerequisite as done, skipped, not applicable or pending with a reason, in a namespaced CustomField store that onb_status and the scorecard read. | `onb_set_item_status` | yes | [POC Onboarding: Set Item Status](plugins/OHK-5885tete/) | +| POC Onboarding: SMTP Settings | [MTA-89w58iux](mcp_tool_actions/MTA-89w58iux/README.md) | Sets the non-secret email settings and returns the link where the SMTP password is entered; with no inputs it reports the current settings. | `onb_smtp` | yes | [POC Onboarding: SMTP Settings](plugins/OHK-be18kqal/) | +| POC Onboarding: SMTP Test | [MTA-qab6r2gk](mcp_tool_actions/MTA-qab6r2gk/README.md) | Sends a test email through the saved SMTP settings and returns the relay's real error with a hint when it fails. | `onb_smtp_test` | yes | [POC Onboarding: SMTP Test](plugins/OHK-jdyan3in/) | | POC Onboarding: Status | [MTA-1985b88g](mcp_tool_actions/MTA-1985b88g/README.md) | Reports the appliance's POC readiness in one read: licence, portal, SMTP, proxy, Content Library, Setup Wizard, resource handlers with environments and last verify result, the Custom Server blueprint, groups, users, LDAP, SSO, installed onboarding tools, recorded POC items, and the next steps with UI links. | `onb_status` | yes | [POC Onboarding: Status](plugins/OHK-5zg1dkcr/) | +| POC Onboarding: Tag Mapping | [MTA-0689nxjy](mcp_tool_actions/MTA-0689nxjy/README.md) | Lists, adds or removes a resource handler's mappings from CloudBolt attributes or parameters to cloud tags, giving cross-cloud tagging and the cost-center tag. | `onb_tag_mapping` | yes | [POC Onboarding: Tag Mapping](plugins/OHK-b8c90uok/) | | POC Onboarding: Trim Environment Order Form | [MTA-iyknuxox](mcp_tool_actions/MTA-iyknuxox/README.md) | Shortens an environment's order form for a POC by pinning infrastructure parameters to one value (which hides a required field) and removing the optional technology parameters, leaving the size and, where needed, the network and password; the report profile only lists the current form. | `onb_trim_environment` | yes | [POC Onboarding: Trim Environment Order Form](plugins/OHK-qn4k1pme/) | | POC Onboarding: UI Link | [MTA-zpohocjt](mcp_tool_actions/MTA-zpohocjt/README.md) | Turns a CloudBolt global id or a named admin page (new resource handler per technology, LDAP, SMTP, user edit, environment parameters, group quotas, and more) into an absolute UI link so the agent can send the user to the exact page where a secret is entered or an object is edited. | `onb_ui_link` | yes | [POC Onboarding: UI Link](plugins/OHK-1gp25bmt/) | +| POC Onboarding: User | [MTA-tuzkb8h4](mcp_tool_actions/MTA-tuzkb8h4/README.md) | Creates a local user with no usable password and assigns roles in a group, returning the edit link where the admin sets the password; an existing user only gets the roles. | `onb_user` | yes | [POC Onboarding: User](plugins/OHK-8in52yhn/) | +| POC Onboarding: Verify LDAP | [MTA-kw8krevn](mcp_tool_actions/MTA-kw8krevn/README.md) | Runs an LDAP utility's Verify Connection and returns the real bind or search error with a hint and the links to fix it. | `onb_verify_ldap` | yes | [POC Onboarding: Verify LDAP](plugins/OHK-j82f4ibp/) | | POC Onboarding: Verify Resource Handler | [MTA-r5v1eblg](mcp_tool_actions/MTA-r5v1eblg/README.md) | Runs a resource handler's Verify Connection and returns the real exception text with a technology-specific hint, the minimum-permissions document and the handler's edit and verify links, recording the result for the status tool. | `onb_verify_resource_handler` | yes | [POC Onboarding: Verify Resource Handler](plugins/OHK-s7cdvkpr/) | | Run Blueprint Discovery | [MTA-9oihpumd](mcp_tool_actions/MTA-9oihpumd/README.md) | Launches the Sync Resources job for one blueprint so its discovery plugin runs on demand. | `run_blueprint_discovery` | yes | [Run Blueprint Discovery](plugins/OHK-dwh5kqxq/) | | Run CIT Tests | [MTA-gnx1ckno](mcp_tool_actions/MTA-gnx1ckno/README.md) | Starts a functionaltest job for the named CIT tests and returns its job id. | `run_cit_tests` | yes | [Run CIT Tests](plugins/OHK-ieb4qio7/) | @@ -309,19 +318,28 @@ Python and remote-script actions. Plugins that belong to a blueprint or action a | Node Size - Generate Options by Region, OS Image, Security, Networking and Storage (Azure SKU capabilities) | [OHK-kujhsds0](plugins/OHK-kujhsds0/README.md) | Generates node_size options filtered by live Azure SKU capabilities for the selected region, image, security, networking, and storage settings. | CloudBolt Plug-in | standalone | | OpenShift Project Landing Zone | [OHK-prew0osh](plugins/OHK-prew0osh/) | Creates an OpenShift project with quota, limits, network policies, and an optional role binding, then pins a CloudBolt environment to it. | CloudBolt Plug-in | [OpenShift Project Landing Zone](blueprints/BP-tikkhf2y/README.md) | | Order Counts by Blueprint | [OHK-yjblxbwg](plugins/OHK-yjblxbwg/) | | CloudBolt Plug-in | [Order Counts by Blueprint](mcp_tool_actions/MTA-lp8lgi7e/) | +| POC Onboarding: Action Approval | [OHK-ndsuxv0k](plugins/OHK-ndsuxv0k/) | Turns Requires approval on or off for a server or resource action, which the API cannot change, so a day-2 action pauses as an order for an approver. | CloudBolt Plug-in | [POC Onboarding: Action Approval](mcp_tool_actions/MTA-bp0rkcq9/README.md) | | POC Onboarding: Configure Custom Server | [OHK-ilstyopk](plugins/OHK-ilstyopk/) | Makes the shipped Custom Server blueprint orderable for the POC: recreates it when missing, activates it, enables every environment on its server tier, and sets a hostname template on the tier or on the listed environments. | CloudBolt Plug-in | [POC Onboarding: Configure Custom Server](mcp_tool_actions/MTA-i1kmy5fd/README.md) | | POC Onboarding: Failure Trace | [OHK-y95w8ai0](plugins/OHK-y95w8ai0/) | Walks an order or job down to the jobs that actually failed and returns their errors, output, progress tail, failed children and a hint for the common provisioning failures, naming the job id to pass to fetch_job_log for the traceback. | CloudBolt Plug-in | [POC Onboarding: Failure Trace](mcp_tool_actions/MTA-jzscq0mk/README.md) | +| POC Onboarding: Group | [OHK-efxm9m2b](plugins/OHK-efxm9m2b/) | Creates or updates a group with its parent, entitled environments, auto-approval flag and server-count quota, covering the test plan's entitlement, approval and quota items. | CloudBolt Plug-in | [POC Onboarding: Group](mcp_tool_actions/MTA-cpq7bvz4/README.md) | | POC Onboarding: Handler Locations | [OHK-0nuhjdxl](plugins/OHK-0nuhjdxl/) | Lists the regions, locations or clusters a resource handler can turn into environments, flags the ones already imported, lists the existing environments, and for an AWS region lists its VPCs. | CloudBolt Plug-in | [POC Onboarding: Handler Locations](mcp_tool_actions/MTA-89dxppus/README.md) | | POC Onboarding: Import Environments | [OHK-8j06wtoe](plugins/OHK-8j06wtoe/) | Creates one environment per listed location on a resource handler the way the Import locations dialog does, brings the networks over (AWS subnets with the environment, Azure subnets synced, vCenter cluster networks attached to NIC 1), and reports existing environments instead of duplicating them. | CloudBolt Plug-in | [POC Onboarding: Import Environments](mcp_tool_actions/MTA-i6p4j2l7/README.md) | | POC Onboarding: Import OS Build | [OHK-k2p8ll4p](plugins/OHK-k2p8ll4p/) | Imports one image (AWS AMI, Azure marketplace image, vCenter template) into an OS build, reusing an existing build of the same name so one build spans handlers, and attaches the build to the handler's environments. | CloudBolt Plug-in | [POC Onboarding: Import OS Build](mcp_tool_actions/MTA-0dr8xi4i/README.md) | | POC Onboarding: Install | [OHK-j60flmb3](plugins/OHK-j60flmb3/) | Finishes the toolkit install after a sync or package import: sets Synchronous Action on the inline tools, enables every tool, checks outbound access to the Content Library and GitHub, and records the toolkit version. | CloudBolt Plug-in | [POC Onboarding: Install](mcp_tool_actions/MTA-6zxrhdls/README.md) | +| POC Onboarding: LDAP Mapping | [OHK-s76tknmk](plugins/OHK-s76tknmk/) | Maps an AD or LDAP group DN to a CloudBolt group with roles on an existing LDAP utility, so directory users land in the right group at first login. | CloudBolt Plug-in | [POC Onboarding: LDAP Mapping](mcp_tool_actions/MTA-e5qv0zay/README.md) | +| POC Onboarding: Parameter | [OHK-f6kqrklx](plugins/OHK-f6kqrklx/) | Creates or updates a parameter and attaches it to environments and groups with options and constraints, covering the test plan's user-defined parameter, cost-center tag source, power schedule and expiration date with a maximum lease. | CloudBolt Plug-in | [POC Onboarding: Parameter](mcp_tool_actions/MTA-70aez9bm/README.md) | | POC Onboarding: Playbook | [OHK-1am7i73s](plugins/OHK-1am7i73s/) | Returns a section of the POC onboarding skill text from the public cloudbolt-as-code repository, so MCP clients without skill support follow the same procedure. | CloudBolt Plug-in | [POC Onboarding: Playbook](mcp_tool_actions/MTA-92b836jb/README.md) | | POC Onboarding: Recent Errors | [OHK-4vwq70dg](plugins/OHK-4vwq70dg/) | Reads the tail of a CloudBolt log and returns the recent WARNING-and-above entries grouped by exception and message, secrets redacted, each group with a hint for the failures a new appliance hits most. | CloudBolt Plug-in | [POC Onboarding: Recent Errors](mcp_tool_actions/MTA-hwg74btd/README.md) | | POC Onboarding: Remove Environment | [OHK-1wmzl7sp](plugins/OHK-1wmzl7sp/) | Deletes an environment imported by mistake so the POC can start over; refuses while active servers live in it. | CloudBolt Plug-in | [POC Onboarding: Remove Environment](mcp_tool_actions/MTA-pz5o2gjl/README.md) | | POC Onboarding: Set Item Status | [OHK-5885tete](plugins/OHK-5885tete/) | Records a POC test plan item or prerequisite as done, skipped, not applicable or pending with a reason, in a namespaced CustomField store that onb_status and the scorecard read. | CloudBolt Plug-in | [POC Onboarding: Set Item Status](mcp_tool_actions/MTA-p72v9y76/README.md) | +| POC Onboarding: SMTP Settings | [OHK-be18kqal](plugins/OHK-be18kqal/) | Sets the non-secret email settings and returns the link where the SMTP password is entered; with no inputs it reports the current settings. | CloudBolt Plug-in | [POC Onboarding: SMTP Settings](mcp_tool_actions/MTA-89w58iux/README.md) | +| POC Onboarding: SMTP Test | [OHK-jdyan3in](plugins/OHK-jdyan3in/) | Sends a test email through the saved SMTP settings and returns the relay's real error with a hint when it fails. | CloudBolt Plug-in | [POC Onboarding: SMTP Test](mcp_tool_actions/MTA-qab6r2gk/README.md) | | POC Onboarding: Status | [OHK-5zg1dkcr](plugins/OHK-5zg1dkcr/) | Reports the appliance's POC readiness in one read: licence, portal, SMTP, proxy, Content Library, Setup Wizard, resource handlers with environments and last verify result, the Custom Server blueprint, groups, users, LDAP, SSO, installed onboarding tools, recorded POC items, and the next steps with UI links. | CloudBolt Plug-in | [POC Onboarding: Status](mcp_tool_actions/MTA-1985b88g/README.md) | +| POC Onboarding: Tag Mapping | [OHK-b8c90uok](plugins/OHK-b8c90uok/) | Lists, adds or removes a resource handler's mappings from CloudBolt attributes or parameters to cloud tags, giving cross-cloud tagging and the cost-center tag. | CloudBolt Plug-in | [POC Onboarding: Tag Mapping](mcp_tool_actions/MTA-0689nxjy/README.md) | | POC Onboarding: Trim Environment Order Form | [OHK-qn4k1pme](plugins/OHK-qn4k1pme/) | Shortens an environment's order form for a POC by pinning infrastructure parameters to one value (which hides a required field) and removing the optional technology parameters, leaving the size and, where needed, the network and password; the report profile only lists the current form. | CloudBolt Plug-in | [POC Onboarding: Trim Environment Order Form](mcp_tool_actions/MTA-iyknuxox/README.md) | | POC Onboarding: UI Link | [OHK-1gp25bmt](plugins/OHK-1gp25bmt/) | Turns a CloudBolt global id or a named admin page (new resource handler per technology, LDAP, SMTP, user edit, environment parameters, group quotas, and more) into an absolute UI link so the agent can send the user to the exact page where a secret is entered or an object is edited. | CloudBolt Plug-in | [POC Onboarding: UI Link](mcp_tool_actions/MTA-zpohocjt/README.md) | +| POC Onboarding: User | [OHK-8in52yhn](plugins/OHK-8in52yhn/) | Creates a local user with no usable password and assigns roles in a group, returning the edit link where the admin sets the password; an existing user only gets the roles. | CloudBolt Plug-in | [POC Onboarding: User](mcp_tool_actions/MTA-tuzkb8h4/README.md) | +| POC Onboarding: Verify LDAP | [OHK-j82f4ibp](plugins/OHK-j82f4ibp/) | Runs an LDAP utility's Verify Connection and returns the real bind or search error with a hint and the links to fix it. | CloudBolt Plug-in | [POC Onboarding: Verify LDAP](mcp_tool_actions/MTA-kw8krevn/README.md) | | POC Onboarding: Verify Resource Handler | [OHK-s7cdvkpr](plugins/OHK-s7cdvkpr/) | Runs a resource handler's Verify Connection and returns the real exception text with a technology-specific hint, the minimum-permissions document and the handler's edit and verify links, recording the result for the status tool. | CloudBolt Plug-in | [POC Onboarding: Verify Resource Handler](mcp_tool_actions/MTA-r5v1eblg/README.md) | | Remove Resource Group from Environments | [OHK-vm5p34w3](plugins/OHK-vm5p34w3/) | Removes the deleted resource group's resource_group_arm option from environments on the same subscription. | CloudBolt Plug-in | [Azure Resource Group - Bicep](blueprints/BP-p7zmh96m/README.md) | | Remove Servers from Ansible Automation Platform | [OHK-8v830go3](plugins/OHK-8v830go3/) | Removes the host records a deployment's servers hold in Ansible Automation Platform inventories through CloudBolt's own connector method, before the infrastructure is destroyed; a missing host or unreachable AAP is a warning, never a blocker. | CloudBolt Plug-in | standalone | diff --git a/catalog.json b/catalog.json index ccec0d8e..bb73a57c 100644 --- a/catalog.json +++ b/catalog.json @@ -875,6 +875,23 @@ "blueprints/BP-b0qm83lh" ] }, + { + "id": "MTA-0689nxjy", + "type": "mcp_tool_actions", + "name": "POC Onboarding: Tag Mapping", + "description": "Lists, adds or removes a resource handler's mappings from CloudBolt attributes or parameters to cloud tags, giving cross-cloud tagging and the cost-center tag.", + "path": "mcp_tool_actions/MTA-0689nxjy", + "readme": "mcp_tool_actions/MTA-0689nxjy/README.md", + "uses": [ + "plugins/OHK-b8c90uok" + ], + "used_by": [], + "enabled": true, + "mcp_tool_name": "onb_tag_mapping", + "packages": [ + "packages/PKG-8aaadefz" + ] + }, { "id": "MTA-0dr8xi4i", "type": "mcp_tool_actions", @@ -943,6 +960,23 @@ "packages/PKG-8aaadefz" ] }, + { + "id": "MTA-70aez9bm", + "type": "mcp_tool_actions", + "name": "POC Onboarding: Parameter", + "description": "Creates or updates a parameter and attaches it to environments and groups with options and constraints, covering the test plan's user-defined parameter, cost-center tag source, power schedule and expiration date with a maximum lease.", + "path": "mcp_tool_actions/MTA-70aez9bm", + "readme": "mcp_tool_actions/MTA-70aez9bm/README.md", + "uses": [ + "plugins/OHK-f6kqrklx" + ], + "used_by": [], + "enabled": true, + "mcp_tool_name": "onb_parameter", + "packages": [ + "packages/PKG-8aaadefz" + ] + }, { "id": "MTA-89dxppus", "type": "mcp_tool_actions", @@ -960,6 +994,23 @@ "packages/PKG-8aaadefz" ] }, + { + "id": "MTA-89w58iux", + "type": "mcp_tool_actions", + "name": "POC Onboarding: SMTP Settings", + "description": "Sets the non-secret email settings and returns the link where the SMTP password is entered; with no inputs it reports the current settings.", + "path": "mcp_tool_actions/MTA-89w58iux", + "readme": "mcp_tool_actions/MTA-89w58iux/README.md", + "uses": [ + "plugins/OHK-be18kqal" + ], + "used_by": [], + "enabled": true, + "mcp_tool_name": "onb_smtp", + "packages": [ + "packages/PKG-8aaadefz" + ] + }, { "id": "MTA-8j9c0tb0", "type": "mcp_tool_actions", @@ -1022,6 +1073,57 @@ "enabled": true, "mcp_tool_name": "compare_azure_list_prices" }, + { + "id": "MTA-bp0rkcq9", + "type": "mcp_tool_actions", + "name": "POC Onboarding: Action Approval", + "description": "Turns Requires approval on or off for a server or resource action, which the API cannot change, so a day-2 action pauses as an order for an approver.", + "path": "mcp_tool_actions/MTA-bp0rkcq9", + "readme": "mcp_tool_actions/MTA-bp0rkcq9/README.md", + "uses": [ + "plugins/OHK-ndsuxv0k" + ], + "used_by": [], + "enabled": true, + "mcp_tool_name": "onb_action_approval", + "packages": [ + "packages/PKG-8aaadefz" + ] + }, + { + "id": "MTA-cpq7bvz4", + "type": "mcp_tool_actions", + "name": "POC Onboarding: Group", + "description": "Creates or updates a group with its parent, entitled environments, auto-approval flag and server-count quota, covering the test plan's entitlement, approval and quota items.", + "path": "mcp_tool_actions/MTA-cpq7bvz4", + "readme": "mcp_tool_actions/MTA-cpq7bvz4/README.md", + "uses": [ + "plugins/OHK-efxm9m2b" + ], + "used_by": [], + "enabled": true, + "mcp_tool_name": "onb_group", + "packages": [ + "packages/PKG-8aaadefz" + ] + }, + { + "id": "MTA-e5qv0zay", + "type": "mcp_tool_actions", + "name": "POC Onboarding: LDAP Mapping", + "description": "Maps an AD or LDAP group DN to a CloudBolt group with roles on an existing LDAP utility, so directory users land in the right group at first login.", + "path": "mcp_tool_actions/MTA-e5qv0zay", + "readme": "mcp_tool_actions/MTA-e5qv0zay/README.md", + "uses": [ + "plugins/OHK-s76tknmk" + ], + "used_by": [], + "enabled": true, + "mcp_tool_name": "onb_ldap_mapping", + "packages": [ + "packages/PKG-8aaadefz" + ] + }, { "id": "MTA-gnx1ckno", "type": "mcp_tool_actions", @@ -1135,6 +1237,23 @@ "packages/PKG-8aaadefz" ] }, + { + "id": "MTA-kw8krevn", + "type": "mcp_tool_actions", + "name": "POC Onboarding: Verify LDAP", + "description": "Runs an LDAP utility's Verify Connection and returns the real bind or search error with a hint and the links to fix it.", + "path": "mcp_tool_actions/MTA-kw8krevn", + "readme": "mcp_tool_actions/MTA-kw8krevn/README.md", + "uses": [ + "plugins/OHK-j82f4ibp" + ], + "used_by": [], + "enabled": true, + "mcp_tool_name": "onb_verify_ldap", + "packages": [ + "packages/PKG-8aaadefz" + ] + }, { "id": "MTA-lp8lgi7e", "type": "mcp_tool_actions", @@ -1200,6 +1319,23 @@ "packages/PKG-8aaadefz" ] }, + { + "id": "MTA-qab6r2gk", + "type": "mcp_tool_actions", + "name": "POC Onboarding: SMTP Test", + "description": "Sends a test email through the saved SMTP settings and returns the relay's real error with a hint when it fails.", + "path": "mcp_tool_actions/MTA-qab6r2gk", + "readme": "mcp_tool_actions/MTA-qab6r2gk/README.md", + "uses": [ + "plugins/OHK-jdyan3in" + ], + "used_by": [], + "enabled": true, + "mcp_tool_name": "onb_smtp_test", + "packages": [ + "packages/PKG-8aaadefz" + ] + }, { "id": "MTA-r5v1eblg", "type": "mcp_tool_actions", @@ -1231,6 +1367,23 @@ "enabled": true, "mcp_tool_name": "run_recurring_job" }, + { + "id": "MTA-tuzkb8h4", + "type": "mcp_tool_actions", + "name": "POC Onboarding: User", + "description": "Creates a local user with no usable password and assigns roles in a group, returning the edit link where the admin sets the password; an existing user only gets the roles.", + "path": "mcp_tool_actions/MTA-tuzkb8h4", + "readme": "mcp_tool_actions/MTA-tuzkb8h4/README.md", + "uses": [ + "plugins/OHK-8in52yhn" + ], + "used_by": [], + "enabled": true, + "mcp_tool_name": "onb_user", + "packages": [ + "packages/PKG-8aaadefz" + ] + }, { "id": "MTA-zpohocjt", "type": "mcp_tool_actions", @@ -1600,12 +1753,12 @@ "id": "PKG-8aaadefz", "type": "packages", "name": "POC Onboarding Toolkit", - "description": "Installs the MCP tools the POC onboarding skill drives: appliance status with next steps, admin UI links, log and failure diagnosis, resource handler verification and location import, environment creation, order-form trimming, OS build import, Custom Server setup, the playbook text, the install step and POC item tracking, plus the repository sync, job log and blueprint permission tools they reuse.", + "description": "Installs the MCP tools the POC onboarding skill drives: appliance status with next steps, admin UI links, log and failure diagnosis, resource handler verification and location import, environment creation, order-form trimming, OS build import, Custom Server setup, parameters, groups, users, action approval, tag and LDAP mappings, SMTP, the playbook text, the install step and POC item tracking, plus the repository sync, job log and blueprint permission tools they reuse.", "path": "packages/PKG-8aaadefz", "readme": "packages/PKG-8aaadefz/README.md", "uses": [], "used_by": [], - "version": "0.2.0", + "version": "0.3.0", "contents": [ "mcp_tool_actions/MTA-6zxrhdls", "mcp_tool_actions/MTA-1985b88g", @@ -1621,6 +1774,15 @@ "mcp_tool_actions/MTA-0dr8xi4i", "mcp_tool_actions/MTA-i1kmy5fd", "mcp_tool_actions/MTA-pz5o2gjl", + "mcp_tool_actions/MTA-70aez9bm", + "mcp_tool_actions/MTA-cpq7bvz4", + "mcp_tool_actions/MTA-tuzkb8h4", + "mcp_tool_actions/MTA-bp0rkcq9", + "mcp_tool_actions/MTA-0689nxjy", + "mcp_tool_actions/MTA-e5qv0zay", + "mcp_tool_actions/MTA-kw8krevn", + "mcp_tool_actions/MTA-89w58iux", + "mcp_tool_actions/MTA-qab6r2gk", "mcp_tool_actions/MTA-543b19sa", "mcp_tool_actions/MTA-8j9c0tb0", "mcp_tool_actions/MTA-ntmcnvv7" @@ -2319,6 +2481,19 @@ ], "plugin_type": "CloudBolt Plug-in" }, + { + "id": "OHK-8in52yhn", + "type": "plugins", + "name": "POC Onboarding: User", + "description": "Creates a local user with no usable password and assigns roles in a group, returning the edit link where the admin sets the password; an existing user only gets the roles.", + "path": "plugins/OHK-8in52yhn", + "readme": null, + "uses": [], + "used_by": [ + "mcp_tool_actions/MTA-tuzkb8h4" + ], + "plugin_type": "CloudBolt Plug-in" + }, { "id": "OHK-8j06wtoe", "type": "plugins", @@ -2610,6 +2785,32 @@ ], "plugin_type": "CloudBolt Plug-in" }, + { + "id": "OHK-b8c90uok", + "type": "plugins", + "name": "POC Onboarding: Tag Mapping", + "description": "Lists, adds or removes a resource handler's mappings from CloudBolt attributes or parameters to cloud tags, giving cross-cloud tagging and the cost-center tag.", + "path": "plugins/OHK-b8c90uok", + "readme": null, + "uses": [], + "used_by": [ + "mcp_tool_actions/MTA-0689nxjy" + ], + "plugin_type": "CloudBolt Plug-in" + }, + { + "id": "OHK-be18kqal", + "type": "plugins", + "name": "POC Onboarding: SMTP Settings", + "description": "Sets the non-secret email settings and returns the link where the SMTP password is entered; with no inputs it reports the current settings.", + "path": "plugins/OHK-be18kqal", + "readme": null, + "uses": [], + "used_by": [ + "mcp_tool_actions/MTA-89w58iux" + ], + "plugin_type": "CloudBolt Plug-in" + }, { "id": "OHK-bf3iyg9j", "type": "plugins", @@ -2883,6 +3084,19 @@ ], "plugin_type": "Remote Script" }, + { + "id": "OHK-efxm9m2b", + "type": "plugins", + "name": "POC Onboarding: Group", + "description": "Creates or updates a group with its parent, entitled environments, auto-approval flag and server-count quota, covering the test plan's entitlement, approval and quota items.", + "path": "plugins/OHK-efxm9m2b", + "readme": null, + "uses": [], + "used_by": [ + "mcp_tool_actions/MTA-cpq7bvz4" + ], + "plugin_type": "CloudBolt Plug-in" + }, { "id": "OHK-el9giuz3", "type": "plugins", @@ -2922,6 +3136,19 @@ ], "plugin_type": "CloudBolt Plug-in" }, + { + "id": "OHK-f6kqrklx", + "type": "plugins", + "name": "POC Onboarding: Parameter", + "description": "Creates or updates a parameter and attaches it to environments and groups with options and constraints, covering the test plan's user-defined parameter, cost-center tag source, power schedule and expiration date with a maximum lease.", + "path": "plugins/OHK-f6kqrklx", + "readme": null, + "uses": [], + "used_by": [ + "mcp_tool_actions/MTA-70aez9bm" + ], + "plugin_type": "CloudBolt Plug-in" + }, { "id": "OHK-fel441xh", "type": "plugins", @@ -3106,6 +3333,32 @@ ], "plugin_type": "CloudBolt Plug-in" }, + { + "id": "OHK-j82f4ibp", + "type": "plugins", + "name": "POC Onboarding: Verify LDAP", + "description": "Runs an LDAP utility's Verify Connection and returns the real bind or search error with a hint and the links to fix it.", + "path": "plugins/OHK-j82f4ibp", + "readme": null, + "uses": [], + "used_by": [ + "mcp_tool_actions/MTA-kw8krevn" + ], + "plugin_type": "CloudBolt Plug-in" + }, + { + "id": "OHK-jdyan3in", + "type": "plugins", + "name": "POC Onboarding: SMTP Test", + "description": "Sends a test email through the saved SMTP settings and returns the relay's real error with a hint when it fails.", + "path": "plugins/OHK-jdyan3in", + "readme": null, + "uses": [], + "used_by": [ + "mcp_tool_actions/MTA-qab6r2gk" + ], + "plugin_type": "CloudBolt Plug-in" + }, { "id": "OHK-jzkblrv7", "type": "plugins", @@ -3258,6 +3511,19 @@ ], "plugin_type": "CloudBolt Plug-in" }, + { + "id": "OHK-ndsuxv0k", + "type": "plugins", + "name": "POC Onboarding: Action Approval", + "description": "Turns Requires approval on or off for a server or resource action, which the API cannot change, so a day-2 action pauses as an order for an approver.", + "path": "plugins/OHK-ndsuxv0k", + "readme": null, + "uses": [], + "used_by": [ + "mcp_tool_actions/MTA-bp0rkcq9" + ], + "plugin_type": "CloudBolt Plug-in" + }, { "id": "OHK-nwcyoto7", "type": "plugins", @@ -3601,6 +3867,19 @@ ], "plugin_type": "CloudBolt Plug-in" }, + { + "id": "OHK-s76tknmk", + "type": "plugins", + "name": "POC Onboarding: LDAP Mapping", + "description": "Maps an AD or LDAP group DN to a CloudBolt group with roles on an existing LDAP utility, so directory users land in the right group at first login.", + "path": "plugins/OHK-s76tknmk", + "readme": null, + "uses": [], + "used_by": [ + "mcp_tool_actions/MTA-e5qv0zay" + ], + "plugin_type": "CloudBolt Plug-in" + }, { "id": "OHK-s7cdvkpr", "type": "plugins", diff --git a/mcp_tool_actions/MTA-0689nxjy/MTA-0689nxjy_metadata.json b/mcp_tool_actions/MTA-0689nxjy/MTA-0689nxjy_metadata.json new file mode 100644 index 00000000..d8ef61e1 --- /dev/null +++ b/mcp_tool_actions/MTA-0689nxjy/MTA-0689nxjy_metadata.json @@ -0,0 +1,77 @@ +{ + "action_input_default_values": [], + "action_inputs": [ + { + "allow-multiple": false, + "available-all-servers": false, + "description": "The handler, by global id or name.", + "field-dependency-controlling-set": [], + "field-dependency-dependent-set": [], + "global-options": [], + "hide-if-default-value": true, + "id": "CF-7f2q5v3a", + "label": "Resource handler (RH- id or name)", + "name": "onb_handler", + "placeholder": "RH-abc12345", + "relevant-osfamilies": [], + "required": true, + "show-as-attribute": false, + "show-on-servers": false, + "type": "STR", + "value-pattern-string": null + }, + { + "allow-multiple": false, + "available-all-servers": false, + "description": "add creates or updates, remove deletes, list reports.", + "field-dependency-controlling-set": [], + "field-dependency-dependent-set": [], + "global-options": [], + "hide-if-default-value": true, + "id": "CF-s8dzzyrc", + "label": "Action: add (default), list, remove", + "name": "onb_tag_action", + "placeholder": "add", + "relevant-osfamilies": [], + "required": false, + "show-as-attribute": false, + "show-on-servers": false, + "type": "STR", + "value-pattern-string": null + }, + { + "allow-multiple": false, + "available-all-servers": false, + "description": "Attribute or parameter name, equals sign, the tag name to write in the cloud.", + "field-dependency-controlling-set": [], + "field-dependency-dependent-set": [], + "global-options": [], + "hide-if-default-value": true, + "id": "CF-dqru0ezd", + "label": "Mappings attribute=TagName, one per line", + "name": "onb_tag_mappings", + "placeholder": "group=Group\nowner=Owner\nos_family=OSFamily", + "relevant-osfamilies": [], + "required": false, + "show-as-attribute": false, + "show-on-servers": false, + "type": "TXT", + "value-pattern-string": null + } + ], + "dependencies": { + "hook": "plugins/OHK-b8c90uok" + }, + "enabled": true, + "id": "MTA-0689nxjy", + "is_synchronous": true, + "label": "POC Onboarding: Tag Mapping", + "last_updated": null, + "mcp_destructive_hint": false, + "mcp_idempotent_hint": true, + "mcp_open_world_hint": false, + "mcp_read_only_hint": false, + "mcp_tool_description": "List, add or remove a resource handler's tag mappings: lines of attribute=TagName where attribute is group, owner, os_family, environment, hostname, os_build or any parameter shown on servers (create one with onb_parameter, show_on_servers true). The same lines on two handlers give consistent tags across clouds (test plan 1.2.2); cost_center=CostCenter with a group parameter gives 2.5.1. onb_tag_action list only reports. Requires a CloudBolt admin caller.", + "mcp_tool_name": "onb_tag_mapping", + "mcp_tool_title": "" +} diff --git a/mcp_tool_actions/MTA-0689nxjy/README.md b/mcp_tool_actions/MTA-0689nxjy/README.md new file mode 100644 index 00000000..f218b2bf --- /dev/null +++ b/mcp_tool_actions/MTA-0689nxjy/README.md @@ -0,0 +1,24 @@ +# POC Onboarding: Tag Mapping + +MCP Tool Action published to agents as `custom_onb_tag_mapping`. Lists, adds or removes a resource handler's mappings from CloudBolt attributes or parameters to cloud tags, giving cross-cloud tagging and the cost-center tag. +Part of the POC Onboarding Toolkit ([packages/PKG-8aaadefz](../../packages/PKG-8aaadefz/README.md)) that the `cb-poc-onboarding` skill drives; procedure in [.claude/skills/cb-poc-onboarding/SKILL.md](../../.claude/skills/cb-poc-onboarding/SKILL.md). + +## Contents +| Role | ID | Name | +|---|---|---| +| MCP Tool Action | MTA-0689nxjy | POC Onboarding: Tag Mapping | +| Plugin | [OHK-b8c90uok](../../plugins/OHK-b8c90uok/) | POC Onboarding: Tag Mapping | + +## Inputs +| Input | Type | Meaning | +|---|---|---| +| `onb_handler` | string, required | The handler, by global id or name. | +| `onb_tag_mappings` | text | Attribute or parameter name, equals sign, the tag name to write in the cloud. | +| `onb_tag_action` | string | add creates or updates, remove deletes, list reports. | + +## Output +results[] per line, mappings[] (the handler's mappings after the call), attributes (built-in names), next. + +## Notes +- Admin only: the plugin refuses callers who are not CloudBolt admins. +- Synchronous: the result comes back inline. diff --git a/mcp_tool_actions/MTA-70aez9bm/MTA-70aez9bm_metadata.json b/mcp_tool_actions/MTA-70aez9bm/MTA-70aez9bm_metadata.json new file mode 100644 index 00000000..503e23d1 --- /dev/null +++ b/mcp_tool_actions/MTA-70aez9bm/MTA-70aez9bm_metadata.json @@ -0,0 +1,210 @@ +{ + "action_input_default_values": [], + "action_inputs": [ + { + "allow-multiple": false, + "available-all-servers": false, + "description": "Help text shown under the field.", + "field-dependency-controlling-set": [], + "field-dependency-dependent-set": [], + "global-options": [], + "hide-if-default-value": true, + "id": "CF-ga0mjyn1", + "label": "Description (optional)", + "name": "onb_param_description", + "placeholder": "Tier of the application this server belongs to", + "relevant-osfamilies": [], + "required": false, + "show-as-attribute": false, + "show-on-servers": false, + "type": "STR", + "value-pattern-string": null + }, + { + "allow-multiple": false, + "available-all-servers": false, + "description": "Display label; defaults to the name in title case.", + "field-dependency-controlling-set": [], + "field-dependency-dependent-set": [], + "global-options": [], + "hide-if-default-value": true, + "id": "CF-tokwenv4", + "label": "Label shown on forms (optional)", + "name": "onb_param_label", + "placeholder": "Application Tier", + "relevant-osfamilies": [], + "required": false, + "show-as-attribute": false, + "show-on-servers": false, + "type": "STR", + "value-pattern-string": null + }, + { + "allow-multiple": false, + "available-all-servers": false, + "description": "Upper bound on the targets; for DT parameters the number of days from today.", + "field-dependency-controlling-set": [], + "field-dependency-dependent-set": [], + "global-options": [], + "hide-if-default-value": true, + "id": "CF-sj63qmjx", + "label": "Maximum (number, or days for a date; optional)", + "name": "onb_param_max", + "placeholder": "30", + "relevant-osfamilies": [], + "required": false, + "show-as-attribute": false, + "show-on-servers": false, + "type": "INT", + "value-pattern-string": null + }, + { + "allow-multiple": false, + "available-all-servers": false, + "description": "Lower bound on the targets.", + "field-dependency-controlling-set": [], + "field-dependency-dependent-set": [], + "global-options": [], + "hide-if-default-value": true, + "id": "CF-0j1pwe7n", + "label": "Minimum (number, or days for a date; optional)", + "name": "onb_param_min", + "placeholder": "1", + "relevant-osfamilies": [], + "required": false, + "show-as-attribute": false, + "show-on-servers": false, + "type": "INT", + "value-pattern-string": null + }, + { + "allow-multiple": false, + "available-all-servers": false, + "description": "Internal name; lowercase letters, digits and underscores.", + "field-dependency-controlling-set": [], + "field-dependency-dependent-set": [], + "global-options": [], + "hide-if-default-value": true, + "id": "CF-09lnu50c", + "label": "Parameter name (internal, snake_case)", + "name": "onb_param_name", + "placeholder": "application_tier", + "relevant-osfamilies": [], + "required": true, + "show-as-attribute": false, + "show-on-servers": false, + "type": "STR", + "value-pattern-string": null + }, + { + "allow-multiple": false, + "available-all-servers": false, + "description": "Choices offered on the targets; replaces the current options there.", + "field-dependency-controlling-set": [], + "field-dependency-dependent-set": [], + "global-options": [], + "hide-if-default-value": true, + "id": "CF-6lyylf4j", + "label": "Options, one per line (optional)", + "name": "onb_param_options", + "placeholder": "web\napp\ndb", + "relevant-osfamilies": [], + "required": false, + "show-as-attribute": false, + "show-on-servers": false, + "type": "TXT", + "value-pattern-string": null + }, + { + "allow-multiple": false, + "available-all-servers": false, + "description": "Whether a value is mandatory on the targets.", + "field-dependency-controlling-set": [], + "field-dependency-dependent-set": [], + "global-options": [], + "hide-if-default-value": true, + "id": "CF-7eu4rq79", + "label": "Required (true/false, optional)", + "name": "onb_param_required", + "placeholder": "false", + "relevant-osfamilies": [], + "required": false, + "show-as-attribute": false, + "show-on-servers": false, + "type": "STR", + "value-pattern-string": null + }, + { + "allow-multiple": false, + "available-all-servers": false, + "description": "Whether the value appears on the server and can be mapped to a cloud tag.", + "field-dependency-controlling-set": [], + "field-dependency-dependent-set": [], + "global-options": [], + "hide-if-default-value": true, + "id": "CF-ch14mkji", + "label": "Show on servers (true/false, optional)", + "name": "onb_param_show_on_servers", + "placeholder": "true", + "relevant-osfamilies": [], + "required": false, + "show-as-attribute": false, + "show-on-servers": false, + "type": "STR", + "value-pattern-string": null + }, + { + "allow-multiple": false, + "available-all-servers": false, + "description": "Environments and groups to attach the parameter to.", + "field-dependency-controlling-set": [], + "field-dependency-dependent-set": [], + "global-options": [], + "hide-if-default-value": true, + "id": "CF-yuet9kg1", + "label": "Targets: ENV-/GRP- ids or names, one per line", + "name": "onb_param_targets", + "placeholder": "ENV-abc12345\nPOC Group", + "relevant-osfamilies": [], + "required": false, + "show-as-attribute": false, + "show-on-servers": false, + "type": "TXT", + "value-pattern-string": null + }, + { + "allow-multiple": false, + "available-all-servers": false, + "description": "Type for a new parameter; an existing parameter keeps its type.", + "field-dependency-controlling-set": [], + "field-dependency-dependent-set": [], + "global-options": [], + "hide-if-default-value": true, + "id": "CF-lfs5ydpn", + "label": "Type: STR, INT, DEC, BOOL, TXT, DT (optional)", + "name": "onb_param_type", + "placeholder": "STR", + "relevant-osfamilies": [], + "required": false, + "show-as-attribute": false, + "show-on-servers": false, + "type": "STR", + "value-pattern-string": null + } + ], + "dependencies": { + "hook": "plugins/OHK-f6kqrklx" + }, + "enabled": true, + "id": "MTA-70aez9bm", + "is_synchronous": true, + "label": "POC Onboarding: Parameter", + "last_updated": null, + "mcp_destructive_hint": false, + "mcp_idempotent_hint": true, + "mcp_open_world_hint": false, + "mcp_read_only_hint": false, + "mcp_tool_description": "Create or update a parameter (CustomField) and attach it to environments or groups with options and constraints, as the Parameters admin page and an environment's Parameters tab do. onb_param_name is the internal name (application_tier, cost_center, expiration_date, power_schedule); a new parameter gets onb_param_type (STR default; INT, DEC, BOOL, TXT, DT for a date) and onb_param_label. onb_param_targets lists ENV- or GRP- ids or names, one per line; onb_param_options the choices to offer there, one per line; onb_param_max and onb_param_min constrain numbers, or days from today for a date (expiration_date with onb_param_max=30 caps leases at 30 days). onb_param_required true makes it mandatory on those targets. Test plan 1.1.2, 2.5.1, 3.1.1, 3.1.2. Requires a CloudBolt admin caller.", + "mcp_tool_name": "onb_parameter", + "mcp_tool_title": "" +} diff --git a/mcp_tool_actions/MTA-70aez9bm/README.md b/mcp_tool_actions/MTA-70aez9bm/README.md new file mode 100644 index 00000000..fd44e0fa --- /dev/null +++ b/mcp_tool_actions/MTA-70aez9bm/README.md @@ -0,0 +1,32 @@ +# POC Onboarding: Parameter + +MCP Tool Action published to agents as `custom_onb_parameter`. Creates or updates a parameter and attaches it to environments and groups with options and constraints, covering the test plan's user-defined parameter, cost-center tag source, power schedule and expiration date with a maximum lease. +Part of the POC Onboarding Toolkit ([packages/PKG-8aaadefz](../../packages/PKG-8aaadefz/README.md)) that the `cb-poc-onboarding` skill drives; procedure in [.claude/skills/cb-poc-onboarding/SKILL.md](../../.claude/skills/cb-poc-onboarding/SKILL.md). + +## Contents +| Role | ID | Name | +|---|---|---| +| MCP Tool Action | MTA-70aez9bm | POC Onboarding: Parameter | +| Plugin | [OHK-f6kqrklx](../../plugins/OHK-f6kqrklx/) | POC Onboarding: Parameter | + +## Inputs +| Input | Type | Meaning | +|---|---|---| +| `onb_param_name` | string, required | Internal name; lowercase letters, digits and underscores. | +| `onb_param_label` | string | Display label; defaults to the name in title case. | +| `onb_param_type` | string | Type for a new parameter; an existing parameter keeps its type. | +| `onb_param_options` | text | Choices offered on the targets; replaces the current options there. | +| `onb_param_required` | string | Whether a value is mandatory on the targets. | +| `onb_param_targets` | text | Environments and groups to attach the parameter to. | +| `onb_param_description` | string | Help text shown under the field. | +| `onb_param_max` | integer | Upper bound on the targets; for DT parameters the number of days from today. | +| `onb_param_min` | integer | Lower bound on the targets. | +| `onb_param_show_on_servers` | string | Whether the value appears on the server and can be mapped to a cloud tag. | + +## Output +parameter (id, name, type, created, changes, url), attached[] per target with options, constraints and status, notes[]. + +## Notes +- Admin only: the plugin refuses callers who are not CloudBolt admins. +- Synchronous: the result comes back inline. +- Options on a group are shared by every environment the group orders into; options on an environment apply to that environment only. diff --git a/mcp_tool_actions/MTA-89w58iux/MTA-89w58iux_metadata.json b/mcp_tool_actions/MTA-89w58iux/MTA-89w58iux_metadata.json new file mode 100644 index 00000000..67bcc2a3 --- /dev/null +++ b/mcp_tool_actions/MTA-89w58iux/MTA-89w58iux_metadata.json @@ -0,0 +1,134 @@ +{ + "action_input_default_values": [], + "action_inputs": [ + { + "allow-multiple": false, + "available-all-servers": false, + "description": "Where test emails and admin notifications go.", + "field-dependency-controlling-set": [], + "field-dependency-dependent-set": [], + "global-options": [], + "hide-if-default-value": true, + "id": "CF-mevftz35", + "label": "CloudBolt admin email (optional)", + "name": "onb_smtp_admin_email", + "placeholder": "admin@example.com", + "relevant-osfamilies": [], + "required": false, + "show-as-attribute": false, + "show-on-servers": false, + "type": "STR", + "value-pattern-string": null + }, + { + "allow-multiple": false, + "available-all-servers": false, + "description": "Sender address on CloudBolt emails.", + "field-dependency-controlling-set": [], + "field-dependency-dependent-set": [], + "global-options": [], + "hide-if-default-value": true, + "id": "CF-zarx2wuk", + "label": "Default from address (optional)", + "name": "onb_smtp_from", + "placeholder": "cloudbolt@example.com", + "relevant-osfamilies": [], + "required": false, + "show-as-attribute": false, + "show-on-servers": false, + "type": "STR", + "value-pattern-string": null + }, + { + "allow-multiple": false, + "available-all-servers": false, + "description": "Relay hostname.", + "field-dependency-controlling-set": [], + "field-dependency-dependent-set": [], + "global-options": [], + "hide-if-default-value": true, + "id": "CF-ve1rinsv", + "label": "SMTP host (optional)", + "name": "onb_smtp_host", + "placeholder": "smtp.example.com", + "relevant-osfamilies": [], + "required": false, + "show-as-attribute": false, + "show-on-servers": false, + "type": "STR", + "value-pattern-string": null + }, + { + "allow-multiple": false, + "available-all-servers": false, + "description": "Relay port: 25, 465 or 587.", + "field-dependency-controlling-set": [], + "field-dependency-dependent-set": [], + "global-options": [], + "hide-if-default-value": true, + "id": "CF-0yefttoq", + "label": "SMTP port (optional)", + "name": "onb_smtp_port", + "placeholder": "587", + "relevant-osfamilies": [], + "required": false, + "show-as-attribute": false, + "show-on-servers": false, + "type": "INT", + "value-pattern-string": null + }, + { + "allow-multiple": false, + "available-all-servers": false, + "description": "STARTTLS on the connection.", + "field-dependency-controlling-set": [], + "field-dependency-dependent-set": [], + "global-options": [], + "hide-if-default-value": true, + "id": "CF-bnp2ws5y", + "label": "Use TLS (true/false, optional)", + "name": "onb_smtp_tls", + "placeholder": "true", + "relevant-osfamilies": [], + "required": false, + "show-as-attribute": false, + "show-on-servers": false, + "type": "STR", + "value-pattern-string": null + }, + { + "allow-multiple": false, + "available-all-servers": false, + "description": "Relay login; the password is entered in the UI.", + "field-dependency-controlling-set": [], + "field-dependency-dependent-set": [], + "global-options": [], + "hide-if-default-value": true, + "id": "CF-gskex0mo", + "label": "SMTP user (optional)", + "name": "onb_smtp_user", + "placeholder": "cloudbolt@example.com", + "relevant-osfamilies": [], + "required": false, + "show-as-attribute": false, + "show-on-servers": false, + "type": "STR", + "value-pattern-string": null + } + ], + "dependencies": { + "hook": "plugins/OHK-be18kqal" + }, + "enabled": true, + "id": "MTA-89w58iux", + "is_synchronous": true, + "label": "POC Onboarding: SMTP Settings", + "last_updated": null, + "mcp_destructive_hint": false, + "mcp_idempotent_hint": true, + "mcp_open_world_hint": false, + "mcp_read_only_hint": false, + "mcp_tool_description": "Set the non-secret email settings (host, port, user, TLS, from address, CloudBolt admin email) and return editUrl, the Email Settings page where the SMTP password is entered by the user. Never takes a password. With no inputs it reports the current settings and whether a password is set. Prerequisite P7; without a relay record P7 as not applicable. Requires a CloudBolt admin caller.", + "mcp_tool_name": "onb_smtp", + "mcp_tool_title": "" +} diff --git a/mcp_tool_actions/MTA-89w58iux/README.md b/mcp_tool_actions/MTA-89w58iux/README.md new file mode 100644 index 00000000..8cffb344 --- /dev/null +++ b/mcp_tool_actions/MTA-89w58iux/README.md @@ -0,0 +1,28 @@ +# POC Onboarding: SMTP Settings + +MCP Tool Action published to agents as `custom_onb_smtp`. Sets the non-secret email settings and returns the link where the SMTP password is entered; with no inputs it reports the current settings. +Part of the POC Onboarding Toolkit ([packages/PKG-8aaadefz](../../packages/PKG-8aaadefz/README.md)) that the `cb-poc-onboarding` skill drives; procedure in [.claude/skills/cb-poc-onboarding/SKILL.md](../../.claude/skills/cb-poc-onboarding/SKILL.md). + +## Contents +| Role | ID | Name | +|---|---|---| +| MCP Tool Action | MTA-89w58iux | POC Onboarding: SMTP Settings | +| Plugin | [OHK-be18kqal](../../plugins/OHK-be18kqal/) | POC Onboarding: SMTP Settings | + +## Inputs +| Input | Type | Meaning | +|---|---|---| +| `onb_smtp_host` | string | Relay hostname. | +| `onb_smtp_port` | integer | Relay port: 25, 465 or 587. | +| `onb_smtp_user` | string | Relay login; the password is entered in the UI. | +| `onb_smtp_tls` | string | STARTTLS on the connection. | +| `onb_smtp_from` | string | Sender address on CloudBolt emails. | +| `onb_smtp_admin_email` | string | Where test emails and admin notifications go. | + +## Output +settings (host, port, user, useTls, fromAddress, adminEmail, passwordSet), changes[], editUrl, testUrl, next. + +## Notes +- Admin only: the plugin refuses callers who are not CloudBolt admins. +- Synchronous: the result comes back inline. +- No password is ever taken by this tool. diff --git a/mcp_tool_actions/MTA-bp0rkcq9/MTA-bp0rkcq9_metadata.json b/mcp_tool_actions/MTA-bp0rkcq9/MTA-bp0rkcq9_metadata.json new file mode 100644 index 00000000..19477988 --- /dev/null +++ b/mcp_tool_actions/MTA-bp0rkcq9/MTA-bp0rkcq9_metadata.json @@ -0,0 +1,58 @@ +{ + "action_input_default_values": [], + "action_inputs": [ + { + "allow-multiple": false, + "available-all-servers": false, + "description": "SVA- or RSA- global id, or the action's label.", + "field-dependency-controlling-set": [], + "field-dependency-dependent-set": [], + "global-options": [], + "hide-if-default-value": true, + "id": "CF-5jkupf06", + "label": "Server or resource action (id or label)", + "name": "onb_action", + "placeholder": "Resize VM", + "relevant-osfamilies": [], + "required": true, + "show-as-attribute": false, + "show-on-servers": false, + "type": "STR", + "value-pattern-string": null + }, + { + "allow-multiple": false, + "available-all-servers": false, + "description": "true pauses the action for approval; false runs it directly.", + "field-dependency-controlling-set": [], + "field-dependency-dependent-set": [], + "global-options": [], + "hide-if-default-value": true, + "id": "CF-u0c8by9a", + "label": "Requires approval (true/false, default true)", + "name": "onb_requires_approval", + "placeholder": "true", + "relevant-osfamilies": [], + "required": false, + "show-as-attribute": false, + "show-on-servers": false, + "type": "STR", + "value-pattern-string": null + } + ], + "dependencies": { + "hook": "plugins/OHK-ndsuxv0k" + }, + "enabled": true, + "id": "MTA-bp0rkcq9", + "is_synchronous": true, + "label": "POC Onboarding: Action Approval", + "last_updated": null, + "mcp_destructive_hint": false, + "mcp_idempotent_hint": true, + "mcp_open_world_hint": false, + "mcp_read_only_hint": false, + "mcp_tool_description": "Turn 'Requires approval' on or off for a server action or resource action by global id (SVA-, RSA-) or label, for example Resize VM, so a requestor's day-2 action pauses as an order for an approver (test plan 2.4.2). The v3 API cannot change this flag. Requires a CloudBolt admin caller.", + "mcp_tool_name": "onb_action_approval", + "mcp_tool_title": "" +} diff --git a/mcp_tool_actions/MTA-bp0rkcq9/README.md b/mcp_tool_actions/MTA-bp0rkcq9/README.md new file mode 100644 index 00000000..58e49883 --- /dev/null +++ b/mcp_tool_actions/MTA-bp0rkcq9/README.md @@ -0,0 +1,23 @@ +# POC Onboarding: Action Approval + +MCP Tool Action published to agents as `custom_onb_action_approval`. Turns Requires approval on or off for a server or resource action, which the API cannot change, so a day-2 action pauses as an order for an approver. +Part of the POC Onboarding Toolkit ([packages/PKG-8aaadefz](../../packages/PKG-8aaadefz/README.md)) that the `cb-poc-onboarding` skill drives; procedure in [.claude/skills/cb-poc-onboarding/SKILL.md](../../.claude/skills/cb-poc-onboarding/SKILL.md). + +## Contents +| Role | ID | Name | +|---|---|---| +| MCP Tool Action | MTA-bp0rkcq9 | POC Onboarding: Action Approval | +| Plugin | [OHK-ndsuxv0k](../../plugins/OHK-ndsuxv0k/) | POC Onboarding: Action Approval | + +## Inputs +| Input | Type | Meaning | +|---|---|---| +| `onb_action` | string, required | SVA- or RSA- global id, or the action's label. | +| `onb_requires_approval` | string | true pauses the action for approval; false runs it directly. | + +## Output +action (id, label, kind, url), requiresApproval (before, after), next. + +## Notes +- Admin only: the plugin refuses callers who are not CloudBolt admins. +- Synchronous: the result comes back inline. diff --git a/mcp_tool_actions/MTA-cpq7bvz4/MTA-cpq7bvz4_metadata.json b/mcp_tool_actions/MTA-cpq7bvz4/MTA-cpq7bvz4_metadata.json new file mode 100644 index 00000000..bbf8efdd --- /dev/null +++ b/mcp_tool_actions/MTA-cpq7bvz4/MTA-cpq7bvz4_metadata.json @@ -0,0 +1,134 @@ +{ + "action_input_default_values": [], + "action_inputs": [ + { + "allow-multiple": false, + "available-all-servers": false, + "description": "true lets members' orders run without an approver.", + "field-dependency-controlling-set": [], + "field-dependency-dependent-set": [], + "global-options": [], + "hide-if-default-value": true, + "id": "CF-eqxr2tbs", + "label": "Auto-approve orders (true/false, optional)", + "name": "onb_group_auto_approval", + "placeholder": "false", + "relevant-osfamilies": [], + "required": false, + "show-as-attribute": false, + "show-on-servers": false, + "type": "STR", + "value-pattern-string": null + }, + { + "allow-multiple": false, + "available-all-servers": false, + "description": "Group description.", + "field-dependency-controlling-set": [], + "field-dependency-dependent-set": [], + "global-options": [], + "hide-if-default-value": true, + "id": "CF-pevev6cc", + "label": "Description (optional)", + "name": "onb_group_description", + "placeholder": "Group used for the POC", + "relevant-osfamilies": [], + "required": false, + "show-as-attribute": false, + "show-on-servers": false, + "type": "STR", + "value-pattern-string": null + }, + { + "allow-multiple": false, + "available-all-servers": false, + "description": "Environments the group may order into.", + "field-dependency-controlling-set": [], + "field-dependency-dependent-set": [], + "global-options": [], + "hide-if-default-value": true, + "id": "CF-ukvtlqor", + "label": "Environments to entitle, one per line", + "name": "onb_group_environments", + "placeholder": "ENV-abc12345", + "relevant-osfamilies": [], + "required": false, + "show-as-attribute": false, + "show-on-servers": false, + "type": "TXT", + "value-pattern-string": null + }, + { + "allow-multiple": false, + "available-all-servers": false, + "description": "Name of the group to create or update.", + "field-dependency-controlling-set": [], + "field-dependency-dependent-set": [], + "global-options": [], + "hide-if-default-value": true, + "id": "CF-8ihd88x7", + "label": "Group name (or GRP- id to update)", + "name": "onb_group_name", + "placeholder": "POC Group", + "relevant-osfamilies": [], + "required": true, + "show-as-attribute": false, + "show-on-servers": false, + "type": "STR", + "value-pattern-string": null + }, + { + "allow-multiple": false, + "available-all-servers": false, + "description": "Parent group; the new group inherits its type.", + "field-dependency-controlling-set": [], + "field-dependency-dependent-set": [], + "global-options": [], + "hide-if-default-value": true, + "id": "CF-lykcbbom", + "label": "Parent group (GRP- id or name, optional)", + "name": "onb_group_parent", + "placeholder": "Admins", + "relevant-osfamilies": [], + "required": false, + "show-as-attribute": false, + "show-on-servers": false, + "type": "STR", + "value-pattern-string": null + }, + { + "allow-multiple": false, + "available-all-servers": false, + "description": "Maximum servers the group may own.", + "field-dependency-controlling-set": [], + "field-dependency-dependent-set": [], + "global-options": [], + "hide-if-default-value": true, + "id": "CF-vsijgqwu", + "label": "Server quota (number, -1 unlimited, optional)", + "name": "onb_group_quota_servers", + "placeholder": "3", + "relevant-osfamilies": [], + "required": false, + "show-as-attribute": false, + "show-on-servers": false, + "type": "INT", + "value-pattern-string": null + } + ], + "dependencies": { + "hook": "plugins/OHK-efxm9m2b" + }, + "enabled": true, + "id": "MTA-cpq7bvz4", + "is_synchronous": true, + "label": "POC Onboarding: Group", + "last_updated": null, + "mcp_destructive_hint": false, + "mcp_idempotent_hint": true, + "mcp_open_world_hint": false, + "mcp_read_only_hint": false, + "mcp_tool_description": "Create or update a group for the POC: parent (onb_group_parent), environments the group may order into (onb_group_environments, ENV- ids or names one per line), whether members' orders skip approval (onb_group_auto_approval true/false) and a server-count quota (onb_group_quota_servers, -1 for unlimited). An existing group of that name is updated. Test plan 2.3.2, 2.3.3, 2.4.1, 2.5.2. Echo the plan and confirm before calling. Requires a CloudBolt admin caller.", + "mcp_tool_name": "onb_group", + "mcp_tool_title": "" +} diff --git a/mcp_tool_actions/MTA-cpq7bvz4/README.md b/mcp_tool_actions/MTA-cpq7bvz4/README.md new file mode 100644 index 00000000..7962bb37 --- /dev/null +++ b/mcp_tool_actions/MTA-cpq7bvz4/README.md @@ -0,0 +1,27 @@ +# POC Onboarding: Group + +MCP Tool Action published to agents as `custom_onb_group`. Creates or updates a group with its parent, entitled environments, auto-approval flag and server-count quota, covering the test plan's entitlement, approval and quota items. +Part of the POC Onboarding Toolkit ([packages/PKG-8aaadefz](../../packages/PKG-8aaadefz/README.md)) that the `cb-poc-onboarding` skill drives; procedure in [.claude/skills/cb-poc-onboarding/SKILL.md](../../.claude/skills/cb-poc-onboarding/SKILL.md). + +## Contents +| Role | ID | Name | +|---|---|---| +| MCP Tool Action | MTA-cpq7bvz4 | POC Onboarding: Group | +| Plugin | [OHK-efxm9m2b](../../plugins/OHK-efxm9m2b/) | POC Onboarding: Group | + +## Inputs +| Input | Type | Meaning | +|---|---|---| +| `onb_group_name` | string, required | Name of the group to create or update. | +| `onb_group_parent` | string | Parent group; the new group inherits its type. | +| `onb_group_environments` | text | Environments the group may order into. | +| `onb_group_auto_approval` | string | true lets members' orders run without an approver. | +| `onb_group_quota_servers` | integer | Maximum servers the group may own. | +| `onb_group_description` | string | Group description. | + +## Output +group (id, name, type, parent, allowAutoApproval, created, url, quotasUrl), environments[], serverQuota, changes[], next. + +## Notes +- Admin only: the plugin refuses callers who are not CloudBolt admins. +- Synchronous: the result comes back inline. diff --git a/mcp_tool_actions/MTA-e5qv0zay/MTA-e5qv0zay_metadata.json b/mcp_tool_actions/MTA-e5qv0zay/MTA-e5qv0zay_metadata.json new file mode 100644 index 00000000..e757c597 --- /dev/null +++ b/mcp_tool_actions/MTA-e5qv0zay/MTA-e5qv0zay_metadata.json @@ -0,0 +1,96 @@ +{ + "action_input_default_values": [], + "action_inputs": [ + { + "allow-multiple": false, + "available-all-servers": false, + "description": "Which LDAP utility; optional when only one exists.", + "field-dependency-controlling-set": [], + "field-dependency-dependent-set": [], + "global-options": [], + "hide-if-default-value": true, + "id": "CF-8sxx5xbq", + "label": "LDAP utility (IDD- id, pk or name; optional)", + "name": "onb_ldap", + "placeholder": "IDD-abc12345", + "relevant-osfamilies": [], + "required": false, + "show-as-attribute": false, + "show-on-servers": false, + "type": "STR", + "value-pattern-string": null + }, + { + "allow-multiple": false, + "available-all-servers": false, + "description": "Group that members join.", + "field-dependency-controlling-set": [], + "field-dependency-dependent-set": [], + "global-options": [], + "hide-if-default-value": true, + "id": "CF-qhrxp2o4", + "label": "CloudBolt group (GRP- id or name)", + "name": "onb_ldap_cb_group", + "placeholder": "POC Group", + "relevant-osfamilies": [], + "required": true, + "show-as-attribute": false, + "show-on-servers": false, + "type": "STR", + "value-pattern-string": null + }, + { + "allow-multiple": false, + "available-all-servers": false, + "description": "Distinguished name of the AD or LDAP group.", + "field-dependency-controlling-set": [], + "field-dependency-dependent-set": [], + "global-options": [], + "hide-if-default-value": true, + "id": "CF-pdmumk3c", + "label": "Directory group DN", + "name": "onb_ldap_group_dn", + "placeholder": "CN=CloudBolt Users,OU=Groups,DC=example,DC=com", + "relevant-osfamilies": [], + "required": true, + "show-as-attribute": false, + "show-on-servers": false, + "type": "STR", + "value-pattern-string": null + }, + { + "allow-multiple": false, + "available-all-servers": false, + "description": "Role names granted in that group.", + "field-dependency-controlling-set": [], + "field-dependency-dependent-set": [], + "global-options": [], + "hide-if-default-value": true, + "id": "CF-vlf2h5ge", + "label": "Roles, one per line (default requestor)", + "name": "onb_ldap_roles", + "placeholder": "requestor", + "relevant-osfamilies": [], + "required": false, + "show-as-attribute": false, + "show-on-servers": false, + "type": "TXT", + "value-pattern-string": null + } + ], + "dependencies": { + "hook": "plugins/OHK-s76tknmk" + }, + "enabled": true, + "id": "MTA-e5qv0zay", + "is_synchronous": true, + "label": "POC Onboarding: LDAP Mapping", + "last_updated": null, + "mcp_destructive_hint": false, + "mcp_idempotent_hint": true, + "mcp_open_world_hint": false, + "mcp_read_only_hint": false, + "mcp_tool_description": "Map an Active Directory or LDAP group, by distinguished name, to a CloudBolt group with roles on an existing LDAP utility (onb_ldap: IDD- id, pk or name; omit when one exists), as the utility's Group Mappings tab does; members get the group and roles at their first login (test plan 2.1.2). The LDAP utility itself is created in the UI, where its service-account password is entered; verify it with onb_verify_ldap first. Requires a CloudBolt admin caller.", + "mcp_tool_name": "onb_ldap_mapping", + "mcp_tool_title": "" +} diff --git a/mcp_tool_actions/MTA-e5qv0zay/README.md b/mcp_tool_actions/MTA-e5qv0zay/README.md new file mode 100644 index 00000000..066c806d --- /dev/null +++ b/mcp_tool_actions/MTA-e5qv0zay/README.md @@ -0,0 +1,25 @@ +# POC Onboarding: LDAP Mapping + +MCP Tool Action published to agents as `custom_onb_ldap_mapping`. Maps an AD or LDAP group DN to a CloudBolt group with roles on an existing LDAP utility, so directory users land in the right group at first login. +Part of the POC Onboarding Toolkit ([packages/PKG-8aaadefz](../../packages/PKG-8aaadefz/README.md)) that the `cb-poc-onboarding` skill drives; procedure in [.claude/skills/cb-poc-onboarding/SKILL.md](../../.claude/skills/cb-poc-onboarding/SKILL.md). + +## Contents +| Role | ID | Name | +|---|---|---| +| MCP Tool Action | MTA-e5qv0zay | POC Onboarding: LDAP Mapping | +| Plugin | [OHK-s76tknmk](../../plugins/OHK-s76tknmk/) | POC Onboarding: LDAP Mapping | + +## Inputs +| Input | Type | Meaning | +|---|---|---| +| `onb_ldap` | string | Which LDAP utility; optional when only one exists. | +| `onb_ldap_group_dn` | string, required | Distinguished name of the AD or LDAP group. | +| `onb_ldap_cb_group` | string, required | Group that members join. | +| `onb_ldap_roles` | text | Role names granted in that group. | + +## Output +ldapUtility, mapping (groupDn, created), cloudboltGroup, roles[], rolesAdded[], next. + +## Notes +- Admin only: the plugin refuses callers who are not CloudBolt admins. +- Synchronous: the result comes back inline. diff --git a/mcp_tool_actions/MTA-kw8krevn/MTA-kw8krevn_metadata.json b/mcp_tool_actions/MTA-kw8krevn/MTA-kw8krevn_metadata.json new file mode 100644 index 00000000..b0999772 --- /dev/null +++ b/mcp_tool_actions/MTA-kw8krevn/MTA-kw8krevn_metadata.json @@ -0,0 +1,39 @@ +{ + "action_input_default_values": [], + "action_inputs": [ + { + "allow-multiple": false, + "available-all-servers": false, + "description": "Which LDAP utility; optional when only one exists.", + "field-dependency-controlling-set": [], + "field-dependency-dependent-set": [], + "global-options": [], + "hide-if-default-value": true, + "id": "CF-8sxx5xbq", + "label": "LDAP utility (IDD- id, pk or name; optional)", + "name": "onb_ldap", + "placeholder": "IDD-abc12345", + "relevant-osfamilies": [], + "required": false, + "show-as-attribute": false, + "show-on-servers": false, + "type": "STR", + "value-pattern-string": null + } + ], + "dependencies": { + "hook": "plugins/OHK-j82f4ibp" + }, + "enabled": true, + "id": "MTA-kw8krevn", + "is_synchronous": false, + "label": "POC Onboarding: Verify LDAP", + "last_updated": null, + "mcp_destructive_hint": false, + "mcp_idempotent_hint": true, + "mcp_open_world_hint": true, + "mcp_read_only_hint": true, + "mcp_tool_description": "Run Verify Connection (bind and search) on an LDAP utility (onb_ldap: IDD- id, pk or name; omit when one exists) and return the real error text with a hint (bad bind credentials, unreachable host or port, LDAPS certificate, wrong base DN) plus the edit link. Call it after the user creates the utility in the UI. Runs as a job: poll the returned id with fetch_job. Requires a CloudBolt admin caller.", + "mcp_tool_name": "onb_verify_ldap", + "mcp_tool_title": "" +} diff --git a/mcp_tool_actions/MTA-kw8krevn/README.md b/mcp_tool_actions/MTA-kw8krevn/README.md new file mode 100644 index 00000000..757edd19 --- /dev/null +++ b/mcp_tool_actions/MTA-kw8krevn/README.md @@ -0,0 +1,23 @@ +# POC Onboarding: Verify LDAP + +MCP Tool Action published to agents as `custom_onb_verify_ldap`. Runs an LDAP utility's Verify Connection and returns the real bind or search error with a hint and the links to fix it. +Part of the POC Onboarding Toolkit ([packages/PKG-8aaadefz](../../packages/PKG-8aaadefz/README.md)) that the `cb-poc-onboarding` skill drives; procedure in [.claude/skills/cb-poc-onboarding/SKILL.md](../../.claude/skills/cb-poc-onboarding/SKILL.md). + +## Contents +| Role | ID | Name | +|---|---|---| +| MCP Tool Action | MTA-kw8krevn | POC Onboarding: Verify LDAP | +| Plugin | [OHK-j82f4ibp](../../plugins/OHK-j82f4ibp/) | POC Onboarding: Verify LDAP | + +## Inputs +| Input | Type | Meaning | +|---|---|---| +| `onb_ldap` | string | Which LDAP utility; optional when only one exists. | + +## Output +ldapUtility (server, port, protocol, serviceAccount), verified, error, hints[], links (detail, edit, verifyDialog, mappings), next. + +## Notes +- Admin only: the plugin refuses callers who are not CloudBolt admins. +- Asynchronous: the call returns a job id; poll it with `fetch_job` and read `outputs`. +- Asynchronous by design: the check contacts the directory. diff --git a/mcp_tool_actions/MTA-qab6r2gk/MTA-qab6r2gk_metadata.json b/mcp_tool_actions/MTA-qab6r2gk/MTA-qab6r2gk_metadata.json new file mode 100644 index 00000000..1c797ea7 --- /dev/null +++ b/mcp_tool_actions/MTA-qab6r2gk/MTA-qab6r2gk_metadata.json @@ -0,0 +1,39 @@ +{ + "action_input_default_values": [], + "action_inputs": [ + { + "allow-multiple": false, + "available-all-servers": false, + "description": "Address to send the test to; defaults to the CloudBolt admin email.", + "field-dependency-controlling-set": [], + "field-dependency-dependent-set": [], + "global-options": [], + "hide-if-default-value": true, + "id": "CF-oyp9qitm", + "label": "Recipient (optional)", + "name": "onb_smtp_to", + "placeholder": "admin@example.com", + "relevant-osfamilies": [], + "required": false, + "show-as-attribute": false, + "show-on-servers": false, + "type": "STR", + "value-pattern-string": null + } + ], + "dependencies": { + "hook": "plugins/OHK-jdyan3in" + }, + "enabled": true, + "id": "MTA-qab6r2gk", + "is_synchronous": false, + "label": "POC Onboarding: SMTP Test", + "last_updated": null, + "mcp_destructive_hint": false, + "mcp_idempotent_hint": true, + "mcp_open_world_hint": true, + "mcp_read_only_hint": false, + "mcp_tool_description": "Send a test email through the saved SMTP settings (to onb_smtp_to, else the CloudBolt admin email, else the caller's address) and return the relay's real error with a hint when it fails. Call it after onb_smtp and after the user entered the password in the UI. Runs as a job: poll the returned id with fetch_job. Requires a CloudBolt admin caller.", + "mcp_tool_name": "onb_smtp_test", + "mcp_tool_title": "" +} diff --git a/mcp_tool_actions/MTA-qab6r2gk/README.md b/mcp_tool_actions/MTA-qab6r2gk/README.md new file mode 100644 index 00000000..974decd5 --- /dev/null +++ b/mcp_tool_actions/MTA-qab6r2gk/README.md @@ -0,0 +1,23 @@ +# POC Onboarding: SMTP Test + +MCP Tool Action published to agents as `custom_onb_smtp_test`. Sends a test email through the saved SMTP settings and returns the relay's real error with a hint when it fails. +Part of the POC Onboarding Toolkit ([packages/PKG-8aaadefz](../../packages/PKG-8aaadefz/README.md)) that the `cb-poc-onboarding` skill drives; procedure in [.claude/skills/cb-poc-onboarding/SKILL.md](../../.claude/skills/cb-poc-onboarding/SKILL.md). + +## Contents +| Role | ID | Name | +|---|---|---| +| MCP Tool Action | MTA-qab6r2gk | POC Onboarding: SMTP Test | +| Plugin | [OHK-jdyan3in](../../plugins/OHK-jdyan3in/) | POC Onboarding: SMTP Test | + +## Inputs +| Input | Type | Meaning | +|---|---|---| +| `onb_smtp_to` | string | Address to send the test to; defaults to the CloudBolt admin email. | + +## Output +recipient, settings, sent, error, hints[], editUrl. + +## Notes +- Admin only: the plugin refuses callers who are not CloudBolt admins. +- Asynchronous: the call returns a job id; poll it with `fetch_job` and read `outputs`. +- Asynchronous by design: the send talks to the mail relay. diff --git a/mcp_tool_actions/MTA-tuzkb8h4/MTA-tuzkb8h4_metadata.json b/mcp_tool_actions/MTA-tuzkb8h4/MTA-tuzkb8h4_metadata.json new file mode 100644 index 00000000..2af5ce04 --- /dev/null +++ b/mcp_tool_actions/MTA-tuzkb8h4/MTA-tuzkb8h4_metadata.json @@ -0,0 +1,153 @@ +{ + "action_input_default_values": [], + "action_inputs": [ + { + "allow-multiple": false, + "available-all-servers": false, + "description": "Email address; notifications go here.", + "field-dependency-controlling-set": [], + "field-dependency-dependent-set": [], + "global-options": [], + "hide-if-default-value": true, + "id": "CF-pklgcz56", + "label": "Email (optional)", + "name": "onb_user_email", + "placeholder": "poc.requestor@example.com", + "relevant-osfamilies": [], + "required": false, + "show-as-attribute": false, + "show-on-servers": false, + "type": "STR", + "value-pattern-string": null + }, + { + "allow-multiple": false, + "available-all-servers": false, + "description": "First name.", + "field-dependency-controlling-set": [], + "field-dependency-dependent-set": [], + "global-options": [], + "hide-if-default-value": true, + "id": "CF-t0ajf6pr", + "label": "First name (optional)", + "name": "onb_user_first_name", + "placeholder": "POC", + "relevant-osfamilies": [], + "required": false, + "show-as-attribute": false, + "show-on-servers": false, + "type": "STR", + "value-pattern-string": null + }, + { + "allow-multiple": false, + "available-all-servers": false, + "description": "Group in which the roles are assigned.", + "field-dependency-controlling-set": [], + "field-dependency-dependent-set": [], + "global-options": [], + "hide-if-default-value": true, + "id": "CF-8w0b0b4r", + "label": "Group for the roles (GRP- id or name)", + "name": "onb_user_group", + "placeholder": "POC Group", + "relevant-osfamilies": [], + "required": false, + "show-as-attribute": false, + "show-on-servers": false, + "type": "STR", + "value-pattern-string": null + }, + { + "allow-multiple": false, + "available-all-servers": false, + "description": "Last name.", + "field-dependency-controlling-set": [], + "field-dependency-dependent-set": [], + "global-options": [], + "hide-if-default-value": true, + "id": "CF-ks6b36ti", + "label": "Last name (optional)", + "name": "onb_user_last_name", + "placeholder": "Requestor", + "relevant-osfamilies": [], + "required": false, + "show-as-attribute": false, + "show-on-servers": false, + "type": "STR", + "value-pattern-string": null + }, + { + "allow-multiple": false, + "available-all-servers": false, + "description": "Role names: requestor, approver, resource_admin, viewer, or a custom role.", + "field-dependency-controlling-set": [], + "field-dependency-dependent-set": [], + "global-options": [], + "hide-if-default-value": true, + "id": "CF-s638skbk", + "label": "Roles in that group, one per line", + "name": "onb_user_roles", + "placeholder": "requestor", + "relevant-osfamilies": [], + "required": false, + "show-as-attribute": false, + "show-on-servers": false, + "type": "TXT", + "value-pattern-string": null + }, + { + "allow-multiple": false, + "available-all-servers": false, + "description": "Grant or remove the super admin flag.", + "field-dependency-controlling-set": [], + "field-dependency-dependent-set": [], + "global-options": [], + "hide-if-default-value": true, + "id": "CF-vy39gbsv", + "label": "Super admin (true/false, optional)", + "name": "onb_user_super_admin", + "placeholder": "false", + "relevant-osfamilies": [], + "required": false, + "show-as-attribute": false, + "show-on-servers": false, + "type": "STR", + "value-pattern-string": null + }, + { + "allow-multiple": false, + "available-all-servers": false, + "description": "Login name of the user to create or update.", + "field-dependency-controlling-set": [], + "field-dependency-dependent-set": [], + "global-options": [], + "hide-if-default-value": true, + "id": "CF-f6i1lz2a", + "label": "Username", + "name": "onb_username", + "placeholder": "poc.requestor", + "relevant-osfamilies": [], + "required": true, + "show-as-attribute": false, + "show-on-servers": false, + "type": "STR", + "value-pattern-string": null + } + ], + "dependencies": { + "hook": "plugins/OHK-8in52yhn" + }, + "enabled": true, + "id": "MTA-tuzkb8h4", + "is_synchronous": true, + "label": "POC Onboarding: User", + "last_updated": null, + "mcp_destructive_hint": false, + "mcp_idempotent_hint": true, + "mcp_open_world_hint": false, + "mcp_read_only_hint": false, + "mcp_tool_description": "Create a local test user (a requestor, an approver, a resource admin) and assign roles in a group. The user is created with no usable password; the response's setPasswordUrl is where the admin sets one in the UI, so no password ever passes through the agent. An existing user only receives the role assignments. onb_user_roles are role names one per line (requestor, approver, resource_admin, viewer, or a custom role). Test plan 2.3.1, 2.3.4, 2.4.1, 2.4.2. Requires a CloudBolt admin caller.", + "mcp_tool_name": "onb_user", + "mcp_tool_title": "" +} diff --git a/mcp_tool_actions/MTA-tuzkb8h4/README.md b/mcp_tool_actions/MTA-tuzkb8h4/README.md new file mode 100644 index 00000000..2427e467 --- /dev/null +++ b/mcp_tool_actions/MTA-tuzkb8h4/README.md @@ -0,0 +1,29 @@ +# POC Onboarding: User + +MCP Tool Action published to agents as `custom_onb_user`. Creates a local user with no usable password and assigns roles in a group, returning the edit link where the admin sets the password; an existing user only gets the roles. +Part of the POC Onboarding Toolkit ([packages/PKG-8aaadefz](../../packages/PKG-8aaadefz/README.md)) that the `cb-poc-onboarding` skill drives; procedure in [.claude/skills/cb-poc-onboarding/SKILL.md](../../.claude/skills/cb-poc-onboarding/SKILL.md). + +## Contents +| Role | ID | Name | +|---|---|---| +| MCP Tool Action | MTA-tuzkb8h4 | POC Onboarding: User | +| Plugin | [OHK-8in52yhn](../../plugins/OHK-8in52yhn/) | POC Onboarding: User | + +## Inputs +| Input | Type | Meaning | +|---|---|---| +| `onb_username` | string, required | Login name of the user to create or update. | +| `onb_user_email` | string | Email address; notifications go here. | +| `onb_user_first_name` | string | First name. | +| `onb_user_last_name` | string | Last name. | +| `onb_user_group` | string | Group in which the roles are assigned. | +| `onb_user_roles` | text | Role names: requestor, approver, resource_admin, viewer, or a custom role. | +| `onb_user_super_admin` | string | Grant or remove the super admin flag. | + +## Output +user (id, username, created, url, setPasswordUrl), memberships[], changes[], next. + +## Notes +- Admin only: the plugin refuses callers who are not CloudBolt admins. +- Synchronous: the result comes back inline. +- No password is ever taken or set by this tool. diff --git a/mcp_tool_actions/README.md b/mcp_tool_actions/README.md index 85d79dd8..c5cdfb1e 100644 --- a/mcp_tool_actions/README.md +++ b/mcp_tool_actions/README.md @@ -10,19 +10,28 @@ Actions published as tools on CloudBolt's MCP server for AI agents to call. Each | Fetch Job Log | [MTA-8j9c0tb0](MTA-8j9c0tb0/README.md) | Returns a job's status, output, errors, progress log, child jobs, failed descendants, and sync results in one call so a failed job can be diagnosed. | `fetch_job_log` | yes | [Fetch Job Log](../plugins/OHK-2p0rhzup/) | | Manage Blueprint Permissions | [MTA-ntmcnvv7](MTA-ntmcnvv7/README.md) | Lists, grants, or revokes a group's DEPLOY or MANAGE permission on a blueprint, so a repository sync's loss of group permissions can be snapshotted and restored. | `manage_blueprint_permissions` | yes | [Manage Blueprint Permissions](../plugins/OHK-mgta9oez/) | | Order Counts by Blueprint | [MTA-lp8lgi7e](MTA-lp8lgi7e/) | Return the number of orders placed for each blueprint, optionally filtered by order status. | `order_counts_by_blueprint` | yes | [Order Counts by Blueprint](../plugins/OHK-yjblxbwg/) | +| POC Onboarding: Action Approval | [MTA-bp0rkcq9](MTA-bp0rkcq9/README.md) | Turns Requires approval on or off for a server or resource action, which the API cannot change, so a day-2 action pauses as an order for an approver. | `onb_action_approval` | yes | [POC Onboarding: Action Approval](../plugins/OHK-ndsuxv0k/) | | POC Onboarding: Configure Custom Server | [MTA-i1kmy5fd](MTA-i1kmy5fd/README.md) | Makes the shipped Custom Server blueprint orderable for the POC: recreates it when missing, activates it, enables every environment on its server tier, and sets a hostname template on the tier or on the listed environments. | `onb_configure_custom_server` | yes | [POC Onboarding: Configure Custom Server](../plugins/OHK-ilstyopk/) | | POC Onboarding: Failure Trace | [MTA-jzscq0mk](MTA-jzscq0mk/README.md) | Walks an order or job down to the jobs that actually failed and returns their errors, output, progress tail, failed children and a hint for the common provisioning failures, naming the job id to pass to fetch_job_log for the traceback. | `onb_failure_trace` | yes | [POC Onboarding: Failure Trace](../plugins/OHK-y95w8ai0/) | +| POC Onboarding: Group | [MTA-cpq7bvz4](MTA-cpq7bvz4/README.md) | Creates or updates a group with its parent, entitled environments, auto-approval flag and server-count quota, covering the test plan's entitlement, approval and quota items. | `onb_group` | yes | [POC Onboarding: Group](../plugins/OHK-efxm9m2b/) | | POC Onboarding: Handler Locations | [MTA-89dxppus](MTA-89dxppus/README.md) | Lists the regions, locations or clusters a resource handler can turn into environments, flags the ones already imported, lists the existing environments, and for an AWS region lists its VPCs. | `onb_handler_locations` | yes | [POC Onboarding: Handler Locations](../plugins/OHK-0nuhjdxl/) | | POC Onboarding: Import Environments | [MTA-i6p4j2l7](MTA-i6p4j2l7/README.md) | Creates one environment per listed location on a resource handler the way the Import locations dialog does, brings the networks over (AWS subnets with the environment, Azure subnets synced, vCenter cluster networks attached to NIC 1), and reports existing environments instead of duplicating them. | `onb_import_environments` | yes | [POC Onboarding: Import Environments](../plugins/OHK-8j06wtoe/) | | POC Onboarding: Import OS Build | [MTA-0dr8xi4i](MTA-0dr8xi4i/README.md) | Imports one image (AWS AMI, Azure marketplace image, vCenter template) into an OS build, reusing an existing build of the same name so one build spans handlers, and attaches the build to the handler's environments. | `onb_import_os_build` | yes | [POC Onboarding: Import OS Build](../plugins/OHK-k2p8ll4p/) | | POC Onboarding: Install | [MTA-6zxrhdls](MTA-6zxrhdls/README.md) | Finishes the toolkit install after a sync or package import: sets Synchronous Action on the inline tools, enables every tool, checks outbound access to the Content Library and GitHub, and records the toolkit version. | `onb_install` | yes | [POC Onboarding: Install](../plugins/OHK-j60flmb3/) | +| POC Onboarding: LDAP Mapping | [MTA-e5qv0zay](MTA-e5qv0zay/README.md) | Maps an AD or LDAP group DN to a CloudBolt group with roles on an existing LDAP utility, so directory users land in the right group at first login. | `onb_ldap_mapping` | yes | [POC Onboarding: LDAP Mapping](../plugins/OHK-s76tknmk/) | +| POC Onboarding: Parameter | [MTA-70aez9bm](MTA-70aez9bm/README.md) | Creates or updates a parameter and attaches it to environments and groups with options and constraints, covering the test plan's user-defined parameter, cost-center tag source, power schedule and expiration date with a maximum lease. | `onb_parameter` | yes | [POC Onboarding: Parameter](../plugins/OHK-f6kqrklx/) | | POC Onboarding: Playbook | [MTA-92b836jb](MTA-92b836jb/README.md) | Returns a section of the POC onboarding skill text from the public cloudbolt-as-code repository, so MCP clients without skill support follow the same procedure. | `onb_playbook` | yes | [POC Onboarding: Playbook](../plugins/OHK-1am7i73s/) | | POC Onboarding: Recent Errors | [MTA-hwg74btd](MTA-hwg74btd/README.md) | Reads the tail of a CloudBolt log and returns the recent WARNING-and-above entries grouped by exception and message, secrets redacted, each group with a hint for the failures a new appliance hits most. | `onb_recent_errors` | yes | [POC Onboarding: Recent Errors](../plugins/OHK-4vwq70dg/) | | POC Onboarding: Remove Environment | [MTA-pz5o2gjl](MTA-pz5o2gjl/README.md) | Deletes an environment imported by mistake so the POC can start over; refuses while active servers live in it. | `onb_remove_environment` | yes | [POC Onboarding: Remove Environment](../plugins/OHK-1wmzl7sp/) | | POC Onboarding: Set Item Status | [MTA-p72v9y76](MTA-p72v9y76/README.md) | Records a POC test plan item or prerequisite as done, skipped, not applicable or pending with a reason, in a namespaced CustomField store that onb_status and the scorecard read. | `onb_set_item_status` | yes | [POC Onboarding: Set Item Status](../plugins/OHK-5885tete/) | +| POC Onboarding: SMTP Settings | [MTA-89w58iux](MTA-89w58iux/README.md) | Sets the non-secret email settings and returns the link where the SMTP password is entered; with no inputs it reports the current settings. | `onb_smtp` | yes | [POC Onboarding: SMTP Settings](../plugins/OHK-be18kqal/) | +| POC Onboarding: SMTP Test | [MTA-qab6r2gk](MTA-qab6r2gk/README.md) | Sends a test email through the saved SMTP settings and returns the relay's real error with a hint when it fails. | `onb_smtp_test` | yes | [POC Onboarding: SMTP Test](../plugins/OHK-jdyan3in/) | | POC Onboarding: Status | [MTA-1985b88g](MTA-1985b88g/README.md) | Reports the appliance's POC readiness in one read: licence, portal, SMTP, proxy, Content Library, Setup Wizard, resource handlers with environments and last verify result, the Custom Server blueprint, groups, users, LDAP, SSO, installed onboarding tools, recorded POC items, and the next steps with UI links. | `onb_status` | yes | [POC Onboarding: Status](../plugins/OHK-5zg1dkcr/) | +| POC Onboarding: Tag Mapping | [MTA-0689nxjy](MTA-0689nxjy/README.md) | Lists, adds or removes a resource handler's mappings from CloudBolt attributes or parameters to cloud tags, giving cross-cloud tagging and the cost-center tag. | `onb_tag_mapping` | yes | [POC Onboarding: Tag Mapping](../plugins/OHK-b8c90uok/) | | POC Onboarding: Trim Environment Order Form | [MTA-iyknuxox](MTA-iyknuxox/README.md) | Shortens an environment's order form for a POC by pinning infrastructure parameters to one value (which hides a required field) and removing the optional technology parameters, leaving the size and, where needed, the network and password; the report profile only lists the current form. | `onb_trim_environment` | yes | [POC Onboarding: Trim Environment Order Form](../plugins/OHK-qn4k1pme/) | | POC Onboarding: UI Link | [MTA-zpohocjt](MTA-zpohocjt/README.md) | Turns a CloudBolt global id or a named admin page (new resource handler per technology, LDAP, SMTP, user edit, environment parameters, group quotas, and more) into an absolute UI link so the agent can send the user to the exact page where a secret is entered or an object is edited. | `onb_ui_link` | yes | [POC Onboarding: UI Link](../plugins/OHK-1gp25bmt/) | +| POC Onboarding: User | [MTA-tuzkb8h4](MTA-tuzkb8h4/README.md) | Creates a local user with no usable password and assigns roles in a group, returning the edit link where the admin sets the password; an existing user only gets the roles. | `onb_user` | yes | [POC Onboarding: User](../plugins/OHK-8in52yhn/) | +| POC Onboarding: Verify LDAP | [MTA-kw8krevn](MTA-kw8krevn/README.md) | Runs an LDAP utility's Verify Connection and returns the real bind or search error with a hint and the links to fix it. | `onb_verify_ldap` | yes | [POC Onboarding: Verify LDAP](../plugins/OHK-j82f4ibp/) | | POC Onboarding: Verify Resource Handler | [MTA-r5v1eblg](MTA-r5v1eblg/README.md) | Runs a resource handler's Verify Connection and returns the real exception text with a technology-specific hint, the minimum-permissions document and the handler's edit and verify links, recording the result for the status tool. | `onb_verify_resource_handler` | yes | [POC Onboarding: Verify Resource Handler](../plugins/OHK-s7cdvkpr/) | | Run Blueprint Discovery | [MTA-9oihpumd](MTA-9oihpumd/README.md) | Launches the Sync Resources job for one blueprint so its discovery plugin runs on demand. | `run_blueprint_discovery` | yes | [Run Blueprint Discovery](../plugins/OHK-dwh5kqxq/) | | Run CIT Tests | [MTA-gnx1ckno](MTA-gnx1ckno/README.md) | Starts a functionaltest job for the named CIT tests and returns its job id. | `run_cit_tests` | yes | [Run CIT Tests](../plugins/OHK-ieb4qio7/) | diff --git a/packages/PKG-8aaadefz/PKG-8aaadefz_metadata.json b/packages/PKG-8aaadefz/PKG-8aaadefz_metadata.json index 462f3362..eb121075 100644 --- a/packages/PKG-8aaadefz/PKG-8aaadefz_metadata.json +++ b/packages/PKG-8aaadefz/PKG-8aaadefz_metadata.json @@ -14,15 +14,24 @@ "mcp_tool_actions/MTA-0dr8xi4i", "mcp_tool_actions/MTA-i1kmy5fd", "mcp_tool_actions/MTA-pz5o2gjl", + "mcp_tool_actions/MTA-70aez9bm", + "mcp_tool_actions/MTA-cpq7bvz4", + "mcp_tool_actions/MTA-tuzkb8h4", + "mcp_tool_actions/MTA-bp0rkcq9", + "mcp_tool_actions/MTA-0689nxjy", + "mcp_tool_actions/MTA-e5qv0zay", + "mcp_tool_actions/MTA-kw8krevn", + "mcp_tool_actions/MTA-89w58iux", + "mcp_tool_actions/MTA-qab6r2gk", "mcp_tool_actions/MTA-543b19sa", "mcp_tool_actions/MTA-8j9c0tb0", "mcp_tool_actions/MTA-ntmcnvv7" ], - "description": "Installs the MCP tools the POC onboarding skill drives: appliance status with next steps, admin UI links, log and failure diagnosis, resource handler verification and location import, environment creation, order-form trimming, OS build import, Custom Server setup, the playbook text, the install step and POC item tracking, plus the repository sync, job log and blueprint permission tools they reuse.", + "description": "Installs the MCP tools the POC onboarding skill drives: appliance status with next steps, admin UI links, log and failure diagnosis, resource handler verification and location import, environment creation, order-form trimming, OS build import, Custom Server setup, parameters, groups, users, action approval, tag and LDAP mappings, SMTP, the playbook text, the install step and POC item tracking, plus the repository sync, job log and blueprint permission tools they reuse.", "id": "PKG-8aaadefz", "last_updated": "2026-10-19", "metadata_version": "2026.1.0", "minimum_version_required": "", "name": "POC Onboarding Toolkit", - "version": "0.2.0" + "version": "0.3.0" } diff --git a/packages/PKG-8aaadefz/README.md b/packages/PKG-8aaadefz/README.md index d16eb252..a7f91129 100644 --- a/packages/PKG-8aaadefz/README.md +++ b/packages/PKG-8aaadefz/README.md @@ -1,8 +1,8 @@ # POC Onboarding Toolkit -Installs the MCP tools the POC onboarding skill drives: appliance status with next steps, admin UI links, log and failure diagnosis, resource handler verification and location import, environment creation, order-form trimming, OS build import, Custom Server setup, the playbook text, the install step and POC item tracking, plus the repository sync, job log and blueprint permission tools they reuse. +Installs the MCP tools the POC onboarding skill drives: appliance status with next steps, admin UI links, log and failure diagnosis, resource handler verification and location import, environment creation, order-form trimming, OS build import, Custom Server setup, parameters, groups, users, action approval, tag and LDAP mappings, SMTP, the playbook text, the install step and POC item tracking, plus the repository sync, job log and blueprint permission tools they reuse. -Content package `PKG-8aaadefz`, version 0.2.0. Sync it from the Content Packages admin page (Content Package Manager UI extension). After the first import run the `onb_install` tool (asynchronous; poll the job) to turn Synchronous Action on for the inline tools, then reconnect the MCP client. Setup for a customer appliance: [docs/poc-onboarding-setup.md](../../docs/poc-onboarding-setup.md); the procedure the agent follows: [.claude/skills/cb-poc-onboarding/SKILL.md](../../.claude/skills/cb-poc-onboarding/SKILL.md). +Content package `PKG-8aaadefz`, version 0.3.0. Sync it from the Content Packages admin page (Content Package Manager UI extension). After the first import run the `onb_install` tool (asynchronous; poll the job) to turn Synchronous Action on for the inline tools, then reconnect the MCP client. Setup for a customer appliance: [docs/poc-onboarding-setup.md](../../docs/poc-onboarding-setup.md); the procedure the agent follows: [.claude/skills/cb-poc-onboarding/SKILL.md](../../.claude/skills/cb-poc-onboarding/SKILL.md). | Type | Name | Folder | |---|---|---| @@ -20,6 +20,15 @@ Content package `PKG-8aaadefz`, version 0.2.0. Sync it from the Content Packages | MCP tool action | POC Onboarding: Import OS Build | [mcp_tool_actions/MTA-0dr8xi4i](../../mcp_tool_actions/MTA-0dr8xi4i/) | | MCP tool action | POC Onboarding: Configure Custom Server | [mcp_tool_actions/MTA-i1kmy5fd](../../mcp_tool_actions/MTA-i1kmy5fd/) | | MCP tool action | POC Onboarding: Remove Environment | [mcp_tool_actions/MTA-pz5o2gjl](../../mcp_tool_actions/MTA-pz5o2gjl/) | +| MCP tool action | POC Onboarding: Parameter | [mcp_tool_actions/MTA-70aez9bm](../../mcp_tool_actions/MTA-70aez9bm/) | +| MCP tool action | POC Onboarding: Group | [mcp_tool_actions/MTA-cpq7bvz4](../../mcp_tool_actions/MTA-cpq7bvz4/) | +| MCP tool action | POC Onboarding: User | [mcp_tool_actions/MTA-tuzkb8h4](../../mcp_tool_actions/MTA-tuzkb8h4/) | +| MCP tool action | POC Onboarding: Action Approval | [mcp_tool_actions/MTA-bp0rkcq9](../../mcp_tool_actions/MTA-bp0rkcq9/) | +| MCP tool action | POC Onboarding: Tag Mapping | [mcp_tool_actions/MTA-0689nxjy](../../mcp_tool_actions/MTA-0689nxjy/) | +| MCP tool action | POC Onboarding: LDAP Mapping | [mcp_tool_actions/MTA-e5qv0zay](../../mcp_tool_actions/MTA-e5qv0zay/) | +| MCP tool action | POC Onboarding: Verify LDAP | [mcp_tool_actions/MTA-kw8krevn](../../mcp_tool_actions/MTA-kw8krevn/) | +| MCP tool action | POC Onboarding: SMTP Settings | [mcp_tool_actions/MTA-89w58iux](../../mcp_tool_actions/MTA-89w58iux/) | +| MCP tool action | POC Onboarding: SMTP Test | [mcp_tool_actions/MTA-qab6r2gk](../../mcp_tool_actions/MTA-qab6r2gk/) | | MCP tool action | Sync From Source Control Repo | [mcp_tool_actions/MTA-543b19sa](../../mcp_tool_actions/MTA-543b19sa/) | | MCP tool action | Fetch Job Log | [mcp_tool_actions/MTA-8j9c0tb0](../../mcp_tool_actions/MTA-8j9c0tb0/) | | MCP tool action | Manage Blueprint Permissions | [mcp_tool_actions/MTA-ntmcnvv7](../../mcp_tool_actions/MTA-ntmcnvv7/) | diff --git a/packages/README.md b/packages/README.md index df0f23ff..78ef0675 100644 --- a/packages/README.md +++ b/packages/README.md @@ -9,6 +9,6 @@ Named sets of content that the Content Package Manager extension (`extensions/XU | Data Disk Blueprints | [PKG-t1k7drin](PKG-t1k7drin/README.md) | Deploys Windows Server and Oracle Linux VMs with order-time data disks through the Windows, Oracle Linux, and disk map blueprints, with the Post-Provision orchestration actions that attach the disk map's disks and prepare them inside the guest. | 1.0.0 | [Attach Data Disks from Disk Map](../orchestration_actions/HPA-n67skws4/README.md) (orchestration action), [Configure Data Disks from Disk Map (Windows)](../orchestration_actions/HPA-42uy9dyo/README.md) (orchestration action), [Configure Data Disks from Disk Map (Oracle Linux)](../orchestration_actions/HPA-4ptcwgg4/README.md) (orchestration action), [Windows Server with Data Disks](../blueprints/BP-9ph7xcok/README.md) (blueprint), [Oracle Linux Server with Data Disks](../blueprints/BP-rgdg9gho/README.md) (blueprint), [Server with Data Disks](../blueprints/BP-g9zwqjoa/README.md) (blueprint) | | Data Disks from a Disk Map | [PKG-zny1ynfs](PKG-zny1ynfs/README.md) | Adds order-time data disks to Windows Server and Oracle Linux VMs through an environment disk_map parameter, a form function that turns it into a disk table, and Post-Provision orchestration actions that attach the disks and prepare them inside the guest. | 1.0.0 | [Server with Data Disks](../blueprints/BP-g9zwqjoa/README.md) (blueprint), [Attach Data Disks from Disk Map](../orchestration_actions/HPA-n67skws4/README.md) (orchestration action), [Configure Data Disks from Disk Map (Oracle Linux)](../orchestration_actions/HPA-4ptcwgg4/README.md) (orchestration action), [Configure Data Disks from Disk Map (Windows)](../orchestration_actions/HPA-42uy9dyo/README.md) (orchestration action), [Data Disks](../parameters/CF-q3bexgap/README.md) (parameter) | | HCP Terraform | [PKG-0bo7vlxp](PKG-0bo7vlxp/README.md) | Provisions VMs and no-code modules through HCP Terraform in a workspace per deployment, optionally followed by Ansible job templates, with their day-2 actions, the form options webhook, and the UI extension that adds Terraform tabs. | 1.0.0 | [HCP Terraform VM](../blueprints/BP-b0qm83lh/README.md) (blueprint), [HCP Terraform No-Code Module](../blueprints/BP-00meiwwz/README.md) (blueprint), [HCP Terraform No-Code + Ansible](../blueprints/BP-uh9v24v3/README.md) (blueprint), [Form Options](../webhooks/IWH-yj93is5z/) (webhook), [HCP Terraform Workspace](../extensions/XUI-ax1sluwi/README.md) (UI extension) | -| POC Onboarding Toolkit | [PKG-8aaadefz](PKG-8aaadefz/README.md) | Installs the MCP tools the POC onboarding skill drives: appliance status with next steps, admin UI links, log and failure diagnosis, resource handler verification and location import, environment creation, order-form trimming, OS build import, Custom Server setup, the playbook text, the install step and POC item tracking, plus the repository sync, job log and blueprint permission tools they reuse. | 0.2.0 | [POC Onboarding: Install](../mcp_tool_actions/MTA-6zxrhdls/README.md) (MCP tool action), [POC Onboarding: Status](../mcp_tool_actions/MTA-1985b88g/README.md) (MCP tool action), [POC Onboarding: UI Link](../mcp_tool_actions/MTA-zpohocjt/README.md) (MCP tool action), [POC Onboarding: Recent Errors](../mcp_tool_actions/MTA-hwg74btd/README.md) (MCP tool action), [POC Onboarding: Failure Trace](../mcp_tool_actions/MTA-jzscq0mk/README.md) (MCP tool action), [POC Onboarding: Verify Resource Handler](../mcp_tool_actions/MTA-r5v1eblg/README.md) (MCP tool action), [POC Onboarding: Playbook](../mcp_tool_actions/MTA-92b836jb/README.md) (MCP tool action), [POC Onboarding: Set Item Status](../mcp_tool_actions/MTA-p72v9y76/README.md) (MCP tool action), [POC Onboarding: Handler Locations](../mcp_tool_actions/MTA-89dxppus/README.md) (MCP tool action), [POC Onboarding: Import Environments](../mcp_tool_actions/MTA-i6p4j2l7/README.md) (MCP tool action), [POC Onboarding: Trim Environment Order Form](../mcp_tool_actions/MTA-iyknuxox/README.md) (MCP tool action), [POC Onboarding: Import OS Build](../mcp_tool_actions/MTA-0dr8xi4i/README.md) (MCP tool action), [POC Onboarding: Configure Custom Server](../mcp_tool_actions/MTA-i1kmy5fd/README.md) (MCP tool action), [POC Onboarding: Remove Environment](../mcp_tool_actions/MTA-pz5o2gjl/README.md) (MCP tool action), [Sync From Source Control Repo](../mcp_tool_actions/MTA-543b19sa/README.md) (MCP tool action), [Fetch Job Log](../mcp_tool_actions/MTA-8j9c0tb0/README.md) (MCP tool action), [Manage Blueprint Permissions](../mcp_tool_actions/MTA-ntmcnvv7/README.md) (MCP tool action) | +| POC Onboarding Toolkit | [PKG-8aaadefz](PKG-8aaadefz/README.md) | Installs the MCP tools the POC onboarding skill drives: appliance status with next steps, admin UI links, log and failure diagnosis, resource handler verification and location import, environment creation, order-form trimming, OS build import, Custom Server setup, parameters, groups, users, action approval, tag and LDAP mappings, SMTP, the playbook text, the install step and POC item tracking, plus the repository sync, job log and blueprint permission tools they reuse. | 0.3.0 | [POC Onboarding: Install](../mcp_tool_actions/MTA-6zxrhdls/README.md) (MCP tool action), [POC Onboarding: Status](../mcp_tool_actions/MTA-1985b88g/README.md) (MCP tool action), [POC Onboarding: UI Link](../mcp_tool_actions/MTA-zpohocjt/README.md) (MCP tool action), [POC Onboarding: Recent Errors](../mcp_tool_actions/MTA-hwg74btd/README.md) (MCP tool action), [POC Onboarding: Failure Trace](../mcp_tool_actions/MTA-jzscq0mk/README.md) (MCP tool action), [POC Onboarding: Verify Resource Handler](../mcp_tool_actions/MTA-r5v1eblg/README.md) (MCP tool action), [POC Onboarding: Playbook](../mcp_tool_actions/MTA-92b836jb/README.md) (MCP tool action), [POC Onboarding: Set Item Status](../mcp_tool_actions/MTA-p72v9y76/README.md) (MCP tool action), [POC Onboarding: Handler Locations](../mcp_tool_actions/MTA-89dxppus/README.md) (MCP tool action), [POC Onboarding: Import Environments](../mcp_tool_actions/MTA-i6p4j2l7/README.md) (MCP tool action), [POC Onboarding: Trim Environment Order Form](../mcp_tool_actions/MTA-iyknuxox/README.md) (MCP tool action), [POC Onboarding: Import OS Build](../mcp_tool_actions/MTA-0dr8xi4i/README.md) (MCP tool action), [POC Onboarding: Configure Custom Server](../mcp_tool_actions/MTA-i1kmy5fd/README.md) (MCP tool action), [POC Onboarding: Remove Environment](../mcp_tool_actions/MTA-pz5o2gjl/README.md) (MCP tool action), [POC Onboarding: Parameter](../mcp_tool_actions/MTA-70aez9bm/README.md) (MCP tool action), [POC Onboarding: Group](../mcp_tool_actions/MTA-cpq7bvz4/README.md) (MCP tool action), [POC Onboarding: User](../mcp_tool_actions/MTA-tuzkb8h4/README.md) (MCP tool action), [POC Onboarding: Action Approval](../mcp_tool_actions/MTA-bp0rkcq9/README.md) (MCP tool action), [POC Onboarding: Tag Mapping](../mcp_tool_actions/MTA-0689nxjy/README.md) (MCP tool action), [POC Onboarding: LDAP Mapping](../mcp_tool_actions/MTA-e5qv0zay/README.md) (MCP tool action), [POC Onboarding: Verify LDAP](../mcp_tool_actions/MTA-kw8krevn/README.md) (MCP tool action), [POC Onboarding: SMTP Settings](../mcp_tool_actions/MTA-89w58iux/README.md) (MCP tool action), [POC Onboarding: SMTP Test](../mcp_tool_actions/MTA-qab6r2gk/README.md) (MCP tool action), [Sync From Source Control Repo](../mcp_tool_actions/MTA-543b19sa/README.md) (MCP tool action), [Fetch Job Log](../mcp_tool_actions/MTA-8j9c0tb0/README.md) (MCP tool action), [Manage Blueprint Permissions](../mcp_tool_actions/MTA-ntmcnvv7/README.md) (MCP tool action) | | Runbooks | [PKG-v20qv308](PKG-v20qv308/README.md) | Adds Run Task and Run Workflow, actions that run any Remote Script that fits a VM or an ordered workflow of CloudBolt actions on it, with base, example and installer task scripts, the Runbooks page for building workflows, base actions and file archives, and an example blueprint that runs a workflow. | 1.0.0 | [Runbook Task Template (Windows)](../plugins/OHK-lhm2916o/) (plugin), [Runbook Task Template (Linux)](../plugins/OHK-iub9a2jg/) (plugin), [Manage Windows Service](../plugins/OHK-01kmavro/) (plugin), [Manage Linux Service](../plugins/OHK-5yh12jiq/) (plugin), [Run Installer from File Archive (Linux)](../plugins/OHK-hgv6wp65/) (plugin), [Run Installer from File Archive (Windows)](../plugins/OHK-ow68kerl/) (plugin), [Runbook Tasks](../webhooks/IWH-cdf543g3/) (webhook), [Runbook Workflows](../webhooks/IWH-xjlrmvc8/) (webhook), [Run Task](../server_actions/SVA-4sin3s0q/README.md) (server action), [Run Workflow](../server_actions/SVA-j7rbsh39/README.md) (server action), [Runbooks](../extensions/XUI-jbm5ac9e/README.md) (UI extension), [VM with Workflow](../blueprints/BP-vy9ytey6/README.md) (blueprint) | | Windows AD Domain Join | [PKG-nf407lm5](PKG-nf407lm5/README.md) | Joins provisioned Windows servers to Active Directory in the OU picked from a type-ahead domain_ou parameter, taking the domain and its LDAP Utility from the OU, and deletes the computer object at decommission. | 1.0.0 | [Delete Windows Computer Object from AD](../orchestration_actions/HPA-q181uofy/README.md) (orchestration action), [Join Windows Server to AD Domain](../orchestration_actions/HPA-jjp1vlfi/README.md) (orchestration action), [Suggest Domain OUs](../orchestration_actions/HPA-0zcrvpwu/README.md) (orchestration action), [Domain OU](../parameters/CF-8pif9mbf/README.md) (parameter) | diff --git a/plugins/OHK-5zg1dkcr/OHK-5zg1dkcr_script.py b/plugins/OHK-5zg1dkcr/OHK-5zg1dkcr_script.py index 441a2514..da07bcc3 100644 --- a/plugins/OHK-5zg1dkcr/OHK-5zg1dkcr_script.py +++ b/plugins/OHK-5zg1dkcr/OHK-5zg1dkcr_script.py @@ -36,6 +36,15 @@ "onb_import_os_build", "onb_configure_custom_server", "onb_remove_environment", + "onb_parameter", + "onb_group", + "onb_user", + "onb_action_approval", + "onb_tag_mapping", + "onb_ldap_mapping", + "onb_verify_ldap", + "onb_smtp", + "onb_smtp_test", "sync_from_source_control_repo", "fetch_job_log", "manage_blueprint_permissions", diff --git a/plugins/OHK-8in52yhn/OHK-8in52yhn_metadata.json b/plugins/OHK-8in52yhn/OHK-8in52yhn_metadata.json new file mode 100644 index 00000000..a95f783a --- /dev/null +++ b/plugins/OHK-8in52yhn/OHK-8in52yhn_metadata.json @@ -0,0 +1,155 @@ +{ + "action_inputs": [ + { + "allow_multiple": false, + "available_all_servers": false, + "description": "Email address; notifications go here.", + "field_dependency_controlling_set": [], + "field_dependency_dependent_set": [], + "global_options": [], + "hide_if_default_value": true, + "id": "CF-pklgcz56", + "label": "Email (optional)", + "name": "onb_user_email", + "placeholder": "poc.requestor@example.com", + "relevant_osfamilies": [], + "required": false, + "show_as_attribute": false, + "show_on_servers": false, + "type": "STR", + "value_pattern_string": null + }, + { + "allow_multiple": false, + "available_all_servers": false, + "description": "First name.", + "field_dependency_controlling_set": [], + "field_dependency_dependent_set": [], + "global_options": [], + "hide_if_default_value": true, + "id": "CF-t0ajf6pr", + "label": "First name (optional)", + "name": "onb_user_first_name", + "placeholder": "POC", + "relevant_osfamilies": [], + "required": false, + "show_as_attribute": false, + "show_on_servers": false, + "type": "STR", + "value_pattern_string": null + }, + { + "allow_multiple": false, + "available_all_servers": false, + "description": "Group in which the roles are assigned.", + "field_dependency_controlling_set": [], + "field_dependency_dependent_set": [], + "global_options": [], + "hide_if_default_value": true, + "id": "CF-8w0b0b4r", + "label": "Group for the roles (GRP- id or name)", + "name": "onb_user_group", + "placeholder": "POC Group", + "relevant_osfamilies": [], + "required": false, + "show_as_attribute": false, + "show_on_servers": false, + "type": "STR", + "value_pattern_string": null + }, + { + "allow_multiple": false, + "available_all_servers": false, + "description": "Last name.", + "field_dependency_controlling_set": [], + "field_dependency_dependent_set": [], + "global_options": [], + "hide_if_default_value": true, + "id": "CF-ks6b36ti", + "label": "Last name (optional)", + "name": "onb_user_last_name", + "placeholder": "Requestor", + "relevant_osfamilies": [], + "required": false, + "show_as_attribute": false, + "show_on_servers": false, + "type": "STR", + "value_pattern_string": null + }, + { + "allow_multiple": false, + "available_all_servers": false, + "description": "Role names: requestor, approver, resource_admin, viewer, or a custom role.", + "field_dependency_controlling_set": [], + "field_dependency_dependent_set": [], + "global_options": [], + "hide_if_default_value": true, + "id": "CF-s638skbk", + "label": "Roles in that group, one per line", + "name": "onb_user_roles", + "placeholder": "requestor", + "relevant_osfamilies": [], + "required": false, + "show_as_attribute": false, + "show_on_servers": false, + "type": "TXT", + "value_pattern_string": null + }, + { + "allow_multiple": false, + "available_all_servers": false, + "description": "Grant or remove the super admin flag.", + "field_dependency_controlling_set": [], + "field_dependency_dependent_set": [], + "global_options": [], + "hide_if_default_value": true, + "id": "CF-vy39gbsv", + "label": "Super admin (true/false, optional)", + "name": "onb_user_super_admin", + "placeholder": "false", + "relevant_osfamilies": [], + "required": false, + "show_as_attribute": false, + "show_on_servers": false, + "type": "STR", + "value_pattern_string": null + }, + { + "allow_multiple": false, + "available_all_servers": false, + "description": "Login name of the user to create or update.", + "field_dependency_controlling_set": [], + "field_dependency_dependent_set": [], + "global_options": [], + "hide_if_default_value": true, + "id": "CF-f6i1lz2a", + "label": "Username", + "name": "onb_username", + "placeholder": "poc.requestor", + "relevant_osfamilies": [], + "required": true, + "show_as_attribute": false, + "show_on_servers": false, + "type": "STR", + "value_pattern_string": null + } + ], + "action_inputs_sequence": [ + "onb_username", + "onb_user_email", + "onb_user_first_name", + "onb_user_last_name", + "onb_user_group", + "onb_user_roles", + "onb_user_super_admin" + ], + "description": "Creates a local user with no usable password and assigns roles in a group, returning the edit link where the admin sets the password; an existing user only gets the roles.", + "id": "OHK-8in52yhn", + "max_retries": 0, + "name": "POC Onboarding: User", + "resource_technologies": [], + "script_filename": "OHK-8in52yhn_script.py", + "shared": false, + "target_os_families": [], + "type": "CloudBolt Plug-in" +} diff --git a/plugins/OHK-8in52yhn/OHK-8in52yhn_script.py b/plugins/OHK-8in52yhn/OHK-8in52yhn_script.py new file mode 100644 index 00000000..dc4b707f --- /dev/null +++ b/plugins/OHK-8in52yhn/OHK-8in52yhn_script.py @@ -0,0 +1,194 @@ +""" +POC Onboarding: User (MCP Tool Action plugin). + +Creates a local user for the POC (a requestor, an approver, a resource +admin) and assigns roles in a group, without ever handling a password: the +user is created with no usable password and the response carries the edit +link where the admin sets one. An existing user only gets the role +assignments. Covers the test plan's role tests (2.3.1, 2.3.4) and approval +tests (2.4.1, 2.4.2). Synchronous. Admin only. + +Every declared input is read from its rendered template token in +_read_inputs(); keep each one referenced that way or CloudBolt's token scan +deletes the input when the script is saved. +""" +import html +import re + +GLOBAL_ID_RE = re.compile(r"^[A-Z]{2,4}-[A-Za-z0-9]{6,16}$") +USERNAME_RE = re.compile(r"^[A-Za-z0-9@.+_-]{1,150}$") + + +def _text(value): + return html.unescape(value or "").strip() + + +def _lines(value): + return [line.strip() for line in re.split(r"[\r\n,]+", _text(value)) if line.strip()] + + +def _bool(value, default): + text = _text(value).lower() + if not text: + return default + return text in ("true", "1", "yes", "y", "on") + + +def _failure(message): + return {"status": "FAILURE", "output_message": "", "error_message": message, "outputs": {"error": message}} + + +def _success(message, outputs): + return {"status": "SUCCESS", "output_message": message, "error_message": "", "outputs": outputs} + + +def _caller(job, kwargs): + profile = kwargs.get("profile") + if profile is None and job is not None: + profile = job.owner + return profile + + +def _portal_url(): + try: + from portals.models import PortalConfig + + portal = PortalConfig.get_current_portal() + url = portal.site_url if portal else None + except Exception: + url = None + return (url or "").rstrip("/") + + +def _read_inputs(): + raw = { + "onb_username": """{{ onb_username }}""", + "onb_user_email": """{{ onb_user_email }}""", + "onb_user_first_name": """{{ onb_user_first_name }}""", + "onb_user_last_name": """{{ onb_user_last_name }}""", + "onb_user_group": """{{ onb_user_group }}""", + "onb_user_roles": """{{ onb_user_roles }}""", + "onb_user_super_admin": """{{ onb_user_super_admin }}""", + } + return { + "username": _text(raw["onb_username"]), + "email": _text(raw["onb_user_email"]), + "first_name": _text(raw["onb_user_first_name"]), + "last_name": _text(raw["onb_user_last_name"]), + "group": _text(raw["onb_user_group"]), + "roles": _lines(raw["onb_user_roles"]), + "super_admin": _text(raw["onb_user_super_admin"]), + } + + +def _resolve_group(ref): + from accounts.models import Group + + if GLOBAL_ID_RE.match(ref): + return Group.objects.filter(global_id=ref).first() + if ref.isdigit(): + return Group.objects.filter(id=int(ref)).first() + return Group.objects.filter(name__iexact=ref).first() + + +def _resolve_role(ref): + from accounts.models import Role + + role = Role.objects.filter(name__iexact=ref).first() or Role.objects.filter(label__iexact=ref).first() + if role is None: + role = Role.objects.filter(name__iexact=ref.replace(" ", "_")).first() + return role + + +def run(job, *args, **kwargs): + profile = _caller(job, kwargs) + if profile is None: + return _failure("No calling user profile was supplied. Run this tool through the MCP server as an authenticated user.") + if not profile.is_cbadmin: + return _failure("Only CloudBolt admins may manage users.") + + inputs = _read_inputs() + if not inputs["username"]: + return _failure("onb_username is required.") + if not USERNAME_RE.match(inputs["username"]): + return _failure("onb_username may contain letters, digits and @ . + - _ only.") + group = None + if inputs["group"]: + group = _resolve_group(inputs["group"]) + if group is None: + return _failure("No group matches '{}'.".format(inputs["group"])) + if inputs["roles"] and group is None: + return _failure("onb_user_roles needs onb_user_group: roles are assigned in a group.") + roles = [] + for ref in inputs["roles"]: + role = _resolve_role(ref) + if role is None: + from accounts.models import Role + + available = ", ".join(sorted(r.name for r in Role.objects.filter(assignable_to_users=True))) + return _failure("No role matches '{}'. Assignable roles: {}.".format(ref, available)) + roles.append(role) + + from django.contrib.auth.models import User + from accounts.models import GroupRoleMembership, UserProfile + + user = User.objects.filter(username__iexact=inputs["username"]).first() + created = False + changes = [] + if user is None: + user = User.objects.create_user( + username=inputs["username"], + email=inputs["email"] or "", + password=None, + first_name=inputs["first_name"], + last_name=inputs["last_name"], + ) + created = True + changes.append("created with no usable password") + else: + for field in ("email", "first_name", "last_name"): + value = inputs[field] + if value and getattr(user, field) != value: + setattr(user, field, value) + changes.append(field) + if changes: + user.save() + user_profile = UserProfile.objects.filter(user=user).first() + if user_profile is None: + user_profile = UserProfile.objects.create(user=user) + if inputs["super_admin"]: + wanted = _bool(inputs["super_admin"], False) + if bool(user_profile.super_admin) != wanted: + user_profile.super_admin = wanted + user_profile.save() + changes.append("super_admin={}".format(wanted)) + + memberships = [] + for role in roles: + _membership, made = GroupRoleMembership.objects.get_or_create(profile=user_profile, group=group, role=role) + memberships.append({"group": group.name, "role": role.name, "status": "added" if made else "already present"}) + if made: + changes.append("role {} in {}".format(role.name, group.name)) + + base = _portal_url() + outputs = { + "user": { + "id": user_profile.global_id, + "pk": user_profile.id, + "username": user.username, + "email": user.email, + "name": "{} {}".format(user.first_name, user.last_name).strip(), + "superAdmin": bool(user_profile.super_admin), + "created": created, + "url": base + "/users/{}/".format(user_profile.id), + "setPasswordUrl": base + "/users/{}/edit/".format(user_profile.id), + }, + "memberships": memberships, + "changes": changes, + "next": ( + "Send the admin setPasswordUrl to set the user's password in the UI (never in chat); the user has no " + "usable password until then. Then have the user log in to exercise the role." + ), + } + message = "User '{}' {}; {} role assignment(s).".format(user.username, "created" if created else "updated", len(memberships)) + return _success(message, outputs) diff --git a/plugins/OHK-b8c90uok/OHK-b8c90uok_metadata.json b/plugins/OHK-b8c90uok/OHK-b8c90uok_metadata.json new file mode 100644 index 00000000..775c35de --- /dev/null +++ b/plugins/OHK-b8c90uok/OHK-b8c90uok_metadata.json @@ -0,0 +1,75 @@ +{ + "action_inputs": [ + { + "allow_multiple": false, + "available_all_servers": false, + "description": "The handler, by global id or name.", + "field_dependency_controlling_set": [], + "field_dependency_dependent_set": [], + "global_options": [], + "hide_if_default_value": true, + "id": "CF-7f2q5v3a", + "label": "Resource handler (RH- id or name)", + "name": "onb_handler", + "placeholder": "RH-abc12345", + "relevant_osfamilies": [], + "required": true, + "show_as_attribute": false, + "show_on_servers": false, + "type": "STR", + "value_pattern_string": null + }, + { + "allow_multiple": false, + "available_all_servers": false, + "description": "add creates or updates, remove deletes, list reports.", + "field_dependency_controlling_set": [], + "field_dependency_dependent_set": [], + "global_options": [], + "hide_if_default_value": true, + "id": "CF-s8dzzyrc", + "label": "Action: add (default), list, remove", + "name": "onb_tag_action", + "placeholder": "add", + "relevant_osfamilies": [], + "required": false, + "show_as_attribute": false, + "show_on_servers": false, + "type": "STR", + "value_pattern_string": null + }, + { + "allow_multiple": false, + "available_all_servers": false, + "description": "Attribute or parameter name, equals sign, the tag name to write in the cloud.", + "field_dependency_controlling_set": [], + "field_dependency_dependent_set": [], + "global_options": [], + "hide_if_default_value": true, + "id": "CF-dqru0ezd", + "label": "Mappings attribute=TagName, one per line", + "name": "onb_tag_mappings", + "placeholder": "group=Group\nowner=Owner\nos_family=OSFamily", + "relevant_osfamilies": [], + "required": false, + "show_as_attribute": false, + "show_on_servers": false, + "type": "TXT", + "value_pattern_string": null + } + ], + "action_inputs_sequence": [ + "onb_handler", + "onb_tag_mappings", + "onb_tag_action" + ], + "description": "Lists, adds or removes a resource handler's mappings from CloudBolt attributes or parameters to cloud tags, giving cross-cloud tagging and the cost-center tag.", + "id": "OHK-b8c90uok", + "max_retries": 0, + "name": "POC Onboarding: Tag Mapping", + "resource_technologies": [], + "script_filename": "OHK-b8c90uok_script.py", + "shared": false, + "target_os_families": [], + "type": "CloudBolt Plug-in" +} diff --git a/plugins/OHK-b8c90uok/OHK-b8c90uok_script.py b/plugins/OHK-b8c90uok/OHK-b8c90uok_script.py new file mode 100644 index 00000000..d30401cb --- /dev/null +++ b/plugins/OHK-b8c90uok/OHK-b8c90uok_script.py @@ -0,0 +1,170 @@ +""" +POC Onboarding: Tag Mapping (MCP Tool Action plugin). + +Lists, adds or removes a resource handler's tag mappings: which CloudBolt +attribute (group, owner, os_family, environment, hostname, os_build, or +any parameter shown on servers) is written to which cloud tag. The same +mappings on two handlers give the test plan's cross-cloud tagging (1.2.2) +and the cost-center tag (2.5.1). Synchronous. Admin only. + +Every declared input is read from its rendered template token in +_read_inputs(); keep each one referenced that way or CloudBolt's token scan +deletes the input when the script is saved. +""" +import html +import re + +GLOBAL_ID_RE = re.compile(r"^[A-Z]{2,4}-[A-Za-z0-9]{6,16}$") +BUILTIN_ATTRIBUTES = ("environment", "group", "hostname", "os_build", "os_family", "owner") +ACTIONS = ("add", "list", "remove") + + +def _text(value): + return html.unescape(value or "").strip() + + +def _lines(value): + return [line.strip() for line in re.split(r"[\r\n]+", _text(value)) if line.strip()] + + +def _failure(message): + return {"status": "FAILURE", "output_message": "", "error_message": message, "outputs": {"error": message}} + + +def _success(message, outputs): + return {"status": "SUCCESS", "output_message": message, "error_message": "", "outputs": outputs} + + +def _caller(job, kwargs): + profile = kwargs.get("profile") + if profile is None and job is not None: + profile = job.owner + return profile + + +def _portal_url(): + try: + from portals.models import PortalConfig + + portal = PortalConfig.get_current_portal() + url = portal.site_url if portal else None + except Exception: + url = None + return (url or "").rstrip("/") + + +def _read_inputs(): + raw = { + "onb_handler": """{{ onb_handler }}""", + "onb_tag_mappings": """{{ onb_tag_mappings }}""", + "onb_tag_action": """{{ onb_tag_action }}""", + } + mappings = [] + for line in _lines(raw["onb_tag_mappings"]): + attribute, sep, label = line.partition("=") + mappings.append((attribute.strip(), label.strip() if sep else attribute.strip())) + return { + "handler": _text(raw["onb_handler"]), + "mappings": mappings, + "action": (_text(raw["onb_tag_action"]) or "add").lower(), + } + + +def _resolve_handler(ref): + from resourcehandlers.models import ResourceHandler + + handler = None + if GLOBAL_ID_RE.match(ref): + handler = ResourceHandler.objects.filter(global_id=ref).first() + elif ref.isdigit(): + handler = ResourceHandler.objects.filter(id=int(ref)).first() + if handler is None: + matches = list(ResourceHandler.objects.filter(name__iexact=ref)) + if len(matches) > 1: + return None, "Several resource handlers are named '{}'; pass the RH- global id.".format(ref) + handler = matches[0] if matches else None + if handler is None: + return None, "No resource handler matches '{}'.".format(ref) + return handler, None + + +def _valid_attribute(name): + if name in BUILTIN_ATTRIBUTES: + return True, None + from infrastructure.models import CustomField + + cf = CustomField.objects.filter(name=name).first() + if cf is None: + return False, "no parameter named '{}' exists; create it with onb_parameter first".format(name) + if not cf.show_on_servers: + return False, "parameter '{}' is not shown on servers; set onb_param_show_on_servers=true with onb_parameter".format(name) + return True, None + + +def _rows(handler, base): + from tags.models import TaggableAttribute + + rows = [] + for ta in TaggableAttribute.objects.filter(resource_handler=handler).order_by("attribute"): + rows.append({"id": ta.global_id, "attribute": ta.attribute, "tagName": ta.label, "bidirectionalSync": bool(ta.bidirectional_sync)}) + return rows + + +def run(job, *args, **kwargs): + profile = _caller(job, kwargs) + if profile is None: + return _failure("No calling user profile was supplied. Run this tool through the MCP server as an authenticated user.") + if not profile.is_cbadmin: + return _failure("Only CloudBolt admins may manage tag mappings.") + + inputs = _read_inputs() + if not inputs["handler"]: + return _failure("onb_handler is required: the handler's RH- global id or its name.") + if inputs["action"] not in ACTIONS: + return _failure("onb_tag_action must be one of: {}.".format(", ".join(ACTIONS))) + if inputs["action"] != "list" and not inputs["mappings"]: + return _failure("onb_tag_mappings is required: one attribute=Tag Name per line, for example group=Group or cost_center=CostCenter.") + handler, error = _resolve_handler(inputs["handler"]) + if error: + return _failure(error) + + from tags.models import TaggableAttribute + + base = _portal_url() + results = [] + for attribute, label in inputs["mappings"] if inputs["action"] != "list" else []: + if inputs["action"] == "add": + ok, why = _valid_attribute(attribute) + if not ok: + results.append({"attribute": attribute, "status": "failed", "error": why}) + continue + ta, created = TaggableAttribute.objects.get_or_create(resource_handler=handler, attribute=attribute, defaults={"label": label}) + changed = created + if not created and ta.label != label: + ta.label = label + changed = True + if created: + try: + ta.bidirectional_sync = ta.get_default_bidirectional_sync() + except Exception: + pass + if changed: + ta.save() + results.append({"attribute": attribute, "tagName": ta.label, "status": "created" if created else ("updated" if changed else "already present"), "id": ta.global_id}) + else: + deleted, _ = TaggableAttribute.objects.filter(resource_handler=handler, attribute=attribute).delete() + results.append({"attribute": attribute, "status": "removed" if deleted else "not present"}) + + outputs = { + "handler": {"id": handler.global_id, "name": handler.name, "url": base + "/admin/resourcehandlers/{}/".format(handler.id)}, + "action": inputs["action"], + "results": results, + "mappings": _rows(handler, base), + "attributes": {"builtIn": list(BUILTIN_ATTRIBUTES), "note": "Any parameter shown on servers can also be mapped."}, + "next": ( + "Repeat on the second handler with the same lines for cross-cloud consistency, then order a server and check " + "the tags in the cloud console. Tags are written at provisioning." + ), + } + message = "{}: {} mapping(s) after {}.".format(handler.name, len(outputs["mappings"]), inputs["action"]) + return _success(message, outputs) diff --git a/plugins/OHK-be18kqal/OHK-be18kqal_metadata.json b/plugins/OHK-be18kqal/OHK-be18kqal_metadata.json new file mode 100644 index 00000000..2edf3252 --- /dev/null +++ b/plugins/OHK-be18kqal/OHK-be18kqal_metadata.json @@ -0,0 +1,135 @@ +{ + "action_inputs": [ + { + "allow_multiple": false, + "available_all_servers": false, + "description": "Where test emails and admin notifications go.", + "field_dependency_controlling_set": [], + "field_dependency_dependent_set": [], + "global_options": [], + "hide_if_default_value": true, + "id": "CF-mevftz35", + "label": "CloudBolt admin email (optional)", + "name": "onb_smtp_admin_email", + "placeholder": "admin@example.com", + "relevant_osfamilies": [], + "required": false, + "show_as_attribute": false, + "show_on_servers": false, + "type": "STR", + "value_pattern_string": null + }, + { + "allow_multiple": false, + "available_all_servers": false, + "description": "Sender address on CloudBolt emails.", + "field_dependency_controlling_set": [], + "field_dependency_dependent_set": [], + "global_options": [], + "hide_if_default_value": true, + "id": "CF-zarx2wuk", + "label": "Default from address (optional)", + "name": "onb_smtp_from", + "placeholder": "cloudbolt@example.com", + "relevant_osfamilies": [], + "required": false, + "show_as_attribute": false, + "show_on_servers": false, + "type": "STR", + "value_pattern_string": null + }, + { + "allow_multiple": false, + "available_all_servers": false, + "description": "Relay hostname.", + "field_dependency_controlling_set": [], + "field_dependency_dependent_set": [], + "global_options": [], + "hide_if_default_value": true, + "id": "CF-ve1rinsv", + "label": "SMTP host (optional)", + "name": "onb_smtp_host", + "placeholder": "smtp.example.com", + "relevant_osfamilies": [], + "required": false, + "show_as_attribute": false, + "show_on_servers": false, + "type": "STR", + "value_pattern_string": null + }, + { + "allow_multiple": false, + "available_all_servers": false, + "description": "Relay port: 25, 465 or 587.", + "field_dependency_controlling_set": [], + "field_dependency_dependent_set": [], + "global_options": [], + "hide_if_default_value": true, + "id": "CF-0yefttoq", + "label": "SMTP port (optional)", + "name": "onb_smtp_port", + "placeholder": "587", + "relevant_osfamilies": [], + "required": false, + "show_as_attribute": false, + "show_on_servers": false, + "type": "INT", + "value_pattern_string": null + }, + { + "allow_multiple": false, + "available_all_servers": false, + "description": "STARTTLS on the connection.", + "field_dependency_controlling_set": [], + "field_dependency_dependent_set": [], + "global_options": [], + "hide_if_default_value": true, + "id": "CF-bnp2ws5y", + "label": "Use TLS (true/false, optional)", + "name": "onb_smtp_tls", + "placeholder": "true", + "relevant_osfamilies": [], + "required": false, + "show_as_attribute": false, + "show_on_servers": false, + "type": "STR", + "value_pattern_string": null + }, + { + "allow_multiple": false, + "available_all_servers": false, + "description": "Relay login; the password is entered in the UI.", + "field_dependency_controlling_set": [], + "field_dependency_dependent_set": [], + "global_options": [], + "hide_if_default_value": true, + "id": "CF-gskex0mo", + "label": "SMTP user (optional)", + "name": "onb_smtp_user", + "placeholder": "cloudbolt@example.com", + "relevant_osfamilies": [], + "required": false, + "show_as_attribute": false, + "show_on_servers": false, + "type": "STR", + "value_pattern_string": null + } + ], + "action_inputs_sequence": [ + "onb_smtp_host", + "onb_smtp_port", + "onb_smtp_user", + "onb_smtp_tls", + "onb_smtp_from", + "onb_smtp_admin_email" + ], + "description": "Sets the non-secret email settings and returns the link where the SMTP password is entered; with no inputs it reports the current settings.", + "id": "OHK-be18kqal", + "max_retries": 0, + "name": "POC Onboarding: SMTP Settings", + "resource_technologies": [], + "script_filename": "OHK-be18kqal_script.py", + "shared": false, + "target_os_families": [], + "type": "CloudBolt Plug-in" +} diff --git a/plugins/OHK-be18kqal/OHK-be18kqal_script.py b/plugins/OHK-be18kqal/OHK-be18kqal_script.py new file mode 100644 index 00000000..3f82e4df --- /dev/null +++ b/plugins/OHK-be18kqal/OHK-be18kqal_script.py @@ -0,0 +1,135 @@ +""" +POC Onboarding: SMTP Settings (MCP Tool Action plugin). + +Sets the non-secret email settings (host, port, user, TLS, from address, +CloudBolt admin email, email on order completion) and returns the link to +the Email Settings page where the SMTP password is entered. Never accepts +a password. With no inputs it reports the current settings. Synchronous. +Admin only. + +Every declared input is read from its rendered template token in +_read_inputs(); keep each one referenced that way or CloudBolt's token scan +deletes the input when the script is saved. +""" +import html + + +def _text(value): + return html.unescape(value or "").strip() + + +def _failure(message): + return {"status": "FAILURE", "output_message": "", "error_message": message, "outputs": {"error": message}} + + +def _success(message, outputs): + return {"status": "SUCCESS", "output_message": message, "error_message": "", "outputs": outputs} + + +def _caller(job, kwargs): + profile = kwargs.get("profile") + if profile is None and job is not None: + profile = job.owner + return profile + + +def _portal_url(): + try: + from portals.models import PortalConfig + + portal = PortalConfig.get_current_portal() + url = portal.site_url if portal else None + except Exception: + url = None + return (url or "").rstrip("/") + + +def _read_inputs(): + raw = { + "onb_smtp_host": """{{ onb_smtp_host }}""", + "onb_smtp_port": """{{ onb_smtp_port }}""", + "onb_smtp_user": """{{ onb_smtp_user }}""", + "onb_smtp_tls": """{{ onb_smtp_tls }}""", + "onb_smtp_from": """{{ onb_smtp_from }}""", + "onb_smtp_admin_email": """{{ onb_smtp_admin_email }}""", + } + return { + "host": _text(raw["onb_smtp_host"]), + "port": _text(raw["onb_smtp_port"]), + "user": _text(raw["onb_smtp_user"]), + "tls": _text(raw["onb_smtp_tls"]).lower(), + "from_address": _text(raw["onb_smtp_from"]), + "admin_email": _text(raw["onb_smtp_admin_email"]), + } + + +def run(job, *args, **kwargs): + profile = _caller(job, kwargs) + if profile is None: + return _failure("No calling user profile was supplied. Run this tool through the MCP server as an authenticated user.") + if not profile.is_cbadmin: + return _failure("Only CloudBolt admins may change email settings.") + + inputs = _read_inputs() + from utilities.models import GlobalPreferences + + gp = GlobalPreferences.get() + changes = [] + if inputs["host"]: + if gp.smtp_host != inputs["host"]: + gp.smtp_host = inputs["host"] + changes.append("smtp_host") + if inputs["port"]: + try: + port = int(inputs["port"]) + except ValueError: + return _failure("onb_smtp_port must be a number (25, 465 or 587 usually).") + if gp.smtp_port != port: + gp.smtp_port = port + changes.append("smtp_port") + if inputs["user"]: + if gp.smtp_user != inputs["user"]: + gp.smtp_user = inputs["user"] + changes.append("smtp_user") + if inputs["tls"] in ("true", "false", "1", "0", "yes", "no"): + wanted = inputs["tls"] in ("true", "1", "yes") + if bool(gp.smtp_use_tls) != wanted: + gp.smtp_use_tls = wanted + changes.append("smtp_use_tls={}".format(wanted)) + if inputs["from_address"]: + if gp.email_default_from_address != inputs["from_address"]: + gp.email_default_from_address = inputs["from_address"] + changes.append("email_default_from_address") + if inputs["admin_email"]: + if gp.cbadmin_email != inputs["admin_email"]: + gp.cbadmin_email = inputs["admin_email"] + changes.append("cbadmin_email") + if changes: + gp.save() + + base = _portal_url() + password_set = bool(gp.smtp_password) + outputs = { + "settings": { + "host": gp.smtp_host or None, + "port": gp.smtp_port or None, + "user": gp.smtp_user or None, + "useTls": bool(gp.smtp_use_tls), + "fromAddress": gp.email_default_from_address or None, + "adminEmail": gp.cbadmin_email or None, + "emailOnOrderCompletion": bool(getattr(gp, "email_on_order_completion", False)), + "passwordSet": password_set, + }, + "changes": changes, + "editUrl": base + "/admin/email_settings/edit/", + "testUrl": base + "/admin/email_test/", + "next": ( + "If the relay needs a password, send the user editUrl to enter it (never in chat). Then onb_smtp_test " + "sends a test message with the saved settings." + if not password_set else "Run onb_smtp_test to send a test message with the saved settings." + ), + } + if not gp.smtp_host: + outputs["note"] = "No SMTP host is set. Without a relay, record prerequisite P7 as not applicable; approval and completion emails will not be sent." + message = "SMTP {}; {} change(s).".format("configured for {}".format(gp.smtp_host) if gp.smtp_host else "not configured", len(changes)) + return _success(message, outputs) diff --git a/plugins/OHK-efxm9m2b/OHK-efxm9m2b_metadata.json b/plugins/OHK-efxm9m2b/OHK-efxm9m2b_metadata.json new file mode 100644 index 00000000..88e5427e --- /dev/null +++ b/plugins/OHK-efxm9m2b/OHK-efxm9m2b_metadata.json @@ -0,0 +1,135 @@ +{ + "action_inputs": [ + { + "allow_multiple": false, + "available_all_servers": false, + "description": "true lets members' orders run without an approver.", + "field_dependency_controlling_set": [], + "field_dependency_dependent_set": [], + "global_options": [], + "hide_if_default_value": true, + "id": "CF-eqxr2tbs", + "label": "Auto-approve orders (true/false, optional)", + "name": "onb_group_auto_approval", + "placeholder": "false", + "relevant_osfamilies": [], + "required": false, + "show_as_attribute": false, + "show_on_servers": false, + "type": "STR", + "value_pattern_string": null + }, + { + "allow_multiple": false, + "available_all_servers": false, + "description": "Group description.", + "field_dependency_controlling_set": [], + "field_dependency_dependent_set": [], + "global_options": [], + "hide_if_default_value": true, + "id": "CF-pevev6cc", + "label": "Description (optional)", + "name": "onb_group_description", + "placeholder": "Group used for the POC", + "relevant_osfamilies": [], + "required": false, + "show_as_attribute": false, + "show_on_servers": false, + "type": "STR", + "value_pattern_string": null + }, + { + "allow_multiple": false, + "available_all_servers": false, + "description": "Environments the group may order into.", + "field_dependency_controlling_set": [], + "field_dependency_dependent_set": [], + "global_options": [], + "hide_if_default_value": true, + "id": "CF-ukvtlqor", + "label": "Environments to entitle, one per line", + "name": "onb_group_environments", + "placeholder": "ENV-abc12345", + "relevant_osfamilies": [], + "required": false, + "show_as_attribute": false, + "show_on_servers": false, + "type": "TXT", + "value_pattern_string": null + }, + { + "allow_multiple": false, + "available_all_servers": false, + "description": "Name of the group to create or update.", + "field_dependency_controlling_set": [], + "field_dependency_dependent_set": [], + "global_options": [], + "hide_if_default_value": true, + "id": "CF-8ihd88x7", + "label": "Group name (or GRP- id to update)", + "name": "onb_group_name", + "placeholder": "POC Group", + "relevant_osfamilies": [], + "required": true, + "show_as_attribute": false, + "show_on_servers": false, + "type": "STR", + "value_pattern_string": null + }, + { + "allow_multiple": false, + "available_all_servers": false, + "description": "Parent group; the new group inherits its type.", + "field_dependency_controlling_set": [], + "field_dependency_dependent_set": [], + "global_options": [], + "hide_if_default_value": true, + "id": "CF-lykcbbom", + "label": "Parent group (GRP- id or name, optional)", + "name": "onb_group_parent", + "placeholder": "Admins", + "relevant_osfamilies": [], + "required": false, + "show_as_attribute": false, + "show_on_servers": false, + "type": "STR", + "value_pattern_string": null + }, + { + "allow_multiple": false, + "available_all_servers": false, + "description": "Maximum servers the group may own.", + "field_dependency_controlling_set": [], + "field_dependency_dependent_set": [], + "global_options": [], + "hide_if_default_value": true, + "id": "CF-vsijgqwu", + "label": "Server quota (number, -1 unlimited, optional)", + "name": "onb_group_quota_servers", + "placeholder": "3", + "relevant_osfamilies": [], + "required": false, + "show_as_attribute": false, + "show_on_servers": false, + "type": "INT", + "value_pattern_string": null + } + ], + "action_inputs_sequence": [ + "onb_group_name", + "onb_group_parent", + "onb_group_environments", + "onb_group_auto_approval", + "onb_group_quota_servers", + "onb_group_description" + ], + "description": "Creates or updates a group with its parent, entitled environments, auto-approval flag and server-count quota, covering the test plan's entitlement, approval and quota items.", + "id": "OHK-efxm9m2b", + "max_retries": 0, + "name": "POC Onboarding: Group", + "resource_technologies": [], + "script_filename": "OHK-efxm9m2b_script.py", + "shared": false, + "target_os_families": [], + "type": "CloudBolt Plug-in" +} diff --git a/plugins/OHK-efxm9m2b/OHK-efxm9m2b_script.py b/plugins/OHK-efxm9m2b/OHK-efxm9m2b_script.py new file mode 100644 index 00000000..c10b52cb --- /dev/null +++ b/plugins/OHK-efxm9m2b/OHK-efxm9m2b_script.py @@ -0,0 +1,225 @@ +""" +POC Onboarding: Group (MCP Tool Action plugin). + +Creates or updates a group for the POC: parent, entitled environments, +auto-approval and a server-count quota. Covers the test plan's group +entitlements (2.3.2, 2.3.3), approvals (2.4.1) and quota (2.5.2) without +the UI. Synchronous. Admin only. + +Every declared input is read from its rendered template token in +_read_inputs(); keep each one referenced that way or CloudBolt's token scan +deletes the input when the script is saved. +""" +import html +import re +from decimal import Decimal + +GLOBAL_ID_RE = re.compile(r"^[A-Z]{2,4}-[A-Za-z0-9]{6,16}$") + + +def _text(value): + return html.unescape(value or "").strip() + + +def _lines(value): + return [line.strip() for line in re.split(r"[\r\n,]+", _text(value)) if line.strip()] + + +def _int(value): + text = _text(value) + if not text: + return None + try: + return int(float(text)) + except ValueError: + return None + + +def _failure(message): + return {"status": "FAILURE", "output_message": "", "error_message": message, "outputs": {"error": message}} + + +def _success(message, outputs): + return {"status": "SUCCESS", "output_message": message, "error_message": "", "outputs": outputs} + + +def _caller(job, kwargs): + profile = kwargs.get("profile") + if profile is None and job is not None: + profile = job.owner + return profile + + +def _portal_url(): + try: + from portals.models import PortalConfig + + portal = PortalConfig.get_current_portal() + url = portal.site_url if portal else None + except Exception: + url = None + return (url or "").rstrip("/") + + +def _read_inputs(): + raw = { + "onb_group_name": """{{ onb_group_name }}""", + "onb_group_parent": """{{ onb_group_parent }}""", + "onb_group_environments": """{{ onb_group_environments }}""", + "onb_group_auto_approval": """{{ onb_group_auto_approval }}""", + "onb_group_quota_servers": """{{ onb_group_quota_servers }}""", + "onb_group_description": """{{ onb_group_description }}""", + } + return { + "name": _text(raw["onb_group_name"]), + "parent": _text(raw["onb_group_parent"]), + "environments": _lines(raw["onb_group_environments"]), + "auto_approval": _text(raw["onb_group_auto_approval"]).lower(), + "quota_servers": _text(raw["onb_group_quota_servers"]), + "description": _text(raw["onb_group_description"]), + } + + +def _resolve_group(ref): + from accounts.models import Group + + if GLOBAL_ID_RE.match(ref): + return Group.objects.filter(global_id=ref).first() + if ref.isdigit(): + return Group.objects.filter(id=int(ref)).first() + return Group.objects.filter(name__iexact=ref).first() + + +def _resolve_env(ref): + from infrastructure.models import Environment + + if GLOBAL_ID_RE.match(ref): + return Environment.objects.filter(global_id=ref).first() + if ref.isdigit(): + return Environment.objects.filter(id=int(ref)).first() + return Environment.objects.filter(name__iexact=ref).first() + + +def _default_group_type(parent): + from accounts.models import Group, GroupType + + if parent is not None and parent.type_id: + return parent.type + counts = {} + for group in Group.objects.exclude(name="Unassigned"): + counts[group.type_id] = counts.get(group.type_id, 0) + 1 + if counts: + best = max(counts, key=counts.get) + gtype = GroupType.objects.filter(id=best).first() + if gtype is not None: + return gtype + gtype, _ = GroupType.objects.get_or_create(group_type="Organization") + return gtype + + +def _set_quota(group, servers): + from quota.models import NO_LIMIT + + item = group.quota_set.vm_cnt + if item is None: + return "no server-count quota item on this group" + new_limit = NO_LIMIT if servers < 0 else Decimal(servers) + item.change_limit(new_limit) + item.save() + group.quota_set.save() + return "unlimited" if servers < 0 else str(servers) + + +def run(job, *args, **kwargs): + profile = _caller(job, kwargs) + if profile is None: + return _failure("No calling user profile was supplied. Run this tool through the MCP server as an authenticated user.") + if not profile.is_cbadmin: + return _failure("Only CloudBolt admins may manage groups.") + + inputs = _read_inputs() + if not inputs["name"]: + return _failure("onb_group_name is required.") + parent = None + if inputs["parent"]: + parent = _resolve_group(inputs["parent"]) + if parent is None: + return _failure("No group matches the parent '{}'.".format(inputs["parent"])) + envs = [] + for ref in inputs["environments"]: + env = _resolve_env(ref) + if env is None: + return _failure("No environment matches '{}'.".format(ref)) + envs.append(env) + quota_servers = _int(inputs["quota_servers"]) if inputs["quota_servers"] else None + if inputs["quota_servers"] and quota_servers is None: + return _failure("onb_group_quota_servers must be a whole number (or -1 for unlimited).") + + from accounts.models import Group + + group = _resolve_group(inputs["name"]) if not GLOBAL_ID_RE.match(inputs["name"]) else _resolve_group(inputs["name"]) + created = False + changes = [] + if group is None: + group = Group(name=inputs["name"], type=_default_group_type(parent), parent=parent, description=inputs["description"]) + group.save() + created = True + changes.append("created") + else: + if parent is not None and group.parent_id != parent.id: + group.parent = parent + changes.append("parent") + if inputs["description"] and group.description != inputs["description"]: + group.description = inputs["description"] + changes.append("description") + if inputs["auto_approval"] in ("true", "false", "1", "0", "yes", "no"): + wanted = inputs["auto_approval"] in ("true", "1", "yes") + if bool(group.allow_auto_approval) != wanted: + group.allow_auto_approval = wanted + changes.append("allow_auto_approval={}".format(wanted)) + if changes and not created: + group.save() + elif changes and created and len(changes) > 1: + group.save() + + env_rows = [] + for env in envs: + if not group.environments.filter(id=env.id).exists(): + group.environments.add(env) + env_rows.append({"id": env.global_id, "name": env.name, "status": "entitled"}) + changes.append("environment '{}' entitled".format(env.name)) + else: + env_rows.append({"id": env.global_id, "name": env.name, "status": "already entitled"}) + + quota_note = None + if quota_servers is not None: + try: + quota_note = _set_quota(group, quota_servers) + changes.append("server quota {}".format(quota_note)) + except Exception as exc: + quota_note = "failed: {}: {}".format(type(exc).__name__, str(exc)[:300]) + + base = _portal_url() + outputs = { + "group": { + "id": group.global_id, + "pk": group.id, + "name": group.name, + "type": group.type.group_type if group.type_id else None, + "parent": group.parent.name if group.parent_id else None, + "allowAutoApproval": bool(group.allow_auto_approval), + "created": created, + "url": base + "/groups/{}/".format(group.id), + "quotasUrl": base + "/groups/{}/quotas/edit/".format(group.id), + }, + "environments": env_rows, + "serverQuota": quota_note, + "changes": changes, + "next": ( + "Add users and roles with onb_user. Entitle the group to blueprints with manage_blueprint_permissions " + "when the blueprint is not open to every group. Orders from members without the approver role pause " + "for approval unless allowAutoApproval is true." + ), + } + message = "Group '{}' {}; {} change(s).".format(group.name, "created" if created else "updated", len(changes)) + return _success(message, outputs) diff --git a/plugins/OHK-f6kqrklx/OHK-f6kqrklx_metadata.json b/plugins/OHK-f6kqrklx/OHK-f6kqrklx_metadata.json new file mode 100644 index 00000000..564dac6f --- /dev/null +++ b/plugins/OHK-f6kqrklx/OHK-f6kqrklx_metadata.json @@ -0,0 +1,215 @@ +{ + "action_inputs": [ + { + "allow_multiple": false, + "available_all_servers": false, + "description": "Help text shown under the field.", + "field_dependency_controlling_set": [], + "field_dependency_dependent_set": [], + "global_options": [], + "hide_if_default_value": true, + "id": "CF-ga0mjyn1", + "label": "Description (optional)", + "name": "onb_param_description", + "placeholder": "Tier of the application this server belongs to", + "relevant_osfamilies": [], + "required": false, + "show_as_attribute": false, + "show_on_servers": false, + "type": "STR", + "value_pattern_string": null + }, + { + "allow_multiple": false, + "available_all_servers": false, + "description": "Display label; defaults to the name in title case.", + "field_dependency_controlling_set": [], + "field_dependency_dependent_set": [], + "global_options": [], + "hide_if_default_value": true, + "id": "CF-tokwenv4", + "label": "Label shown on forms (optional)", + "name": "onb_param_label", + "placeholder": "Application Tier", + "relevant_osfamilies": [], + "required": false, + "show_as_attribute": false, + "show_on_servers": false, + "type": "STR", + "value_pattern_string": null + }, + { + "allow_multiple": false, + "available_all_servers": false, + "description": "Upper bound on the targets; for DT parameters the number of days from today.", + "field_dependency_controlling_set": [], + "field_dependency_dependent_set": [], + "global_options": [], + "hide_if_default_value": true, + "id": "CF-sj63qmjx", + "label": "Maximum (number, or days for a date; optional)", + "name": "onb_param_max", + "placeholder": "30", + "relevant_osfamilies": [], + "required": false, + "show_as_attribute": false, + "show_on_servers": false, + "type": "INT", + "value_pattern_string": null + }, + { + "allow_multiple": false, + "available_all_servers": false, + "description": "Lower bound on the targets.", + "field_dependency_controlling_set": [], + "field_dependency_dependent_set": [], + "global_options": [], + "hide_if_default_value": true, + "id": "CF-0j1pwe7n", + "label": "Minimum (number, or days for a date; optional)", + "name": "onb_param_min", + "placeholder": "1", + "relevant_osfamilies": [], + "required": false, + "show_as_attribute": false, + "show_on_servers": false, + "type": "INT", + "value_pattern_string": null + }, + { + "allow_multiple": false, + "available_all_servers": false, + "description": "Internal name; lowercase letters, digits and underscores.", + "field_dependency_controlling_set": [], + "field_dependency_dependent_set": [], + "global_options": [], + "hide_if_default_value": true, + "id": "CF-09lnu50c", + "label": "Parameter name (internal, snake_case)", + "name": "onb_param_name", + "placeholder": "application_tier", + "relevant_osfamilies": [], + "required": true, + "show_as_attribute": false, + "show_on_servers": false, + "type": "STR", + "value_pattern_string": null + }, + { + "allow_multiple": false, + "available_all_servers": false, + "description": "Choices offered on the targets; replaces the current options there.", + "field_dependency_controlling_set": [], + "field_dependency_dependent_set": [], + "global_options": [], + "hide_if_default_value": true, + "id": "CF-6lyylf4j", + "label": "Options, one per line (optional)", + "name": "onb_param_options", + "placeholder": "web\napp\ndb", + "relevant_osfamilies": [], + "required": false, + "show_as_attribute": false, + "show_on_servers": false, + "type": "TXT", + "value_pattern_string": null + }, + { + "allow_multiple": false, + "available_all_servers": false, + "description": "Whether a value is mandatory on the targets.", + "field_dependency_controlling_set": [], + "field_dependency_dependent_set": [], + "global_options": [], + "hide_if_default_value": true, + "id": "CF-7eu4rq79", + "label": "Required (true/false, optional)", + "name": "onb_param_required", + "placeholder": "false", + "relevant_osfamilies": [], + "required": false, + "show_as_attribute": false, + "show_on_servers": false, + "type": "STR", + "value_pattern_string": null + }, + { + "allow_multiple": false, + "available_all_servers": false, + "description": "Whether the value appears on the server and can be mapped to a cloud tag.", + "field_dependency_controlling_set": [], + "field_dependency_dependent_set": [], + "global_options": [], + "hide_if_default_value": true, + "id": "CF-ch14mkji", + "label": "Show on servers (true/false, optional)", + "name": "onb_param_show_on_servers", + "placeholder": "true", + "relevant_osfamilies": [], + "required": false, + "show_as_attribute": false, + "show_on_servers": false, + "type": "STR", + "value_pattern_string": null + }, + { + "allow_multiple": false, + "available_all_servers": false, + "description": "Environments and groups to attach the parameter to.", + "field_dependency_controlling_set": [], + "field_dependency_dependent_set": [], + "global_options": [], + "hide_if_default_value": true, + "id": "CF-yuet9kg1", + "label": "Targets: ENV-/GRP- ids or names, one per line", + "name": "onb_param_targets", + "placeholder": "ENV-abc12345\nPOC Group", + "relevant_osfamilies": [], + "required": false, + "show_as_attribute": false, + "show_on_servers": false, + "type": "TXT", + "value_pattern_string": null + }, + { + "allow_multiple": false, + "available_all_servers": false, + "description": "Type for a new parameter; an existing parameter keeps its type.", + "field_dependency_controlling_set": [], + "field_dependency_dependent_set": [], + "global_options": [], + "hide_if_default_value": true, + "id": "CF-lfs5ydpn", + "label": "Type: STR, INT, DEC, BOOL, TXT, DT (optional)", + "name": "onb_param_type", + "placeholder": "STR", + "relevant_osfamilies": [], + "required": false, + "show_as_attribute": false, + "show_on_servers": false, + "type": "STR", + "value_pattern_string": null + } + ], + "action_inputs_sequence": [ + "onb_param_name", + "onb_param_label", + "onb_param_type", + "onb_param_options", + "onb_param_required", + "onb_param_targets", + "onb_param_description", + "onb_param_max", + "onb_param_min", + "onb_param_show_on_servers" + ], + "description": "Creates or updates a parameter and attaches it to environments and groups with options and constraints, covering the test plan's user-defined parameter, cost-center tag source, power schedule and expiration date with a maximum lease.", + "id": "OHK-f6kqrklx", + "max_retries": 0, + "name": "POC Onboarding: Parameter", + "resource_technologies": [], + "script_filename": "OHK-f6kqrklx_script.py", + "shared": false, + "target_os_families": [], + "type": "CloudBolt Plug-in" +} diff --git a/plugins/OHK-f6kqrklx/OHK-f6kqrklx_script.py b/plugins/OHK-f6kqrklx/OHK-f6kqrklx_script.py new file mode 100644 index 00000000..93153951 --- /dev/null +++ b/plugins/OHK-f6kqrklx/OHK-f6kqrklx_script.py @@ -0,0 +1,267 @@ +""" +POC Onboarding: Parameter (MCP Tool Action plugin). + +Creates or updates a parameter (CustomField) and attaches it to +environments and groups with options and constraints, the way the +Parameters admin page and an environment's Parameters tab do. Covers the +test plan's user-defined parameter (1.1.2), cost center tag source (2.5.1), +power schedule (3.1.1) and expiration date with a maximum lease (3.1.2). +Synchronous. Admin only. + +Every declared input is read from its rendered template token in +_read_inputs(); keep each one referenced that way or CloudBolt's token scan +deletes the input when the script is saved. +""" +import html +import re + +GLOBAL_ID_RE = re.compile(r"^[A-Z]{2,4}-[A-Za-z0-9]{6,16}$") +NAME_RE = re.compile(r"^[a-z][a-z0-9_]{0,99}$") +TYPES = ("STR", "INT", "DEC", "BOOL", "TXT", "DT", "DTM", "IP", "URL", "EMAIL", "PWD", "CODE", "ETXT") +MAX_OPTIONS = 100 + + +def _text(value): + return html.unescape(value or "").strip() + + +def _lines(value): + return [line.strip() for line in re.split(r"[\r\n]+", _text(value)) if line.strip()] + + +def _bool(value, default): + text = _text(value).lower() + if not text: + return default + return text in ("true", "1", "yes", "y", "on") + + +def _int(value): + text = _text(value) + if not text: + return None + try: + return int(float(text)) + except ValueError: + return None + + +def _failure(message): + return {"status": "FAILURE", "output_message": "", "error_message": message, "outputs": {"error": message}} + + +def _success(message, outputs): + return {"status": "SUCCESS", "output_message": message, "error_message": "", "outputs": outputs} + + +def _caller(job, kwargs): + profile = kwargs.get("profile") + if profile is None and job is not None: + profile = job.owner + return profile + + +def _portal_url(): + try: + from portals.models import PortalConfig + + portal = PortalConfig.get_current_portal() + url = portal.site_url if portal else None + except Exception: + url = None + return (url or "").rstrip("/") + + +def _read_inputs(): + raw = { + "onb_param_name": """{{ onb_param_name }}""", + "onb_param_label": """{{ onb_param_label }}""", + "onb_param_type": """{{ onb_param_type }}""", + "onb_param_options": """{{ onb_param_options }}""", + "onb_param_required": """{{ onb_param_required }}""", + "onb_param_targets": """{{ onb_param_targets }}""", + "onb_param_description": """{{ onb_param_description }}""", + "onb_param_max": """{{ onb_param_max }}""", + "onb_param_min": """{{ onb_param_min }}""", + "onb_param_show_on_servers": """{{ onb_param_show_on_servers }}""", + } + return { + "name": _text(raw["onb_param_name"]), + "label": _text(raw["onb_param_label"]), + "type": (_text(raw["onb_param_type"]) or "").upper(), + "options": _lines(raw["onb_param_options"])[:MAX_OPTIONS], + "required": _text(raw["onb_param_required"]), + "targets": _lines(raw["onb_param_targets"]), + "description": _text(raw["onb_param_description"]), + "maximum": _int(raw["onb_param_max"]), + "minimum": _int(raw["onb_param_min"]), + "show_on_servers": _text(raw["onb_param_show_on_servers"]), + } + + +def _resolve_target(ref): + from accounts.models import Group + from infrastructure.models import Environment + + if ref.upper().startswith("ENV-"): + obj = Environment.objects.filter(global_id=ref).first() + return ("environment", obj) if obj else (None, None) + if ref.upper().startswith("GRP-"): + obj = Group.objects.filter(global_id=ref).first() + return ("group", obj) if obj else (None, None) + env = Environment.objects.filter(name__iexact=ref).first() + if env is not None: + return "environment", env + group = Group.objects.filter(name__iexact=ref).first() + if group is not None: + return "group", group + return None, None + + +def _coerce(cf, option): + if cf.type in ("INT",): + return int(float(option)) + if cf.type in ("DEC",): + return float(option) + if cf.type == "BOOL": + return option.strip().lower() in ("true", "1", "yes", "y", "on") + return option + + +def _attach_group(group, cf, options): + from orders.models import CustomFieldValue + + group.custom_fields.add(cf) + if options: + for cfv in group.custom_field_options.filter(field=cf): + group.custom_field_options.remove(cfv) + for option in options: + cfv, _ = CustomFieldValue.objects.get_or_create(field=cf, value=_coerce(cf, option)) + group.custom_field_options.add(cfv) + + +def _constraints(cf, inputs, env=None, group=None): + if inputs["maximum"] is None and inputs["minimum"] is None and not inputs["required"]: + return None + from behavior_mapping.models import CustomFieldMapping + + cfm, _ = CustomFieldMapping.objects.get_or_create( + custom_field=cf, environment=env, group=group, blueprint=None, service_item=None, + network=None, resource_handler=None, os_family=None, + ) + changed = [] + if inputs["maximum"] is not None: + cfm.maximum = inputs["maximum"] + changed.append("maximum={}".format(inputs["maximum"])) + if inputs["minimum"] is not None: + cfm.minimum = inputs["minimum"] + changed.append("minimum={}".format(inputs["minimum"])) + if inputs["required"]: + cfm.required = _bool(inputs["required"], False) + changed.append("required={}".format(cfm.required)) + cfm.save() + return changed + + +def run(job, *args, **kwargs): + profile = _caller(job, kwargs) + if profile is None: + return _failure("No calling user profile was supplied. Run this tool through the MCP server as an authenticated user.") + if not profile.is_cbadmin: + return _failure("Only CloudBolt admins may manage parameters.") + + inputs = _read_inputs() + if not inputs["name"]: + return _failure("onb_param_name is required: the parameter's internal name, for example application_tier.") + if not NAME_RE.match(inputs["name"]): + return _failure("onb_param_name must be lowercase letters, digits and underscores, starting with a letter.") + if inputs["type"] and inputs["type"] not in TYPES: + return _failure("onb_param_type must be one of: {}.".format(", ".join(TYPES))) + + from infrastructure.models import CustomField + + cf = CustomField.objects.filter(name=inputs["name"]).first() + created = False + changes = [] + if cf is None: + cf = CustomField.objects.create( + name=inputs["name"], + label=inputs["label"] or inputs["name"].replace("_", " ").title(), + type=inputs["type"] or "STR", + description=inputs["description"], + required=_bool(inputs["required"], False), + show_on_servers=_bool(inputs["show_on_servers"], True), + show_as_attribute=True, + ) + created = True + changes.append("created") + else: + if inputs["label"] and cf.label != inputs["label"]: + cf.label = inputs["label"] + changes.append("label") + if inputs["description"] and cf.description != inputs["description"]: + cf.description = inputs["description"] + changes.append("description") + if inputs["show_on_servers"]: + wanted = _bool(inputs["show_on_servers"], True) + if bool(cf.show_on_servers) != wanted: + cf.show_on_servers = wanted + changes.append("show_on_servers") + if inputs["type"] and cf.type != inputs["type"]: + changes.append("type left as {} (changing a parameter's type is a UI operation)".format(cf.type)) + if changes: + cf.save() + + base = _portal_url() + attached = [] + for ref in inputs["targets"]: + kind, obj = _resolve_target(ref) + if obj is None: + attached.append({"target": ref, "status": "failed", "error": "no environment or group matches"}) + continue + try: + if kind == "environment": + if inputs["options"]: + obj.replace_cf_options(cf.name, [_coerce(cf, o) for o in inputs["options"]]) + else: + obj.custom_fields.add(cf) + constraints = _constraints(cf, inputs, env=obj) + url = base + "/environments/{}/#tab-parameters".format(obj.id) + else: + _attach_group(obj, cf, inputs["options"]) + constraints = _constraints(cf, inputs, group=obj) + url = base + "/groups/{}/".format(obj.id) + attached.append( + {"target": ref, "kind": kind, "id": obj.global_id, "name": obj.name, "status": "attached", + "options": inputs["options"], "constraints": constraints, "url": url} + ) + except Exception as exc: + attached.append({"target": ref, "kind": kind, "status": "failed", "error": "{}: {}".format(type(exc).__name__, str(exc)[:400])}) + + outputs = { + "parameter": { + "id": getattr(cf, "global_id", None), + "name": cf.name, + "label": cf.label, + "type": cf.type, + "required": bool(cf.required), + "showOnServers": bool(cf.show_on_servers), + "created": created, + "changes": changes, + "url": base + "/admin/customfields/{}/".format(cf.id), + }, + "attached": attached, + } + notes = [] + if cf.type in ("DT", "DTM") and inputs["maximum"] is not None: + notes.append("For a date parameter the maximum is the number of days from today a user may pick.") + if cf.name == "expiration_date": + notes.append("Expiration needs the 'Expire Servers' recurring job enabled (Admin > Recurring Jobs) to act on the date.") + if cf.name == "power_schedule": + notes.append("Servers ordered with a schedule are powered by the scheduler every 15 minutes; set_server_power_schedule reads it back.") + if inputs["options"] and not inputs["targets"]: + notes.append("Options apply per environment or group; pass onb_param_targets to attach them.") + if notes: + outputs["notes"] = notes + message = "Parameter '{}' {}; attached to {} target(s).".format(cf.name, "created" if created else "updated", sum(1 for a in attached if a["status"] == "attached")) + return _success(message, outputs) diff --git a/plugins/OHK-j60flmb3/OHK-j60flmb3_script.py b/plugins/OHK-j60flmb3/OHK-j60flmb3_script.py index e0e3dd48..b2573fc8 100644 --- a/plugins/OHK-j60flmb3/OHK-j60flmb3_script.py +++ b/plugins/OHK-j60flmb3/OHK-j60flmb3_script.py @@ -38,6 +38,15 @@ "onb_trim_environment": True, "onb_configure_custom_server": True, "onb_remove_environment": True, + "onb_parameter": True, + "onb_group": True, + "onb_user": True, + "onb_action_approval": True, + "onb_tag_mapping": True, + "onb_ldap_mapping": True, + "onb_verify_ldap": False, + "onb_smtp": True, + "onb_smtp_test": False, # Reused testing tools that ship in the same package. "sync_from_source_control_repo": True, "fetch_job_log": True, diff --git a/plugins/OHK-j82f4ibp/OHK-j82f4ibp_metadata.json b/plugins/OHK-j82f4ibp/OHK-j82f4ibp_metadata.json new file mode 100644 index 00000000..f8d438e3 --- /dev/null +++ b/plugins/OHK-j82f4ibp/OHK-j82f4ibp_metadata.json @@ -0,0 +1,35 @@ +{ + "action_inputs": [ + { + "allow_multiple": false, + "available_all_servers": false, + "description": "Which LDAP utility; optional when only one exists.", + "field_dependency_controlling_set": [], + "field_dependency_dependent_set": [], + "global_options": [], + "hide_if_default_value": true, + "id": "CF-8sxx5xbq", + "label": "LDAP utility (IDD- id, pk or name; optional)", + "name": "onb_ldap", + "placeholder": "IDD-abc12345", + "relevant_osfamilies": [], + "required": false, + "show_as_attribute": false, + "show_on_servers": false, + "type": "STR", + "value_pattern_string": null + } + ], + "action_inputs_sequence": [ + "onb_ldap" + ], + "description": "Runs an LDAP utility's Verify Connection and returns the real bind or search error with a hint and the links to fix it.", + "id": "OHK-j82f4ibp", + "max_retries": 0, + "name": "POC Onboarding: Verify LDAP", + "resource_technologies": [], + "script_filename": "OHK-j82f4ibp_script.py", + "shared": false, + "target_os_families": [], + "type": "CloudBolt Plug-in" +} diff --git a/plugins/OHK-j82f4ibp/OHK-j82f4ibp_script.py b/plugins/OHK-j82f4ibp/OHK-j82f4ibp_script.py new file mode 100644 index 00000000..4777801a --- /dev/null +++ b/plugins/OHK-j82f4ibp/OHK-j82f4ibp_script.py @@ -0,0 +1,120 @@ +""" +POC Onboarding: Verify LDAP (MCP Tool Action plugin). + +Runs an LDAP utility's Verify Connection (bind and search) and returns the +real error text with a hint, the way onb_verify_resource_handler does for +a cloud handler. Runs as a job because it contacts the directory. Admin +only. + +Every declared input is read from its rendered template token in +_read_inputs(); keep each one referenced that way or CloudBolt's token scan +deletes the input when the script is saved. +""" +import html +import re + +HINTS = [ + (re.compile(r"INVALID_CREDENTIALS|invalidCredentials|49", re.I), "The directory rejected the bind: check the service account DN or UPN and re-enter its password on the LDAP utility's edit page."), + (re.compile(r"SERVER_DOWN|Can't contact LDAP server|timed out|Connection refused", re.I), "The appliance cannot reach the directory server on the chosen port: check the host, port (389 for LDAP, 636 for LDAPS) and firewall."), + (re.compile(r"CERTIFICATE|certificate verify failed|SSL", re.I), "LDAPS certificate verification failed: add the domain CA under Admin > SSL Certificates or use LDAP on 389 for the POC."), + (re.compile(r"NO_SUCH_OBJECT|noSuchObject", re.I), "The base DN does not exist; copy it from the directory (for example DC=example,DC=com)."), + (re.compile(r"Name or service not known|getaddrinfo", re.I), "DNS on the appliance cannot resolve the directory hostname."), + (re.compile(r"STRONG_AUTH_REQUIRED|confidentiality required", re.I), "The directory requires LDAPS or signing; switch the utility to ldaps on 636."), +] + + +def _text(value): + return html.unescape(value or "").strip() + + +def _failure(message): + return {"status": "FAILURE", "output_message": "", "error_message": message, "outputs": {"error": message}} + + +def _success(message, outputs): + return {"status": "SUCCESS", "output_message": message, "error_message": "", "outputs": outputs} + + +def _caller(job, kwargs): + profile = kwargs.get("profile") + if profile is None and job is not None: + profile = job.owner + return profile + + +def _portal_url(): + try: + from portals.models import PortalConfig + + portal = PortalConfig.get_current_portal() + url = portal.site_url if portal else None + except Exception: + url = None + return (url or "").rstrip("/") + + +def _read_inputs(): + raw = {"onb_ldap": """{{ onb_ldap }}"""} + return {"ldap": _text(raw["onb_ldap"])} + + +def _resolve_ldap(ref): + from utilities.models import LDAPUtility + + utilities = list(LDAPUtility.objects.all().order_by("id")) + if not utilities: + return None, "No LDAP utility exists yet; create one in the UI (Admin > LDAP Utilities > Add)." + if not ref: + if len(utilities) == 1: + return utilities[0], None + return None, "Several LDAP utilities exist; pass onb_ldap: {}.".format( + ", ".join("{} ({})".format(getattr(u, "global_id", u.id), getattr(u, "name", None) or u.ip) for u in utilities) + ) + for utility in utilities: + if ref in (getattr(utility, "global_id", None), str(utility.id)): + return utility, None + for attr in ("name", "ldap_domain", "ip"): + if (getattr(utility, attr, None) or "").lower() == ref.lower(): + return utility, None + return None, "No LDAP utility matches '{}'.".format(ref) + + +def run(job, *args, **kwargs): + profile = _caller(job, kwargs) + if profile is None: + return _failure("No calling user profile was supplied. Run this tool through the MCP server as an authenticated user.") + if not profile.is_cbadmin: + return _failure("Only CloudBolt admins may verify LDAP utilities.") + + utility, error = _resolve_ldap(_read_inputs()["ldap"]) + if error: + return _failure(error) + base = _portal_url() + outputs = { + "ldapUtility": { + "id": getattr(utility, "global_id", None), + "pk": utility.id, + "name": getattr(utility, "name", None) or utility.ip, + "server": utility.ip, + "port": utility.port, + "protocol": utility.protocol, + "serviceAccount": getattr(utility, "serviceaccount", None), + }, + "links": { + "detail": base + "/admin/ldap_settings/{}/".format(utility.id), + "edit": base + "/admin/ldap_settings/{}/edit/".format(utility.id), + "verifyDialog": base + "/admin/ldap_settings/{}/verify_connection/".format(utility.id), + "mappings": base + "/admin/ldap_settings/{}/group_mappings/add/".format(utility.id), + }, + } + try: + utility.verify_connection() + outputs["verified"] = True + outputs["next"] = "Map an AD group to a CloudBolt group with onb_ldap_mapping, then have a directory user log in." + return _success("LDAP utility '{}' verified.".format(outputs["ldapUtility"]["name"]), outputs) + except Exception as exc: + error_text = "{}: {}".format(type(exc).__name__, str(exc))[:3000] + hints = [hint for pattern, hint in HINTS if pattern.search(error_text)] + outputs.update({"verified": False, "error": error_text, "hints": hints or ["Compare the server, port, protocol, base DN and service account on the edit page with the directory's values."]}) + outputs["next"] = "Explain the error and the first hint; credentials are fixed on links.edit (never in chat). Then run this tool again." + return _success("LDAP utility '{}' failed: {}".format(outputs["ldapUtility"]["name"], error_text[:300]), outputs) diff --git a/plugins/OHK-jdyan3in/OHK-jdyan3in_metadata.json b/plugins/OHK-jdyan3in/OHK-jdyan3in_metadata.json new file mode 100644 index 00000000..cc359354 --- /dev/null +++ b/plugins/OHK-jdyan3in/OHK-jdyan3in_metadata.json @@ -0,0 +1,35 @@ +{ + "action_inputs": [ + { + "allow_multiple": false, + "available_all_servers": false, + "description": "Address to send the test to; defaults to the CloudBolt admin email.", + "field_dependency_controlling_set": [], + "field_dependency_dependent_set": [], + "global_options": [], + "hide_if_default_value": true, + "id": "CF-oyp9qitm", + "label": "Recipient (optional)", + "name": "onb_smtp_to", + "placeholder": "admin@example.com", + "relevant_osfamilies": [], + "required": false, + "show_as_attribute": false, + "show_on_servers": false, + "type": "STR", + "value_pattern_string": null + } + ], + "action_inputs_sequence": [ + "onb_smtp_to" + ], + "description": "Sends a test email through the saved SMTP settings and returns the relay's real error with a hint when it fails.", + "id": "OHK-jdyan3in", + "max_retries": 0, + "name": "POC Onboarding: SMTP Test", + "resource_technologies": [], + "script_filename": "OHK-jdyan3in_script.py", + "shared": false, + "target_os_families": [], + "type": "CloudBolt Plug-in" +} diff --git a/plugins/OHK-jdyan3in/OHK-jdyan3in_script.py b/plugins/OHK-jdyan3in/OHK-jdyan3in_script.py new file mode 100644 index 00000000..d5a708ac --- /dev/null +++ b/plugins/OHK-jdyan3in/OHK-jdyan3in_script.py @@ -0,0 +1,97 @@ +""" +POC Onboarding: SMTP Test (MCP Tool Action plugin). + +Sends a test email through the saved SMTP settings, the same as the Email +Settings page's test button, and returns the relay's real error when it +fails. Runs as a job because it talks to the mail server. Admin only. + +Every declared input is read from its rendered template token in +_read_inputs(); keep each one referenced that way or CloudBolt's token scan +deletes the input when the script is saved. +""" +import html +import re +from datetime import datetime, timezone + +HINTS = [ + (re.compile(r"authentication failed|535|Username and Password not accepted", re.I), "The relay rejected the SMTP user or password; re-enter the password on the Email Settings page."), + (re.compile(r"Connection refused|timed out|Network is unreachable|getaddrinfo", re.I), "The appliance cannot reach the relay on that port; check the host, port and outbound firewall rule."), + (re.compile(r"STARTTLS|SSL|certificate", re.I), "TLS negotiation failed; toggle Use TLS or check the relay's certificate."), + (re.compile(r"sender address rejected|553|550", re.I), "The relay refused the from address; use an address the relay is allowed to send as."), + (re.compile(r"No .*Email specified|cbadmin_email", re.I), "Set the CloudBolt admin email (onb_smtp with onb_smtp_admin_email) or pass onb_smtp_to."), +] + + +def _text(value): + return html.unescape(value or "").strip() + + +def _failure(message): + return {"status": "FAILURE", "output_message": "", "error_message": message, "outputs": {"error": message}} + + +def _success(message, outputs): + return {"status": "SUCCESS", "output_message": message, "error_message": "", "outputs": outputs} + + +def _caller(job, kwargs): + profile = kwargs.get("profile") + if profile is None and job is not None: + profile = job.owner + return profile + + +def _portal_url(): + try: + from portals.models import PortalConfig + + portal = PortalConfig.get_current_portal() + url = portal.site_url if portal else None + except Exception: + url = None + return (url or "").rstrip("/") + + +def _read_inputs(): + raw = {"onb_smtp_to": """{{ onb_smtp_to }}"""} + return {"to": _text(raw["onb_smtp_to"])} + + +def run(job, *args, **kwargs): + profile = _caller(job, kwargs) + if profile is None: + return _failure("No calling user profile was supplied. Run this tool through the MCP server as an authenticated user.") + if not profile.is_cbadmin: + return _failure("Only CloudBolt admins may send test emails.") + + from utilities.models import GlobalPreferences + + gp = GlobalPreferences.get() + recipient = _read_inputs()["to"] or gp.cbadmin_email or getattr(getattr(profile, "user", None), "email", "") + base = _portal_url() + outputs = { + "recipient": recipient or None, + "settings": {"host": gp.smtp_host or None, "port": gp.smtp_port or None, "user": gp.smtp_user or None, "useTls": bool(gp.smtp_use_tls), "passwordSet": bool(gp.smtp_password)}, + "editUrl": base + "/admin/email_settings/edit/", + } + if not gp.smtp_host: + return _failure("No SMTP host is configured; set it with onb_smtp (and the password on the Email Settings page) first.") + if not recipient: + return _failure("No recipient: pass onb_smtp_to or set the CloudBolt admin email with onb_smtp.") + + try: + from utilities.mail import email + + when = datetime.now(timezone.utc).strftime("%Y-%m-%d %H:%M UTC") + email( + recipients=recipient, + context={"subject": "CloudBolt email test", "message": "This test email was sent from CloudBolt on {} by the POC onboarding toolkit.".format(when)}, + ) + outputs["sent"] = True + outputs["next"] = "Ask the user to confirm the message arrived; then record prerequisite P7 as done." + return _success("Test email sent to {}.".format(recipient), outputs) + except Exception as exc: + error_text = "{}: {}".format(type(exc).__name__, str(exc))[:2000] + hints = [hint for pattern, hint in HINTS if pattern.search(error_text)] + outputs.update({"sent": False, "error": error_text, "hints": hints or ["Check host, port, TLS and credentials on the Email Settings page, then onb_recent_errors with onb_contains=smtp."]}) + return _failure("Test email to {} failed: {}".format(recipient, error_text[:300])) diff --git a/plugins/OHK-ndsuxv0k/OHK-ndsuxv0k_metadata.json b/plugins/OHK-ndsuxv0k/OHK-ndsuxv0k_metadata.json new file mode 100644 index 00000000..117fc1f4 --- /dev/null +++ b/plugins/OHK-ndsuxv0k/OHK-ndsuxv0k_metadata.json @@ -0,0 +1,55 @@ +{ + "action_inputs": [ + { + "allow_multiple": false, + "available_all_servers": false, + "description": "SVA- or RSA- global id, or the action's label.", + "field_dependency_controlling_set": [], + "field_dependency_dependent_set": [], + "global_options": [], + "hide_if_default_value": true, + "id": "CF-5jkupf06", + "label": "Server or resource action (id or label)", + "name": "onb_action", + "placeholder": "Resize VM", + "relevant_osfamilies": [], + "required": true, + "show_as_attribute": false, + "show_on_servers": false, + "type": "STR", + "value_pattern_string": null + }, + { + "allow_multiple": false, + "available_all_servers": false, + "description": "true pauses the action for approval; false runs it directly.", + "field_dependency_controlling_set": [], + "field_dependency_dependent_set": [], + "global_options": [], + "hide_if_default_value": true, + "id": "CF-u0c8by9a", + "label": "Requires approval (true/false, default true)", + "name": "onb_requires_approval", + "placeholder": "true", + "relevant_osfamilies": [], + "required": false, + "show_as_attribute": false, + "show_on_servers": false, + "type": "STR", + "value_pattern_string": null + } + ], + "action_inputs_sequence": [ + "onb_action", + "onb_requires_approval" + ], + "description": "Turns Requires approval on or off for a server or resource action, which the API cannot change, so a day-2 action pauses as an order for an approver.", + "id": "OHK-ndsuxv0k", + "max_retries": 0, + "name": "POC Onboarding: Action Approval", + "resource_technologies": [], + "script_filename": "OHK-ndsuxv0k_script.py", + "shared": false, + "target_os_families": [], + "type": "CloudBolt Plug-in" +} diff --git a/plugins/OHK-ndsuxv0k/OHK-ndsuxv0k_script.py b/plugins/OHK-ndsuxv0k/OHK-ndsuxv0k_script.py new file mode 100644 index 00000000..7ce56d07 --- /dev/null +++ b/plugins/OHK-ndsuxv0k/OHK-ndsuxv0k_script.py @@ -0,0 +1,114 @@ +""" +POC Onboarding: Action Approval (MCP Tool Action plugin). + +Turns "Requires approval" on or off for a server action or resource +action (for example Resize VM), so a day-2 action from a requestor pauses +as an order for an approver (test plan 2.4.2). The v3 API offers no way to +change it, hence this tool. Synchronous. Admin only. + +Every declared input is read from its rendered template token in +_read_inputs(); keep each one referenced that way or CloudBolt's token scan +deletes the input when the script is saved. +""" +import html +import re + +GLOBAL_ID_RE = re.compile(r"^[A-Z]{2,4}-[A-Za-z0-9]{6,16}$") + + +def _text(value): + return html.unescape(value or "").strip() + + +def _failure(message): + return {"status": "FAILURE", "output_message": "", "error_message": message, "outputs": {"error": message}} + + +def _success(message, outputs): + return {"status": "SUCCESS", "output_message": message, "error_message": "", "outputs": outputs} + + +def _caller(job, kwargs): + profile = kwargs.get("profile") + if profile is None and job is not None: + profile = job.owner + return profile + + +def _portal_url(): + try: + from portals.models import PortalConfig + + portal = PortalConfig.get_current_portal() + url = portal.site_url if portal else None + except Exception: + url = None + return (url or "").rstrip("/") + + +def _read_inputs(): + raw = { + "onb_action": """{{ onb_action }}""", + "onb_requires_approval": """{{ onb_requires_approval }}""", + } + return { + "action": _text(raw["onb_action"]), + "requires_approval": _text(raw["onb_requires_approval"]).lower(), + } + + +def _resolve_action(ref): + from cbhooks.models import ResourceAction, ServerAction + + for model, kind in ((ServerAction, "server action"), (ResourceAction, "resource action")): + action = None + if GLOBAL_ID_RE.match(ref): + action = model.objects.filter(global_id=ref).first() + if action is None: + matches = list(model.objects.filter(label__iexact=ref)) + if len(matches) > 1: + return None, None, "Several {}s are labelled '{}'; pass the global id.".format(kind, ref) + action = matches[0] if matches else None + if action is not None: + return action, kind, None + sample = ", ".join(a.label for a in ServerAction.objects.all().order_by("label")[:25]) + return None, None, "No server or resource action matches '{}'. Server actions include: {}.".format(ref, sample) + + +def run(job, *args, **kwargs): + profile = _caller(job, kwargs) + if profile is None: + return _failure("No calling user profile was supplied. Run this tool through the MCP server as an authenticated user.") + if not profile.is_cbadmin: + return _failure("Only CloudBolt admins may change action approval settings.") + + inputs = _read_inputs() + if not inputs["action"]: + return _failure("onb_action is required: a server or resource action global id (SVA-, RSA-) or its label, for example Resize VM.") + if inputs["requires_approval"] not in ("true", "false", "1", "0", "yes", "no", "on", "off", ""): + return _failure("onb_requires_approval must be true or false.") + wanted = inputs["requires_approval"] in ("true", "1", "yes", "on", "") + action, kind, error = _resolve_action(inputs["action"]) + if error: + return _failure(error) + + before = bool(action.requires_approval) + if before != wanted: + action.requires_approval = wanted + action.save() + base = _portal_url() + try: + url = base + action.get_absolute_url() + except Exception: + url = None + outputs = { + "action": {"id": action.global_id, "label": action.label, "kind": kind, "enabled": bool(getattr(action, "enabled", True)), "url": url}, + "requiresApproval": {"before": before, "after": bool(action.requires_approval)}, + "next": ( + "Have a user without the approver role run the action (run_server_action or run_resource_action); the call " + "returns an order id instead of a job id, and fetch_orders_pending_my_approval shows it to an approver." + if wanted else "The action now runs without approval." + ), + } + message = "'{}' requires approval: {} -> {}.".format(action.label, before, bool(action.requires_approval)) + return _success(message, outputs) diff --git a/plugins/OHK-s76tknmk/OHK-s76tknmk_metadata.json b/plugins/OHK-s76tknmk/OHK-s76tknmk_metadata.json new file mode 100644 index 00000000..77e91c47 --- /dev/null +++ b/plugins/OHK-s76tknmk/OHK-s76tknmk_metadata.json @@ -0,0 +1,95 @@ +{ + "action_inputs": [ + { + "allow_multiple": false, + "available_all_servers": false, + "description": "Which LDAP utility; optional when only one exists.", + "field_dependency_controlling_set": [], + "field_dependency_dependent_set": [], + "global_options": [], + "hide_if_default_value": true, + "id": "CF-8sxx5xbq", + "label": "LDAP utility (IDD- id, pk or name; optional)", + "name": "onb_ldap", + "placeholder": "IDD-abc12345", + "relevant_osfamilies": [], + "required": false, + "show_as_attribute": false, + "show_on_servers": false, + "type": "STR", + "value_pattern_string": null + }, + { + "allow_multiple": false, + "available_all_servers": false, + "description": "Group that members join.", + "field_dependency_controlling_set": [], + "field_dependency_dependent_set": [], + "global_options": [], + "hide_if_default_value": true, + "id": "CF-qhrxp2o4", + "label": "CloudBolt group (GRP- id or name)", + "name": "onb_ldap_cb_group", + "placeholder": "POC Group", + "relevant_osfamilies": [], + "required": true, + "show_as_attribute": false, + "show_on_servers": false, + "type": "STR", + "value_pattern_string": null + }, + { + "allow_multiple": false, + "available_all_servers": false, + "description": "Distinguished name of the AD or LDAP group.", + "field_dependency_controlling_set": [], + "field_dependency_dependent_set": [], + "global_options": [], + "hide_if_default_value": true, + "id": "CF-pdmumk3c", + "label": "Directory group DN", + "name": "onb_ldap_group_dn", + "placeholder": "CN=CloudBolt Users,OU=Groups,DC=example,DC=com", + "relevant_osfamilies": [], + "required": true, + "show_as_attribute": false, + "show_on_servers": false, + "type": "STR", + "value_pattern_string": null + }, + { + "allow_multiple": false, + "available_all_servers": false, + "description": "Role names granted in that group.", + "field_dependency_controlling_set": [], + "field_dependency_dependent_set": [], + "global_options": [], + "hide_if_default_value": true, + "id": "CF-vlf2h5ge", + "label": "Roles, one per line (default requestor)", + "name": "onb_ldap_roles", + "placeholder": "requestor", + "relevant_osfamilies": [], + "required": false, + "show_as_attribute": false, + "show_on_servers": false, + "type": "TXT", + "value_pattern_string": null + } + ], + "action_inputs_sequence": [ + "onb_ldap", + "onb_ldap_group_dn", + "onb_ldap_cb_group", + "onb_ldap_roles" + ], + "description": "Maps an AD or LDAP group DN to a CloudBolt group with roles on an existing LDAP utility, so directory users land in the right group at first login.", + "id": "OHK-s76tknmk", + "max_retries": 0, + "name": "POC Onboarding: LDAP Mapping", + "resource_technologies": [], + "script_filename": "OHK-s76tknmk_script.py", + "shared": false, + "target_os_families": [], + "type": "CloudBolt Plug-in" +} diff --git a/plugins/OHK-s76tknmk/OHK-s76tknmk_script.py b/plugins/OHK-s76tknmk/OHK-s76tknmk_script.py new file mode 100644 index 00000000..53beaade --- /dev/null +++ b/plugins/OHK-s76tknmk/OHK-s76tknmk_script.py @@ -0,0 +1,161 @@ +""" +POC Onboarding: LDAP Mapping (MCP Tool Action plugin). + +Maps an Active Directory or LDAP group (by distinguished name) to a +CloudBolt group with roles, the way the LDAP utility's Group Mappings tab +does, so members land in the right group with the right role at their +first login (test plan 2.1.2). The LDAP utility itself is created in the +UI, where its service-account password is entered. Synchronous. Admin only. + +Every declared input is read from its rendered template token in +_read_inputs(); keep each one referenced that way or CloudBolt's token scan +deletes the input when the script is saved. +""" +import html +import re + +GLOBAL_ID_RE = re.compile(r"^[A-Z]{2,4}-[A-Za-z0-9]{6,16}$") + + +def _text(value): + return html.unescape(value or "").strip() + + +def _lines(value): + return [line.strip() for line in re.split(r"[\r\n,]+", _text(value)) if line.strip()] + + +def _failure(message): + return {"status": "FAILURE", "output_message": "", "error_message": message, "outputs": {"error": message}} + + +def _success(message, outputs): + return {"status": "SUCCESS", "output_message": message, "error_message": "", "outputs": outputs} + + +def _caller(job, kwargs): + profile = kwargs.get("profile") + if profile is None and job is not None: + profile = job.owner + return profile + + +def _portal_url(): + try: + from portals.models import PortalConfig + + portal = PortalConfig.get_current_portal() + url = portal.site_url if portal else None + except Exception: + url = None + return (url or "").rstrip("/") + + +def _read_inputs(): + raw = { + "onb_ldap": """{{ onb_ldap }}""", + "onb_ldap_group_dn": """{{ onb_ldap_group_dn }}""", + "onb_ldap_cb_group": """{{ onb_ldap_cb_group }}""", + "onb_ldap_roles": """{{ onb_ldap_roles }}""", + } + return { + "ldap": _text(raw["onb_ldap"]), + "group_dn": _text(raw["onb_ldap_group_dn"]), + "cb_group": _text(raw["onb_ldap_cb_group"]), + "roles": _lines(raw["onb_ldap_roles"]), + } + + +def _resolve_ldap(ref): + from utilities.models import LDAPUtility + + utilities = list(LDAPUtility.objects.all().order_by("id")) + if not utilities: + return None, "No LDAP utility exists yet; create one in the UI (Admin > LDAP Utilities > Add), where the service-account password is entered." + if not ref: + if len(utilities) == 1: + return utilities[0], None + return None, "Several LDAP utilities exist; pass onb_ldap: {}.".format( + ", ".join("{} ({})".format(getattr(u, "global_id", u.id), getattr(u, "name", None) or u.ip) for u in utilities) + ) + for utility in utilities: + if ref in (getattr(utility, "global_id", None), str(utility.id)): + return utility, None + for attr in ("name", "ldap_domain", "ip"): + if (getattr(utility, attr, None) or "").lower() == ref.lower(): + return utility, None + return None, "No LDAP utility matches '{}'.".format(ref) + + +def _resolve_group(ref): + from accounts.models import Group + + if GLOBAL_ID_RE.match(ref): + return Group.objects.filter(global_id=ref).first() + if ref.isdigit(): + return Group.objects.filter(id=int(ref)).first() + return Group.objects.filter(name__iexact=ref).first() + + +def _resolve_role(ref): + from accounts.models import Role + + return ( + Role.objects.filter(name__iexact=ref).first() + or Role.objects.filter(label__iexact=ref).first() + or Role.objects.filter(name__iexact=ref.replace(" ", "_")).first() + ) + + +def run(job, *args, **kwargs): + profile = _caller(job, kwargs) + if profile is None: + return _failure("No calling user profile was supplied. Run this tool through the MCP server as an authenticated user.") + if not profile.is_cbadmin: + return _failure("Only CloudBolt admins may manage LDAP mappings.") + + inputs = _read_inputs() + if not inputs["group_dn"]: + return _failure("onb_ldap_group_dn is required: the distinguished name of the AD or LDAP group, for example CN=CloudBolt Users,OU=Groups,DC=example,DC=com.") + if not inputs["cb_group"]: + return _failure("onb_ldap_cb_group is required: the CloudBolt group (GRP- id or name) members land in.") + utility, error = _resolve_ldap(inputs["ldap"]) + if error: + return _failure(error) + group = _resolve_group(inputs["cb_group"]) + if group is None: + return _failure("No CloudBolt group matches '{}'; create it with onb_group.".format(inputs["cb_group"])) + roles = [] + for ref in inputs["roles"] or ["requestor"]: + role = _resolve_role(ref) + if role is None: + from accounts.models import Role + + return _failure("No role matches '{}'. Roles: {}.".format(ref, ", ".join(sorted(r.name for r in Role.objects.all())))) + roles.append(role) + + from utilities.models import LDAPMapping, LDAPMappingGroup + + mapping, created = LDAPMapping.objects.get_or_create(ldap_utility=utility, ldap_group_dn=inputs["group_dn"]) + mapping_group, mg_created = LDAPMappingGroup.objects.get_or_create(mapping=mapping, group=group) + added = [] + for role in roles: + if not mapping_group.roles.filter(id=role.id).exists(): + mapping_group.roles.add(role) + added.append(role.name) + + base = _portal_url() + outputs = { + "ldapUtility": {"id": getattr(utility, "global_id", None), "pk": utility.id, "name": getattr(utility, "name", None) or utility.ip, + "url": base + "/admin/ldap_settings/{}/".format(utility.id)}, + "mapping": {"id": mapping.id, "groupDn": mapping.ldap_group_dn, "created": created}, + "cloudboltGroup": {"id": group.global_id, "name": group.name, "mappingCreated": mg_created}, + "roles": sorted(r.name for r in mapping_group.roles.all()), + "rolesAdded": added, + "next": ( + "Have a member of that AD group log in to CloudBolt; fetch_group_details on the group then lists them with " + "the role. If the login fails, onb_recent_errors with onb_log=authentication." + ), + } + message = "'{}' -> group '{}' with roles {}.".format(inputs["group_dn"], group.name, ", ".join(outputs["roles"])) + return _success(message, outputs) diff --git a/plugins/README.md b/plugins/README.md index 5f536476..6179fd89 100644 --- a/plugins/README.md +++ b/plugins/README.md @@ -103,19 +103,28 @@ Python and remote-script actions. Plugins that belong to a blueprint or action a | Node Size - Generate Options by Region, OS Image, Security, Networking and Storage (Azure SKU capabilities) | [OHK-kujhsds0](OHK-kujhsds0/README.md) | Generates node_size options filtered by live Azure SKU capabilities for the selected region, image, security, networking, and storage settings. | CloudBolt Plug-in | standalone | | OpenShift Project Landing Zone | [OHK-prew0osh](OHK-prew0osh/) | Creates an OpenShift project with quota, limits, network policies, and an optional role binding, then pins a CloudBolt environment to it. | CloudBolt Plug-in | [OpenShift Project Landing Zone](../blueprints/BP-tikkhf2y/README.md) | | Order Counts by Blueprint | [OHK-yjblxbwg](OHK-yjblxbwg/) | | CloudBolt Plug-in | [Order Counts by Blueprint](../mcp_tool_actions/MTA-lp8lgi7e/) | +| POC Onboarding: Action Approval | [OHK-ndsuxv0k](OHK-ndsuxv0k/) | Turns Requires approval on or off for a server or resource action, which the API cannot change, so a day-2 action pauses as an order for an approver. | CloudBolt Plug-in | [POC Onboarding: Action Approval](../mcp_tool_actions/MTA-bp0rkcq9/README.md) | | POC Onboarding: Configure Custom Server | [OHK-ilstyopk](OHK-ilstyopk/) | Makes the shipped Custom Server blueprint orderable for the POC: recreates it when missing, activates it, enables every environment on its server tier, and sets a hostname template on the tier or on the listed environments. | CloudBolt Plug-in | [POC Onboarding: Configure Custom Server](../mcp_tool_actions/MTA-i1kmy5fd/README.md) | | POC Onboarding: Failure Trace | [OHK-y95w8ai0](OHK-y95w8ai0/) | Walks an order or job down to the jobs that actually failed and returns their errors, output, progress tail, failed children and a hint for the common provisioning failures, naming the job id to pass to fetch_job_log for the traceback. | CloudBolt Plug-in | [POC Onboarding: Failure Trace](../mcp_tool_actions/MTA-jzscq0mk/README.md) | +| POC Onboarding: Group | [OHK-efxm9m2b](OHK-efxm9m2b/) | Creates or updates a group with its parent, entitled environments, auto-approval flag and server-count quota, covering the test plan's entitlement, approval and quota items. | CloudBolt Plug-in | [POC Onboarding: Group](../mcp_tool_actions/MTA-cpq7bvz4/README.md) | | POC Onboarding: Handler Locations | [OHK-0nuhjdxl](OHK-0nuhjdxl/) | Lists the regions, locations or clusters a resource handler can turn into environments, flags the ones already imported, lists the existing environments, and for an AWS region lists its VPCs. | CloudBolt Plug-in | [POC Onboarding: Handler Locations](../mcp_tool_actions/MTA-89dxppus/README.md) | | POC Onboarding: Import Environments | [OHK-8j06wtoe](OHK-8j06wtoe/) | Creates one environment per listed location on a resource handler the way the Import locations dialog does, brings the networks over (AWS subnets with the environment, Azure subnets synced, vCenter cluster networks attached to NIC 1), and reports existing environments instead of duplicating them. | CloudBolt Plug-in | [POC Onboarding: Import Environments](../mcp_tool_actions/MTA-i6p4j2l7/README.md) | | POC Onboarding: Import OS Build | [OHK-k2p8ll4p](OHK-k2p8ll4p/) | Imports one image (AWS AMI, Azure marketplace image, vCenter template) into an OS build, reusing an existing build of the same name so one build spans handlers, and attaches the build to the handler's environments. | CloudBolt Plug-in | [POC Onboarding: Import OS Build](../mcp_tool_actions/MTA-0dr8xi4i/README.md) | | POC Onboarding: Install | [OHK-j60flmb3](OHK-j60flmb3/) | Finishes the toolkit install after a sync or package import: sets Synchronous Action on the inline tools, enables every tool, checks outbound access to the Content Library and GitHub, and records the toolkit version. | CloudBolt Plug-in | [POC Onboarding: Install](../mcp_tool_actions/MTA-6zxrhdls/README.md) | +| POC Onboarding: LDAP Mapping | [OHK-s76tknmk](OHK-s76tknmk/) | Maps an AD or LDAP group DN to a CloudBolt group with roles on an existing LDAP utility, so directory users land in the right group at first login. | CloudBolt Plug-in | [POC Onboarding: LDAP Mapping](../mcp_tool_actions/MTA-e5qv0zay/README.md) | +| POC Onboarding: Parameter | [OHK-f6kqrklx](OHK-f6kqrklx/) | Creates or updates a parameter and attaches it to environments and groups with options and constraints, covering the test plan's user-defined parameter, cost-center tag source, power schedule and expiration date with a maximum lease. | CloudBolt Plug-in | [POC Onboarding: Parameter](../mcp_tool_actions/MTA-70aez9bm/README.md) | | POC Onboarding: Playbook | [OHK-1am7i73s](OHK-1am7i73s/) | Returns a section of the POC onboarding skill text from the public cloudbolt-as-code repository, so MCP clients without skill support follow the same procedure. | CloudBolt Plug-in | [POC Onboarding: Playbook](../mcp_tool_actions/MTA-92b836jb/README.md) | | POC Onboarding: Recent Errors | [OHK-4vwq70dg](OHK-4vwq70dg/) | Reads the tail of a CloudBolt log and returns the recent WARNING-and-above entries grouped by exception and message, secrets redacted, each group with a hint for the failures a new appliance hits most. | CloudBolt Plug-in | [POC Onboarding: Recent Errors](../mcp_tool_actions/MTA-hwg74btd/README.md) | | POC Onboarding: Remove Environment | [OHK-1wmzl7sp](OHK-1wmzl7sp/) | Deletes an environment imported by mistake so the POC can start over; refuses while active servers live in it. | CloudBolt Plug-in | [POC Onboarding: Remove Environment](../mcp_tool_actions/MTA-pz5o2gjl/README.md) | | POC Onboarding: Set Item Status | [OHK-5885tete](OHK-5885tete/) | Records a POC test plan item or prerequisite as done, skipped, not applicable or pending with a reason, in a namespaced CustomField store that onb_status and the scorecard read. | CloudBolt Plug-in | [POC Onboarding: Set Item Status](../mcp_tool_actions/MTA-p72v9y76/README.md) | +| POC Onboarding: SMTP Settings | [OHK-be18kqal](OHK-be18kqal/) | Sets the non-secret email settings and returns the link where the SMTP password is entered; with no inputs it reports the current settings. | CloudBolt Plug-in | [POC Onboarding: SMTP Settings](../mcp_tool_actions/MTA-89w58iux/README.md) | +| POC Onboarding: SMTP Test | [OHK-jdyan3in](OHK-jdyan3in/) | Sends a test email through the saved SMTP settings and returns the relay's real error with a hint when it fails. | CloudBolt Plug-in | [POC Onboarding: SMTP Test](../mcp_tool_actions/MTA-qab6r2gk/README.md) | | POC Onboarding: Status | [OHK-5zg1dkcr](OHK-5zg1dkcr/) | Reports the appliance's POC readiness in one read: licence, portal, SMTP, proxy, Content Library, Setup Wizard, resource handlers with environments and last verify result, the Custom Server blueprint, groups, users, LDAP, SSO, installed onboarding tools, recorded POC items, and the next steps with UI links. | CloudBolt Plug-in | [POC Onboarding: Status](../mcp_tool_actions/MTA-1985b88g/README.md) | +| POC Onboarding: Tag Mapping | [OHK-b8c90uok](OHK-b8c90uok/) | Lists, adds or removes a resource handler's mappings from CloudBolt attributes or parameters to cloud tags, giving cross-cloud tagging and the cost-center tag. | CloudBolt Plug-in | [POC Onboarding: Tag Mapping](../mcp_tool_actions/MTA-0689nxjy/README.md) | | POC Onboarding: Trim Environment Order Form | [OHK-qn4k1pme](OHK-qn4k1pme/) | Shortens an environment's order form for a POC by pinning infrastructure parameters to one value (which hides a required field) and removing the optional technology parameters, leaving the size and, where needed, the network and password; the report profile only lists the current form. | CloudBolt Plug-in | [POC Onboarding: Trim Environment Order Form](../mcp_tool_actions/MTA-iyknuxox/README.md) | | POC Onboarding: UI Link | [OHK-1gp25bmt](OHK-1gp25bmt/) | Turns a CloudBolt global id or a named admin page (new resource handler per technology, LDAP, SMTP, user edit, environment parameters, group quotas, and more) into an absolute UI link so the agent can send the user to the exact page where a secret is entered or an object is edited. | CloudBolt Plug-in | [POC Onboarding: UI Link](../mcp_tool_actions/MTA-zpohocjt/README.md) | +| POC Onboarding: User | [OHK-8in52yhn](OHK-8in52yhn/) | Creates a local user with no usable password and assigns roles in a group, returning the edit link where the admin sets the password; an existing user only gets the roles. | CloudBolt Plug-in | [POC Onboarding: User](../mcp_tool_actions/MTA-tuzkb8h4/README.md) | +| POC Onboarding: Verify LDAP | [OHK-j82f4ibp](OHK-j82f4ibp/) | Runs an LDAP utility's Verify Connection and returns the real bind or search error with a hint and the links to fix it. | CloudBolt Plug-in | [POC Onboarding: Verify LDAP](../mcp_tool_actions/MTA-kw8krevn/README.md) | | POC Onboarding: Verify Resource Handler | [OHK-s7cdvkpr](OHK-s7cdvkpr/) | Runs a resource handler's Verify Connection and returns the real exception text with a technology-specific hint, the minimum-permissions document and the handler's edit and verify links, recording the result for the status tool. | CloudBolt Plug-in | [POC Onboarding: Verify Resource Handler](../mcp_tool_actions/MTA-r5v1eblg/README.md) | | Remove Resource Group from Environments | [OHK-vm5p34w3](OHK-vm5p34w3/) | Removes the deleted resource group's resource_group_arm option from environments on the same subscription. | CloudBolt Plug-in | [Azure Resource Group - Bicep](../blueprints/BP-p7zmh96m/README.md) | | Remove Servers from Ansible Automation Platform | [OHK-8v830go3](OHK-8v830go3/) | Removes the host records a deployment's servers hold in Ansible Automation Platform inventories through CloudBolt's own connector method, before the infrastructure is destroyed; a missing host or unreachable AAP is a warning, never a blocker. | CloudBolt Plug-in | standalone | From 1b4c60f0d8eb763d38eea6e91cd9577ca37c5e98 Mon Sep 17 00:00:00 2001 From: Mike Bombard <37379633+mbomb67@users.noreply.github.com> Date: Mon, 19 Oct 2026 12:00:32 -0400 Subject: [PATCH 2/3] Report when CloudBolt attaches an image to an existing OS build instead of the requested one Co-Authored-By: Claude Fable 5.1 --- plugins/OHK-k2p8ll4p/OHK-k2p8ll4p_script.py | 17 +++++++++++++++-- 1 file changed, 15 insertions(+), 2 deletions(-) diff --git a/plugins/OHK-k2p8ll4p/OHK-k2p8ll4p_script.py b/plugins/OHK-k2p8ll4p/OHK-k2p8ll4p_script.py index 2dd4570c..f73b4ac5 100644 --- a/plugins/OHK-k2p8ll4p/OHK-k2p8ll4p_script.py +++ b/plugins/OHK-k2p8ll4p/OHK-k2p8ll4p_script.py @@ -303,6 +303,9 @@ def run(job, *args, **kwargs): if slug in LOCATION_FIELD and not location: return _failure("Pass onb_region: the region or location of the image (none could be read from the environments).") existing_osb = _existing_os_build(inputs["os_build_name"]) + from externalcontent.models import OSBuild + + osb_ids_before = set(OSBuild.objects.values_list("id", flat=True)) try: if slug.startswith("aws"): @@ -331,8 +334,9 @@ def run(job, *args, **kwargs): "osBuild": { "id": osb.global_id, "name": osb.name, + "requestedName": inputs["os_build_name"], "osFamily": osb.os_family.name if osb.os_family else None, - "reused": existing_osb is not None and existing_osb.id == osb.id, + "reused": osb.id in osb_ids_before, "url": base + "/externalcontent/osbuilds/{}/".format(osb.id), }, "attachedToEnvironments": attached, @@ -341,6 +345,15 @@ def run(job, *args, **kwargs): "blueprint deploys to both. Then onb_trim_environment on each environment." ), } + notes = [] if osb.os_family is None: - outputs["note"] = "The OS family could not be determined; set it on the OS build page so Windows and Linux scripts target the right servers." + notes.append("The OS family could not be determined; set it on the OS build page so Windows and Linux scripts target the right servers.") + if osb.name.lower() != inputs["os_build_name"].lower(): + notes.append( + "CloudBolt attached the image to its existing OS build '{}' (this image was already known under that build) " + "instead of '{}'. For one blueprint across two clouds, import the other handler's image with " + "onb_os_build_name='{}'.".format(osb.name, inputs["os_build_name"], osb.name) + ) + if notes: + outputs["notes"] = notes return _success("OS build '{}' holds {} and is attached to {} environment(s).".format(osb.name, inputs["image"], len(attached)), outputs) From 465b93c4e55b1820e555e38884d4d715cd27f393 Mon Sep 17 00:00:00 2001 From: Mike Bombard <37379633+mbomb67@users.noreply.github.com> Date: Mon, 19 Oct 2026 12:04:08 -0400 Subject: [PATCH 3/3] Mask the SMTP user name in the email tools' output Co-Authored-By: Claude Fable 5.1 --- plugins/OHK-be18kqal/OHK-be18kqal_script.py | 4 +++- plugins/OHK-jdyan3in/OHK-jdyan3in_script.py | 2 +- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/plugins/OHK-be18kqal/OHK-be18kqal_script.py b/plugins/OHK-be18kqal/OHK-be18kqal_script.py index 3f82e4df..c29d9954 100644 --- a/plugins/OHK-be18kqal/OHK-be18kqal_script.py +++ b/plugins/OHK-be18kqal/OHK-be18kqal_script.py @@ -109,11 +109,13 @@ def run(job, *args, **kwargs): base = _portal_url() password_set = bool(gp.smtp_password) + user = gp.smtp_user or "" + masked_user = (user[:3] + "***" + user[-2:]) if len(user) > 6 else ("***" if user else None) outputs = { "settings": { "host": gp.smtp_host or None, "port": gp.smtp_port or None, - "user": gp.smtp_user or None, + "user": masked_user, "useTls": bool(gp.smtp_use_tls), "fromAddress": gp.email_default_from_address or None, "adminEmail": gp.cbadmin_email or None, diff --git a/plugins/OHK-jdyan3in/OHK-jdyan3in_script.py b/plugins/OHK-jdyan3in/OHK-jdyan3in_script.py index d5a708ac..632ab8cc 100644 --- a/plugins/OHK-jdyan3in/OHK-jdyan3in_script.py +++ b/plugins/OHK-jdyan3in/OHK-jdyan3in_script.py @@ -71,7 +71,7 @@ def run(job, *args, **kwargs): base = _portal_url() outputs = { "recipient": recipient or None, - "settings": {"host": gp.smtp_host or None, "port": gp.smtp_port or None, "user": gp.smtp_user or None, "useTls": bool(gp.smtp_use_tls), "passwordSet": bool(gp.smtp_password)}, + "settings": {"host": gp.smtp_host or None, "port": gp.smtp_port or None, "userSet": bool(gp.smtp_user), "useTls": bool(gp.smtp_use_tls), "passwordSet": bool(gp.smtp_password)}, "editUrl": base + "/admin/email_settings/edit/", } if not gp.smtp_host: