<?xml version="1.0" encoding="UTF-8"?><rss version="2.0" xmlns:content="http://purl.org/rss/1.0/modules/content/">
  <channel>
    <title>istio — Stijn De Vos | Sitecore blog</title>
    <link>https://stijndevos.net/tag:istio</link>
    <description>Lead expert consultant @ delaware. Working with Sitecore, Azure, Kubernetes.</description>
    <pubDate>Tue, 24 Nov 2026 09:18:09 +0000</pubDate>
    <item>
      <title>Tags</title>
      <link>https://stijndevos.net/tags?pk_campaign=rss-feed</link>
      <description>#aks #docker #istio #kubernetes #ngnix #ordercloud</description>
      <content:encoded><![CDATA[<p><a href="https://stijndevos.net/tag:aks" class="hashtag" rel="nofollow ugc"><span>#</span><span class="p-category">aks</span></a> <a href="https://stijndevos.net/tag:docker" class="hashtag" rel="nofollow ugc"><span>#</span><span class="p-category">docker</span></a> <a href="https://stijndevos.net/tag:istio" class="hashtag" rel="nofollow ugc"><span>#</span><span class="p-category">istio</span></a> <a href="https://stijndevos.net/tag:kubernetes" class="hashtag" rel="nofollow ugc"><span>#</span><span class="p-category">kubernetes</span></a> <a href="https://stijndevos.net/tag:ngnix" class="hashtag" rel="nofollow ugc"><span>#</span><span class="p-category">ngnix</span></a> <a href="https://stijndevos.net/tag:ordercloud" class="hashtag" rel="nofollow ugc"><span>#</span><span class="p-category">ordercloud</span></a></p>
]]></content:encoded>
      <guid>https://stijndevos.net/tags</guid>
      <pubDate>Mon, 30 Aug 2021 10:26:01 +0000</pubDate>
    </item>
    <item>
      <title>How browser security fixes Sitecore login</title>
      <link>https://stijndevos.net/how-browser-security-fixes-sitecore-login?pk_campaign=rss-feed</link>
      <description>I was contacted by a client to help them roll out Sitecore Kubernetes deployment (hooray for clients willing to invest in technology updates). Of course I came in prepared: I tried out Installation Guide for Production Environment with Kubernetes (on Azure AKS with my own subscription), and had a shiny new Sitecore 10.x up and running on https://globalhost.cd in no time.&#xA;&#xA;When repeating the setup on the client’s subscription, deployment went well but we failed to log in into Sitecore:</description>
      <content:encoded><![CDATA[<p>I was contacted by a client to help them roll out Sitecore Kubernetes deployment (hooray for clients willing to invest in technology updates). Of course I came in prepared: I tried out <a href="https://sitecoredev.azureedge.net/~/media/8DCE36C9C62B49A59DA398F2C9387892.ashx?date=20210714T144106" rel="nofollow ugc">Installation Guide for Production Environment with Kubernetes</a> (on Azure AKS with my own subscription), and had a shiny new Sitecore 10.x up and running on <a href="https://globalhost.cd" rel="nofollow ugc">https://globalhost.cd</a> in no time.</p>

<p>When repeating the setup on the client’s subscription, deployment went well but we failed to log in into Sitecore:</p>


<ul><li>We try to access <em>/sitecore</em>.</li>
<li>Since we’re not logged in, Sitecore CM redirects us to Sitecore ID.</li>
<li>On Sitecore ID, we enter our credentials.</li>
<li>Everything seems fine and we are redirected back to Sitecore CM.</li>
<li>We see the browser redirecting, but the page failed to load: the browser fails with a timeout (IIRC).</li></ul>

<p>A quick look at the log files did not reveal any errors or failures.</p>

<p>In my setup, everything worked as expected, so what’s different for our client? Since this is a real project setup, of course the URLs (and TLS) are going to be customer specific (so not <em>globalhost)</em>. Typo’s are easily made, but not this time: double checking the config did not reveal any mistakes.</p>

<p>With no traces in the logs we had to dig a little bit deeper. Since single-sign on is all about redirection and passing along the required information in the process, taking a closer look at the network traffic made sense.</p>

<p><img src="https://i.snap.as/5D6RVSjC.png" alt=""/></p>

<p><em>(see <a href="https://www.youtube.com/watch?v=J1_4v0u2aic" rel="nofollow ugc">Virtual Developer Day 2020 – Getting to Know Sitecore Identity – George Chang</a> for a good introduction on Sitecore ID)</em></p>

<h2 id="security-best-practices-for-the-win">Security best practices for the win</h2>

<p>A useful tool to do this is fiddler (<a href="https://www.telerik.com/fiddler/fiddler-classic" title="Fiddler Classic" rel="nofollow ugc">fiddler classic</a> in my case): a web debugging proxy to <em>successfully log, inspect, and alter HTTP(s) network requests and server responses</em>.</p>

<p>I was already thinking bad tokens, encryption issues, claim mismatches, … Luckily the issue was not as complex as I feared. Comparing network traffic from my (working) setup with traffic from the client setup revealed they had one HTTP header missing: <strong>Strict-Transport-Security</strong>, also known as <strong>HSTS</strong>.</p>

<blockquote><p>If a website accepts a connection through HTTP and redirects to HTTPS, visitors may initially communicate with the non-encrypted version of the site before being redirected, if, for example, the visitor types <a href="http://www.foo.com/" rel="nofollow ugc">http://www.foo.com/</a> or even just foo.com. This creates an opportunity for a man-in-the-middle attack. The redirect could be exploited to direct visitors to a malicious site instead of the secure version of the original site.</p>

<p>The HTTP Strict Transport Security header informs the browser that it should never load a site using HTTP and should automatically convert all attempts to access the site using HTTP to HTTPS requests instead.</p></blockquote>

<p><em><a href="https://developer.mozilla.org/en-US/docs/Glossary/HSTS" rel="nofollow ugc">https://developer.mozilla.org/en-US/docs/Glossary/HSTS</a></em></p>

<p>This is exactly what happens in my fiddler trace: even though the server tells my browser to go to HTTP (using the <em>Location:</em> header), my browser ignores this and connects over HTTPS directly (line 52).</p>

<p><img src="https://i.snap.as/gEP8hH9P.png" alt=""/></p>

<p>Why would Sitecore redirect us to HTTP? No idea. As far as I can tell all our config is set correctly. I can only assume this is leftover code from a time where local development was often done on HTTP. With Sitecore on containers, development setup is a lot closer to production setup, including running on HTTPS.</p>

<h2 id="ingress">Ingress</h2>

<p>So why did I did not face this issue on my setup? An important part of a Kubernetes setup is managing how external traffic can access the services in your cluster (HTTP, HTTPS, TLS, …). This is done with the <a href="https://kubernetes.io/docs/concepts/services-networking/ingress/" rel="nofollow ugc">Ingress API object</a>. Out of the box, Sitecore suggests you to use the <em>NGINX Ingress controller</em> for this.</p>

<p>NGINX is a fine default, but my client has a track record in Kubernetes (not on Azure) and for their networking requirements they standardize on <a href="https://istio.io/" rel="nofollow ugc">Istio</a>, a service mesh. To use it, we had to switch NGINX with Istio Ingress.</p>

<p>Turns out HSTS is enabled by default in NGINX (see <a href="https://kubernetes.github.io/ingress-nginx/user-guide/tls/#http-strict-transport-security" rel="nofollow ugc">https://kubernetes.github.io/ingress-nginx/user-guide/tls/#http-strict-transport-security</a>), but not in Istio. Enabling it is quite easy though (in case you might be interested): <a href="https://www.wagner-dev.com/istio-configure-strict-transport-security-hsts.html" rel="nofollow ugc">https://www.wagner-dev.com/istio-configure-strict-transport-security-hsts.html</a></p>

<p>In a development setup, network traffic is typically handled with <a href="https://doc.traefik.io/traefik/" rel="nofollow ugc">traefik</a>. Sitecore provides you with docker-compose files that force this behavior.</p>

<p><img src="https://i.snap.as/QIrF5Ncv.png" alt=""/></p>

<p>So why didn’t we spot this right away? The browser we were using (it’s name starts with a ‘C’) doesn’t show the protocol in the URL bar, so we simply didn’t spot it. That we had to test this through a screen share session probably didn’t help neither (but that’s a different story).</p>

<h2 id="in-summary">In summary</h2>
<ul><li>Sitecore login depends on HSTS.</li>
<li>HSTS is enabled by default for NGNIX ingress, but that might not be the case for other ingress controllers (e.g. Isitio).</li>
<li>You can’t see what you can’t see.</li></ul>

<p>Tags: <a href="https://stijndevos.net/tag:aks" class="hashtag" rel="nofollow ugc"><span>#</span><span class="p-category">aks</span></a>, <a href="https://stijndevos.net/tag:kubernetes" class="hashtag" rel="nofollow ugc"><span>#</span><span class="p-category">kubernetes</span></a>, <a href="https://stijndevos.net/tag:ngnix" class="hashtag" rel="nofollow ugc"><span>#</span><span class="p-category">ngnix</span></a>, <a href="https://stijndevos.net/tag:istio" class="hashtag" rel="nofollow ugc"><span>#</span><span class="p-category">istio</span></a>.</p>
]]></content:encoded>
      <guid>https://stijndevos.net/how-browser-security-fixes-sitecore-login</guid>
      <pubDate>Mon, 26 Jul 2021 12:22:39 +0000</pubDate>
    </item>
  </channel>
</rss>