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