MockServer v5.13.0 Release Notes
Release Date: 2022-03-17 // about 2 years ago-
โ Added
- โ added support for configuring log level via properties file
- ๐ allow proactively initialisation of TLS so dynamic TLS CA key pair is created at start up
- โ added control plane authorisation using mTLS
- โ added control plane authorisation using JWT
- โ added support for control plane JWTs supplier to client
- โ added support for control plane JWT authorisation to specify required audience, matching claims and required claims
- โ added control plane authorisation using both JWT and mTLS
- โ added property to control maximum number of requests to return in verification failure, defaults to 10
- โ added field to verifications to control maximum number of requests to return in verification failure, defaults to configuration property - item above
- โ added remote address field to http requests that can be used by class or method callbacks
- ๐ฆ exposed remote address (i.e. client address) to method and class callbacks, logs and dashboard
- ๐ฆ exposed client certificate chain to method and class callbacks, logs and dashboard
- โ added simpler mustache style response templates (in addition to existing javascript and velocity support)
- โ added response template variables and functions for date, uuid, random, xPath and jsonPath for mustache
- โ added response template variables for date, uuid and random for velocity
- โ added response template variables for date, uuid and random for javascript
- โ added path parameters, remote address and client certificate chain to response template model
- โ added support for EMCAScript 6 in JavaScript response templates for Java versions between 9 and 15
- โ added support for numerous velocity tools for example for JSON and XML parsing to velocity response templates
๐ Changed
- 0๏ธโฃ included Bouncy Castle now used by default to resolve issues with modules in Java 16+ and backwards compatibility for Java 8
- ๐ improved configuration for dynamically creating CA so the directory is defaulted if not set and log output is clearer
- ๐ improved UI handling of match failures with a because section and more complex log events
- ๐ improved log configuration during startup when loading of properties file
- ๐ simplified support for multiline regex by allow . to match newlines
- ๐ improved regex matching by support Unicode (instead of US-ASCII) and native case-insensitive matching
- ๐ improved performance of negative matches by reducing the number of regex matches when not matching
- disabled privilege escalation in helm chart
- โ added setting of command line flags (i.e. serverPort) via system properties and properties file in addition to environment variables
- ๐ improved log output for command line flags, environment variables and system properties
- โ removed deprecated configuration properties for forward proxying
- ๐ changed docker distroless base image to distroless image for nonroot user
- ๐ changed docker distroless base image for snapshot to distroless image for debugging
- ๐ changed client to launch dashboard in HTTP (not HTTPS) to avoid issues with self-signed certificates
- simplified the body field for response template model
- ๐ improved XML matching by ignoring element order
- ๐ improved security by change CORS defaults to more secure values that prevent cross-site requests by default
๐ Fixed
- worked around JDK error 'flip()Ljava/nio/ByteBuffer; does not exist in class java.nio.ByteBuffer'
- ๐ป null pointer exception when serialising string bodies with non string content types (i.e. image/png)
- disabled native TLS for netty to improve TLS resilience
- ๐ fixed handling of circular references in OpenAPI specifications to be as gracefully as possible