github tufantunc/ssh-mcp v2.5.1

latest releases: v2.30.0, v2.29.0, v2.28.0...
3 months ago

Patch Changes

  • #176 d512166 Thanks @tufantunc! - Update OpenTelemetry to 0.221, and cover the path that made the bump worth checking.

    @opentelemetry/sdk-node and @opentelemetry/exporter-trace-otlp-http go from ^0.220.0 to ^0.221.0. @opentelemetry/resources follows to 2.10.0 — it is a direct dependency under an unpinned ^2.9.0, and resourceFromAttributes comes from it, so it is on the path this change is about. @opentelemetry/core, context-async-hooks, sdk-trace-base and api-logs move to 2.10.0/0.221.0 alongside. The lockfile churn is larger than the version numbers suggest because 0.221 restructured its own dependency declarations; no package name is new, every entry still resolves to registry.npmjs.org with a sha512 integrity, and npm audit --omit=dev reports nothing.

    patch because nothing a consumer can observe changes. Tracing is off unless --otelEndpoint is set, and the package exposes no importable surface at all — package.json declares bin and files with no main, exports or types — so no OpenTelemetry type can reach a dependent.

    What made this worth checking. initTracing loads all four packages with dynamic import() and wraps the body in a try/catch that only calls console.error. A renamed export is therefore invisible to tsc, and the failure is not a crash: tracing goes off, the server keeps serving, and CI stays green.

    That path is now covered rather than described. A unit test calls initTracing against a discard port — no collector and no timers are needed, since sdk.start() does not connect — and asserts it reaches the success log, that a missing package still resolves through the catch without rejecting, and that it initialises once. Renaming NodeSDK in the source fails it. The existing strict-resolution probe in test/e2e/packaging.e2e.test.ts already guarded named exports for resources and semantic-conventions; it now guards NodeSDK and OTLPTraceExporter too, which were the two packages this bump actually moved.

    Behaviour is unchanged where tracing is on. The decoded OTLP body is structurally identical across the two versions — same resource attribute keys, scope name, span fields and attribute value types — and the only difference on the wire is the exporter's own User-Agent version string. NodeSDK loads no default instrumentation on either version, so nothing new is collected or sent.

  • #174 70a708b Thanks @tufantunc! - Index roleBindings on a null-prototype object (#172).

    A role name is a free string, and mergePolicyRules assigns roleBindings[role]. On a plain object that assignment is not always a key: for __proto__ it invokes the prototype setter instead. Measured, the effect was not global — Object.prototype stayed clean — but the object's own prototype became the operator's tier map, after which roleBindings.prod resolved through the chain as though prod were a role.

    Not reachable: the config schema rejects __proto__, constructor and prototype as role or tier names before the engine sees a config, and the policy engine's own coherence check refuses a role no profile uses. What makes it worth closing anyway is that the first of those guards is the one zod 4 silently disabled, rebuilt in 2.5.0 — the authorization engine should not depend on a check that has already regressed once.

    DEFAULT_RULES.roleBindings gets the same treatment, because mergePolicyRules returns it unchanged when there is no [policy] section, which is the commonest path. That also removes a second case needing no config at all: on a plain object roleBindings['toString'] returned a function, so a profile whose role was named after an Object.prototype member found a truthy binding. It failed closed — the coherence check still refused it and evaluation floored at read-only — but by a different route than an unknown role, for no reason a reader could see.

    No behaviour change for any valid configuration. Reported by @allenwu-blip using mcpaudit.

Don't miss a new ssh-mcp release

NewReleases is sending notifications on new releases.