Patch Changes
-
#176
d512166Thanks @tufantunc! - Update OpenTelemetry to 0.221, and cover the path that made the bump worth checking.@opentelemetry/sdk-nodeand@opentelemetry/exporter-trace-otlp-httpgo from^0.220.0to^0.221.0.@opentelemetry/resourcesfollows to 2.10.0 — it is a direct dependency under an unpinned^2.9.0, andresourceFromAttributescomes from it, so it is on the path this change is about.@opentelemetry/core,context-async-hooks,sdk-trace-baseandapi-logsmove 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 toregistry.npmjs.orgwith asha512integrity, andnpm audit --omit=devreports nothing.patchbecause nothing a consumer can observe changes. Tracing is off unless--otelEndpointis set, and the package exposes no importable surface at all —package.jsondeclaresbinandfileswith nomain,exportsortypes— so no OpenTelemetry type can reach a dependent.What made this worth checking.
initTracingloads all four packages with dynamicimport()and wraps the body in atry/catchthat only callsconsole.error. A renamed export is therefore invisible totsc, 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
initTracingagainst a discard port — no collector and no timers are needed, sincesdk.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. RenamingNodeSDKin the source fails it. The existing strict-resolution probe intest/e2e/packaging.e2e.test.tsalready guarded named exports forresourcesandsemantic-conventions; it now guardsNodeSDKandOTLPTraceExportertoo, 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-Agentversion string.NodeSDKloads no default instrumentation on either version, so nothing new is collected or sent. -
#174
70a708bThanks @tufantunc! - IndexroleBindingson a null-prototype object (#172).A role name is a free string, and
mergePolicyRulesassignsroleBindings[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.prototypestayed clean — but the object's own prototype became the operator's tier map, after whichroleBindings.prodresolved through the chain as thoughprodwere a role.Not reachable: the config schema rejects
__proto__,constructorandprototypeas 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.roleBindingsgets the same treatment, becausemergePolicyRulesreturns 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 objectroleBindings['toString']returned a function, so a profile whose role was named after anObject.prototypemember 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.