Skip to content

Update Send schema and engine documentation for optional ShellCommand flag #86

Open

Description

@MichaelThompson

Background

The Scriptable engine change for ADO Bug 744282 has merged in oi-eng/PangaeaAppliance#19669, merge commit 40789f63e7056d8ac60d6b2bd1493dbdea224709, targeting bugfix_c27_w3.

It adds an optional script-facing Send.ShellCommand boolean. This is the post-merge contract synchronization follow-up requested for this change.

Required updates

  • Add optional ShellCommand to the Send component in schema/custom-platform-script.schema.json, type boolean, default false. Existing scripts omitting it must remain valid; reject non-boolean values.
  • Document the flag in the authoring reference and docs/agent-reference/rsms-engine-map.md, with source citations to the merged engine implementation.
  • Update suitable samples to show ShellCommand: true only for complete shell commands. Password responses and other interactive program input must remain unmarked/false.
  • Add schema validation coverage for omitted/true/false values and invalid non-booleans; run existing schema/sample checks.

Engine semantics to preserve accurately

  • The bounded policy applies to the built-in SolarisSsh platform, not all SSH connections or arbitrary custom platforms. Other platforms retain existing send behavior; setting this flag does not by itself enable the Solaris policy.
  • On SolarisSsh, oversized marked commands are reconstructed from literal, acknowledged chunks and evaluated once in the same shell, preserving shell variables and existing sudo/password conversation handling.
  • The physical terminal input bound is 230 UTF-8 bytes including EOL and quoting overhead. Outbound command text including Send : stays below 240 characters (excluding log metadata and received output).
  • Oversized unmarked input is rejected before transmission. Interactive/password data is never evaluated as a command; existing secret redaction must remain intact.

Authoritative sources

Paths in oi-eng/PangaeaAppliance at the merge commit above:

  • src/Service/Rsms/Modules/Modules/Scriptable/Components/Send/SendComponentModel.cs
  • src/Service/Rsms/Modules/Modules/Scriptable/Components/Send/SendComponent.cs
  • src/Service/Rsms/Modules/Modules/Scriptable/Support/Net/Ssh/BoundedShellCommand.cs
  • src/Service/Rsms/Modules/Modules/Scriptable/README.md

This issue is for authoring/schema/documentation alignment, not a new engine implementation or a claim that Solaris 10 acceptance has completed.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions