You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@artemis.apache.org by "dependabot[bot] (via GitHub)" <gi...@apache.org> on 2026/05/28 02:31:17 UTC
[PR] ARTEMIS-X Bump mockserver.version from 6.0.0 to 6.1.0 [artemis]
dependabot[bot] opened a new pull request, #6476:
URL: https://github.com/apache/artemis/pull/6476
Bumps `mockserver.version` from 6.0.0 to 6.1.0.
Updates `org.mock-server:mockserver-netty` from 6.0.0 to 6.1.0
Updates `org.mock-server:mockserver-core` from 6.0.0 to 6.1.0
<details>
<summary>Release notes</summary>
<p><em>Sourced from <a href="https://github.com/mock-server/mockserver-monorepo/releases">org.mock-server:mockserver-core's releases</a>.</em></p>
<blockquote>
<h2>MockServer 6.1.0</h2>
<p>Release 6.1.0</p>
</blockquote>
</details>
<details>
<summary>Changelog</summary>
<p><em>Sourced from <a href="https://github.com/mock-server/mockserver-monorepo/blob/master/changelog.md">org.mock-server:mockserver-core's changelog</a>.</em></p>
<blockquote>
<h2>[6.1.0] - 2026-05-27</h2>
<h3>Security</h3>
<ul>
<li>SSRF protection for forward and forward-template actions: new <code>mockserver.forwardProxyBlockPrivateNetworks</code> property (default <code>false</code> for backwards compatibility) rejects forward targets that resolve to loopback, link-local, RFC 1918 private, or cloud metadata addresses (e.g. <code>169.254.169.254</code>). Enable in hardened or multi-tenant deployments where untrusted callers can register expectations. A future major release is expected to flip the default to <code>true</code>.</li>
<li>ReDoS protection in regex matchers: regex evaluation now runs on a shared cached daemon-thread pool with a configurable timeout <code>mockserver.regexMatchingTimeoutMillis</code> (default <code>5000</code>ms). Patterns that exceed the budget are treated as non-matches and a WARN log entry is written, so a pathological pattern cannot wedge a Netty worker.</li>
<li>XPath DoS protection: XPath evaluation in body matching now uses the same shared timeout executor with <code>mockserver.xpathMatchingTimeoutMillis</code> (default <code>5000</code>ms).</li>
<li>Cryptographically secure randomness: <code>UUIDService</code> and <code>TemplateFunctions</code> now use <code>SecureRandom</code> instead of <code>java.util.Random</code> for UUID generation, <code>rand_int</code>/<code>rand_int_10</code>/<code>rand_int_100</code>, and <code>rand_bytes</code> template helpers.</li>
<li>Loud insecure-mode warning logs at startup / SSL-context init: a WARN is emitted when (a) the forward proxy trusts all TLS certificates (<code>forwardProxyTLSX509CertificatesTrustManagerType=ANY</code>), (b) Velocity class loading is enabled (<code>velocityDisallowClassLoading=false</code>), (c) JavaScript templates have no class restrictions (<code>javascriptDisallowedClasses</code> empty), or (d) <code>tlsProtocols</code> includes the deprecated TLSv1 / TLSv1.1.</li>
<li><code>mockserver.tlsAllowInsecureProtocols</code> configuration property (default <code>true</code> for backwards compatibility): when set to <code>false</code>, any <code>TLSv1</code> or <code>TLSv1.1</code> entries in <code>mockserver.tlsProtocols</code> are filtered out before the SSL context is built, giving users an opt-in hardened TLS profile without having to rewrite their existing <code>tlsProtocols</code> value. A future major release is expected to flip this default to <code>false</code>.</li>
</ul>
<h3>Added</h3>
<ul>
<li>First-class LLM and agent mocking: new <code>httpLlmResponse</code> action type lets you mock LLM provider APIs at the semantic level — describe the model's reply (text, tool calls, stop reason, usage) and MockServer produces the byte-correct provider wire format. Supports all 7 major providers: Anthropic Messages, OpenAI Chat Completions, OpenAI Responses, Google Gemini, AWS Bedrock, Azure OpenAI, and Ollama. Non-streaming responses return provider-correct JSON; streaming responses generate the full SSE event sequence (e.g. <code>message_start</code> through <code>message_stop</code> for Anthropic, <code>chat.completion.chunk</code> with <code>finish_reason</code> for OpenAI) with configurable timing physics (<code>timeToFirstToken</code>, <code>tokensPerSecond</code>, <code>jitter</code>). OpenAI embeddings are also supported with deterministic vector generation via <code>deterministicFromInput()</code>.</li>
<li>Conversation-aware matchers for multi-turn agent testing: <code>whenTurnIndex(n)</code>, <code>whenLatestMessageContains(text)</code>, <code>whenLatestMessageRole(role)</code>, and <code>whenContainsToolResultFor(toolName)</code> predicates match against the parsed <code>messages</code> array in the inbound request body, enabling scripted multi-turn conversations where turn 1 returns a <code>tool_use</code> and turn 2 (after the agent sends a <code>tool_result</code>) returns the final answer. All predicates compose with AND semantics and integrate with the scenario state machine for automatic turn advancement.</li>
<li>Per-session conversation isolation via <code>isolateBy(header("x-session-id"))</code>, <code>isolateBy(queryParameter("agent"))</code>, or <code>isolateBy(cookie("sid"))</code>: each unique value of the configured attribute gets independent scenario state, so concurrent agents sharing the same mocked endpoint do not interfere. Missing attributes fall back to shared state gracefully.</li>
<li><code>mock_llm_completion</code> MCP tool: set up a single-turn LLM expectation from the MCP control plane, specifying provider, path, model, text, tool calls, and streaming mode</li>
<li><code>create_llm_conversation</code> MCP tool: build a multi-turn scenario-chained LLM conversation with optional per-session isolation from the MCP control plane; returns the generated scenario name and per-turn state values</li>
<li>LLM Response badge in the dashboard expectation row showing provider, model, and text preview; Conversation view extended with a scripted-turns panel</li>
<li><code>mockserver.maxLlmConversationBodySize</code> configuration property (default 1 MiB; clamped to 16 KiB - 64 MiB; env var <code>MOCKSERVER_MAX_LLM_CONVERSATION_BODY_SIZE</code>): request bodies larger than this limit skip conversation-aware parsing and are treated as no-match, preventing DoS via oversized JSON payloads</li>
<li>Custom json-unit matcher support for JSON body matching: implement <code>org.mockserver.matchers.CustomJsonUnitMatcherProvider</code> and point <code>mockserver.customJsonUnitMatchersClass</code> at it to register named Hamcrest matchers that JSON body expectations can reference via the <code>${json-unit.matches:name}</code> placeholder (e.g. <code>{ "price": "${json-unit.matches:largerThan}" }</code>); misconfigured providers are logged at WARN and ignored, so matching never fails because of an unloadable extension (fixes <a href="https://redirect.github.com/mock-server/mockserver-monorepo/issues/2279">#2279</a>)</li>
<li><code>http2Enabled</code> configuration property to disable HTTP/2: when set to false ALPN no longer advertises <code>h2</code> (and h2c is not detected) so HTTP/2 capable clients fall back to HTTP/1.1</li>
<li>Agent-friendly mismatch diagnostics: <code>explain_unmatched_requests</code> MCP tool and <code>PUT /mockserver/explainUnmatched</code> REST endpoint return recent requests that matched no expectation, each with ranked closest-expectation diffs and actionable remediation hints (e.g., "use method POST not GET", "add missing header Authorization"); <code>debug_request_mismatch</code> results are now ranked by closeness and include remediation hints; new <code>mockserver://unmatched</code> MCP resource</li>
<li><code>create_expectations_from_recorded_traffic</code> MCP tool: converts traffic recorded by MockServer's forwarding/proxy mode into active mock expectations in one call, enabling an "observe then mock" workflow; supports <code>method</code>/<code>path</code> filtering and <code>preview</code> mode to inspect expectations before activating them</li>
<li>OpenAPI contract verification MCP tools: <code>verify_traffic_against_openapi</code> validates recorded request-response pairs against an OpenAPI spec (passive conformance checking); <code>run_contract_test</code> sends example requests derived from an OpenAPI spec to a running service and validates the responses (active contract testing); both return structured per-operation pass/fail results with validation errors</li>
<li>OpenAPI resiliency testing MCP tool: <code>run_resiliency_test</code> sends deliberately malformed and boundary-case requests derived from an OpenAPI spec to a running service (omitting required fields, type violations, numeric/string boundary violations, oversized strings, malformed JSON) and classifies each outcome as HANDLED (4xx) or UNEXPECTED (5xx/2xx/error); returns per-mutation results with operation summaries</li>
<li>Deterministic LLM record/replay: <code>record_llm_fixtures</code> MCP tool snapshots LLM/MCP traffic recorded through MockServer's forwarding proxy into a committable JSON fixture file with secrets automatically redacted (Authorization, api-key, Cookie, etc.); SSE streaming responses (Anthropic, OpenAI, etc.) are converted to <code>HttpSseResponse</code> actions for faithful event-by-event replay; <code>load_expectations_from_file</code> MCP tool loads fixture files as active expectations for offline, deterministic, zero-cost test replay</li>
</ul>
<h3>Changed</h3>
<ul>
<li><strong>BREAKING</strong> Inbound HTTP/1.1 and HTTP/2 request bodies are now capped at 10 MiB by default (<code>mockserver.maxRequestBodySize</code>). Previously unbounded. Requests larger than the limit are rejected with <code>413 Payload Too Large</code>. Raise the limit (e.g. <code>-Dmockserver.maxRequestBodySize=52428800</code>) if you intentionally mock large uploads.</li>
<li><strong>BREAKING</strong> Upstream response bodies received when MockServer is acting as a proxy or forwarder are now capped at 50 MiB by default (<code>mockserver.maxResponseBodySize</code>). Previously unbounded. Raise if you forward to services that legitimately return larger payloads.</li>
<li>Each published JAR (including the <code>-no-dependencies</code> shaded artifacts) now declares a stable <code>Automatic-Module-Name</code> in its <code>MANIFEST.MF</code>, so downstream JPMS consumers can <code>requires</code> MockServer modules with names that no longer change with each version: <code>org.mockserver.core</code> (<code>mockserver-core</code>), <code>org.mockserver.client</code> (<code>mockserver-client-java</code>), <code>org.mockserver.netty</code> (<code>mockserver-netty</code>), <code>org.mockserver.test</code> (<code>mockserver-testing</code>), <code>org.mockserver.testing</code> (<code>mockserver-integration-testing</code>), <code>org.mockserver.junit.rule</code> (<code>mockserver-junit-rule</code>), <code>org.mockserver.junit.jupiter</code> (<code>mockserver-junit-jupiter</code>), <code>org.mockserver.springtest</code> (<code>mockserver-spring-test-listener</code>), <code>org.mockserver.examples</code> (<code>mockserver-examples</code>), <code>org.mockse
rver.maven</code> (<code>mockserver-maven-plugin</code>); each <code>*-no-dependencies</code> shaded variant shares its unshaded counterpart's module name and is an alternative packaging (place only one on the JPMS module path)</li>
</ul>
<h3>Fixed</h3>
<ul>
<li>Dynamic CA / SSL certificate generation no longer fails when <code>dynamicallyCreateCertificateAuthorityCertificate=true</code> (or any auto-generated server certificate path) is used: the four <code>Configuration</code> fluent setters for <code>certificateAuthorityCertificate</code>, <code>certificateAuthorityPrivateKey</code>, <code>privateKeyPath</code>, and <code>x509CertificatePath</code> no longer file-existence-check at set-time, because the internal generator sets these to the destination path before the file is written. User-supplied path typos are still surfaced by <code>CertificateConfigurationValidator</code> at TLS-init time.</li>
<li>HTTP/2 requests through the HTTPS CONNECT forward proxy no longer hang and emit a GOAWAY after ~30s; the internal relay now negotiates HTTP/1.1 or HTTP/2 per connection via ALPN instead of mismatching its TLS layer and codec (fixes <a href="https://redirect.github.com/mock-server/mockserver-monorepo/issues/2260">#2260</a>)</li>
<li>Docker image and standalone executable JAR produced no log output because the shaded server JAR did not include an SLF4J logging provider (fixes <a href="https://redirect.github.com/mock-server/mockserver-monorepo/issues/2097">#2097</a>)</li>
<li><code>*-no-dependencies</code> shaded artifacts leaked their un-shaded source module (and its transitive dependencies) onto consumers' classpaths; these artifacts are now truly dependency-free</li>
</ul>
</blockquote>
</details>
<details>
<summary>Commits</summary>
<ul>
<li><a href="https://github.com/mock-server/mockserver-monorepo/commit/33c2739febd07ce1bf1e3f31ed9d93a61ac871dc"><code>33c2739</code></a> release: set version 6.1.0</li>
<li><a href="https://github.com/mock-server/mockserver-monorepo/commit/6329f8f58abc755416c1d6559ea2179e73a12c9b"><code>6329f8f</code></a> fixed typo in the openapi specification</li>
<li><a href="https://github.com/mock-server/mockserver-monorepo/commit/e9cf8b9f6103f5245e75b347eeee70269062887b"><code>e9cf8b9</code></a> docs: refresh MockServerLibrary.png to show the new 5-format Export dropdown</li>
<li><a href="https://github.com/mock-server/mockserver-monorepo/commit/8343ac3b4157c08facf94b84d785fe0f19a793d9"><code>8343ac3</code></a> feat(core+ui): export expectations & recorded requests as OpenAPI, Postman, o...</li>
<li><a href="https://github.com/mock-server/mockserver-monorepo/commit/ebc2cdecb750735494a110ae093f1f9e34f2ef95"><code>ebc2cde</code></a> feat(ui+netty): Composer + Library tabs, inline LLM form, full request matche...</li>
<li><a href="https://github.com/mock-server/mockserver-monorepo/commit/cd33d635d2be0fbf1cc6684f7f0013f4aa0e1c51"><code>cd33d63</code></a> fix(ui+netty): show mock-matched traffic in Traffic/Sessions/Compare Runs; re...</li>
<li><a href="https://github.com/mock-server/mockserver-monorepo/commit/adaed5a72056ccbcaafaf1e6499298db1474523c"><code>adaed5a</code></a> feat(ui): LLM dashboard Tier 3 — cassette manager + structural trajectory diff</li>
<li><a href="https://github.com/mock-server/mockserver-monorepo/commit/ef50066c98963870ba7110fdcf06cb4d40294b05"><code>ef50066</code></a> feat(ui): LLM dashboard Tier 2 — token/cost rollup + session inspector</li>
<li><a href="https://github.com/mock-server/mockserver-monorepo/commit/63aef2f79466a765ef7095f65d6f83e4f164a05f"><code>63aef2f</code></a> feat(ui): LLM dashboard Tier 2 — capture-as-mock + conversation wizard</li>
<li><a href="https://github.com/mock-server/mockserver-monorepo/commit/09ab113d551e6681e987285ae9d0aedef81017ef"><code>09ab113</code></a> fix(ui): narrow array index access in ScriptedTurnsPanel for noUncheckedIndex...</li>
<li>Additional commits viewable in <a href="https://github.com/mock-server/mockserver-monorepo/compare/mockserver-6.0.0...mockserver-6.1.0">compare view</a></li>
</ul>
</details>
<br />
Updates `org.mock-server:mockserver-client-java` from 6.0.0 to 6.1.0
Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting `@dependabot rebase`.
[//]: # (dependabot-automerge-start)
[//]: # (dependabot-automerge-end)
---
<details>
<summary>Dependabot commands and options</summary>
<br />
You can trigger Dependabot actions by commenting on this PR:
- `@dependabot rebase` will rebase this PR
- `@dependabot recreate` will recreate this PR, overwriting any edits that have been made to it
- `@dependabot show <dependency name> ignore conditions` will show all of the ignore conditions of the specified dependency
- `@dependabot ignore this major version` will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
- `@dependabot ignore this minor version` will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
- `@dependabot ignore this dependency` will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)
</details>
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: issues-unsubscribe@artemis.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@artemis.apache.org
For additional commands, e-mail: issues-help@artemis.apache.org
Re: [PR] ARTEMIS-X Bump mockserver.version from 6.0.0 to 6.1.0 [artemis]
Posted by "dependabot[bot] (via GitHub)" <gi...@apache.org>.
dependabot[bot] commented on PR #6476:
URL: https://github.com/apache/artemis/pull/6476#issuecomment-4576953358
OK, I won't notify you again about this release, but will get in touch when a new version is available. You can also ignore all major, minor, or patch releases for a dependency by adding an [`ignore` condition](https://docs.github.com/en/code-security/supply-chain-security/configuration-options-for-dependency-updates#ignore) with the desired `update_types` to your config file.
If you change your mind, just re-open this PR and I'll resolve any conflicts on it.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: issues-unsubscribe@artemis.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@artemis.apache.org
For additional commands, e-mail: issues-help@artemis.apache.org
Re: [PR] ARTEMIS-X Bump mockserver.version from 6.0.0 to 6.1.0 [artemis]
Posted by "jbertram (via GitHub)" <gi...@apache.org>.
jbertram closed pull request #6476: ARTEMIS-X Bump mockserver.version from 6.0.0 to 6.1.0
URL: https://github.com/apache/artemis/pull/6476
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: issues-unsubscribe@artemis.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@artemis.apache.org
For additional commands, e-mail: issues-help@artemis.apache.org