<?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[Stories by BrigitteF on Medium]]></title>
        <description><![CDATA[Stories by BrigitteF on Medium]]></description>
        <link>https://medium.com/@brigitteF?source=rss-8a0578fe9e2e------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*Wkq33DUrq5BSnJkRgxtZXg.png</url>
            <title>Stories by BrigitteF on Medium</title>
            <link>https://medium.com/@brigitteF?source=rss-8a0578fe9e2e------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Tue, 24 Nov 2026 03:01:15 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@brigitteF/feed" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[Taking back control: conscious uncoupling from Cloudflare]]></title>
            <link>https://medium.com/de-bijenkorf-techblog/taking-back-control-conscious-uncoupling-from-cloudflare-7eade7e3fdce?source=rss-8a0578fe9e2e------2</link>
            <guid isPermaLink="false">https://medium.com/p/7eade7e3fdce</guid>
            <category><![CDATA[cloudflare]]></category>
            <category><![CDATA[web-development]]></category>
            <category><![CDATA[ecommerce-web-development]]></category>
            <category><![CDATA[technology]]></category>
            <dc:creator><![CDATA[BrigitteF]]></dc:creator>
            <pubDate>Tue, 04 Feb 2020 12:49:50 GMT</pubDate>
            <atom:updated>2020-02-04T12:49:50.126Z</atom:updated>
            <content:encoded><![CDATA[<h4>The challenge of working with third-party products without losing your autonomy</h4><p>Let me begin by saying that we love our third-party products and we love <a href="https://www.cloudflare.com/">Cloudflare</a>. It’s a great platform and it really helps us to improve our website’s performance. Over time we have put quite some stuff in there, but this also meant we lost quite a bit of independence. What would happen if Cloudflare gets taken over by an evil investment company and prices suddenly soar? What if someone decides to pull the plug on the whole service for whatever reason possible? We’d be severely unhappy and maybe even a little screwed. So yes, we do like, and use, third party products, but we also really, really like our autonomy. Therefore, we decided to take another good look at our Cloudflare set-up and go on a quest to gain control.</p><figure><img alt="Superman ready for his quest" src="https://cdn-images-1.medium.com/max/1024/0*StEaEjX6FIltauxO" /><figcaption>Photo by <a href="https://unsplash.com/@exxteban?utm_source=medium&amp;utm_medium=referral">Esteban Lopez</a> on <a href="https://unsplash.com/?utm_source=medium&amp;utm_medium=referral">Unsplash</a></figcaption></figure><h4>New toys</h4><p>We work in an industry with constant innovation. This means that interesting new languages, frameworks and third-party products pop-up on a daily basis. Thankfully I work at a company where developers get space and time to investigate and try all these pretty new things, which makes work a lot more interesting. Sometimes these experiments are successful and grow larger and larger. Until problems start to arise. And I guess that is what happened with us and Cloudflare. We never sat down to decide what parts we would use, who would get access and who would be responsible. It just sort of naturally grew. And now we have arrived at a point where we need to prune it back a little bit. We already created a project to deal with Cloudflare workers and use an external DNS tool in our Kubernetes cluster to control DNS-records. Now it was time for the next step.</p><h4>Page rules gone wild</h4><p>One of our favorite features on Cloudflare is the page rule section. Over time we collected a fair amount of them, filled with nifty redirects and glorious caching mechanisms. Unfortunately, there is no ‘explain yourself’ field for these rules and we have now reached the point where half of them don’t really make sense anymore. The original creators have moved on and nobody knows for sure what will happen if we delete any of it. Do you know that sinking feeling when you discover you made a major boo-boo? I just recently had the pleasure of experiencing this when I created a faulty page rule. It turned out that I misread the existing page rules, causing me to cache things that most definitely should not be cached. So yeah, this seemed like a good place to continue our quest.</p><figure><img alt="Banana for scale" src="https://cdn-images-1.medium.com/max/1024/0*eWWXhuI4-ayffxwH" /><figcaption>Photo by <a href="https://unsplash.com/@dorner?utm_source=medium&amp;utm_medium=referral">Mike Dorner</a> on <a href="https://unsplash.com/?utm_source=medium&amp;utm_medium=referral">Unsplash</a></figcaption></figure><h4>Setting it up</h4><p>The goal of this project was to move the page rules to our own repository and clean them up while we were at it. By creating a dedicated project with a nice pipeline, we could ensure that the creating, editing and deleting of rules would be registered and could always be traced back. It’s also a plus that all changes will require a pull request and a second pair of eyes checking for good measure.</p><p>Another change we planned on making was adding a ‘description’ field to the rules. This should make it easier for us to use and maintain them and hopefully prevent aforementioned boo-boos. Now there was a possibility to use Terraform to manage Cloudflare configuration in code, but we decided to go for a more lightweight solution and take the opportunity to learn a new language while we were at it. Therefore, we created a shiny new Kotlin microservice and started coding away.</p><h4>The good, the bad and the messy</h4><p>Cloudflare has a pretty good, well documented <a href="https://api.cloudflare.com/">API</a> that served pretty much all our needs, so we started by setting up a client with <a href="https://ktor.io/">Ktor</a> to talk to the endpoints. Ktor is a nice framework for building asynchronous servers and clients in Kotlin.</p><p>The second step was putting our existing page rules in our own repository. We chose a JSON format, excluded fields that didn’t seem relevant and added the all-important ‘description’ field. Adding all these descriptions by hand proved to be time-consuming, but in the end we managed to find one for almost all rules (some mysteries still remain).</p><p>Next, we started to add some checks and made it possible to use our own application to add page rules to Cloudflare for all our domains. Which is right about the time when our ‘<em>access right conundrum</em>’ first came up.</p><figure><img alt="Access denied" src="https://cdn-images-1.medium.com/max/1024/0*KlLZBn1m9Spx72Bp" /><figcaption>Photo by <a href="https://unsplash.com/@jannerboy62?utm_source=medium&amp;utm_medium=referral">Nick Fewings</a> on <a href="https://unsplash.com/?utm_source=medium&amp;utm_medium=referral">Unsplash</a></figcaption></figure><h4>Access denied</h4><p>You see, to make the project work we would need to restrict access to the page rule section of Cloudflare, so that only one or two people would be left with editing rights. This would be the only way to ensure that people use our own repository and not edit anything directly in the Cloudflare dashboard. At the moment there are quite a lot of people who have access and, although we trust our co-workers dearly, we are aware of the ‘<em>I’ll just quickly do it in the dashboard now and edit it in our repository later</em>’-feeling, that often results in forgetting about it and messing things up. So ideally we would revoke access for most users.</p><h4>99 problems</h4><p>Unfortunately, a problem arose: it turned out to be impossible to revoke rights to only the page rule part of Cloudflare. It’s part of a bigger permissions package and would mean people would lose access to most other Cloudflare setting as well. Now that decision seemed to be a bit out of scope for our page rule project. Because who would be responsible for these sections then? Would we only give one or two people access rights? That would mean a lot more work for them, and longer waiting times for developers to get things done. Is that something we wanted? Or should we trust our developers and hope that they wouldn’t make any mistakes? A lot of questions that need an answer before we can really continue.</p><figure><img alt="Into the future" src="https://cdn-images-1.medium.com/max/1024/0*S3hVqKM_6NJ6s2Zy" /><figcaption>Photo by <a href="https://unsplash.com/@danielkcheung?utm_source=medium&amp;utm_medium=referral">Daniel Cheung</a> on <a href="https://unsplash.com/?utm_source=medium&amp;utm_medium=referral">Unsplash</a></figcaption></figure><h4>The next steps</h4><p>We didn’t want to address these issues in our page rule project, so we decided to build in some extra checks and functionality for the time being. This way we can use it safely without revoking any access. But for our Cloudflare independence quest it meant having to take a step back and looking at the bigger picture. And the bigger questions: what functions do we want to use? How do we want to use them? Who should have access? Who is responsible? Once we decide on that, we can continue with our Cloudflare independency quest and start looking at our other third-party integrations to see how much we rely on them.</p><h4>Learning as we go</h4><p>The questions that arose during this project aren’t just applicable to Cloudflare. It’s a bigger issue involving all our dependencies. It’s about the balance between giving people freedom to experiment and deciding on more rigid things, like responsibilities, security and dependency management. It also has to do with growing as a department. Where once there were only a handful of people and everybody knew what was going on, there now is multi-team environment where we might not even know the names of all the people we work with (this might just be me, I’m horrible when it comes to remembering names). But anyway, we learn as we go. And as we grow, I guess. We’ll keep experimenting with new toys, but we will also start to look more deeply into how we use them. And we will continue our quest for independence. To freedom!</p><p>PS <em>Do you have any experience with these issues? Any ideas about the subject? Tips on how to remember names of all the people you work with? Please let me know in the comments. I’m curious to know how other people/companies deal with this.</em></p><p>PPS Thank you to <a href="https://medium.com/u/1fd96e4787f3">Anna Shepeleva</a>, <a href="https://medium.com/u/a4203c84b409">maarten blokker</a>, <a href="https://medium.com/u/4d96a2250d44">Martijn Zwennes</a> and <a href="https://medium.com/u/49c2e1029d48">Adam Semenenko</a> for the mental support.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=7eade7e3fdce" width="1" height="1" alt=""><hr><p><a href="https://medium.com/de-bijenkorf-techblog/taking-back-control-conscious-uncoupling-from-cloudflare-7eade7e3fdce">Taking back control: conscious uncoupling from Cloudflare</a> was originally published in <a href="https://medium.com/de-bijenkorf-techblog">De Bijenkorf — Design and Technology</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
    </channel>
</rss>