<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:cc="http://cyber.law.harvard.edu/rss/creativeCommonsRssModule.html">
    <channel>
        <title><![CDATA[KrakenD - Medium]]></title>
        <description><![CDATA[Delivering 1st class products for microservices. Creators of the fastest API Gateway https://www.krakend.io - Medium]]></description>
        <link>https://medium.com/krakend?source=rss----5491725d3222---4</link>
        <image>
            <url>https://cdn-images-1.medium.com/proxy/1*TGH72Nnw24QL3iV9IOm4VA.png</url>
            <title>KrakenD - Medium</title>
            <link>https://medium.com/krakend?source=rss----5491725d3222---4</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Tue, 24 Nov 2026 02:32:21 GMT</lastBuildDate>
        <atom:link href="https://medium.com/feed/krakend" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[KrakenD Enterprise 2.2 released]]></title>
            <link>https://medium.com/krakend/krakend-enterprise-2-2-released-de192beb78a9?source=rss----5491725d3222---4</link>
            <guid isPermaLink="false">https://medium.com/p/de192beb78a9</guid>
            <dc:creator><![CDATA[KrakenD API Gateway]]></dc:creator>
            <pubDate>Tue, 28 Feb 2023 08:27:29 GMT</pubDate>
            <atom:updated>2023-02-28T08:27:29.335Z</atom:updated>
            <content:encoded><![CDATA[<p>The new KrakenD Enterprise version <strong>2.2</strong> is <a href="https://www.krakend.io/docs/enterprise/overview/installing/">now available</a>, and it’s <strong>supercharged</strong>: Introduces <strong>dynamic routing based on headers and query strings</strong>, adds a <strong>security policies</strong> engine, upgrades to <strong>OpenAPI 3</strong>, improves <strong>SOAP integration</strong>, default <strong>gzip compression</strong> and a lot more… see below.</p><h4>Security Policies: Enforce any check, anywhere</h4><p>From RBAC and ABAC, to lifecycle management, restriction of content by country, validation custom cryptography or other strategies, … The <a href="https://www.krakend.io/docs/enterprise/security-policies/">new policies engine</a> allows you to do any custom evaluations you need, during runtime and with access to query strings, URLs, parameters, cookies, tokens, time functions, geolocation, cryptography, and a long etcetera.</p><p>Here’s a couple of elementary examples:</p><pre>// Is the user from the right department?<br>has(JWT.department) &amp;&amp; JWT.department in [&quot;marketing&quot;, &quot;sales&quot;]</pre><p>Or</p><pre>{<br>  &quot;req&quot;: {<br>    &quot;policies&quot;: [<br>      &quot;timestamp(now)&lt; timestamp(&#39;2023-01-01T10:00:20.000-05:00&#39;) || timestamp(now)&gt; timestamp(&#39;2023-01-01T12:00:20.000-05:00&#39;)&quot;<br>    ],<br>    &quot;error&quot;: {<br>      &quot;body&quot;: &quot;The system is down for maintenance from 10am to 12pm. Come back later&quot;,<br>      &quot;status&quot;: 500<br>    }<br>  }<br>}</pre><p>Policies are potent and allow you to perform many checks and return custom errors before or after hitting your services, see <a href="https://www.krakend.io/docs/enterprise/security-policies/playbook/">some examples</a>.</p><h4>Security Audit: Automated advice on your pipeline</h4><p>The <a href="https://www.krakend.io/docs/configuration/audit/">security audit command</a> (krakend audit) parses and analyzes your configurations and outputs <strong>security recommendations</strong>. We have designed it to run as a standalone command or integrated it into your existing CI/CD pipeline to avoid dangerous configurations, such as unwillingly disabling the TLS, setting excessive timeouts, unprotected endpoints, or similar scenarios.</p><figure><img alt="KrakenD Audit screenshot" src="https://cdn-images-1.medium.com/max/1024/0*h6Em-No7Qwx5v3yw.png" /></figure><h4>Dynamic routing based on headers and query strings</h4><p>The dynamic routing extends the routing capabilities to add header and query string processing to assemble the final upstream URL you want to reach.</p><pre>{<br>  &quot;endpoint&quot;: &quot;/foo&quot;,<br>  &quot;backend&quot;:[<br>    {<br>      &quot;url_pattern&quot;: &quot;/{input_headers.X-Tenant}/foo&quot;<br>    }<br>  ]<br>}</pre><h4>JWT validation</h4><p>Improvements on the JWT validator:</p><ul><li>Extraction of JSON from paths in JWT claims has been improved</li><li>JWT is now more restrictive and fallbacks to returning 401 error codes with incorrect configurations.</li><li>The JWK URL requests to your identity server now include a KrakenD-specific user agent.</li></ul><h4>New manipulation options</h4><p>In this category, we have enabled the following features:</p><ul><li>The <a href="https://www.krakend.io/docs/enterprise/backends/soap/">SOAP integration with data injection</a> allows you to expose GET endpoints that send dynamic POST data generated with templates</li><li>The <a href="https://www.krakend.io/docs/enterprise/endpoints/jmespath/">JMESpath Query Language</a> is now available on backends, extending the endpoint-level functionality</li><li><a href="https://www.krakend.io/docs/enterprise/backends/body-generator/">Body transformation and generation</a>. Create the body of requests using templates and inject other input data like headers, query strings, or URL parameters.</li></ul><h4>Connectivity</h4><ul><li><a href="https://www.krakend.io/docs/enterprise/endpoints/dynamic-routing/">Header and Query string routing</a> a much claimed functionality!</li><li><a href="https://www.krakend.io/docs/enterprise/service-settings/gzip/">Gzip compression</a> to all outgoing traffic by default.</li><li><a href="https://www.krakend.io/docs/enterprise/backends/soap/">SOAP integration</a> with data injection using templates</li><li><a href="https://www.krakend.io/docs/enterprise/backends/http-proxy/">HTTP proxy plugin</a>, to connect to all or some backends using a corporate proxy.</li><li><a href="https://www.krakend.io/docs/enterprise/telemetry/jaeger/">Jaeger exporter</a> now supports the <strong>UDP protocol</strong> to post traces to a Jaeger-agent.</li><li><a href="https://www.krakend.io/docs/throttling/botdetector/#empty_user_agent_is_bot">Bot Detector</a> adds the flag empty_user_agent_is_bot to define empty user agent treatment.</li></ul><h4>OpenAPI 3</h4><p>Added <a href="https://www.krakend.io/docs/enterprise/developer/openapi/">OpenAPI 3</a> through flag --oas3 supporting import, export, mocking, and JSON schema. The previous Swagger 2.0 has received improvements as well.</p><h4>Configuration</h4><ul><li><a href="https://www.krakend.io/docs/configuration/flexible-config/">Flexible Configuration</a> component upgrades Sprig from v2 to v3. This has changes in the way ^ is handled. Some new functions available are fromJson, addf, maxf, mulf, osBase, osDir, osExt, osClean, or osIsAbs.</li><li>Flexible Configuration with <strong>YAML</strong> or <strong>TOML</strong> is now possible.</li></ul><h4>Full changelog</h4><ul><li>[feature] <a href="https://www.krakend.io/docs/enterprise/security-policies/">Security Policies engine</a>.</li><li>[feature] <a href="https://www.krakend.io/docs/configuration/audit/">krakend audit command</a>.</li><li>[feature] <a href="https://www.krakend.io/docs/enterprise/endpoints/jmespath/">JMESpath Query Language</a></li><li>[feature] <a href="https://www.krakend.io/docs/enterprise/backends/soap/">SOAP integration with data injection</a></li><li>[feature] <a href="https://www.krakend.io/docs/enterprise/backends/body-generator/">Body manipulation and generation</a></li><li>[feature] <a href="https://www.krakend.io/docs/enterprise/backends/http-proxy/">HTTP proxy plugin</a></li><li>[feature] <a href="https://www.krakend.io/docs/enterprise/developer/openapi/">OpenAPI 3</a></li><li>[feature] <a href="https://www.krakend.io/docs/configuration/flexible-config/">Flexible Configuration upgraded</a></li><li>[feature] <a href="https://www.krakend.io/docs/enterprise/telemetry/jaeger/">UDP on Jaeger exporter</a>.</li><li>[feature] <a href="https://www.krakend.io/docs/throttling/botdetector/#empty_user_agent_is_bot">Bot Detector</a></li><li>[feature] <a href="https://www.krakend.io/docs/enterprise/service-settings/gzip/">Gzip compression</a></li><li>[feature] <a href="https://www.krakend.io/docs/enterprise/authorization/jwt-validation/">Improvements on the JWT validator</a></li><li>[feature] <a href="https://www.krakend.io/docs/enterprise/authentication/basic-authentication/">Upgraded Basic Authentication</a></li></ul><p><strong>Relevant fixes</strong>:</p><ul><li>[bugfix] When you were loading multiple plugins, and one of them failed, the gateway did not load the rest. Now the sequence will continue excluding the failing one.</li><li>[bugfix] Older Docker images raised false positives when performing security scans due to an unused but included library (Thrift server). This library is no longer in the code.</li></ul><p>Upgrading to the latest version is always advised.</p><p>Tags: <a href="https://www.krakend.io/tags/enterprise/">enterprise</a><a href="https://www.krakend.io/tags/release-notes/">release notes</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=de192beb78a9" width="1" height="1" alt=""><hr><p><a href="https://medium.com/krakend/krakend-enterprise-2-2-released-de192beb78a9">KrakenD Enterprise 2.2 released</a> was originally published in <a href="https://medium.com/krakend">KrakenD</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[KrakenD 2.2.1 (patch version) released]]></title>
            <link>https://medium.com/krakend/krakend-2-2-1-patch-version-released-4bd867994c3a?source=rss----5491725d3222---4</link>
            <guid isPermaLink="false">https://medium.com/p/4bd867994c3a</guid>
            <dc:creator><![CDATA[KrakenD API Gateway]]></dc:creator>
            <pubDate>Fri, 24 Feb 2023 10:10:42 GMT</pubDate>
            <atom:updated>2023-02-24T10:10:42.172Z</atom:updated>
            <content:encoded><![CDATA[<p>A new <strong>patch version</strong> KrakenD <strong>2.2.1</strong> is available to <a href="https://www.krakend.io/download/">download page</a>. Upgrading from any 2.x does not require changes in the configuration.</p><h4>What’s changed in v2.2.1 vs 2.2.0</h4><p>This patch version includes the following fixes:</p><ul><li>[bugfix] Fixed memory leak on Shadow Proxies when the response wasn’t a 200</li><li>[bugfix] Fixed audit command that would still warn on some fixed issues</li><li>[security] Upgraded Go to version 1.20.1</li></ul><p><strong>Full Changelog</strong>: <a href="https://github.com/krakendio/krakend-ce/compare/v2.2.0...v2.2.1">https://github.com/krakendio/krakend-ce/compare/v2.2.0...v2.2.1</a></p><p>Upgrade to the latest version is always advised.</p><p>Tags: <a href="https://www.krakend.io/tags/open-source/">open source</a><a href="https://www.krakend.io/tags/release-notes/">release notes</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=4bd867994c3a" width="1" height="1" alt=""><hr><p><a href="https://medium.com/krakend/krakend-2-2-1-patch-version-released-4bd867994c3a">KrakenD 2.2.1 (patch version) released</a> was originally published in <a href="https://medium.com/krakend">KrakenD</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[KrakenD CE v2.2 released!]]></title>
            <link>https://medium.com/krakend/krakend-ce-v2-2-released-b797019b4edb?source=rss----5491725d3222---4</link>
            <guid isPermaLink="false">https://medium.com/p/b797019b4edb</guid>
            <dc:creator><![CDATA[KrakenD API Gateway]]></dc:creator>
            <pubDate>Fri, 03 Feb 2023 13:12:58 GMT</pubDate>
            <atom:updated>2023-02-03T13:12:58.476Z</atom:updated>
            <content:encoded><![CDATA[<p>The KrakenD team is pleased to announce the release of <strong>KrakenD Community Edition v2.2</strong>. It introduces a new <strong>security audit command</strong> (krakend audit) that parses and analyzes your configurations and outputs <strong>security recommendations</strong>. We have designed it to run as a standalone command or integrated it into your existing CI/CD pipeline to avoid dangerous configurations, such as unwillingly disabling the TLS, setting excessive timeouts, unprotected endpoints, or similar scenarios.</p><p>You can get v2.2 packaged for several options from the <a href="https://www.krakend.io/download/">download page</a>.</p><p><strong>New features</strong>:</p><ul><li>[feature] The <a href="https://www.krakend.io/docs/configuration/audit/">krakend audit command</a>.</li><li>[feature] The <a href="https://www.krakend.io/docs/configuration/flexible-config/">Flexible Configuration</a> component upgrades Sprig from v2 to v3. This has changes in the way ^ is handled. Some of the new functions available are fromJson, addf, maxf, mulf, osBase, osDir, osExt, osClean, or osIsAbs. It also documents how to use yaml or toml to write configurations using FC.</li><li>[feature] The Jaeger exporter now supports the <strong>UDP protocol</strong> to post traces to a Jaeger-agent.</li><li>[feature] The <a href="https://www.krakend.io/docs/throttling/botdetector/#empty_user_agent_is_bot">Bot Detector</a> adds the flag empty_user_agent_is_bot to define empty user agent treatment.</li><li>[feature] The OpenCensus exporters add new logging capabilities and more debugging information.</li><li>[feature] Improvements on the JWT validator:</li><li>Extraction of JSON from paths in JWT claims has been improved</li><li>JWT is now more restrictive, and fallbacks to returning 401 error codes with incorrect configurations.</li><li>The JWK URL downloads from your identity server include now a KrakenD-specific user agent.</li></ul><p><strong>Relevant fixes</strong>:</p><ul><li>[bugfix] When you were loading multiple plugins, and one of them failed, the gateway did not load the rest. Now the sequence will continue excluding the failing one.</li><li>[bugfix] Older Docker images raised false positives when performing security scans due to an unused but included library (Thrift server). This library is no longer in the code.</li></ul><h4>Commit changelog</h4><p>List of all changes in KrakenD Community Edition and its krakend packages in use between v2.1.4 and v2.2.0</p><h4>Commits in KrakenD-CE</h4><ul><li>v2.2.0 bumped</li><li>botdetector pkg updated</li><li>flexibleconfig pkg updated</li><li>opencensus pkg updated</li><li>ratelimit pkg updated</li><li>deps updated</li><li>cobra pkg upgraded</li><li>usage pkg upgraded to v2</li><li>audit cmd added</li><li>Add git to the alpine builder to be able to install modules without GOPROXY.</li><li>Add security scanning to container images</li><li>Use the recommended replacements for io/ioutil functions</li><li>Add security scan for the repository</li></ul><h4>Changes in krakend-audit</h4><ul><li>give better recommendation messages</li><li>audit package to check security recommendations</li><li>Initial commit</li></ul><h4>Changes in krakend-botdetector</h4><ul><li>Autofix issues in 1 file</li><li>flag to reject requests with empty user-agent added</li></ul><h4>Changes in krakend-cobra</h4><ul><li>Autofix issues in 1 file</li><li>audit pkg updated</li><li>remove colors if not running on a tty</li><li>write the recommendations on stderr</li><li>update deps</li><li>minor refactor</li><li>Change terminal colors</li><li>add colors to severity levels if executed in a terminal</li><li>audit pkg updated</li><li>return status 1 when there are recommendations</li><li>minor refactor</li><li>minor refactor</li><li>audit command added</li></ul><h4>Changes in krakend-flexibleconfig</h4><ul><li>avoid using deprecated function</li><li>avoid using deprecated function</li><li>use DirEntry instead of FileInfo</li><li>Autofix issues in 2 files</li><li>sprig upgraded to v3</li><li>gh workflows upgraded</li></ul><h4>Changes in krakend-jose</h4><ul><li>gh workflow updated</li><li>Autofix issues in 2 files</li><li>double check the handler is never executed when parsing fails</li><li>return a 401 handler if config parser fails</li><li>upgrade go version</li><li>reuse the claim extractor</li><li>gocloud version upgraded to v0.28.0</li><li>send a custom user agent when requesting the JWK</li><li>improve json extraction</li></ul><h4>Changes in krakend-opencensus</h4><ul><li>Unused parameter should be replaced by underscore</li><li>jaeger exporter updated</li></ul><h4>Changes in krakend-ratelimit</h4><ul><li>fix ClientCapacity does not have correct default value when MaxRate is zero</li></ul><p><a href="https://github.com/krakendio/krakend-ce/compare/v2.1.4...v2.2.0">Compare releases</a></p><p>Tags: <a href="https://www.krakend.io/tags/open-source/">open source</a><a href="https://www.krakend.io/tags/release-notes/">release notes</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=b797019b4edb" width="1" height="1" alt=""><hr><p><a href="https://medium.com/krakend/krakend-ce-v2-2-released-b797019b4edb">KrakenD CE v2.2 released!</a> was originally published in <a href="https://medium.com/krakend">KrakenD</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[KrakenD Enterprise 2.1.2 (security fix) released]]></title>
            <link>https://medium.com/krakend/krakend-enterprise-2-1-2-security-fix-released-a89e9b67563f?source=rss----5491725d3222---4</link>
            <guid isPermaLink="false">https://medium.com/p/a89e9b67563f</guid>
            <dc:creator><![CDATA[KrakenD API Gateway]]></dc:creator>
            <pubDate>Mon, 23 Jan 2023 14:50:40 GMT</pubDate>
            <atom:updated>2023-01-23T14:50:40.357Z</atom:updated>
            <content:encoded><![CDATA[<p>The new KrakenD Enterprise version <strong>2.1.2</strong> is already available for <a href="https://www.krakend.io/docs/enterprise/overview/installing/">install or upgrade</a>. This patch version does not bring significant new functionality but updates dependencies that have <strong>security vulnerabilities</strong> and adds a few fixes:</p><ul><li>[security]: Upgrade from Go 1.19.3 to Go 1.19.5, which includes security fixes to the net/http, crypto/x509, and os packages amongst others.</li><li>[fix]: Caching backends with gzipped content wasn’t working properly</li><li>[fix]: Upgraded the gin router to avoid panics on certain 404 paths.</li><li>[fix]: Improve render selection when negotiating XML content</li><li>[feature]: Add the content-type header when returning errors</li><li>[fix]: Use a float instead of an integer for API keys rate limiting</li><li>[fix]: Add security definitions to OpenAPI generation</li></ul><p>Upgrade to the latest version is always advised.</p><p>Tags: <a href="https://www.krakend.io/tags/open-source/">open source</a><a href="https://www.krakend.io/tags/release-notes/">release notes</a><a href="https://www.krakend.io/tags/security/">security</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=a89e9b67563f" width="1" height="1" alt=""><hr><p><a href="https://medium.com/krakend/krakend-enterprise-2-1-2-security-fix-released-a89e9b67563f">KrakenD Enterprise 2.1.2 (security fix) released</a> was originally published in <a href="https://medium.com/krakend">KrakenD</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[KrakenD 2.1.4 (security fix) released]]></title>
            <link>https://medium.com/krakend/krakend-2-1-4-security-fix-released-e7b6386859d3?source=rss----5491725d3222---4</link>
            <guid isPermaLink="false">https://medium.com/p/e7b6386859d3</guid>
            <dc:creator><![CDATA[KrakenD API Gateway]]></dc:creator>
            <pubDate>Mon, 16 Jan 2023 09:59:07 GMT</pubDate>
            <atom:updated>2023-01-16T09:59:07.506Z</atom:updated>
            <content:encoded><![CDATA[<p>The new KrakenD version <strong>2.1.4</strong> is <a href="https://www.krakend.io/download/">now available</a>. This patch version does not bring significant new functionality but updates dependencies that have security vulnerabilities and adds a few fixes:</p><ul><li>[security]: Upgrade from Go 1.19.3 to Go 1.19.5, which includes security fixes to the net/http, crypto/x509, and os packages amongst others.</li><li>[fix]: Caching backends with gzipped content wasn’t working properly</li><li>[fix]: Upgraded the gin router to avoid panics on certain 404 paths.</li><li>[fix]: Improve render selection when negotiating XML content</li><li>[feature]: Add the content-type header when returning errors</li></ul><p>Upgrade to the latest version is always advised.</p><p>Tags: <a href="https://www.krakend.io/tags/open-source/">open source</a><a href="https://www.krakend.io/tags/release-notes/">release notes</a><a href="https://www.krakend.io/tags/security/">security</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=e7b6386859d3" width="1" height="1" alt=""><hr><p><a href="https://medium.com/krakend/krakend-2-1-4-security-fix-released-e7b6386859d3">KrakenD 2.1.4 (security fix) released</a> was originally published in <a href="https://medium.com/krakend">KrakenD</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[KrakenD 2.1.1 EE (patch version) released]]></title>
            <link>https://medium.com/krakend/krakend-2-1-1-ee-patch-version-released-bb0e357acc7f?source=rss----5491725d3222---4</link>
            <guid isPermaLink="false">https://medium.com/p/bb0e357acc7f</guid>
            <dc:creator><![CDATA[KrakenD API Gateway]]></dc:creator>
            <pubDate>Fri, 25 Nov 2022 11:58:22 GMT</pubDate>
            <atom:updated>2022-11-25T11:58:22.523Z</atom:updated>
            <content:encoded><![CDATA[<p>The new KrakenD Enterprise version <strong>2.1.1</strong> is already available for <a href="https://www.krakend.io/docs/enterprise/overview/installing/">install or upgrade</a>. This patch version does not bring new API Gateway functionality but adds support for <strong>ARM64</strong> and other improvements.</p><h4>What’s changed in EE v2.1.1 vs EE 2.1.0</h4><p>This version includes the following changes:</p><ul><li>New flag --log (or -l) on the krakend e2e to define where the output of the integration tests are saved.</li><li>Architectures: Now officially supporting <strong>ARM64 architectures</strong>, releasing new Docker containers and packages.</li><li>A new flag, hide_version_header, placed in the router settings, allows obfuscating the X-Krakend-Version header.</li><li>Performance improvement on Lambda usage</li><li>Bugfix: Return a 400 status code when the body is empty or a malformed JSON</li><li>Bugfix: Reject requests with special chars in the params</li></ul><p>Tags: <a href="https://www.krakend.io/tags/enterprise/">enterprise</a><a href="https://www.krakend.io/tags/release-notes/">release notes</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=bb0e357acc7f" width="1" height="1" alt=""><hr><p><a href="https://medium.com/krakend/krakend-2-1-1-ee-patch-version-released-bb0e357acc7f">KrakenD 2.1.1 EE (patch version) released</a> was originally published in <a href="https://medium.com/krakend">KrakenD</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[KrakenD 2.1 released!]]></title>
            <link>https://medium.com/krakend/krakend-2-1-released-45bdcbce516f?source=rss----5491725d3222---4</link>
            <guid isPermaLink="false">https://medium.com/p/45bdcbce516f</guid>
            <dc:creator><![CDATA[KrakenD API Gateway]]></dc:creator>
            <pubDate>Mon, 03 Oct 2022 11:47:44 GMT</pubDate>
            <atom:updated>2022-10-03T11:47:43.892Z</atom:updated>
            <content:encoded><![CDATA[<p>The KrakenD team is pleased to announce the release of <strong>KrakenD 2.1</strong>. You can get it packaged from the <a href="https://www.krakend.io/download/">download page</a>.</p><p>KrakenD 2.1 brings a new <strong>ready-to-use Kibana dashboard</strong>, an updated <strong>Grafana Dashboard</strong> for InfluxDB v2 and more features and bugfixes described below:</p><p><strong>New features</strong>:</p><ul><li>Added a <strong>krakend version command</strong> that outputs the KrakenD, Go, and Glibc versions.</li><li>Added <a href="https://www.krakend.io/docs/service-settings/http-transport-settings/">allow_insecure_connections flag</a> to ease development stages that use self-signed certificates.</li><li><a href="https://www.krakend.io/docs/logging/#writing-the-log-on-a-file">Easier logging to disk</a> or remote server logging via the configurable syslog facility</li><li><a href="https://www.krakend.io/docs/service-settings/router-options/#custom-json-body-for-404-and-405-errors">Customizable response body for 404 and 405 errors</a></li><li>Added <strong>context propagation</strong> between Handler plugins and KrakenD Client plugins (router gin 1.8.1)</li><li>Added capacity and client_capacity (<a href="https://www.krakend.io/docs/throttling/token-bucket/">token bucket</a> size) to <a href="https://www.krakend.io/docs/endpoints/rate-limit/">router rate limit</a>, previously only on backend rate limit.</li><li>We have created a new git repository <a href="https://github.com/krakendio/telemetry-dashboards">Telemetry Dashboards</a> that includes:</li><li>A new <a href="https://github.com/krakendio/telemetry-dashboards/tree/main/kibana">Kibana dashboard</a></li></ul><figure><img alt="Kibana Dashboard" src="https://cdn-images-1.medium.com/max/1024/0*LyPBulZiPhyT2STW.png" /></figure><ul><li>A <a href="https://github.com/krakendio/telemetry-dashboards/tree/main/grafana">Grafana dashboard</a> for <strong>Influx v2</strong>, using Flux queries and its datasource files.</li><li><a href="https://github.com/krakendio/telemetry-dashboards/tree/main/logstash">Logstash</a> ingestion configurations</li><li><a href="https://github.com/krakendio/telemetry-dashboards/tree/main/influx">Influx v2 automatic Auth creation</a></li></ul><p><strong>Relevant fixes</strong>:</p><ul><li>Logging consistency (Bot detector, Bloom filter, Gologging)</li><li>Better control of errors when GELF is failing</li><li>Influx client not initialized during startup randomly (namespace collision being the cause)</li><li>The check-plugin command could panic when analyzing malformed files.</li></ul><p><strong>Youtube channel!</strong></p><p>We have started to create video content on our <a href="https://www.youtube.com/c/KrakenDAPIGateway">KrakenD API Gateway channel</a> on youtube, subscribe!</p><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fwww.youtube.com%2Fembed%2FVtXXZRO84t8%3Ffeature%3Doembed&amp;display_name=YouTube&amp;url=https%3A%2F%2Fwww.youtube.com%2Fwatch%3Fv%3DVtXXZRO84t8&amp;image=https%3A%2F%2Fi.ytimg.com%2Fvi%2FVtXXZRO84t8%2Fhqdefault.jpg&amp;key=a19fcc184b9711e1b4764040d3dc5c07&amp;type=text%2Fhtml&amp;schema=youtube" width="854" height="480" frameborder="0" scrolling="no"><a href="https://medium.com/media/974835325d8869bbb1529f16d81fefa3/href">https://medium.com/media/974835325d8869bbb1529f16d81fefa3/href</a></iframe><h4>Changelog</h4><p>List of all changes in KrakenD Community Edition and its krakend packages in use between v2.0.6 and v2.1.0</p><h4>Changes in KrakenD-CE</h4><ul><li>colons should be allowed in the error body</li><li>Upgrade alpine version. Go mod tidy.</li><li>Add labeler bot</li><li>remove colliding alias</li><li>Be able to configure through the router extra config the NoRoute and NoMethod handlers to return a custom json as body.</li><li>Log the start of the improved logging only if no errors are present.</li><li>Set the gelfWriter to nil if there’s an error in gelf since if you return an interface that have an underlying pointer it’s never nil.</li><li>Gologging should not log an error if the configuration is not present. Log the succesful start of the component.</li><li>Add rsyslog and logrotate configuration files and as depencencies of the deb and rpm packages.</li><li>Systemd: remove invalid reload command and add a graceful shutdown</li></ul><h4>Changes in krakend-botdetector</h4><ul><li>Avoid aborting with an error. Pass the logger and log the error like in the mux implementation.</li></ul><h4>Changes in krakend-cobra</h4><ul><li>Skip line if it’s empty to avoid panic.</li><li>Update descriptions of commands</li><li>Dump Go and Glib versions also.</li><li>Remove unused versionFunc args</li><li>Add a command that shows only the KrakenD version number</li></ul><h4>Changes in krakend-gologging</h4><ul><li>Add syslog severity from the level</li><li>Add the syslog facility instead of using the default (KERN). Add a FormatterSelector for syslog with custom format. Default facility set to LOCAL3</li></ul><h4>Changes in krakend-influx</h4><ul><li>logs normalized</li><li>Consistent log prefix across executor and components</li></ul><h4>Changes in krakend-ratelimit</h4><ul><li>fix regression if no capacity is defined</li><li>capacity added to the router and service config levels</li></ul><p>Tags: <a href="https://www.krakend.io/tags/open-source/">open source</a><a href="https://www.krakend.io/tags/release-notes/">release notes</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=45bdcbce516f" width="1" height="1" alt=""><hr><p><a href="https://medium.com/krakend/krakend-2-1-released-45bdcbce516f">KrakenD 2.1 released!</a> was originally published in <a href="https://medium.com/krakend">KrakenD</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[KrakenD partners with Child Rescue Coalition]]></title>
            <link>https://medium.com/krakend/krakend-partners-with-child-rescue-coalition-cc32b42f0702?source=rss----5491725d3222---4</link>
            <guid isPermaLink="false">https://medium.com/p/cc32b42f0702</guid>
            <category><![CDATA[donations]]></category>
            <category><![CDATA[company]]></category>
            <category><![CDATA[open-source]]></category>
            <category><![CDATA[press-release]]></category>
            <dc:creator><![CDATA[KrakenD API Gateway]]></dc:creator>
            <pubDate>Tue, 20 Sep 2022 07:15:43 GMT</pubDate>
            <atom:updated>2022-09-20T07:19:26.494Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*9Yelq-fTBzLNLuMCfHUP2g.png" /><figcaption>KrakenD partners with Child Rescue Coalition</figcaption></figure><p><em>Barcelona, September 19th 2022</em>.- KrakenD announces today the partnership with Child Rescue Coalition. Child Rescue Coalition (CRC) is a nonprofit organization whose mission is to rescue children from sexual abuse by building technology for law enforcement to track, arrest and prosecute child predators. <strong>KrakenD has donated an unlimited commercial license (KrakenD Enterprise) to CRC to help them build and scale their APIs-oriented technological platform</strong>.</p><p>CRC has contributed to rescuing more than 3,200 children from sexual exploitation and abuse. It has also arrested more than 14,000 dangerous predators, preventing the abuse of more than 700,000 children across the globe.</p><p>“<em>I had the chance to meet William Wiltse and have him guide me through Child Rescue Coalition’s technology. It’s incredible what this organization has achieved so far; it is the perfect example of how technology can improve people’s lives. So we wanted to team up as partners and put our product and services at their entire disposal to go even further in this challenging mission of </em><strong><em>protecting children and prosecuting abusers through technology</em></strong><em>.</em>”, said Albert Lombarte, CEO of KrakenD.</p><p>You can contribute to CRC by <a href="https://childrescuecoalition.org/donate/">donating</a>, buying their <a href="https://www.bonfire.com/store/childrescuecoalition/">merchandise</a>, providing your local law enforcement (only in the US) some <a href="https://childrescuecoalition.org/involved/blankets-bear-hugs/">care packages</a>, or spreading the word about the essential work done by CRC team.</p><p><strong>About Child Rescue Coalition</strong> Child Rescue Coalition (CRC), a south Florida-based nonprofit organization with global reach, has spent the past decade building the world’s most sophisticated technology to hunt child predators. Through proactive partnerships with law enforcement, the nonprofit’s system has tracked 71 million offenders worldwide to protect children from sexual exploitation and abuse.</p><p>For more information, visit <a href="https://childrescuecoalition.org/">childrescuecoalition.org</a> or call (561) 208–9000.</p><p><strong>About KrakenD</strong> KrakenD provides simple yet powerful open-source &amp; commercial software solutions to embrace increasing platform complexity and common architectures like microservices. KrakenD launched its open-source API Gateway back in 2015. During that time, it has garnered a fairly impressive roster of users, with 1.8 million servers leveraging the technology every month, including companies like eBay, mail.ru group, 99P Labs (supported by Honda and The Ohio State University), or Hepsiburada.</p><p>For more information, visit <a href="https://www.krakend.io/">https://www.krakend.io</a> or follow <a href="https://twitter.com/krakend_io">@krakend_io</a> on Twitter.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=cc32b42f0702" width="1" height="1" alt=""><hr><p><a href="https://medium.com/krakend/krakend-partners-with-child-rescue-coalition-cc32b42f0702">KrakenD partners with Child Rescue Coalition</a> was originally published in <a href="https://medium.com/krakend">KrakenD</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[KrakenD 2.0 released!]]></title>
            <link>https://medium.com/krakend/krakend-2-0-released-33a39512b4f7?source=rss----5491725d3222---4</link>
            <guid isPermaLink="false">https://medium.com/p/33a39512b4f7</guid>
            <category><![CDATA[open-source]]></category>
            <category><![CDATA[api-gateway]]></category>
            <category><![CDATA[release-notes]]></category>
            <category><![CDATA[microservices]]></category>
            <category><![CDATA[golang]]></category>
            <dc:creator><![CDATA[KrakenD API Gateway]]></dc:creator>
            <pubDate>Mon, 07 Mar 2022 20:36:28 GMT</pubDate>
            <atom:updated>2022-03-07T20:36:28.122Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="KrakenD 2.0 is here!" src="https://cdn-images-1.medium.com/max/987/0*9rD_woB1cza2gXZS.png" /></figure><p>The KrakenD team is pleased to announce the major release <strong>KrakenD 2.0</strong>. You can get it packaged from the <a href="https://www.krakend.io/download/">download page</a>.</p><p>KrakenD 2.0 is the new major version of KrakenD bringing a lot of improvements to the API Gateway. <strong>GraphQL, specific request/modifier plugins, async agents, easier configuration, better logging, and a more flexible router</strong> to put a few examples.</p><p>Migration guide</p><p>If you are an existing KrakenD user read “<a href="https://www.krakend.io/docs/configuration/migrating/">Migrating from KrakenD 1.x and 0.x</a>.</p><h4>What’s new?</h4><p>The most relevant additions and changes on KrakenD 2.0 are:</p><h4>GraphQL</h4><p>REST to GraphQL conversion, or direct consumption of GraphQL through the gateway. Use GraphQL to define new backend queries and expose them as regular REST endpoints to your clients, federate content. <a href="https://www.krakend.io/docs/backends/graphql/">GraphQL documentation</a></p><h4>New plugin types</h4><p>The <strong>request/response plugin modifiers</strong> are two new types of Go plugins to directly modify requests and responses from and to backends, complementing the existing handler and client plugins. Users who are currently using custom logic in Lua scripts can boost its performance. <a href="https://www.krakend.io/docs/extending/plugin-modifiers/">Plugin modifier documentation</a></p><h4>Configurable router flags</h4><p>There are plenty of configurable router flags such as returning the gateway error to the client (e.g: a timeout), redirection options, automatic OPTIONS, better ways get the real IP (including through Trusted Proxies), or removing entries from the logs such as hiding the /__health endpoint. <a href="https://www.krakend.io/docs/service-settings/router-options/">See all new router flags</a></p><h4>More developer friendly</h4><p>KrakenD has been always easy to configure, but we wanted to improve the logs and information available while developing:</p><ul><li>The krakend check command adds now multiple levels of debug verbosity and colors for easier understanding of the configuration</li><li>A new command krakend check-plugin lets you check your custom plugins for compatibility</li><li>We have <strong>shortened and classified all </strong><strong>extra_config namespaces</strong>, for better comprehension and usage of the components. When there was a URL-like component such as &quot;github_com/devopsfaith/krakend-cors&quot; now becomes a category/functionality such as &quot;security/cors&quot;.</li><li>A new <strong>migration tool</strong> takes care of the transition from 0.x and 1.x to 2.x to make the process straightforward.</li><li><strong>Better logs with more context</strong>. All log lines have been rewritten, adding a prefix grouping them with more information, like which endpoint or backend raised the line of a specific component.</li><li><strong>Plugins with access to the logger</strong>: If you had custom plugins, now they can use the KrakenD logger to enrich your gateway output.</li><li><strong>Alpine-based Docker image</strong>: Docker image extending from <strong>Alpine</strong>, making it a very lightweight image and without dragging all the security issues of larger containers like Debian.</li></ul><h4>Async agents</h4><p>Prior to this version, any KrakenD activity was preceeded by a call to the API. Now, KrakenD is able to listen queues and act as a consumer or a producer on its own, without requiring an end-user request. For instance, when KrakenD detects that a new message has entered a queue (many technologies supported) it can trigger a call to a backend of your choice.</p><h4>Migrate now to KrakenD 2.0!</h4><p>KrakenD configuration syntax has changed a little bit from KrakenD 1.x. Execute the migration tool to apply those changes automatically.</p><p><a href="https://www.krakend.io/docs/configuration/migrating/">Migrate now!</a></p><h4>Detailed changelog</h4><p>The full list of commits in KrakenD and its components is:</p><h4>Changes in KrakenD-CE</h4><ul><li>integration tests fixed</li><li>Merge branch ‘v2.0-dev’ into glibc_flags</li><li>Update KrakenD version in tests</li><li>update find_glibc script</li><li>Added script to find the GLIBC version</li><li>benchmark task fixed</li><li>benchmark task added</li><li>lura version updated</li><li>lura upgraded to v2.0.1</li><li>lura updated to v2.0.0</li><li>check and check-plugin commands updated</li><li>req-resp modifier alias fixed</li><li>lura deps updated</li><li>lura deps updated</li><li>Update Readme</li><li>Rename headers_to_pass and querystring_params to input_headers and input_query_string</li><li>Fix GLIBC_VERSION assignation in the Dockerfile</li><li>instrumentation for the noroute and nomethod handlers added</li><li>support for using namespaced jwt claims at the backend url pattern added</li><li>Add new ldflags with the Go and Glibc version used to build KrakenD so plugins can easily match the required versions</li><li>Assign the “questions” label to new asking for help</li><li>normalize the config alias just at the run cmd</li><li>cobra deps updated</li><li>async agents added</li><li>Apply new namespaces to fixtures</li><li>Fix readme indent typo</li><li>Update configurations version</li><li>Update lura. NewEngine now accepts a gin Logformatter (can be nil)</li><li>Create SECURITY.md</li><li>logger passed to the mw factories</li><li>Declare krakend-integration input body as either string or object</li><li>Use alpine by default for the official docker image. The ‘build_on_docker’ instruction will still use debian buster and it’s used to compile krakend for the rpm/deb/tgz packages.</li><li>Add a default config file. Create the user with a fixed uid #196.</li><li>jose: support for debugging operations added</li><li>jose and lura deps updated</li><li>setup the list of namespace aliases</li><li>logger passed to the handler factory</li><li>botdetector, jose and lura deps updated</li><li>travis config removed</li><li>lua pkg updated</li><li>set the prefix for the default logger</li><li>lura and cobra deps updated</li><li>lua dep updated</li><li>deps updated</li><li>Improve logging</li><li>lua dep updated</li><li>deps updated</li><li>Upgrade runner to go 1.17</li><li>deps fixed</li><li>Upgrade to Lura 2.0</li><li>Update some paths and links in README.md</li><li>lura version passed to the reporter</li><li>Declare expected response as either string or json object</li></ul><h4>Changes in bloomfilter</h4><ul><li>lura updated to v2.0.0</li><li>json tags added</li><li>Improve logging</li><li>Upgrade to Lura 2.0</li></ul><h4>Changes in krakend-amqp</h4><ul><li>lura updated to v2.0.0</li><li>lura updated to v2.0.0-rc</li><li>async pkg added</li><li>fix the ack/nack strategy</li><li>deps updated to v2</li><li>Upgrade to Lura 2.0</li><li>Add log prefix with context</li><li>Add log prefix with context</li></ul><h4>Changes in krakend-botdetector</h4><ul><li>mux tests fixed</li><li>lura updated to v2.0.0</li><li>log errBotRejected</li><li>rename Register for NewMiddleware</li><li>fix duplicated imports</li><li>add mux support</li><li>logs normalized</li><li>Fix tests</li><li>Improve logging</li><li>Upgrade to Lura 2.0</li><li>Normalize attribute names</li><li>Include prefix in errors</li></ul><h4>Changes in krakend-cel</h4><ul><li>lura updated to v2.0.0</li><li>minor fix</li><li>logs improved</li><li>Improve logging</li><li>Upgrade to Lura 2.0</li><li>Simpler error management</li><li>Include prefix in errors</li></ul><h4>Changes in krakend-circuitbreaker</h4><ul><li>lura updated to v2.0.0</li><li>Upgrade to 2.0</li><li>Upgrade to Lura 2.0</li><li>Upgrade to Lura 2.0</li><li>Improve logging, normalize parameter names</li></ul><h4>Changes in krakend-cobra</h4><ul><li>lura updated to v2.0.0-rc</li><li>minor format type fixed</li><li>do not read the file twice if no linting is required</li><li>libc check added to the check-plugin command</li><li>check command is able to validate the config against the json schema</li><li>async agents added</li><li>minor refactor</li><li>plugin checker cmd added</li><li>minor fixes</li><li>Fix dumper format</li><li>Fix dumper format</li><li>minor refactor</li><li>cfgDumper added for easier cmd management</li><li>extra verbosity levels added</li><li>timeout added to the endpoint level</li><li>minor refactor</li><li>Upgrade to Lura 2.0</li></ul><h4>Changes in krakend-cors</h4><ul><li>lura updated to v2.0.0</li><li>avoid using nil loggers</li><li>Upgrade to Lura 2.0</li><li>Improve logging</li></ul><h4>Changes in krakend-flexibleconfig</h4><ul><li>Upgrade to Lura 2.0</li><li>Improve logging</li></ul><h4>Changes in krakend-gelf</h4><ul><li>Upgrade to Lura 2.0</li></ul><h4>Changes in krakend-gologging</h4><ul><li>lura updated to v2.0.0</li><li>remove size limitation for the level tag</li><li>default log format shows the full level name</li><li>Upgrade to Lura 2.0</li></ul><h4>Changes in krakend-httpcache</h4><ul><li>lura updated to v2.0.0</li><li>shared cache option added</li><li>Upgrade to Lura 2.0</li></ul><h4>Changes in krakend-httpsecure</h4><ul><li>lura updated to v2.0.0</li><li>Remove Gopkg</li><li>Upgrade to go 1.17</li><li>Upgrade to Lura 2.0</li><li>Improve logging</li></ul><h4>Changes in krakend-influx</h4><ul><li>lura updated to v2.0.0</li><li>Expose no config error</li><li>Upgrade to Lura 2.0</li><li>Improve logging</li><li>early return if pts is empty</li><li>preventing unnecessary influx call for non-exist failed points.</li></ul><h4>Changes in krakend-jose</h4><ul><li>lura updated to v2.0.0</li><li>typo fixed</li><li>support for debugging operations added</li><li>return an error when the key ID is not present in the cached key set</li><li>logging improved</li><li>validator disabled log improved</li><li>Upgrade to Lura 2.0</li><li>Add log prefix with context</li><li>Add log prefix with context</li></ul><h4>Changes in krakend-jsonschema</h4><ul><li>lura updated to v2.0.0</li><li>logger added to the factory</li><li>Upgrade to Lura 2.0</li></ul><h4>Changes in krakend-lambda</h4><ul><li>lura updated to v2.0.0</li><li>logger added to the factory</li><li>Upgrade to Lura 2.0</li></ul><h4>Changes in krakend-logstash</h4><ul><li>Upgrade to Lura 2.0</li></ul><h4>Changes in krakend-lua</h4><ul><li>lura updated to v2.0.0</li><li>close method added to the response for better resource management</li><li>typo fixed</li><li>logging of file loader errors improved</li><li>namespaces fixed</li><li>Improve logging</li><li>Upgrade to Lura 2.0</li><li>Add log prefix with context</li></ul><h4>Changes in krakend-martian</h4><ul><li>Upgrade to Lura 2.0</li></ul><h4>Changes in krakend-metrics</h4><ul><li>Improve logging</li><li>Upgrade to Lura 2.0</li></ul><h4>Changes in krakend-oauth2-clientcredentials</h4><ul><li>Upgrade to Lura 2.0</li></ul><h4>Changes in krakend-opencensus</h4><ul><li>Add an ExtraConfig to the exporters so it’s easier to add additional configuration</li><li>Expose no config error</li><li>Upgrade to Lura 2.0</li><li>README.md updated — fix typos and broken links</li><li>Improve logging</li><li>change buffermaxcount to buffer_max_count</li><li>make BufferMaxCount configurable</li><li>Auto-detect resource in stackdriver exporter</li></ul><h4>Changes in krakend-pubsub</h4><ul><li>Upgrade to Lura 2.0</li><li>Improve logging</li></ul><h4>Changes in krakend-ratelimit</h4><ul><li>log the initializations</li><li>Upgrade to Lura 2.0</li><li>Improve logging</li></ul><h4>Changes in krakend-rss</h4><ul><li>Upgrade to Lura 2.0</li></ul><h4>Changes in krakend-viper</h4><ul><li>Upgrade to Lura 2.0</li></ul><h4>Changes in krakend-xml</h4><ul><li>Upgrade to Lura 2.0</li></ul><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=33a39512b4f7" width="1" height="1" alt=""><hr><p><a href="https://medium.com/krakend/krakend-2-0-released-33a39512b4f7">KrakenD 2.0 released!</a> was originally published in <a href="https://medium.com/krakend">KrakenD</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Traffic mirroring: test your APIs automatically, without writing tests]]></title>
            <link>https://medium.com/krakend/traffic-mirroring-test-your-apis-automatically-without-writing-tests-ed0f6618d6c0?source=rss----5491725d3222---4</link>
            <guid isPermaLink="false">https://medium.com/p/ed0f6618d6c0</guid>
            <category><![CDATA[how-to]]></category>
            <dc:creator><![CDATA[KrakenD API Gateway]]></dc:creator>
            <pubDate>Mon, 02 Aug 2021 17:49:45 GMT</pubDate>
            <atom:updated>2021-08-02T17:49:45.250Z</atom:updated>
            <content:encoded><![CDATA[<p>Integration and load testing are in the list of best practices in our sector, but synthesizing good inputs for such tests and analyzing the results are usually two hard things to achieve. This post will show you how we suggest our customers set up a shadow testing system with minimal impact on the production environment and proper harness.</p><h4>Quick overview</h4><p>As pointed out at <a href="https://cloud.google.com/architecture/application-deployment-and-testing-strategies">https://cloud.google.com/architecture/application-deployment-and-testing-strategies</a></p><blockquote><strong>Testing new backend features by using the production load.</strong></blockquote><blockquote>When used with tools such as Diffy, traffic shadowing lets you measure the behavior of your service against live production traffic. This ability enables you to test for errors, exceptions, performance, and result parity between application versions.</blockquote><p>In basic terms, our proposal includes two scenarios:</p><ul><li>Performance regression testing to answer the question “is the new version worst than the current one?”</li><li>Feature regression testing to answer the question “does the new version honor the expected behavior defined by the current one?”</li></ul><p>Both scenarios require <strong>mirroring the incoming traffic</strong>. Still, the second one also requires adding one more piece to the puzzle, which can analyze responses and process the differences between environments/versions.</p><p>Notice: Setting up the network connection from production (where your mirrored traffic comes from) to staging could be tricky, depending on how you deal with domain names and inter-cluster connectivity.</p><h4>Testing the performance</h4><p>The easiest way to ensure your next release is as performant as the current one is to deploy it in an identical environment as your current version is and clone the incoming traffic.</p><p>At the KrakenD configuration, we can add a mirror backend next to every safe, actual request so that KrakenD can mirror the traffic. The <strong>safe</strong> part in the last statement is vital since KrakenD will reject your endpoint otherwise because the test should not have side effects. The KrakenD documentation site offers a complete description of the <a href="https://www.krakend.io/docs/backends/shadow-backends/">traffic shadowing or mirroring feature</a></p><p>The following configuration snippets will demonstrate the process:</p><h4>Original</h4><pre>{<br>      &quot;endpoint&quot;: &quot;/shadow&quot;,<br>      &quot;backend&quot;: [<br>        {<br>          &quot;url_pattern&quot;: &quot;/destinations/1.json&quot;,<br>          &quot;host&quot;: [ &quot;http://service1:8080&quot; ]<br>        }<br>      ]<br>    }</pre><h4>Final</h4><pre>{<br>      &quot;endpoint&quot;: &quot;/shadow&quot;,<br>      &quot;backend&quot;: [<br>        {<br>          &quot;url_pattern&quot;: &quot;/destinations/1.json&quot;,<br>          &quot;host&quot;: [ &quot;http://service1:8080&quot; ]<br>        },<br>        {<br>          &quot;url_pattern&quot;: &quot;/destinations/1.json&quot;,<br>          &quot;host&quot;: [ &quot;http://stg-service1:8080&quot; ],<br>          &quot;extra_config&quot;: {<br>              &quot;github.com/devopsfaith/krakend/proxy&quot;: {<br>                  &quot;shadow&quot;: true<br>              }<br>          }<br>        }<br>      ]<br>    }</pre><p>So with this simple change, you can compare the performance metrics of your environments and quickly identify any possible issue.</p><h4>Feature regression test</h4><p>A lean solution for building such a service is to create a cluster of shadow testing instances for each internal API consumed by the gateway. These shadow testing instances monitor the current and the subsequent release candidate, sending the incoming requests mirrored from the production gateway to the backends deployed at both environments (production and staging) and inspecting the responses, looking for differences to report.</p><p><a href="https://github.com/opendiffy/diffy">Diffy</a> is a fantastic tool that allows teams to harness their API releases without writing a set of synthetic tests just by proxying the incoming traffic to several backends and comparing the responses, looking for noise and differences between them.</p><figure><img alt="diffy topology" src="https://cdn-images-1.medium.com/max/1024/0*HNfu9k9I1q-EuRiE.png" /></figure><p>An excellent overview and introduction to Diffy is <a href="https://blog.twitter.com/engineering/en_us/a/2015/diffy-testing-services-without-writing-tests">this post</a> from Twitter’s engineering team.</p><h4>Adding the Diffy service</h4><p>The proposed flow for all the endpoints consuming resources from the backend service1 (notice the naming convention used to identify not- production-ready environments) is:</p><figure><img alt="traffic mirror" src="https://cdn-images-1.medium.com/max/897/0*kQs2BRmejpHOJMOa.png" /></figure><p>This is the minimal required Diffy configuration for such environment definition, ignoring the .tld suffix (that we have removed for clarity at the local docker configuration). In this example, the service1 name is used as primary and secondary master, delegating the decision to some 3rd party, but they could also be instance hostnames, IP…</p><pre>docker run -ti \<br>  -p 8880:8880 -p 8881:8881 -p 8888:8888 \<br>  diffy/diffy \<br>    -candidate=stg-service1:8080 \<br>    -master.primary=service1:8080 \<br>    -master.secondary=service1:8080 \<br>    -service.protocol=http \<br>    -serviceName=&quot;Service1&quot; \<br>    -proxy.port=:8880 \<br>    -admin.port=:8881 \<br>    -http.port=:8888 \<br>    -rootUrl=diffy-service1:8888<br>    -summary.email=&#39;&#39;</pre><h4>Mirroring the incoming traffic</h4><p>With that infrastructure in place, we can make a small change in our KrakenD configurations to send the mirrored traffic to the proper Diffy service instead of sending it directly to the staging environment.</p><p>Again, the following configuration snippets will demonstrate the process:</p><ul><li>sending the mirrored traffic to staging</li></ul><pre>{<br>      &quot;endpoint&quot;: &quot;/shadow&quot;,<br>      &quot;backend&quot;: [<br>        {<br>          &quot;url_pattern&quot;: &quot;/destinations/1.json&quot;,<br>          &quot;host&quot;: [ &quot;http://service1:8080&quot; ]<br>        },<br>        {<br>          &quot;url_pattern&quot;: &quot;/destinations/1.json&quot;,<br>          &quot;host&quot;: [ &quot;http://stg-service1:8080&quot; ],<br>          &quot;extra_config&quot;: {<br>              &quot;github.com/devopsfaith/krakend/proxy&quot;: {<br>                  &quot;shadow&quot;: true<br>              }<br>          }<br>        }<br>      ]<br>    }</pre><ul><li>sending the mirrored traffic to Diffy</li></ul><pre>{<br>      &quot;endpoint&quot;: &quot;/shadow&quot;,<br>      &quot;backend&quot;: [<br>        {<br>          &quot;url_pattern&quot;: &quot;/destinations/1.json&quot;,<br>          &quot;host&quot;: [ &quot;http://service1:8080&quot; ]<br>        },<br>        {<br>          &quot;url_pattern&quot;: &quot;/destinations/1.json&quot;,<br>          &quot;host&quot;: [ &quot;http://diffy-service1:8880&quot; ],<br>          &quot;extra_config&quot;: {<br>              &quot;github.com/devopsfaith/krakend/proxy&quot;: {<br>                  &quot;shadow&quot;: true<br>              }<br>          }<br>        }<br>      ]<br>    }</pre><p>A complete environment is available at this <a href="https://github.com/kpacha/krakend-diffy">repo</a>.</p><h4>Validating the next candidate</h4><p>After deploying the new KrakenD configuration, requests will start hitting the Diffy services, and you can start monitoring the results using the Diffy GUI and your tracing backend (check the <a href="https://www.krakend.io/docs/telemetry/overview/">telemetry section</a> for more details).</p><p>In addition to that, if you are using the <a href="https://github.com/openzipkin/b3-propagation">B3 propagation standard</a> in your backends, you will also see the traces at the backend level nested depending on the trace id assigned by the gateway. So you can compare the performance of both versions without delay added by the Diffy proxy.</p><p>The following screenshot shows how the actual client is not affected by the generation of the shadow request to the Diffy instances.</p><figure><img alt="jaeger" src="https://cdn-images-1.medium.com/max/1024/0*VnVUREfQQ6-X5lGK.png" /></figure><p>Diffy considers differences between responses from primary and secondary upstreams as noise, so it allows you to remove it to see the actual differences between the current version and the one from the staging.</p><figure><img alt="noise" src="https://cdn-images-1.medium.com/max/931/0*-sz0abY6whDyKaR3.png" /></figure><figure><img alt="no noise" src="https://cdn-images-1.medium.com/max/928/0*9jT6etKIwvbw6ViM.png" /></figure><p>You can inspect differences between baselines and candidates in a dedicated pop-up window.</p><figure><img alt="differences" src="https://cdn-images-1.medium.com/max/1024/0*OACfi8gHWa6XzykX.png" /></figure><p>With the differences already highlighted for you</p><figure><img alt="response difference" src="https://cdn-images-1.medium.com/max/895/0*hhHuCKI1AviJTdiM.png" /></figure><p>Diffy is smart enough to know that such difference has no value, and it considers these kinds of scenarios as noise and allows you to ignore them.</p><h4>Observations</h4><h4>Restrictions</h4><p>The feature regression testing system is just limited to check use cases that we don’t update frequently. If sending the same request one second after or not could hugely impact the response, then the use case is not a good candidate for the feature regression test. These scenarios also require a longer training time before being able to interpret the deviation of the results.</p><h4>Impact on load</h4><p>It’s critical to keep in mind that, by using the Diffy trick, the load of the defined backend endpoints will increase by 200%. Here are some easy options to keep the extra load under control:</p><ol><li>set up the shadow traffic feature in a subset of KrakenD instances, so not all the incoming traffic gets mirrored.</li><li>schedule a couple of blue-green deployments per day, week, or whatever your deployment cycle is, enabling and disabling the shadow backends.</li><li>switching from pure mirroring (Diffy off) to shadowed harnessing your versions (Diffy on).</li><li>add a new environment cloned from production with the current version and use it as a source of truth in your Diffy tests, so your production environment doesn’t receive the extra load. This option could require a read-only replica of your production databases to keep the source of truth up to date.</li></ol><h4>Privacy concerns</h4><p>One final thought regarding privacy: Diffy will check the processed responses’ contents and store sensitive data without obfuscating it. Depending on your requirements, maybe you’ll need some extra work in that area.</p><h4>Conclusions</h4><p>We have seen one powerful application of the traffic mirroring feature KrakenD API Gateway offers out-of-the-box: shadow testing your API releases. With minimal changes to the gateway, we can mirror the production traffic to a testing environment where we can evaluate new release candidates in terms of performance and functionality without writing a single synthetic test.</p><p>Start doing your experiments now by downloading the <a href="https://github.com/kpacha/krakend-diffy">source code</a> of these examples.</p><p>Thanks for reading! If you like our product, don’t forget to <a href="https://github.com/luraproject/lura/stargazers">star our project</a>!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=ed0f6618d6c0" width="1" height="1" alt=""><hr><p><a href="https://medium.com/krakend/traffic-mirroring-test-your-apis-automatically-without-writing-tests-ed0f6618d6c0">Traffic mirroring: test your APIs automatically, without writing tests</a> was originally published in <a href="https://medium.com/krakend">KrakenD</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
    </channel>
</rss>