<?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 Klarrio on Medium]]></title>
        <description><![CDATA[Stories by Klarrio on Medium]]></description>
        <link>https://medium.com/@klarrio?source=rss-7d00fdb355e3------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*AS_sWyFUe5kvb04-rZMICw.png</url>
            <title>Stories by Klarrio on Medium</title>
            <link>https://medium.com/@klarrio?source=rss-7d00fdb355e3------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Thu, 03 Dec 2026 16:10:16 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@klarrio/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[Post-Quantum Cryptography is a security leadership problem — not just a technology upgrade (Part…]]></title>
            <link>https://klarrio.medium.com/post-quantum-cryptography-is-a-security-leadership-problem-not-just-a-technology-upgrade-part-003141bcf70a?source=rss-7d00fdb355e3------2</link>
            <guid isPermaLink="false">https://medium.com/p/003141bcf70a</guid>
            <dc:creator><![CDATA[Klarrio]]></dc:creator>
            <pubDate>Tue, 03 Nov 2026 12:26:51 GMT</pubDate>
            <atom:updated>2026-11-03T12:26:51.346Z</atom:updated>
            <content:encoded><![CDATA[<h3>Post-Quantum Cryptography is a security leadership problem — not just a technology upgrade (Part One)</h3><p><strong>By Werner Vermeylen</strong></p><p><strong>Chief Information Security Officer,</strong></p><p><strong>Klarrio BV</strong></p><p>For several years, discussions about post-quantum cryptography (PQC) have tended to revolve around one question: <em>“When will quantum computers become powerful enough to break the public-key cryptography that so much of today’s digital infrastructure depends on?”</em></p><p>For security leaders, it’s an important question, but it’s not the most useful one to ask on its own. The more practical question is how long it will take an organisation to understand its cryptographic dependencies, to decide what needs to change, to complete those changes, and then to determine what happens if the process is too time-intensive for the organisation’s current bandwidth to accomplish.</p><p>Such a scenario makes post-quantum cryptography less like a conventional technology refresh and more like a long-horizon transformation in how an organisation manages cryptographic risk. There is no single migration date. No single-affected technology, and importantly, no single threat model.</p><h3>Beyond “harvest now, decrypt later”</h3><p>The most familiar post-quantum threat is <strong>harvest now, decrypt later (HNDL)</strong>. An attacker can capture encrypted information today and keep it until sufficiently capable quantum computing becomes available. If the underlying public-key cryptography can eventually be broken, information that appears secure today may not remain confidential indefinitely.</p><p>But confidentiality is only part of the problem. A sufficiently capable quantum computer could also undermine the digital signatures used to establish trust. This creates a second threat, which can be described as <strong>trust now, forge later (TNFL)</strong>. An attacker may eventually be able to forge certificates, software signatures, or additional credentials, and impersonate systems that users and other systems currently trust.</p><p>The distinction is important because the TNFL threat doesn’t require a potential attacker to capture data years in advance. Attackers don’t need to decrypt an old TLS session if they can just forge the certificate of the endpoint they’re trying to impersonate. And the threat doesn’t just stop at TLS. Software and firmware signing, secure boot, document signatures, and trusted timestamps all need to be taken into consideration.</p><p>That’s why the time-based framing of PQC remains useful. If your data needs to stay confidential before you’re able to attain relevant quantum capability but the time needed to migrate the systems protecting it extends beyond your expected capability date, the organisation has a problem. And any level of uncertainty around the quantum date makes the available time for the required preparation even harder to predict.</p><p>For security leadership, this changes the question from “<em>Which sensitive data needs to be protected” </em>to a much broader one: “<em>Which of our critical business processes depend on authenticated trust, and what happens if that trust can eventually be forged?”</em></p><p>This creates an uncomfortable planning problem for security leaders. We don’t know exactly when a cryptographically relevant quantum computer will become available, but we do know that replacing cryptographic infrastructure can take years. At the same time, some information being protected today needs to remain confidential for many years.</p><p>As shown below, Mosca’s theorem<a href="#sdfootnote1sym">1</a> provides a useful way of visualising this problem. It brings together three timelines: the time until cryptographically relevant quantum computing becomes possible (Z); the time an organisation needs to complete its migration (Y); and the period in which the information needs to remain confidential (X).</p><p><a href="#sdfootnote1anc">1</a> Wikipedia: <a href="https://en.wikipedia.org/wiki/Michele_Mosca#Mosca&#39;s_theorem">https://en.wikipedia.org/wiki/Michele_Mosca#Mosca&#39;s_theorem</a> and paper: <a href="https://ieeexplore.ieee.org/document/8490169">“Cybersecurity in an Era with Quantum Computers: Will We Be Ready?”</a> .</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/602/1*wtgKtxDNvE_SXtmApOITTA.png" /></figure><p>The value of this model is not that it predicts when quantum computers will arrive. It doesn’t. Instead, its value is that it changes the planning question overall. An organisation doesn’t need to know the exact quantum date before it can determine that waiting is becoming increasingly risky. <strong>If the time required to migrate while maintaining confidentiality approaches the available quantum timeline, the organisation needs to start reducing that risk as soon as they’re aware of it, not later.</strong></p><h3>There is no single PQC deadline</h3><p>The lack of a single PQC deadline makes it difficult to manage as a conventional deadline-driven programme.</p><p>The comparison with Y2K is useful because both are infrastructure-wide problems where the cost of preparation is relatively visible, and the cost of failure is difficult to quantify. But the comparison has an important limitation. Y2K had a fixed date; organisations could just work backwards from that date and determine what needed to be done.</p><p>Quantum computing doesn’t provide that level of certainty.</p><p>At the same time, difficulty levels of the migration effort can differ greatly. A software-upgradeable cloud service may be able to change its key-exchange mechanisms relatively quickly. An industrial device deployed today with a ten-year lifetime may be considerably harder to change, and some systems will depend on suppliers, certification schemes, or standards the organisation can’t control.</p><p>The variation in migration difficulty makes prioritisation one of the key governance decisions. The objective should not be to migrate every system simultaneously. The real goal is to understand which systems have the longest migration paths, which carry the greatest consequences if their cryptography becomes unsuitable, and where the organisation may have very little ability to change course later.</p><p>This is why security leaders should resist treating all PQC progress as a single number. What’s more, key exchange and authentication ecosystems are evolving at different speeds. Hybrid post-quantum key exchange is already deployable in production environments, while post-quantum certificate authentication is much more dependent on evolving standards, certification and the wider PKI ecosystem.</p><p>A programme that only reports the TLS PQC migration process as a percentage can give a misleading impression of actual security. And for security leaders, the absence of a single deadline makes prioritisation and visibility even more important, not less. Progress should be measured according to which critical systems have been assessed, which dependencies have been understood, which migration paths are longest, and whether the organisation is reducing the areas where it may be unable to change course later on.</p><p>PQC readiness isn’t a single percentage; it’s an assessment of whether the organisation can still migrate the cryptography that matters before it actually needs to.</p><h3>PQC should be part of existing governance</h3><p>There is a natural temptation to establish PQC as a standalone transformation programme, particularly because the subject appears specialised and technically complex. A dedicated programme can be useful for coordination, but it shouldn’t be treated as an isolated silo.</p><p>Cryptography is embedded across the organisation: in PKI and identity systems, applications, cloud infrastructure, software development, devices and third-party dependencies. So, the more durable approach is to introduce cryptographic risk into governance mechanisms that already exist.</p><p>PKI modernisation, for example, is an obvious opportunity to introduce cryptographic agility instead of replacing one generation of infrastructure with another. The same applies to identity programmes, cloud migration, secure development, and supply-chain security. Regulatory frameworks such as NIS2, DORA and the Cyber Resilience Act (CRA) also provide opportunities to integrate cryptographic lifecycle risk into existing governance and compliance activities.</p><p>Building on your existing governance has another advantage. It prevents PQC from becoming dependent on a small group of specialists who understand the quantum problem but have limited influence over the systems that ultimately need to change.</p><p><strong>The real objective is organisational capability — more specifically, the ability to identify cryptographic dependencies, assess their importance, and change them when required.</strong></p><h3>Visibility is the starting gate, not the destination</h3><p>Preparing for PQC begins with understanding where cryptography matters across the organisation. It doesn’t require creating a perfect inventory of every algorithm, key, and certificate before migration can begin. The more useful objective is to build enough visibility to understand which systems depend on cryptography, which business processes depend on those systems, and where changing the underlying cryptography is likely to be difficult.</p><p>A conventional inventory can easily become an exercise in counting algorithms. Which systems use RSA? Which use elliptic curves? Which key sizes are deployed, and so on? Such information is useful, but by itself it doesn’t tell an organisation what its migration priorities should be.</p><p>The more important questions are architectural and operational. Which applications and services depend on cryptography for authentication or trust? What signs what? Where are keys managed? Which cryptographic dependencies are controlled by third parties? Which devices have cryptographic material embedded at manufacturing and may have limited ability to be updated? Ánd most importantly, what business processes depend on these systems; what are the consequences if their cryptography becomes unsuitable; and which internal or external dependencies could make them difficult to change?</p><p>Business impact information doesn’t always need to be created as part of the PQC programme. In mature organisations, much of it will already exist through business impact analyses, disaster recovery and business continuity planning, and other risk-management processes. The challenge is to connect your current understanding of business criticality to the cryptographic dependencies identified through discovery.</p><p>The purpose of this visibility isn’t to produce a definitive inventory as an end state. It’s to answer some key questions and support critical decisions. Which systems have the greatest business impact? Where should migration begin? Which dependencies require more investigation? Where are the longest lead times, and where does the organisation have limited control over the outcome?</p><p>This also means that organisations should avoid making a complete inventory a prerequisite for migration. Waiting to identify and classify every cryptographic dependency can create a false sense that discovery must be finished before taking action. In practice, discovery and development should typically progress together. Organisations can start with business-critical, high-risk, internet-facing or longest-lived systems while continuing to improve their understanding of the wider cryptographic landscape.</p><p>This iterative approach also has a practical advantage. Early migration work can expose dependencies that weren’t visible at the start, while the lessons learned from your initial migrations can improve subsequent discovery and prioritisation. Visibility and migration thus become mutually reinforcing activities rather than isolated sequential programmes.</p><p><strong>The result is much more valuable than an inventory itself. An organisation that understands which business processes depend on cryptography, where those dependencies sit, which components control them, and how they can be changed is in a much stronger position to prioritise migration and respond to future cryptographic changes.</strong></p><h3>Cryptographic agility is the longer-term objective</h3><h3>Agility lays the groundwork for a broader architectural principle.</h3><h3>Post-quantum cryptography should not be understood primarily as a requirement to adopt a particular new algorithm. Algorithms will continue to change, standards will continue to evolve, and cryptographic mechanisms will eventually need to be replaced again.</h3><p>The more resilient architecture is therefore one in which cryptographic choices are treated as configurable dependencies rather than assumptions embedded throughout application code.</p><p>This can be achieved by building abstraction layers over cryptographic operations, centralising key and certificate lifecycle management, driving algorithm selection through configuration rather than code, and eliminating hard-coded cryptographic parameters from application logic.</p><p>The benefit extends beyond quantum computing. Cryptographic algorithms have always had finite lifetimes. Organisations that can replace them without cascading application and infrastructure changes are better prepared for any future cryptographic transition.</p><h3>Compliance should be the starting point, but it should never define the goal</h3><p>Regulatory requirements will increasingly influence how organisations approach quantum readiness. That is useful: compliance deadlines create accountability and can provide the incentive needed to fund work that might otherwise be deferred.</p><p>But compliance is no substitute for resilience. A compliance-driven approach tends to focus on what an organisation needs to demonstrate by a particular date. A resilience-driven approach asks whether the organisation could actually adapt if one of its cryptographic dependencies became unsuitable.</p><p>A regulatory baseline, however, may not reflect the migration timeline or risk profile of an individual organisation. Systems that are difficult to update, critical software-signing functions, and information that needs to remain confidential for many years may all require action well ahead of any minimum regulatory requirement. <strong>The relevant question is not just whether an organisation will meet the requirements that eventually emerge, but whether it will be able to migrate its most important cryptographic dependencies within the time available.</strong></p><h3>What should security leaders do now?</h3><p>For security leaders, the most important steps now are organisational and architectural rather than technical per se. The main objective isn’t to launch a separate PQC migration programme overnight, but to start reducing the uncertainty around where cryptography matters, which systems need to change, and how difficult that change may be.</p><p>Here are some priorities.</p><p><strong>Establish ownership.</strong> Make responsibility for cryptographic risk explicit across security, architecture, infrastructure, application development and procurement. PQC should have clear ownership, but it should not become the responsibility of a small group of specialists alone.</p><p><strong>Build enough visibility to prioritise.</strong> Identify the cryptographic dependencies that matter to critical business processes, particularly where migration paths are long, business impact is high, or dependencies are controlled by third parties. This doesn’t require a perfect inventory before migration can begin.</p><p><strong>Bring PQC into existing governance.</strong> Include cryptographic risk in existing risk reporting, architecture reviews, technology roadmaps, and security governance. This makes PQC part of normal decision-making instead of a technology initiative driven by specialists.</p><p><strong>Make vendor conversations specific.</strong> Just discussing a “PQC roadmap” is unlikely to be sufficient. Key exchange, certificate authentication, software signing, firmware signing, and hardware dependencies may all have different migration paths. Organisations should understand which components can be upgraded, which depend on supplier or standards changes, and what fallback mechanisms exist.</p><p><strong>Make cryptographic agility an architectural requirement.</strong> Systems being designed or significantly modernised today should make it possible to change cryptographic algorithms and protocols without redesigning the entire setup. This reduces the cost and risk of future cryptographic transitions, whether driven by PQC, or by other changes in the threat landscape.</p><p>The point is not to predict the exact date and time when quantum computing will become a practical threat. It is to make sure that, when cryptographic requirements change, the organisation has the <strong>visibility, ownership and technical flexibility to respond</strong>. Organisations that start building their capabilities now will have more options later; those that wait for certainty may find that their most difficult systems are also the ones with the least time left to change.</p><h3>Preparing for a future we cannot date precisely</h3><p>The biggest challenge with post-quantum cryptography is also its most important governance lesson: we can’t control when the underlying threat will become practical.</p><p>We can, however, control how much migration work remains when that happens.</p><p>For some organisations, the critical risk will be long-lived sensitive information that is already exposed to collection today. For others, it will be authentication infrastructure, software signing or devices that are difficult to update. In many cases it will be a combination of the two.</p><p>That makes PQC neither a purely technical problem nor a compliance exercise. It is a question of organisational resilience. The goal — and primary need — isn’t to pinpoint exactly when your solutions will actually be deployed. It’s to ensure that, when the technology and the threat both evolve, the organisation is capable of evolving right along with them.</p><p><em>This is Part One in a two-part series. For comments, questions, or more information, please contact Werner Vermeylen, werner.vermeylen@klarrio.com.</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=003141bcf70a" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Comparing Configuration Management Tools for Kubernetes: Helm, Kustomize, KPT, and Jsonnet]]></title>
            <link>https://klarrio.medium.com/comparing-configuration-management-tools-for-kubernetes-helm-kustomize-kpt-and-jsonnet-31e14b50063c?source=rss-7d00fdb355e3------2</link>
            <guid isPermaLink="false">https://medium.com/p/31e14b50063c</guid>
            <category><![CDATA[kustomize]]></category>
            <category><![CDATA[kpt]]></category>
            <category><![CDATA[kubernetes]]></category>
            <category><![CDATA[helm]]></category>
            <category><![CDATA[configuration-management]]></category>
            <dc:creator><![CDATA[Klarrio]]></dc:creator>
            <pubDate>Tue, 19 Nov 2024 08:22:17 GMT</pubDate>
            <atom:updated>2024-11-19T08:22:17.284Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*LIwxA8XtOg-uPC8T7Jyymg.png" /></figure><p>Configuration management can be a daunting task in Kubernetes. Especially if you are dealing with complex Kubernetes environments and many microservices all over the place.</p><p>In those multicomponent environments, it would be unnecessarily cruel to be sentenced to manually editing endless YAML manifest files.</p><p>Luckily, configuration management tools like Helm, Kustomize, KPT, and Jsonnet are beacons of hope. But are they up for the task in multicomponent, complex environments with interconnected microservices?</p><p>In this article, we’ll share our experiences in exploring various approaches, comparing Kustomize, Helm, KPT, and Jsonnet.</p><h3>Helm Vs Kustomize: Pros and Cons</h3><h4>Helm: The Kubernetes Package Manager</h4><p><a href="https://helm.sh/">Helm</a> is the beloved package manager for Kubernetes that simplifies the deployment and management of applications. Helm uses charts, which are collections of YAML templates that describe a set of Kubernetes resources.</p><p>Helm uses a templated manifest system where you write general manifests with placeholders for variable parts. You can customize these variables in the values.yaml files and use helm’s tooling to complete the deployment.</p><p><strong>Pros:</strong></p><ul><li><strong>Simplifies Manifest Creation:</strong> Helm’s templating engine allows for dynamic and reusable configurations.</li><li><strong>Supports Deployments and Upgrades:</strong> Helm can manage complex deployment tasks, including database schema migrations, making it easier to handle application updates.</li></ul><p><strong>Cons:</strong></p><ul><li><strong>Limited Flexibility:</strong> You can only customize what the chart author has exposed as variables.</li><li><strong>Inconsistent Namespace Handling:</strong> Helm can be inconsistent with specific naming schemes for namespaces, particularly in Custom Resource Definitions (CRDs), leading to potential deployment issues if not carefully managed.</li></ul><h4>Kustomize: Kubernetes’ Configuration Tool</h4><p>Next on our list is <a href="https://kustomize.io/">Kustomize</a>, the native Kubernetes tool for managing configurations. It uses a declarative approach to manage Kubernetes configurations.</p><p>Kustomize uses a base manifest, which is the core YAML configuration that defines your Kubernetes resources. This base manifest is the starting point for all environments.</p><p>Customizations for different environments are defined in overlays. Overlays are YAML files that specify changes to be applied to the base manifest. These changes could include modifications to resource specifications, additional labels, or environment-specific configurations.</p><p>To deploy your application with Kustomize, you use kubectl with the -k flag, pointing to the appropriate overlay directory.</p><p><strong>Pros:</strong></p><ul><li><strong>High Flexibility:</strong> Kustomize offers more flexibility than Helm. You can use overlays and patches to modify base resources without being limited to predefined templates or variables.</li><li><strong>Simplified Updates:</strong> Customizations typically remain intact when updating the base manifest, allowing core configuration updates without reapplying environment-specific changes, simplifying management across environments.</li></ul><p><strong>Cons:</strong></p><ul><li><strong>Incomplete Abstraction:</strong> Kustomize can struggle with certain elements, such as namespaces embedded within larger strings, which can cause configurations to break, leading to deployment issues.</li></ul><h4>Kustomize and Helm: Our Verdict</h4><p>Both Kustomize and Helm have their strengths and can work well for isolated applications. But they also have significant limitations that can impact productivity and reliability in managing complex Kubernetes environments.</p><p>A common issue with both Helm and Kustomize is that you only see the end result after deployment. This means you must deploy the configurations on the actual development platform to verify if they are correct, complicating debugging and validation.</p><h3>Exploring Alternatives: KPT (Kubernetes Packaging Tool) and Jsonnet</h3><h4>KPT: Configuration Authoring and Automation</h4><p><a href="https://kpt.dev/">KPT</a> is an alternative to Kustomize, emphasizing local customization. You publish a canonical package in a Git repository, which an integrator pulls and customizes locally. This approach allows for manual changes before applying the manifests to the cluster.</p><p>Instead of expressing configuration as code or templates that generate the configuration, KPT represents <a href="https://github.com/kptdev/kpt/blob/main/docs/design-docs/06-config-as-data.md">Configuration as Data</a>. Furthermore, KPT leverages the OpenAPI resource schema to enable you to define configurations.</p><p><strong>Pros:</strong></p><ul><li><strong>Local customizations:</strong> Local rendering of manifests simplifies debugging by allowing inspection before deployment. By enabling local customizations, KPT allows for more complex and specific changes.</li><li><strong>Intelligent analysis</strong>: The KPT tool is capable of detecting both declarative and manual changes. When a new version is pulled, it can automatically integrate these manual changes.</li></ul><p><strong>Cons:</strong></p><ul><li><strong>Manual changes can be cumbersome:</strong> The need for manual changes can complicate management, particularly for large projects.</li></ul><h4>Jsonnet: The Programming Language for JSON</h4><p><a href="https://jsonnet.org/">Jsonnet</a> is not a typical Kubernetes tool but a powerful programming language for generating JSON output, which can be easily converted to YAML for Kubernetes. It offers a more structured and powerful way to transform manifests compared to Helm or Kustomize.</p><p><strong>Pros:</strong></p><ul><li><strong>Full Programming Language:</strong> Jsonnet’s flexibility allows for any transformation and logic application, offering unmatched customization potential.</li><li><strong>Structured Data Handling:</strong> Jsonnet recognizes structured JSON, reducing the risk of generating invalid output.</li></ul><p><strong>Cons:</strong></p><ul><li><strong>Additional Tooling Required:</strong> Jsonnet needs supplementary tools to integrate fully with the Kubernetes ecosystem.</li></ul><p>Also interesting to know: tools like Grafana Tanka and Kapitan are built on top of Jsonnet and provide additional features, such as environment management, a more intuitive syntax, reusable templates and integration with complex deployment workflows.</p><p>While Kapitan and Grafana Tanka offer powerful features and great ideas, we didn’t further explore them, because we needed a solution focused on component-level management rather than platform-wide deployment.</p><h4>KPT and Jsonnect: Our Verdict</h4><p>Despite needing additional tools for full integration, Jsonnet emerged as the best fit for our needs. It allowed us to specify changes once and apply them consistently, providing flexibility to tailor configurations to our specific requirements.</p><h3><strong>Conclusion</strong></h3><p>Choosing the right configuration management tool for Kubernetes depends on your specific needs:</p><ul><li><strong>Helm and Kustomize</strong>: These tools offer robust solutions for isolated applications but may struggle with complex, multicomponent platforms.</li><li><strong>KPT</strong>: Provides powerful local customization capabilities but can become cumbersome for large projects due to manual management.</li><li><strong>Jsonnet</strong>: Offers great flexibility and structured data handling for generating Kubernetes manifests, though it requires additional integration tools.</li></ul><p>If you are managing many interconnected microservices and modular architectures, a tailor-made configuration solution based on these existing tools may be the best approach. It can leverage their strengths while addressing the specific needs of your environment.</p><h3>About Klarrio</h3><p>At Klarrio, we design cloud native, cloud agnostic software solutions to empower our customers to control their data, limit cloud costs, and optimize performance. We ensure flexibility for scalable platform building across various cloud and on-premises infrastructures, prioritizing privacy, security, and resilience by design.</p><p>We are platform pioneers at heart, with a proven track record in building self-service data platforms, Internal Developer Platforms, log aggregation platforms, and other innovative software solutions in various domains: from Telecom, Transportation &amp; Logistics, Manufacturing, Public Sector, Healthcare to Entertainment.</p><p>Beyond technology, we actively collaborate and share knowledge, both in-house and together with our customers. True impact is achieved together.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=31e14b50063c" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Mirroring High-Throughput Topics with Kafka MirrorMaker 2]]></title>
            <link>https://klarrio.medium.com/mirroring-high-throughput-topics-with-kafka-mirrormaker-2-3a7abe158884?source=rss-7d00fdb355e3------2</link>
            <guid isPermaLink="false">https://medium.com/p/3a7abe158884</guid>
            <category><![CDATA[high-throughput]]></category>
            <category><![CDATA[latency-optimization]]></category>
            <category><![CDATA[cloud-infrastructure]]></category>
            <category><![CDATA[kafka]]></category>
            <category><![CDATA[data-replication]]></category>
            <dc:creator><![CDATA[Klarrio]]></dc:creator>
            <pubDate>Tue, 05 Nov 2024 11:22:45 GMT</pubDate>
            <atom:updated>2024-11-05T11:22:45.289Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Wh6g4KigOZMxxSIhMeuTzw.png" /></figure><p><em>By Dominique Chanet<br>Lead Architect at Klarrio</em></p><p>Kafka MirrorMaker is a tool, included with the Apache Kafka distribution, that allows for the replication of Kafka topic messages across different Kafka clusters. Initially a standalone tool, as of version 2.0, it’s built on top of the Kafka Connect framework.</p><p>We recently faced a situation where we needed to replicate a high-throughput (roughly 2500 msg/s, good for about 5MB/s) topic across two geographically separate locations.</p><p>There was ample bandwidth available: we could comfortably transmit up to 1Gb/s (128MB/s), so replicating a 5MB/s topic should be easy peasy, right?</p><h3>Wrong!</h3><p>Of course, one does not set and forget a replication job. Our operations team, tasked with monitoring the overall health of the platforms, was keeping an eye on the topic replication performance as well.</p><p>Much to our dismay, they reported steadily increasing replication latencies, creeping up into the hours range. The source topic has a time-based retention of 24 hours, so we were coming close to losing data because the source topic would drop day-old data before the replication job could even start to process it.</p><p>Why does MirrorMaker fail to keep up with a 5MB/s topic when there’s ample bandwidth available? To answer that question, we need to make a quick detour into the innards of the Kafka protocol.</p><h3>Kafka Clients Are Sequential Pollers</h3><p>Kafka is conceptually a publish-subscribe system. A naive observer might be inclined to think that Kafka clients (producers and consumers in Kafka parlance) simply open a TCP pipe to the broker, and stream data at line rate over that pipe. That is quite far from the truth, however:</p><p><strong>Producers</strong> batch messages for a topic partition, and transmit entire batches in one ProduceRequest. They then wait for acknowledgement from the broker before sending the next batch of records for the same topic partition.</p><p>While you can configure a producer to have multiple record batches in flight (i.e., sent-but-unacknowledged) in parallel, this does away with ordering guarantees: if one batch errors out, it may be overtaken by a later batch of messages which get committed to the topic while the earlier batch is being retransmitted.</p><p>Unless you don’t care about message ordering, it’s best to configure your producer to have only one batch in flight at a time.</p><p><strong>Consumers</strong> continuously poll the broker for new messages. It sends a FetchRequest, waits for the broker to respond with new message batches, and then immediately shoots off the next FetchRequest while it delivers the just-received messages to the application thread.</p><p>The long and short of it is that Kafka clients don’t stream data at line rate, but rather do sequential round trips to deliver data to, or fetch data from, the brokers. This has a significant effect on the attainable throughput.</p><p>Let’s do a little back-of-the-envelope calculation. We’ll disregard protocol overhead and processing time, so the numbers won’t be accurate, but they illustrate the situation well enough.</p><p>Assume:</p><ul><li>a fixed round trip time RTT between client and broker. This is what gamers call the “ping”: the time it takes to send a short packet from client to broker, and receive the response.</li><li>a fixed data size D that is transferred for each round trip.</li><li>a fixed bandwidth B between client and broker.</li></ul><p>The total time for one request Tr is then easily shown to be RTT + D/B. Requests are sequential, so the next request can only be launched as soon as the previous request has completed. This gives us a simple formula for total throughput TP:</p><pre>TP = D/Tr</pre><p>After substitution of Tr and application of some high school math, we end up with:</p><pre>TP = B*D/(B*RTT + D)</pre><p>Let’s plug in some numbers to get a feel for what this really means. Going back to our topic replication use case, we’re looking at:</p><ul><li>B = 128 MiB/s</li><li>RTT = 0.2 s</li></ul><p>For different data sizes, we get the following attainable throughput:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/423/1*wBon71FGNmdCslzNprC5XA.png" /></figure><p>To achieve at least half of the theoretically attainable throughput in our situation, we need batches of 32MiB or more. The flip side of this is, of course, latency; the larger the batches you produce, or the larger the fetches you do as a consumer, the longer it takes to accumulate enough data to send.</p><p>Hence, the end-to-end latency (the time it takes for a message to move from producer to consumer) will go up.</p><h3>Tuning Kafka Clients for High Throughput</h3><p>The default configuration of Kafka clients favors latency over throughput. Luckily, they offer lots of configuration knobs that allow you to tune this balance for your use case. In fact, there are so many configuration options for Kafka producers and consumers that it might be a bit hard to see the forest for the trees.</p><p>We (and many other fine resources on the web) are here to help! These are the most important configuration options that affect the latency/throughput tradeoff:</p><p><strong>For Producers</strong></p><p><strong><em>batch.size</em></strong> (default: 16kiB) is the equivalent of the D parameter in our calculations above. It determines the maximum size of per-partition message batches.</p><p><strong><em>linger.ms</em></strong> (default: 0) sets the time the producer waits to fill up a batch. If the batch isn’t full by that time, it’ll send it off anyway. This acts as a cap on the amount of latency you’re willing to tolerate in favor of throughput.</p><p><strong>acks</strong> determines a reliability-versus-throughput tradeoff:</p><ul><li>acks=0 does not wait for any broker acknowledgement. That means you can achieve produce throughput close to line rate, at the (very real) risk of losing data. <strong>This setting is not recommended.</strong></li><li>acks=all (the default since Kafka 3.0) delays the broker acknowledgement until the batch is properly received by all replicas. This setting guarantees the highest reliability, but significantly increases RTT and hence weighs heavily on the attainable throughput.</li><li>acks=1 (the default prior to Kafka 3.0) lets the broker send its acknowledgement as soon as the batch is persisted in the local log. There is a small chance of losing the batch if the broker fails unrecoverably before the batch was replicated to the followers.</li></ul><p>In return, you’ll get faster acknowledgements, which means a lower RTT,<br>which increases the attainable throughput. Unless you have extremely<br>strict reliability requirements, this is the sweet spot for higher<br>throughput topics.</p><p><strong><em>compression.type</em></strong> (default: none) trades off processor time for throughput. If you enable compression (valid values are lz4, snappy, gzip and zstd), the producer requires more CPU time to perform the compression, but it can cram more messages in the same batch size, which results in higher overall throughput.</p><p><strong>For Consumers</strong></p><p><strong><em>fetch.max.bytes</em></strong> (default: 50MiB) is roughly the equivalent of the D parameter in our calculations above. It sets the maximum size of the fetch response, which may include fetches across different topic partitions.</p><p><strong><em>max.partition.fetch.bytes</em></strong> (default: 1MiB) is the maximum number of bytes that will be fetched from <em>a single topic partition</em> in one request. Depending on the number of topics you’re subscribed to, this is another contributing factor in the D parameter.</p><p><strong><em>fetch.min.bytes</em></strong> (default: 1) is the minimum number of bytes to be returned by a fetch request. On a high-throughput topic, this won’t contribute much to D as there will always be sufficient data available to fetch. Increasing this minimum on <em>other</em> consumers might reduce the strain on a heavily loaded broker, which, in turn, might result in better throughput for your high-volume topic.</p><p><strong><em>fetch.max.wait.ms</em></strong> (default: 500) is the maximum time a broker will wait for <strong><em>fetch.min.bytes</em></strong> of data before it answers the fetch request anyway. This puts a cap on the latency the consumer is willing to tolerate in exchange for reducing the load on the broker.</p><p>Finding the right values for all of these settings is a bit of a dark art, so be sure to experiment and measure for your specific use case.</p><p>For our topic replication case, experimentation showed that we needed to tune both the consumer (reading from the source cluster) and the producer (writing to the target cluster) to achieve acceptable throughput.</p><p>On the consumer side, each consumer was fetching from a single topic partition, so it doesn’t make sense to have <em>max.partition.fetch.bytes</em> be lower than <em>fetch.max.bytes</em>.</p><p>Setting <strong><em>max.partition.fetch.bytes</em></strong> to 50MiB ensured we could pull sizable batches from the source cluster. On the producer side, the default batch size of 16kiB is just ridiculously low. We increased it to the same 50MiB cap, to ensure that the entire batch that was fetched from the source cluster could be pushed to the target cluster in one go.</p><h3>Tuning Kafka Clients for MirrorMaker 2</h3><p>Armed with all of the knowledge above, we can now turn our attention back to MirrorMaker. How do we tell it that we’d like to tune the Kafka client settings for better throughput?</p><p>Due to the fact that MirrorMaker 2 is built on top of Kafka Connect, the answer to this question is slightly more convoluted and confusing than you’d expect. Allow me to take you on a quick conceptual tour of Kafka Connect…</p><p>Kafka Connect is designed to bridge data between a Kafka cluster and a non-Kafka data system. It can function either as a Source, where it receives data from the foreign system and publishes it on Kafka, or as a Sink, where it takes data from Kafka and persists it in the foreign system.</p><p>If Kafka Connect functions as a Source, it uses a built-in producer to write data to Kafka. If it functions as a Sink, it uses a built-in consumer to read data from Kafka.</p><p>MirrorMaker 2 is a Kafka Connect plugin that defines the “foreign system” as “just another Kafka cluster”. It can act in either Source or Sink mode. When acting as Source, it uses its own consumer to read from the “foreign” Kafka cluster, and the built-in producer to write to the “local” Kafka.</p><p>When acting as Sink, the situation is flipped around: the built-in consumer reads from the “local” Kafka, and MirrorMaker’s own producer writes to the “foreign” Kafka. And therein lies the rub: the built-in producer and consumer need to be configured in a different way from MirrorMaker’s own producer and consumer.</p><p>First off, you need to change the Connect cluster’s base configuration. Add the following line (on all cluster nodes) to <em>connect.properties</em>:</p><pre>connector.client.config.override.policy=All</pre><p>This allows individual connectors to override the default client configuration of the Connect worker nodes. Without this line, you won’t be able to tune Connect’s built-in producer and consumer settings.</p><p>With this configuration change in place, you can add your tuned configuration settings to the connector configuration, but you need to prefix them correctly. The table below gives the correct prefixes for source and sink mode:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*5HthNFMELEu2NxRBSwp-uw.png" /></figure><p>Hence, with MirrorMaker working in Source mode, you’d add connector properties<br>like <em>producer.override.linger.ms</em> and <em>source.consumer.fetch.max.bytes</em>.</p><h3>Conclusion</h3><p>Kafka clients are by default tuned to prioritize latency over throughput. Especially when round trip times are high, it’s important to correctly tune the clients to achieve good throughput. If you’re using Kafka Connect or MirrorMaker, it may be confusing to figure out exactly how this is done. We hope that this article can help you on the way.</p><h3>About Klarrio</h3><p>At Klarrio, we design cloud native, cloud agnostic software solutions to empower our customers to control their data, limit cloud costs, and optimize performance. We ensure flexibility for scalable platform building across various cloud and on-premises infrastructures, prioritizing privacy, security, and resilience by design.</p><p>We are platform pioneers at heart, with a proven track record in building self-service data platforms, Internal Developer Platforms, log aggregation platforms, and other innovative software solutions in various domains: from Telecom,Transportation &amp; Logistics, Manufacturing, Public Sector, Healthcare to Entertainment.</p><p>Beyond technology, we actively collaborate and share knowledge, both in-house and together with our customers. True impact is achieved together.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=3a7abe158884" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Migrating from DC/OS to Kubernetes: A Deep Dive into The Challenges and Opportunities]]></title>
            <link>https://klarrio.medium.com/migrating-from-dc-os-to-kubernetes-a-deep-dive-into-the-challenges-and-opportunities-c6349e538c1a?source=rss-7d00fdb355e3------2</link>
            <guid isPermaLink="false">https://medium.com/p/c6349e538c1a</guid>
            <category><![CDATA[platform]]></category>
            <category><![CDATA[kubernetes]]></category>
            <category><![CDATA[migration]]></category>
            <category><![CDATA[dcos]]></category>
            <category><![CDATA[multitenancy]]></category>
            <dc:creator><![CDATA[Klarrio]]></dc:creator>
            <pubDate>Tue, 22 Oct 2024 08:01:11 GMT</pubDate>
            <atom:updated>2024-10-22T08:01:11.866Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*EU8KTB_AhfPB3E4PSZgOKg.png" /></figure><p>Back in 2016, when we started building a multitenant data platform for one of our customers, DC/OS (Datacenter Operating System) was the preferred choice in the big leagues of container orchestration technology.</p><p>DC/OS had a proven track record of running stateful workloads at scale, which made it a logical choice for large-scale deployments when building stateful data processing pipelines and platforms.</p><p>Kubernetes–an open-sourced Google project–was initially considered mostly suitable for stateless workloads, like microservices. Over the years, though, Kubernetes emerged as the cool kid on the block with a lively ecosystem and adoption of Kubernetes managed services by all major cloud providers.</p><p>When Mesosphere — the company behind DC/OS — rebranded to D2iQ in 2019 and began focusing on Kubernetes as its core product, it became evident that Kubernetes was in the lead. In 2021, DC/OS (as well as the underlying Apache Mesos) was marked as End of Life.</p><p>To make a (very) long story short: Kubernetes won the big league container orchestration race, we tackled the technically challenging migration from DC/OS and gained valuable hands-on experience along the way; we even have an article to prove it, so buckle up and find out some of the things we learned.</p><h3>The Platform : Context and Initial Setup</h3><p>First, let’s talk about the platform: it’s designed for low-latency, real-time data processing and data sharing within an ecosystem of trusted parties. Some of them provide data sources, while others contribute their intellectual property (algorithms) to process and enrich the data.</p><p>From day one, the platform was designed to operate across both on-premises environments and multiple cloud providers. So initially, we implemented the platform using DC/OS for container orchestration, with Calico virtual networking for tenant isolation.</p><p>Platform resources are automatically provisioned and allocated to tenants, with resource quotas in place to guarantee fair resource distribution and prevent any tenant from hogging all resources.</p><p>Tenants have access to a web user interface that offers an overview of their deployed services, service status, and observability dashboards. An application catalog enables tenants to deploy various applications with a single click of a button, creating an optimal developer experience.</p><blockquote>”There are so many interesting challenges when it comes to managing platforms, setting them up, and designing the workflows. It’s simply fascinating to think about and work on.” — Pieter, Lead SRE at Klarrio</blockquote><p>The control plane is a separate stack to manage platform functions like environment management, logging, alerting, and identity management. In the event of a catastrophe, the entire environment can be rebuilt from the control plane with just a single command.</p><p>Through the control plane, platforms are continuously observed to ensure they remain stable in production. This includes performance monitoring, real-time alerting and security vulnerability management, which helps identify and mitigate potential threats before they can impact the system.</p><h3>Key Technical Challenges</h3><p>An exciting IT project poses plenty of interesting challenges and in that regard, this migration fully met our engineers’ expectations.</p><h3>1. Preserving Platform Functionalities and Achieving 100% API Compatibility</h3><p>One of our key challenges was to replace the underlying container orchestration technology while preserving all of the platform capabilities, ensuring there is no data loss and without impacting any of the tenant applications.</p><p>Our customers and tenants shouldn’t be able to notice the difference, meaning they retain the same user interface, keep the same functionalities, and have 100% API compatibility.</p><p>So how did we pull this off? The first thing that definitely made our lives easier was the fact that — back in the day — we opted to build our own abstraction layer and define our own service definitions. This abstraction layer was designed to be able to enforce security policies, rather than having tenants directly use the low-level Marathon API.</p><p>Thanks to this approach, we were able to map the abstraction layer API to the equivalent Kubernetes functionalities, and change the underpinnings entirely without our customers noticing.</p><h3>2.Bridging the Gap Between Existing Tooling, Our Methodology, and Further Modernization</h3><p>Nowadays, declarative management and GitOps are household terms, and modern projects are set up that way. In 2016, we already explored those ideas, but there were no off-the-shelf solutions that met the requirements. Therefore, we built those tools in-house.</p><p>Furthermore, we wanted to fully immerse ourselves in Kubernetes’ philosophy and its native features as much as possible, while also making sure to keep thinking outside the box to meet our customer requirements.</p><h3>Upgrading Each Piece of the Puzzle</h3><p>We initially had a custom scheduler for IaC (<a href="https://klarrio-my.sharepoint.com/personal/steven_avonds_klarrio_com/Documents/Transcribed%20Files/Input%20artikel_%20Migratie%20van%20DC_OS%20naar%20Kubernetes%20(2024-07-08%2010_14%20GMT+2)(1).mp3">Infrastructure as code) and configuration management. </a>This in-house tool integrated Terraform for provisioning infrastructure and Ansible for managing software configurations and deployments.</p><p>With the DC/OS migration, we took the opportunity to leverage more up-to-date solutions, such as Flux and CI/CD pipelines integrated with GitHub Actions.</p><p>This shift allowed us to streamline the infrastructure and deployment processes, aligning with the industry’s best practices in orchestration and automation.</p><p>The control plane was set up in an older Kubernetes environment that didn’t use Flux. To modernize, we aligned it with our new Terraform and Flux codebase.</p><h3>Redeploying Clusters as an Upgrade Strategy</h3><p>Kubernetes operates on the principle of continuous uptime, where rolling updates ensure that systems are always available. However, we see interesting use cases to completely shut down a cluster, such as for rare complex upgrade scenarios or disaster recovery for business continuity management..</p><p>This presents challenges since Kubernetes isn’t inherently designed for complete cluster shutdowns and restarts, leading to complexities when trying to recover a full state after such an event.</p><blockquote><em>“Kubernetes doesn’t really support shutting down and restarting a cluster while preserving its configuration and state. We leverage Velero to make this possible.” </em>Tom, Software Architect at Klarrio</blockquote><p>Velero is essential in our approach because it backs up essential resources, such as disk volumes and object storage buckets, before shutting down the cluster.</p><p>The key here is to restore all relevant states before the operators are initialized, ensuring the system resumes operations as intended. This approach ensures that existing resources are reused rather than new ones being created, allowing the system to recover as though it had never been down.</p><p>That way, we can ensure that all the disks, object storage buckets — the assets we had — continue to work.</p><h3>3. Buckling Up with Object Storage Buckets</h3><p>One of the resources the platform offers to the tenants is the allocation of object storage buckets. Therefore, during the migration, we had to ensure these were available on the new Kubernetes platform as well.</p><p>Making the object storage buckets accessible to the Kubernetes cluster involved significant changes for the object storage buckets used by the platform services. Previously, on DC/OS, we managed static access keys ourselves.</p><p>In contrast, Kubernetes supports creating short-lived credentials, which is much safer. We implemented this for the object storage buckets of the platform services by creating them with Terraform, and accessing them using these short-lived credentials. However, this approach requires ensuring that the right buckets have the correct credentials.</p><p>For tenant object storage buckets, nothing has changed yet because Kubernetes doesn’t currently provide an API for creating and managing S3 buckets — they’re still working on their <a href="https://container-object-storage-interface.github.io/">Container Object Storage Interface (COSI) API</a>. We continue to use our own abstraction layer to create and access these buckets as before. In the long term, when Kubernetes provides native support, we can switch over.</p><h3>4. Managing Configuration Complexity and Customization</h3><p>Before transitioning to Kubernetes, we worked with Ansible in DC/OS to manage configurations. Ansible was run offline using custom-built tooling. Each time we rolled out a release, all configurations were applied at once.</p><p>Managing configurations in Kubernetes became more complex. Every action within Kubernetes requires defining separate resource objects, each component and its dependencies must be defined individually. Given the need for customization across different environments, templating and managing these configurations became a complex puzzle.</p><p>We carefully evaluated tools like Helm and Kustomize, which offer templating and customization capabilities for Kubernetes configurations.</p><p>Specifically, we build Helm configuration charts and use them as input for other Helm charts. When installing out-of-the-box components, you need to provide configuration values. The problem is that these values are often platform-specific — you need to use certain URLs or settings unique to your cluster environment. These input values cannot be easily templated directly.</p><p>To address this, we employ a two-stage approach:</p><ol><li><strong>Generate Configuration Values with a Helm Chart</strong>: We first create a Helm chart dedicated to generating the necessary configuration values. This allows us to use templating effectively to account for environment-specific variations.</li><li><strong>Use Generated Configurations as Input</strong>: The output from this initial Helm chart — the templated configuration file — is then used as input for the other Helm charts that install the actual components.</li></ol><figure><img alt="" src="https://cdn-images-1.medium.com/max/918/0*iHXYR95Lj9YR7jiW" /></figure><h3>5. Dealing with the Quirks</h3><h4>Managed Clusters on AWS and Azure</h4><p>In DC/OS, we managed and operated the entire cluster ourselves. With Kubernetes, we opted to leverage the managed Kubernetes services offered by the major cloud providers. We encountered some notable differences between these offerings.</p><p>In terms of networking and tenant isolation, while we continue to use Calico as before, the underlying networking layer in Kubernetes required a complete rebuild. The way Calico rules are defined has been entirely restructured.</p><p>Each platform controls its networking layer, leading to situations where something worked on one platform but behaved unexpectedly on the other. For example, internal routing posed some challenges, especially around how traffic is handled between external endpoints and the cluster.</p><p>Also, the method of installing new software and rolling out nodes differ across platforms. For example, deployment processes for instance type updates in AWS’s EKS and Azure’s AKS clusters are inherently different. These differences required additional testing and development to ensure smooth functionality across both environments.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/746/0*xaD6R-QBApaESyxc" /></figure><h4>Internal DNS Names</h4><p>Internal DNS names in Kubernetes were different from the ones we had on DC/OS. On DC/OS, a service like foo in tenant bar had a DNS name like <em>foo.bar.marathon.mesos</em>. However, in Kubernetes, the DNS name follows a different pattern, such as <em>foo.bar-default.svc.cluster.local</em>.</p><p>Since much of the tenant code relies on those predictable DNS patterns, we came up with some DNS rewriting tricks to ensure compatibility. This was made possible thanks to CoreDNS, a crucial part of Kubernetes that allowed us to implement these DNS changes effectively and retain 100% API compatibility, even with changing service names.</p><h4>Retaining the Same URLs and IP Addresses</h4><p>Another interesting thinking exercise: many IoT devices, often spread out across the field, had whitelist entries for the IPs and URLs associated with the platform, so one of the requirements was to maintain the same endpoints and IP addresses.</p><p>The main challenge in retaining the same IP addresses and URLs was the fact that the entire cluster was automated. Starting it from scratch would have automatically created new load balancers and IP addresses, so we had to ensure that the existing ones were reused, not replaced.</p><p>Since these resources can only be used in one place at a time, we had to release, transfer, and import them into Kubernetes after turning off DC/OS.</p><p>For URLs, we used an AWS Route 53 or Azure DNS entry pointing to a load balancer. Previously, it directed traffic to DC/OS, so we just updated it to point to the new load balancer. For IPs, we used AWS Elastic IPs or Azure public IP addresses, which we had to retain and attach to the correct load balancer.</p><h3>6. To Snapshot or Transfer Disks, That’s the Question</h3><p>In our quest to ensure minimal disruption and optimal restoration during the migration, we had to choose between taking snapshots or transferring disks.</p><p>We encountered performance issues with restoring incremental snapshots. The snapshot and restoration process went smoothly, and the volumes could be used immediately, but there was a catch: the volumes operated in an optimization state for a period of time (up to hours), which impacted performance.</p><h4>Transferring the Kafka Data Volumes</h4><p>The performance was significantly impacted due to what we assumed was the underlying copy-on-write mechanism, where the first time each byte is accessed, it gets copied from the snapshot to the physical disk. The Kafka clusters couldn’t keep up with this.</p><blockquote><em>“We were dealing with terabytes of Kafka data. Extended downtime meant increased delays in syncing the data, so minimizing downtime was critical” — Tom, Software Architect at Klarrio</em></blockquote><p>As the snapshot-restore process was too slow for such large volumes, we opted for another solution: we transferred the actual Kafka disks instead of taking snapshots. So we automated the process of detaching the disks (with their unique IDs) from DC/OS and attaching them directly to the Kubernetes cluster.</p><h4>Safer Snapshots</h4><p>For migrating tenant volumes, we chose to use snapshots. Although slower, they were the safest choice for tenant data as we couldn’t directly manage their data. If something went wrong, we could always restore the original cluster.</p><h3>Decisive Days; Migrating the Platforms</h3><p>We were up for some heavy lifting:The migration involved 6 platforms across different cloud providers, and the production platform handled over 50 TB of data ingress and egress on a daily basis.</p><p>We had to migrate 548 applications, 338 vhosts, 66 volumes, 63 tenants, 35 buckets, 26 Kafka proxies, 3 databases, and 2 Flink clusters. We achieved the main production migration within a maintenance window of 4 hours and a half.</p><h3>Preparing for the Migration</h3><p>In the early stages of research and testing, everything was done manually. Over time, we automated the execution and validation of each step of the migration process, ensuring precision and eliminating the risk of human error.</p><blockquote><em>“Just because it worked once doesn’t mean it will work every time. It needs to be done hundreds of times and automated before we can be reasonably sure to perform a production upgrade successfully.” — Dominique, Lead Architect at Klarrio</em></blockquote><p>All the insights gathered during testing were consolidated into a detailed 76-step runbook, which was refined through repeated trials. Our preparation process focused on several key aspects:</p><ul><li><strong>Local environment setup</strong>: Preparing local development and SRE environments to support a seamless migration.</li><li><strong>Source platform configuration</strong>: Running essential Ansible playbooks and ensuring all dependencies were correctly configured.</li><li><strong>Target platform preparation</strong>: Setting up the Kubernetes cluster on the target platform, configuring tools like kubectl, and validating Terraform and other critical configurations.</li><li><strong>Pre-migration testing</strong>: Conducting volume mount tests and verifying tenant volumes and databases by fetching data from the source platform.</li><li><strong>Volume mount test</strong>: Testing volume mounts to confirm compatibility across platforms.</li></ul><p>In addition to the technical preparations, we timely notified tenants about the migration and provided them with best practices and tools to test whether their services were fully functional on Kubernetes before the migration.</p><h3>Executing the Migration</h3><p>We chose to migrate the internal development and validation platforms first, in case we encountered some unexpected issues.</p><p><strong>Pre-migration steps on the big day:</strong></p><ul><li>Ensure all replication factors are correct and the platforms are stable and ready for migration.</li><li>Ensure any remaining platform setups, including monitoring and Kafka configurations, are completed.</li></ul><p><strong>Migration execution</strong>:</p><ul><li>Shutdown applications on the source platform and update public status.</li><li>Execute the migration scripts, including database and volume migration, ensuring backups are taken and volumes are transferred to the target platform.</li><li>Run jobs for creating and migrating Kubernetes manifests, including secrets, volumes, and namespaces.</li><li>Monitor the migration process, verifying that Kafka and Zookeeper services are properly transferred and restarted.</li></ul><p><strong>Post-migration verification</strong>:</p><ul><li>Validate that services and applications are running correctly on the target platform.</li><li>Conduct tests to ensure data integrity, performance, and system stability.</li></ul><h3>Our Advice Towards Fellow IT Adventurers</h3><p>If you have a big upcoming migration, here’s some humble advice we can offer:</p><h3>1. Carefully Consider the Lift-and-Shift Approach or Strike the Right Balance</h3><p>Lift-and-shift is often viewed as the simplest migration path, but it’s a double-edged sword. In our case, we had to ensure backward compatibility with the customer’s tenants, who were managing their own business logic. This made lift-and-shift on a tenant level the only option, allowing us to preserve compatibility without disrupting tenant operations.</p><p>However, this approach can also lock you into legacy paradigms. For components that weren’t publicly exposed through an API, we took the opportunity to modernize and embrace Kubernetes-native features. If you aren’t bound by compatibility requirements, take a step back and identify areas where refactoring would allow you to fully leverage Kubernetes.</p><h3>2. Fully Subscribe to the Kubernetes Ecosystem</h3><p>Fully embracing Kubernetes requires adopting cloud native principles, from infrastructure management to deployment practices. This includes embracing microservices, automated deployment methods, and relying on Kubernetes-native tools instead of reinventing the wheel with custom-built solutions. Kubernetes has covered many scenarios through its ecosystem, and using established tools improves integration with the platform’s ecosystem.</p><h3>3. Prepare for YAML Management Complexity</h3><p>Kubernetes’ reliance on YAML configurations can become overwhelming. The right tool for managing these configurations will depend on the size and complexity of your platform. Investing in templating and automation tools early in the migration process is crucial to avoid configuration sprawl.</p><h3>4. Adapt the Abstraction Layer or Rethink It</h3><p>If your platform includes an abstraction layer, it can give you flexibility in handling migrations. While the top layer — exposed to tenants — remained consistent, we radically refactored the underlying systems to be more Kubernetes-native. An abstraction layer lets you “lift-and-shift” the public-facing side while refactoring the core systems for more efficiency. This approach worked well for us, but each decision depends on how much control you have over the components of your system.</p><h3>5. Test Extensively (and Beyond) Across Environments</h3><p>Consistency across environments is essential, especially in multicloud setups. However, testing should go beyond just “extensive.” In our case, we ran hundreds of test migrations and continually refined our approach, solving complexities along the way.</p><p>It’s only through this process that we learned how to handle the massive data transfers, DNS rewrites, and complex integrations needed for a smooth transition. The key lesson is that successfully migrating once doesn’t guarantee success every time. Automate everything and test until you can confidently run a production upgrade.</p><h3>6. Disaster Recovery Testing Is Non-Negotiable</h3><p>Frequent disaster recovery testing should be part of any operation. The longer a platform remains up, the more likely it is that circular dependencies or manual workarounds have been introduced. If you don’t regularly test full platform restarts, you risk running into issues that can only be resolved through manual interventions. Ensure the platform can be recovered without relying on ad-hoc fixes, and conduct disaster recovery drills as a routine.</p><h3>Conclusion</h3><p>Migrating from DC/OS to Kubernetes is a complex adventure that requires rethinking architecture, adopting new tools, and navigating the complexities of cloud native operations.</p><p>Rather than a straightforward transition, it’s an opportunity to evaluate legacy practices, adopt Kubernetes-native tools, and drive architectural improvements. While the process is challenging, the long-term benefits of running on Kubernetes — greater flexibility, scalability, and access to a robust ecosystem — make it a worthwhile investment.</p><p>If you consider a similar migration, the key takeaway is to approach it with a strategic mindset, embracing the opportunity to refactor and modernize, rather than simply replicating existing workflows in a new environment.</p><h3>About Klarrio</h3><p>At <a href="https://klarrio.com/">Klarrio</a>, we design cloud native, cloud agnostic software solutions to empower our customers to control their data, limit cloud costs, and optimize performance. We ensure flexibility for scalable platform building across various cloud and on-premises infrastructures, prioritizing privacy, security, and resilience by design.</p><p>We are platform pioneers at heart, with a proven track record in building self-service data platforms, Internal Developer Platforms, log aggregation platforms, and other innovative software solutions in various domains: from Telecom, Transportation &amp; Logistics, Manufacturing, Public Sector, Healthcare to Entertainment.</p><p>Beyond technology, we actively collaborate and share knowledge, both in-house and together with our customers. True impact is achieved together.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=c6349e538c1a" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Navigating ISO 27001 and NIS 2 Compliance: How You Can Truly Secure Your Future]]></title>
            <link>https://klarrio.medium.com/navigating-iso-27001-and-nis-2-compliance-how-you-can-truly-secure-your-future-4eab16a1e3cb?source=rss-7d00fdb355e3------2</link>
            <guid isPermaLink="false">https://medium.com/p/4eab16a1e3cb</guid>
            <category><![CDATA[nis2]]></category>
            <category><![CDATA[compliance]]></category>
            <category><![CDATA[iso-27001]]></category>
            <category><![CDATA[platform-engineering]]></category>
            <category><![CDATA[cloud-agnostic]]></category>
            <dc:creator><![CDATA[Klarrio]]></dc:creator>
            <pubDate>Tue, 01 Oct 2024 09:35:55 GMT</pubDate>
            <atom:updated>2024-10-08T05:42:18.164Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*EDzl3op68ujdDht7dO_Xdw.png" /></figure><p>Achieving ISO 27001 and NIS 2 compliance can be a daunting venture, and once you’ve successfully implemented all the security measures and protocols, the job isn’t done.</p><p>Maintaining compliance is another challenge that requires continuous effort and strategic planning, especially in complex IT environments with data-intensive operations. To truly invest in the future of your business or organization, you should think beyond just ticking the boxes.</p><p>In this article, we’ll take a look at what this would entail, the complexities of achieving and maintaining compliance, the challenges involved, and the advantages of deploying your own tailor-made solutions over off-the-shelf services.</p><h3>Dealing with Your Compliance Marathon</h3><p>Achieving and maintaining ISO 27001 and NIS 2 compliance involve addressing a wide range of organizational and technical challenges.</p><ul><li><strong>Organizational challenges</strong>: You need sufficient resources to ensure ongoing compliance while balancing other operations. Additionally, managing different stakeholders within the organization is crucial, requiring effective communication and coordination across departments to align efforts towards compliance goals.</li><li><strong>Regulatory requirements</strong>: Compliance with regulatory requirements in different regions or industries requires complex security and data protection measures. Data privacy laws, such as GDPR, add another layer of complexity, especially when dealing with personal and sensitive data.</li><li><strong>Diverse technology components</strong>: The complexity of modern software development and IT infrastructures involves aspects such as microservices, containerization, CI/CD pipelines, diverse technology stacks, programming languages, third-party integrations, legacy systems, and complex cloud computing environments.</li><li><strong>Dynamic threat landscape</strong>: As software systems become more open and interconnected, they are also more vulnerable to security threats. The rapid evolution of cyber threats requires continuous monitoring and updating of security measures.</li></ul><h3>Shooting Yourself in the Foot by Just “Ticking the Boxes”</h3><p>Confronted with the increasing costs and allocated resources needed to maintain compliance, some businesses and organizations might eventually decide to just go for a bare minimum.</p><p>But simply ticking the boxes to meet compliance requirements without integrating them into the core business processes is a short-sighted approach. It can lead to a false sense of security and leave you vulnerable to risks that could have been mitigated with a more thorough approach.</p><h4>No Return on Investment</h4><p>If you make it a “tick-the-box” exercise, it’s not an efficient use of your money. You won’t get the organizational or risk management benefits. You’ll end up with a lot of documents and people who have read them, but there will be little practical outcome, and you won’t gain much benefit.</p><h4>Delaying the Inevitable</h4><p>Ignoring comprehensive security measures and focusing only on meeting minimum compliance standards can lead to significant issues down the line. Security gaps will eventually be exploited, leading to potentially severe financial and reputational damage.</p><h3>Compliance Convenience–The Common Misconceptions About Off-the-Shelf PaaS and SaaS Solutions</h3><p>Many businesses and organizations assume that off-the-shelf Paas and SaaS solutions will simplify ISO 27001 and NIS 2 compliance requirements, and that they offer more advantages than tailor-made solutions. Let’s have a look at some common misconceptions:</p><h4><strong>“Off-the-shelf PaaS and Saas solutions are more secure”</strong></h4><p>Everything falls or stands with the proper implementation of tailor-made solutions in your business or organization. If a business has a hastily put-together customized solution with vulnerable components that runs on outdated on-premises servers, the PaaS or SaaS solution will definitely be more secure.</p><p>On the other hand, if we consider a business or organization that goes beyond ticking the boxes, with a well-implemented and professional tailor-made solution that embodies security and privacy by design, then your tailor-made solution will be ahead of the curve.</p><p>Moreover, off-the-shelf solutions offer generic security measures, which may not fully meet the specific risks identified in your risk assessment. Additionally, PaaS and SaaS platforms can introduce additional risks through third-party integrations, data transfer across jurisdictions, and the vendor-controlled security updates we mentioned earlier.</p><p><strong>‘’Off-the-shelf solutions are cheaper’’</strong></p><p>Many businesses and organizations opt for using PaaS and SaaS cloud solutions because, at the entry point, the initial cost of getting started is very low or even free. For small-scale rollouts or proofs-of-concept, this cloud model may initially be cheaper than setting up your own hardware servers.</p><p>But over time, costs associated with vendor lock-in, scaling fees, and limitations on customization can lead to higher expenses than initially anticipated. Moreover, because you don’t have any visibility and transparency on the underlying code and inner workings, you’re often dependent on expensive maintenance contracts.</p><p><strong>‘’Off-the-shelf solutions are easier to maintain and update’’</strong></p><p>Off-the-shelf PaaS and SaaS solutions are often seen as easier to use and maintain, especially for updates and patches. However, when it comes to continuity and control over systems, relying on vendor-managed updates can introduce risks. The recent <a href="https://en.wikipedia.org/wiki/2024_CrowdStrike_incident">worldwide outage due to a CrowdStrike update</a> serves as a cautionary tale here.</p><p>You might not have control over when updates happen or how they impact your broader security controls, which could complicate compliance efforts. Additionally, forced updates may cause compatibility issues, which will require more resources.</p><h3>How You Can Take Control By Establishing Your Future-Proof, Compliance Foundation</h3><p>Now that we’ve discussed the compliance-related challenges and potential pitfalls of PaaS and SaaS solutions, let’s explore how you can make a difference by truly taking control of your end-to-end compliance journey.</p><h3>Implement Security and Privacy by Design</h3><p>The principles of security and privacy by design ensure that software solutions are developed with robust safety mechanisms from the ground up. By embedding security and privacy measures from the start, they are integral parts of your system’s architecture rather than afterthoughts.</p><p>Retrofitting existing systems to secure sensitive data — such as intellectual property, personal information, or other critical assets — is a complex and resource-intensive process. Security and privacy by design are always more effective and straightforward than attempting to secure a solution after it has already been built.</p><p><strong>Integrate Risk Assessment Early in the Development Process</strong></p><p>Begin by conducting thorough risk assessments at the earliest stages of project planning and development. This allows you to identify and mitigate potential threats before they evolve into vulnerabilities within your system.</p><p><strong>Embed Security Controls in the System Design</strong></p><p>Incorporate security controls directly into your system’s architecture. For example, the principle of least privilege should be enforced from the start, ensuring that users only have access to the data and resources necessary for their roles.</p><p><strong>Prioritize Data Protection in Every Process</strong></p><p>Integrate data protection measures throughout the entire lifecycle of data processing. Techniques like encryption of data at rest and in transit, as well as enforcing data access management policies, should be baked into every process, ensuring that your systems handle sensitive data in a way that is compliant by default.</p><p><strong>Foster a Culture of Security and Privacy Awareness</strong></p><p>Security and privacy by design require a cultural shift within your business or organization. Training on the importance of these principles ensures that all stakeholders are aligned with the compliance goals.</p><h3>Deploy Your Own Platform</h3><p>The principles of security and privacy by design align perfectly with deploying your own platform. Instead of relying on third-party services, which can additionally complicate supply chain verification, continuity, and cybersecurity measures, deploying your own cloud native, cloud agnostic platform offers many advantages over proprietary Saas and Paas solutions.</p><h4>Enhanced Security</h4><p>Full control over security protocols and configurations allows you to implement robust measures tailored to your specific risk profile. Because you are less reliant on third-party vendors, you are fully in control of your product lifecycle, and can more easily address vulnerabilities and implement updates.</p><h4>Compliance Management and Audit Readiness</h4><p>Platforms can be designed with built-in compliance features, streamlining the audit process. This includes automated compliance checks, comprehensive documentation, and real-time reporting capabilities to facilitate audit preparation and execution.</p><h4>Data Access Management</h4><p>When it comes to streamlining data protection measures, platforms can granularly enforce data access management aspects such as policy management, consent management, privacy management, and data usage management. Acting as information brokers, they maintain the confidentiality of data, manage user consents for data processing, and enforce policies across different environments.</p><h4>Data Sovereignty and Privacy</h4><p>Custom platforms can implement stricter privacy controls and data protection measures, ensuring adherence to both security standards and data protection laws such as GDPR. You have full control over where data is stored, processed, and transmitted, which can help meet specific data sovereignty requirements.</p><p>Another advantage is that privacy measures can be customized to suit the specific needs of your business or organization, or directly targeted towards specific risks identified during the data protection impact assessment.</p><h4>Future-Proofing</h4><p>A custom platform can be more easily adapted to future regulatory changes, ensuring ongoing compliance with evolving standards. Owning your platform allows for continuous innovation and the implementation of cutting-edge technologies to enhance security and compliance.</p><h4>Cost Management</h4><p>While initial development costs might be higher, long-term savings can be realized through reduced reliance on third-party solutions and avoiding potential fines for non-compliance.</p><p>By automating repetitive tasks, platforms reduce the need for manual work, which means lower labor costs and fewer mistakes. Plus, multitenancy implementations with shared resources and services mean companies can make the most of their infrastructure, saving even more money.</p><h3>Centralize and Streamline Your Monitoring with Custom Log Aggregation Platforms</h3><p>Common challenges in meeting ISO 27001 and NIS 2 requirements include establishing proper visibility and monitoring of your entire IT environment. You’re dealing with vast amounts of siloed log data, from numerous input sources and different systems.</p><p>The essential information is often hidden among a continuous flow of application log output, which can quickly become a huge bottleneck when generating essential reports. Another headache is the risk of logs containing sensitive information, including intellectual property, personal Identifiable Information, or security-sensitive information.</p><p>With log aggregation platforms, you ensure that you monitor your entire IT environment and respond swiftly to cyberattacks, while safeguarding sensitive data, and avoiding any privacy-related violations, amidst a data avalanche coming from siloed sources.</p><h4>Centralize Your Logging</h4><p>Aggregating logs from various sources into a centralized platform enhances visibility and monitoring. This significantly reduces the labor required to manually check log files across different devices, ensuring that all relevant activities are monitored and logged efficiently.</p><h4>Quickly Detect Significant Incidents</h4><p>With aggregated logging you can quickly identify significant incidents, especially in combination with a SIEM (Security Incident and Event Management) system to recognize potential security threats and vulnerabilities. This facilitates prompt reporting to Computer Security Incident Response Teams (CSIRTs) or competent authorities, which aligns with NIS 2’s requirements for timely incident notification and ongoing incident updates until resolution.</p><h4>Leverage Real-Time Data Processing</h4><p>Real-time data processing enables immediate detection and response to security events. This capability is important for meeting requirements for rapid incident response and mitigation. Real-time insights ensure that any potential threats are identified and addressed promptly, minimizing the impact of incidents.</p><p>Moreover, this facilitates timely compliance with NIS 2’s incident reporting obligations, including the need to provide initial notifications within 24 hours and detailed reports within 72 hours.</p><h4>Enable Continuous Monitoring</h4><p>Continuous monitoring and immediate feedback allow for the regular evaluation and adjustment of cybersecurity measures. This ensures that you can quickly adapt to new threats and regulatory changes, maintaining a strong security posture.</p><h3>Adopt A Cloud Native and Cloud Agnostic Approach</h3><h4>Flexibility and Scalability</h4><p>Cloud native applications are designed for flexibility and scalability. They leverage microservices and containerization, allowing you to easily scale operations and adapt to changing regulatory requirements and threats.</p><p>Cloud native solutions operate in a distributed manner, enhancing resilience. They can handle continuous changes in infrastructure without system breakdowns, ensuring that critical services remain operational during incidents, which aligns with the emphasis on business continuity.</p><h4>Avoid Vendor Lock-In</h4><p>By being cloud agnostic, organizations can avoid vendor lock-in and ensure service continuity. This independence allows for seamless migrations and operations between cloud providers and on-premises data centers, ensuring compliance with service continuity and disaster recovery requirements.</p><p>When it comes to NIS 2, the Commission is empowered to adopt delegated acts to specify which categories of entities are required to use certified ICT products, services, and processes. With a cloud agnostic approach, you will always be able to quickly migrate in case specific service providers would be blacklisted.</p><p>A cloud agnostic approach also helps in maintaining control over data, ensuring that compliance measures can be consistently applied regardless of the cloud or on-premises environment.</p><h4>Hybrid and Multicloud Strategies</h4><p>Utilizing multiple cloud environments increases redundancy and reduces the risk of service disruption. This strategy bridges the gap between on-premises and cloud environments, offering flexibility and control over where services are deployed.</p><p>In light of NIS 2 and GDPR for example, if you have personal information or private data, you want to keep it within European companies and within Europe, or even just on your own systems. If you act in a cloud native and cloud agnostic way, you can host them yourself at European hosting providers.</p><h3>Consider Open Source Components</h3><p>One of the key benefits of open source software is its transparency. Open source projects are developed in the public eye, allowing anyone to review and audit the code. This transparency is crucial for ISO 27001 and NIS 2 compliance as it ensures that:</p><ul><li><strong>Security is Verified</strong>: Organizations can scrutinize the code to ensure there are no hidden vulnerabilities or backdoors.</li><li><strong>Compliance is Auditable</strong>: Regular audits can be performed to ensure adherence to NIS 2 requirements.</li></ul><p>You can leverage open source software to build your own custom-made solutions, tailored to be fully compliant. Moreover, open source components open the door for a truly cloud native and cloud agnostic approach.</p><h3>Conclusion</h3><p>Navigating the complexities of ISO 27001 and NIS 2 compliance in intricate IT environments can be challenging, but with the right strategies and approaches, it is achievable and maintainable in the long run.</p><p>By investing in tailor-made solutions, potentially leveraging open source components, and adopting a cloud native and cloud agnostic approach, you can enhance your security, streamline compliance efforts, and future-proof your operations.</p><p>It’s crucial to do more than box-ticking and integrate compliance into core business processes to truly benefit from a robust security framework. In doing so, beyond protecting yourself against regulatory fines and security breaches, you build a foundation for sustainable growth and resilience to truly control your destiny.</p><h3>About Klarrio</h3><p>At Klarrio, we design cloud native, cloud agnostic software solutions to empower our customers to control their data, limit cloud costs, and optimize performance. We ensure flexibility for scalable platform building across various cloud and on-premises infrastructures, prioritizing privacy, security, and resilience by design.</p><p>We are platform pioneers at heart, with a proven track record in building self-service data platforms, Internal Developer Platforms, log aggregation platforms, and other innovative software solutions in various domains: from Telecom,Transportation &amp; Logistics, Manufacturing, Public Sector, Healthcare to Entertainment.</p><p>Beyond technology, we actively collaborate and share knowledge, both in-house and together with our customers. True impact is achieved together.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=4eab16a1e3cb" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[The NIS 2 Directive: What You Should Know]]></title>
            <link>https://klarrio.medium.com/the-nis-2-directive-what-you-should-know-d4f1e83bd5ec?source=rss-7d00fdb355e3------2</link>
            <guid isPermaLink="false">https://medium.com/p/d4f1e83bd5ec</guid>
            <category><![CDATA[information-security]]></category>
            <category><![CDATA[compliance]]></category>
            <category><![CDATA[european-union]]></category>
            <category><![CDATA[digital-transformation]]></category>
            <category><![CDATA[nis-2-directive]]></category>
            <dc:creator><![CDATA[Klarrio]]></dc:creator>
            <pubDate>Tue, 27 Aug 2024 07:46:26 GMT</pubDate>
            <atom:updated>2024-08-27T07:46:26.276Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*06yqVFVMSQ4YvwleBhLMDQ.png" /></figure><h3>Introduction</h3><p>In our increasingly digital world, the integrity and security of information systems are more vulnerable than ever. The devastating Ukrainian <a href="https://www.wired.com/2016/03/inside-cunning-unprecedented-hack-ukraines-power-grid/">power grid breach</a> in 2015, the global disruption caused by <a href="https://www.bbc.com/news/technology-39901382">WannaCry</a> and <a href="https://www.bbc.com/news/technology-40416611">Petya</a> in 2017, and the significant <a href="https://www.reuters.com/technology/cybersecurity/ukraines-biggest-mobile-operator-suffers-massive-hacker-attack-statement-2023-12-12/">cyberattack</a> on Ukraine in 2023 are strong reminders of the profound threats we are facing.</p><p>Fortunately, there’s a silver lining: while some zero-day exploits are unavoidable, many cyberattacks can be prevented with proper security measures. All too often, security breaches are the result of reused passwords, human errors, lack of multifactor authentication, or phishing emails.</p><p>In response to rising cyberthreats and our growing dependence on information systems, the Network and Information Security (NIS) Directive was established in 2016 to protect vital sectors and ensure coordinated responses to pervasive threats. Its successor, NIS 2, will transition into law in EU member states starting on October 18, 2024.</p><h3>NIS Is Dead, Long Live NIS 2</h3><p>The NIS (Network and Information Systems) Directive, introduced by the European Union in 2016, aimed to enhance cybersecurity across the EU by improving national cybersecurity capabilities, cross-border collaboration, and the resilience of critical infrastructure.</p><p>Although NIS was a significant step forward, it had several shortcomings:</p><ul><li>Inconsistent implementation across member states.</li><li>Broad and sometimes vague definitions that left too much room for interpretation.</li><li>Mainly focused on operators of essential services (OES) and digital service providers (DSP).</li><li>Insufficiently addressed newer and rapidly evolving areas, such as cloud computing, artificial intelligence, and the Internet of Things (IoT).</li></ul><p>NIS 2 shifts gears and aims to ensure a higher level of cybersecurity and operational resilience across the EU. This ensures that organizations take their cybersecurity responsibilities more seriously.</p><p>We’ll dive into the specifics of all the requirements towards ’entities’ (businesses and private/public organizations), but let’s have a look at the high-level key objectives first:</p><p><strong>Broader Scope</strong></p><p>NIS 2 expands its scope to include sectors like energy, transport, health, finance, digital infrastructure, drinking water, wastewater, chemical and medical device manufacturing, food processing, and social network providers.</p><p><strong>Stricter Security Requirements</strong></p><p>The directive introduces stricter security requirements, ensuring businesses and organizations implement appropriate technical and organizational measures to manage risks and protect their networks and information systems.</p><p><strong>Regulatory Oversight</strong></p><p>NIS 2 provides for more robust regulatory oversight and enforcement mechanisms. Authorities have the power to subject non-compliant businesses and organizations to investigative methods, such as on-site inspections, targeted security audits, security scans, and requests for information necessary to assess compliance with cybersecurity measures.</p><p>Authorities can issue warnings, adopt binding instructions, order the cessation of non-compliant conduct, and enforce additional measures to ensure compliance.</p><p><strong>Harmonized Sanctions</strong></p><p>To ensure compliance, NIS 2 introduces harmonized sanctioning regimes across member states. Organizations that fail to meet the directive’s requirements may face significant fines and penalties: up to 10 million euros or 2% of global turnover, and “management bodies”, such as company boards and executives can be held personally liable.</p><p><strong>Strict Incident Reporting</strong></p><p>NIS 2 enhances the requirements for incident reporting, ensuring that significant incidents are reported in a timely and efficient manner. This helps in quicker response and mitigation of the impacts of such incidents.</p><p><strong>Increased Cooperation and Information Sharing</strong></p><p>NIS 2 fosters greater cooperation between member states and promotes information sharing on threats, vulnerabilities, and incidents. It establishes a network of Computer Security Incident Response Teams (CSIRTs) and a European Cyber Crises Liaison Organization Network (EU-CyCLONe) to coordinate responses to large-scale cyber incidents.</p><h3>When Is NIS 2 Compliance Required?</h3><p>At first glance, determining if a business or organization needs to be NIS 2 compliant seems straightforward. However, several variables are at play. Moreover, member states can decide to categorize specific businesses and organizations as essential.</p><p>Even if a business or organization doesn’t require NIS 2 compliance, it may need to meet additional security guarantees if it serves NIS 2 compliant businesses or organizations, as they are obligated to secure their supply chain.</p><p>Here are some key indicators to define if a business or organization should be NIS 2 compliant:</p><ol><li>The business or organization is EU-based or provides services in the EU.</li><li>It has 49+ employees and an annual revenue/turnover of 10+ million, and is active in important sectors, such as energy, transportation, banking, financial services, health, and so on.</li><li>Some businesses or organizations are considered of critical importance and will need to be NIS 2 compliant, regardless of their size. Think of digital infrastructures, trust service providers, public administration entities, sole providers of a service which is essential for societal or economic activities, … .</li></ol><p>Check out the <a href="https://eur-lex.europa.eu/legal-content/EN/TXT/HTML/?uri=CELEX:32022L2555">NIS 2 Annex I</a> if you are interested in more detailed information.</p><p>Here’s a high-level flowchart to give you a better idea of the key indicators.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/680/0*A5jYQLg3ILbO_hNa" /></figure><h3>The Implications of the “Important” and ”Essential” Categorizations: Fines and Supervision</h3><p>The NIS 2 directive makes a distinction between important and essential businesses and organizations.</p><p>Broadly speaking, a business or organization is categorized as essential in the following cases:</p><ul><li>Categorized as critical due to their specific sector or importance.</li><li>A large organization (250+ employees and 50+ million euros in annual revenue) active in one of the NIS 2 sectors.</li></ul><p>In all other cases, businesses and organizations are considered <strong>important</strong> if they are midsized (50 to 250 employees, 10 to 50 million euros in annual revenue).</p><p>Essential businesses and organizations must comply with stricter requirements and will face heavier fines if they are non-compliant:</p><ul><li>Fines up to 10 million euro or 2% of the total annual turnover. They will be actively supervised, which may include:</li><li>On-site inspections and off-site monitoring.</li><li>Routine or targeted security audits.</li><li>Safety evaluations.</li><li>Requests for information.</li><li>Demands for access to any data, documents, or other information essential for carrying out supervisory duties.</li><li>Requests for proof that cybersecurity policies are being enforced, such as evidence from security audits performed by a certified auditor and related documentation.</li></ul><p>Important businesses and organizations face fines up to 7 million euro or 1.4% of the total annual turnover. They will be supervised and checked if an incident takes place.</p><h3>NIS 2 Compliance Obligations</h3><p>To be compliant with the NIS 2 Directive, businesses and organizations need to adhere to a set of requirements as laid out in the directive. Here are the key aspects they need to focus on:</p><h3>Cybersecurity Risk Management Measures</h3><p>Implementing appropriate and proportionate technical, operational, and organizational measures to manage risks to the security of network and information systems. This includes addressing threats that not only secures these systems but also their physical environments.</p><p>Cybersecurity measures should include:</p><ul><li>Developing risk analysis and security policies.</li><li>Implementing effective incident handling protocols.</li><li>Ensuring business continuity and robust crisis management.</li><li>Securing the supply chain: ensuring that suppliers and service providers also comply with appropriate security standards, especially in sectors where outsourcing is common.</li><li>Safeguarding the acquisition, development, and maintenance of systems, including vulnerability management.</li><li>Evaluating the effectiveness of cybersecurity measures.</li><li>Enhancing cyber hygiene and providing cybersecurity training.</li><li>Utilizing cryptography and encryption as necessary.</li><li>Managing personnel security, access controls, and asset management.</li><li>Employing multi-factor or continuous authentication methods.</li><li>Establishing a coordinated vulnerability disclosure policy.</li></ul><h3>Incident Reporting</h3><p>The directive mandates reporting any significant incident that could disrupt service provision or cause considerable damage to the competent authorities.</p><p>Businesses and organizations must notify the relevant Computer Security Incident Response Teams (CSIRTs) or competent authorities without undue delay about any significant incidents affecting their services.</p><p>Notifications should include information enabling the determination of cross-border impacts and must be made to the recipients of the services if their provision is likely to be adversely affected.</p><p>The notification process is as follows:</p><ul><li>An initial early warning should be issued within 24 hours of detecting a significant incident.</li><li>A detailed incident notification is required within 72 hours.</li><li>Interim reports may be requested.</li><li>A final report is due no later than one month after the initial detailed notification.</li><li>Ongoing incidents necessitate progress updates until resolution.</li></ul><h3>Management Responsibilities</h3><p>Management bodies of essential and important businesses and organizations must approve and oversee the implementation of cybersecurity risk-management measures. They are also responsible for ensuring compliance and can be held liable for breaches.</p><h3>Cooperation and Information Sharing</h3><p>Businesses and organizations must cooperate with competent authorities, including sharing relevant information during security risk assessments and audits. They need to register with the CSIRTs in the relevant member states and update information if changes are made.</p><p>Information should include:</p><ul><li>the name of the entity.</li><li>the relevant sector, subsector and type of entity.</li><li>the address of the entity’s main establishment and its other legal establishments in the Union or, if not established in the Union, of its representative designated.</li><li>up-to-date contact details, including email addresses and telephone numbers of the entity and, where applicable, its representative designated pursuant to Article 26(3);</li><li>the Member States where the entity provides services</li><li>the entity’s IP ranges.</li></ul><h3>Proving NIS 2 Compliance</h3><p>Businesses and organizations categorized as essential will be actively followed up by authorities, and for important businesses and organizations this means that they will need to prove their compliance in case an incident happens.</p><p>When it comes to certification, the NIS 2 directive leaves room for interpretation regarding the requirements. Article 24 states that “Member States may require essential and important entities to use certified ICT products, services, and processes under European cybersecurity certification schemes to demonstrate compliance with cybersecurity requirements.”</p><p>Article 25 states that “The Commission is empowered to adopt delegated acts to specify which categories of entities are required to use certified ICT products, services, and processes. This is to be done where insufficient levels of cybersecurity have been identified. Before adopting such acts, the Commission must carry out an impact assessment and consultations.”</p><p><strong>It’s up to the member states to specify what these specifications entail.</strong></p><p>In Belgium, for example, essential businesses and organizations must undergo a regular compliance assessment, where they can choose between:</p><ul><li>A CyberFundamentals certification, granted by a conformity assessment body approved by the CSIRT.</li><li>ISO/IEC 27001 certification issued by a CSIRT-approved Conformity Assessment Body.</li><li>An inspection by the CSIRT or sector inspection service.</li></ul><h3>Conclusion</h3><p>The NIS 2 Directive represents a significant evolution in the European Union’s approach to cybersecurity, addressing the shortcomings of its predecessor by broadening its scope, strengthening requirements, and imposing stricter penalties for non-compliance.</p><p>As cyber threats continue to evolve, the directive’s expanded focus on critical sectors, enhanced regulatory oversight, and harmonized sanctions aim to foster a more resilient and secure digital environment across the EU.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=d4f1e83bd5ec" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[The Increasing Importance of Platform Engineering]]></title>
            <link>https://klarrio.medium.com/the-increasing-importance-of-platform-engineering-5ac2c637125f?source=rss-7d00fdb355e3------2</link>
            <guid isPermaLink="false">https://medium.com/p/5ac2c637125f</guid>
            <category><![CDATA[platform-engineering]]></category>
            <category><![CDATA[internaldeveloperplatform]]></category>
            <category><![CDATA[data-platforms]]></category>
            <category><![CDATA[multitenancy]]></category>
            <category><![CDATA[kubernetes]]></category>
            <dc:creator><![CDATA[Klarrio]]></dc:creator>
            <pubDate>Tue, 09 Jul 2024 07:00:08 GMT</pubDate>
            <atom:updated>2024-07-09T07:00:08.614Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*_Xmf8vCrAfrqx2vdAX8XaQ.jpeg" /></figure><p>Over the past decades, we have seen significant technological developments, from the rise of broadband internet and a hyperconnected society, to cloud computing, unparalleled data volumes, and the introduction of generative AI.</p><p>The IT industry has scrambled to keep pace with these challenges, resulting in numerous frameworks and methodologies. While these offer solutions, they also introduce new operational and organizational challenges in managing all the pieces of the puzzle.</p><p>Gaining the upper hand in this digital jungle is one of the many compelling reasons why platform engineering is trending. Gartner predicts that by 2026, 80% of large software engineering organizations will have established platform engineering teams.</p><p>Non-technical stakeholders also benefit from platform engineering. A well-implemented platform leads to faster time-to-market, improved cost-effectiveness, increased efficiency and security, happier employees, and better team collaboration.</p><p>In this article, we’ll explore what platform engineering is, why it’s needed, the different forms it can take, the challenges it presents, and how to implement it correctly to empower businesses and maintain control.</p><h3>What is Platform Engineering?</h3><p>Platform engineering focuses on creating tailor-made, centralized environments with frictionless workflows, empowering IT professionals to focus on their core activities without being distracted by secondary, time-consuming tasks.</p><p>For software developers and DevOps this could mean simplifying the increasing complexities of modern software development by providing reusable tools and automated self-service actions that deal with all the moving parts of cloud computing, various architectures, and container orchestration like Kubernetes.</p><p>Data engineers also benefit from this platform approach, as it allows them to focus on higher-value tasks instead of time-consuming ones like manually provisioning infrastructure, setting up environments, extracting data from various sources, and configuring access management and observability tools.</p><p>Other stakeholders in the data ecosystem will have more autonomy and self-service capabilities in managing data products — securely and compliantly — without endlessly needing to submit tickets to get access, and being reliant on centralized data teams.</p><h3>Why You Need Platform Engineering</h3><h3>An Antidote to the Increasing Complexity of Software Architectures</h3><p>Long gone are the days when software development was a relatively straightforward process. Engineers focused on writing code, compiling programs, and running them on simple, hardware setups.</p><blockquote>However, as technology has evolved, so too has the complexity of the digital environment and the infrastructure supporting modern applications. It hinders software developers’ ability to focus on their core activities.</blockquote><p>Platform engineering intends to unify all the pieces of the technology puzzle:</p><ul><li><strong>Microservices architecture</strong>: The shift from monolithic to microservices architecture has increased complexity by introducing smaller, independently deployable components. Each microservice may use different technology stacks and protocols, requiring more intricate orchestration and management.</li><li><strong>Cloud computing</strong>: The adoption of cloud services adds layers of complexity, including managing multicloud, hybrid cloud in combination with on-premises environments, scaling resources dynamically, and ensuring data consistency across distributed systems.</li><li><strong>Continuous Integration/Continuous Deployment (CI/CD)</strong>: With the adoption of CI/CD to accelerate software delivery, there’s a need to manage multiple pipelines, automate testing, and ensure seamless deployment across different environments.</li><li><strong>Containerization and orchestration</strong>: Technologies like Docker and Kubernetes facilitate scaling, management of applications, developing an application once and deploying it in multiple environments. These technologies introduce complexity in container orchestration, service discovery, and network configuration.</li><li><strong>Complex scalability demands</strong>: Modern applications need to scale seamlessly to handle varying loads, requiring complex strategies for load balancing, horizontal and vertical scaling, and resource optimization.</li><li><strong>Meeting regulatory requirements</strong>: Compliance with regulatory requirements (such as GDPR, NIS2, etc.) in different regions or industries requires complex security and data protection measures, complicating the architecture and operational processes.</li><li><strong>Diverse technology stacks</strong>: The abundance of programming languages, frameworks, and tools, while offering flexibility and the right tool for the job, also introduces complexity in terms of integration, compatibility, and maintenance.</li><li><strong>Data management and analytics</strong>: The exponential growth in data volume, velocity, and variety necessitates complex data pipelines, storage solutions, and real-time processing capabilities to leverage this information avalanche effectively.</li><li><strong>Security challenges</strong>: As software systems become more open and interconnected, they are also more vulnerable to security threats, requiring sophisticated, layered security strategies and constant vigilance.</li></ul><h3>Driving Business Value and Keeping a Competitive Edge</h3><p>When done right, platforms are powerhouses that bring many advantages to the table:</p><ul><li><strong>Faster Time-to-Market</strong><br>Consider Internal Developer Platforms (IDPs). They automate and streamline development, testing, and deployment processes, reducing the time it takes to release software. This speed means businesses can quickly respond to market changes and customer needs, keeping them ahead of the game.</li><li><strong>Cost Efficiency<br></strong>Platforms help cut costs in a big way. By automating repetitive tasks and providing reusable components, they reduce the need for manual work, which means lower labor costs and fewer mistakes. Plus, multitenancy implementations with shared resources and services mean companies can make the most of their infrastructure, saving even more money.</li><li><strong>Enhanced Collaboration<br></strong>Platforms bring development, operations, and business teams together by offering a unified environment with common tools and centralized information resources, such as best practices, API guides, and coding standards. This unified portal breaks down silos, so everyone has visibility into the process and can work together effectively. Better collaboration means quicker problem-solving and more innovative ideas.</li><li><strong>Scalability and Flexibility<br></strong>A good platform can easily scale to meet growing business demands. Whether it’s handling more user traffic, integrating new services, or expanding into new markets, platforms offer the flexibility and scalability needed to support business growth. This adaptability ensures companies can seize new opportunities without major delays or overhauls.</li><li><strong>Improved Quality and Consistency<br></strong>Platforms enforce standardized practices across teams, ensuring best practices are consistently followed. This leads to higher quality software and more reliable deployments. Automated testing and continuous integration/continuous deployment (CI/CD) pipelines catch issues early in the development cycle, enhancing quality even further.</li><li><strong>Better Security and Compliance<br></strong>Security and compliance are crucial for any business. Platforms come with built-in security features, multitenancy capabilities, compliance and policy enforcement frameworks that help protect sensitive data and meet regulatory requirements. Centralized management of security policies and automated compliance checks reduce the risk of breaches and ensure standards are met consistently.</li><li><strong>Employee Satisfaction<br></strong>Platforms improve employee satisfaction by reducing the burden of repetitive tasks and enabling developers to focus on more creative and meaningful work. With streamlined processes and automated workflows, employees can achieve more in less time, leading to a greater sense of accomplishment and reduced burnout.</li><li><strong>Long-Term Strategic Value<br></strong>Investing in platforms isn’t just about immediate benefits; it’s also about long-term strategic value. Platforms create a strong foundation for future innovation and growth. They allow organizations to build on their existing capabilities, integrate new technologies, and quickly adapt to changing market dynamics. This long-term perspective ensures sustained competitiveness and relevance.</li></ul><h3>Platforms Come in Many Forms and Shapes</h3><p>Platform engineers build unique platforms based on businesses’ or organizations’ needs. It could be an internal developer platform, a data platform, a mix of both or something entirely different.</p><blockquote>While it might seem that platform types are standalone entities, they are often closely intertwined. Think of them as layers or building blocks that can be stacked to create your custom solution.</blockquote><h3>Streamlining Software Development With Internal Developer Platforms (IDPs)</h3><p>Luckily for software developers, many cumbersome, manual steps in the new digital era can be automated, drastically reducing endless configuration file edits and “it works on my machine” syndromes.</p><p>However, smart automation and observability tools, combined with DevOps magic, are not sufficient amidst the increasing complexities of modern software architectures, dozens of frameworks and methodologies.</p><blockquote>That’s where IDPs come to the rescue. Simply put: you write code, push a button, and your application is deployed, complete with dashboards to monitor performance.</blockquote><p>Imagine you’re a developer tasked with building a new feature for your company’s application.</p><p>Without an IDP, you’d need to start with typical preparations like properly setting up the initial infrastructure, software integration and developer pipelines, security services, data storage, logging, and monitoring services.</p><p>Now, consider working in a company that has an IDP. As a developer, you can:</p><ol><li><strong>Start Coding Immediately</strong>: You are free to choose pre-configured “golden paths” that best fit your project. They automatically provide all requirements, such as dependencies, libraries, frameworks, and Git repositories. It’s an instant solution that ensures everything you need is ready to use.</li><li><strong>Ensure Simplified Security</strong>: Rely on pre-configured security protocols and multitenancy configurations that ensure perimeter security and provide tools for maintaining secure coding practices, minimizing the risk of data breaches.</li><li><strong>Access Resources Easily</strong>: Quickly use pre-existing shared services or spin up new instances of databases and other resources with the click of a button, reducing the overhead of managing infrastructure.</li><li><strong>Utilize Integrated Tools</strong>: Benefit from out-of-the-box logging, tracing, and monitoring tools that are already integrated into the platform, providing real-time insights into your application’s performance and health.</li><li><strong>Maintain Consistency and Best Practices</strong>: Follow standardized tools and workflows enforced by the IDP, ensuring consistency in how applications are developed, tested, and deployed, reducing errors and improving maintainability.</li></ol><h3>Data Platforms: The Beating Heart of Your Data Ecosystem</h3><p>Data platforms are foundational components in the data management ecosystem. They provide a unified framework to collect, store, process, and analyze data.</p><blockquote>These platforms are designed to handle large volumes of data from diverse sources, ensuring that the data is discoverable, accessible, reliable, and secure.</blockquote><p>Compared to developer platforms, data platforms prioritize data and focus on secure data exchanges. In line with industry trends, data is increasingly treated as a product rather than a byproduct. This means data is ready for consumption with formal definitions around ownership, schema, and quality, thus elevating its status within the ecosystem.</p><h3>Data Platform Characteristics</h3><p>Key elements of data platforms include:</p><ul><li><strong>Security: </strong>Multitenancy allows multiple users or client organizations (tenants) to share a single instance of a shared platform service, with each tenant’s data and configurations isolated and secure. The platform enforces and validates security policies and compliance ensuring applications meet requirements.</li><li><strong>Data Ingestion</strong>: The process of importing data from various external sources such as databases, APIs, and real-time streams. Effective data ingestion ensures that data is collected continuously and efficiently.</li><li><strong>Data Storage</strong>: Data platforms utilize various scalable storage solutions such as data lakes, data warehouses, and object storage to store vast amounts of structured and unstructured data.</li><li><strong>Data Processing</strong>: This involves offering tools for data transformation, cleansing, and enrichment pipelines. This may involve ETL (Extract, Transform, Load) processes, stream processing, and periodic or event triggered batch processing.</li><li><strong>Data Analytics</strong>: Providing tools and interfaces for analyzing data, ranging from basic reporting and visualization tools to advanced analytics, machine learning, and artificial intelligence.</li><li><strong>Data Governance</strong>: Ensuring data quality, security, and compliance through policies, procedures, and technologies that manage data throughout its lifecycle.</li><li><strong>Data Access Management: </strong>Implementing authentication and authorization mechanisms, ensuring data security, and enabling data sharing in a controlled manner.</li><li><strong>Scalability and Performance</strong>: They are designed to handle growing volumes of data and increasing numbers of users without performance degradation.</li><li><strong>Self-Service Capabilities</strong>: Democratizing data access and giving autonomy in relevant domains to all experts and relevant stakeholders, not just the technically-skilled IT teams.</li></ul><h3>Democratizing Data Management: Leveling the Playing Field With Self-Service Capabilities</h3><p>Many data platforms offer self-service capabilities, embracing the “<a href="https://en.wikipedia.org/wiki/Data_mesh">data mesh</a>” principle. This approach decentralizes data ownership and management, empowering domain-specific teams within an organization, contrasting with traditional, centralized data architectures.</p><p>The data mesh methodology shifts the responsibility for data to the teams that generate and use it. These teams become data product owners and autonomously handle data ingestion, processing, and sharing with other stakeholders.</p><blockquote>Because the domain-specific teams no longer rely on a central IT department, this approach enables faster and more responsive data operations, reducing bottlenecks and enhancing overall efficiency​.</blockquote><p>Robust governance tools are in place to regulate who can view or manipulate data, ensuring enhanced security, data governance, and compliance with both internal policies and external regulations.</p><h3>The Challenges of Platform Engineering</h3><p>While platform engineering brings numerous opportunities, it also introduces several challenges:</p><h4><strong>Integration</strong></h4><p>Platform engineering involves integrating a wide range of technologies, data sources, frameworks, and tools. It can be a headache to integrate legacy systems, take care of data transfer and storage across different environments, Ensure data security and compliance with regulations, API compatibility, middleware integration, …</p><p><strong>Solution</strong>: Ensure robust architectural planning, effective project management, skilled strategic partners, and continuous improvement practices.</p><h4><strong>Open source licensing</strong></h4><p>Open source frameworks are highly recommended for cost-efficiency, transparency, optimized performance, and full control over critical components. Open source licensing should also be carefully navigated. Some licensing models prohibit commercial use, while others require you to share enhancements with the community if used commercially. This could affect your intellectual property.</p><p><strong>Solution</strong>: Make sure to carefully review the license terms and compatibility with other open source licenses and with your project. Some licenses, like the GPL, have strict requirements that might not be compatible with all projects. Use automated tools to scan your codebase for open source components and their licenses.</p><h4><strong>Finding the right balance between flexibility and control</strong></h4><p>The concept of streamlined “golden path” workflows is the preferred way of working, providing a standardized and efficient approach. However, this should not prevent developers from using other tools or processes when necessary, allowing for flexibility and innovation within the established framework.</p><blockquote>Over-engineering the platform to streamline every process may restrict innovative approaches that deviate from established patterns, potentially stifling creativity and adaptation.</blockquote><p><strong>Solution</strong>: Create a flexible governance model that defines the core “golden path” while allowing exceptions for innovation. Encourage a culture of experimentation and provide a feedback loop for continuous improvement. Tools like feature flags and sandbox environments can enable safe experimentation without disrupting the main platform.</p><h4><strong>Cultural Shift</strong></h4><p>Moving to platform engineering often requires a cultural shift within an organization. Teams need to embrace new tools and ways of working, which can encounter resistance.</p><p>In case of self-service platforms, new stakeholders will have more responsibilities and need to gain the necessary knowledge and skills. Therefore, it’s essential to provide training and support along the way.</p><p><strong>Solution</strong>: include training, workshops, and continuous learning opportunities. Foster a culture of collaboration and support. Clear communication about the benefits and support mechanisms in place can help ease the transition and reduce resistance.</p><h3>How To Implement Platforms the Right Way: Empowering Businesses to Stay in Control</h3><p>Platforms come with a significant price tag and will be the foundation of your data-driven operations for many years to come. It’s crucial to get it right from the start.</p><p>A well-designed platform should ensure not only scalability and performance but also facilitate independence from proprietary services. This empowers businesses to navigate complexities while maintaining control over their critical components.</p><p>Businesses that want to control their destinies, should keep the following key elements in mind:</p><p><strong>Implement security by design</strong></p><p>Integrate advanced security measures at every level of your platform architecture. This approach facilitates compliance with stringent data protection regulations, resilience against ever-increasing cyber-attacks, minimized downtime, and guaranteed business continuity. Addressing security issues early in the development process is also more cost-effective than fixing them post-deployment.</p><p><strong>Go for multitenancy</strong></p><p>Multitenancy–where multiple customers (tenants) share the same infrastructure and resources–offers significant cost efficiency, scalability, and simplified maintenance. By sharing infrastructure, companies reduce operational costs and improve resource utilization. It allows for centralized management, streamlined support, and rapid deployment of updates, further enhancing security and compliance.</p><p><strong>Consider open source components</strong></p><p>Open source software offers numerous benefits, including transparency, security, avoiding vendor lock-in, maintaining control, cost-efficiency, and ensuring long-term sustainability and flexibility. Open source is the cornerstone of a cloud agnostic approach, ensuring minimal dependence on underlying cloud infrastructure and full customizability.</p><p><strong>Choose strategic partners who empower you</strong></p><p>A strategic partner should offer an unbiased approach, prioritizing your business objectives over pushing proprietary products. Equally important is empowerment of your business through knowledge transfer, co-development, and ongoing support. Look for partners with a strong commitment to ensuring your autonomy and a proven track record of building custom, scalable solutions.</p><p><strong>Ensure cloud agnosticism</strong></p><p>Cloud agnostic platforms can run seamlessly on any public cloud or private infrastructure, offering flexibility in deployment and cost management. This approach mitigates the risks of vendor lock-in and ensures that your business can leverage the best services available across multiple clouds. It allows businesses to avoid the pitfalls of proprietary cloud services, such as unexpected price hikes or service outages that could disrupt operations.</p><p><strong>Combine with on-premises solutions</strong></p><p>While cloud technology offers numerous advantages, combining it with on-premises solutions can create a robust, hybrid infrastructure. This hybrid approach ensures that critical data and applications remain within the control of the business, enhancing security and compliance. It also allows businesses to leverage existing investments in on-premises infrastructure while taking advantage of the scalability and flexibility of the cloud.</p><p><strong>Prioritize scalability</strong></p><p>Scalability is a key consideration in platform implementation. As businesses grow and data demands increase, the platform must be able to scale efficiently without compromising performance. Open source solutions and cloud native, cloud agnostic architectures are inherently designed to be scalable, capable of handling large volumes of data and high traffic loads.</p><p>A scalable platform ensures that businesses can respond to changing market conditions and customer needs without significant reengineering. It supports the seamless addition of new features and functionalities.</p><h3>About Klarrio</h3><p>At Klarrio, we design cloud native, cloud agnostic software solutions to empower our customers to control their data, limit cloud costs, and optimize performance. We ensure flexibility for scalable platform building across various cloud and on-premises infrastructures, prioritizing privacy, security, and resilience by design.</p><p>We are platform pioneers at heart, with a proven track record in building self-service data platforms, Internal Developer Platforms, log aggregation platforms, and other innovative software solutions in various domains: from Telecom,Transportation &amp; Logistics, Manufacturing, Public Sector, Healthcare to Entertainment.</p><p>Beyond technology, we actively collaborate and share knowledge, both in-house and together with our customers. True impact is achieved together.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=5ac2c637125f" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Free Your Developers: Secure Your Cluster With Multitenancy]]></title>
            <link>https://klarrio.medium.com/free-your-developers-secure-your-cluster-with-multitenancy-d4b41a7c882e?source=rss-7d00fdb355e3------2</link>
            <guid isPermaLink="false">https://medium.com/p/d4b41a7c882e</guid>
            <category><![CDATA[kubernetes]]></category>
            <category><![CDATA[platform-engineering]]></category>
            <category><![CDATA[data-security]]></category>
            <category><![CDATA[multitenancy]]></category>
            <category><![CDATA[cluster]]></category>
            <dc:creator><![CDATA[Klarrio]]></dc:creator>
            <pubDate>Tue, 30 Apr 2024 06:32:29 GMT</pubDate>
            <atom:updated>2024-04-30T06:37:13.019Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="Secure your cluster with multitenancy" src="https://cdn-images-1.medium.com/max/1024/1*GPMj9Zg1gccjJt_XG1bg1g.png" /></figure><p>Multitenancy is a hot platform engineering topic for providers of Kubernetes environments. It’s a way of organizing your services that enables you to host multiple tenants–a company’s departments or application development teams, for example–on the same cluster.</p><p>Multitenancy is convenient for tenants who need to share data with each other, and provides each of them a user experience that resembles their own private cluster. It may seem inherently insecure given the risk of tenants interfering with each other’s data or processes, but with the right controls it can both increase the security of your platform and free your developers.</p><h3>Simplify their life</h3><p>Interactions between application and platform-level security configuration can be complex and difficult to reason about, increasing the likelihood of vulnerabilities. You can limit this complexity with platform-level policies that only permit your tenants to use resources or run processes that meet the specific requirements you define. These types of policies prevent them from interfering with the operation of the cluster, including other tenants’ data or processes. You can also create policies to ensure that tenants only take their fair share of common resources like memory and disk space.</p><h3>Tools for success</h3><p>The Capsule Kubernetes operator introduces the API-level concept of a tenant to Kubernetes. It exposes options you can use to configure tenant isolation and tenant resource quotas, for example. You can augment it with tools such as:</p><ul><li><strong>an admission policy framework</strong> to limit platform features tenants may use and enforce security standards on tenant workloads.</li><li>Examples: Kyverno and Gatekeeper.</li><li><strong>a network policy framework</strong> to isolate tenants at the network (L4) level which makes it possible to prevent them from accessing any services other than their own and those you permit.</li><li>Examples: Cilium and Calico.</li><li><strong>a service mesh</strong> to provide (L7) isolation and the mutual authentication and workload identities you need for inter-tenant authentication.</li><li>Example: Istio</li></ul><h3>Security and freedom can coexist</h3><p>The right architecture and tooling can help you deliver more robust, secure platforms for your developers.</p><p>Policy-based controls can minimize internal threat surfaces, isolate tenant resources, and free your developers from platform-level concerns about security, monitoring, and reliability. The core benefit of a policy-based architecture is the freedom it gives tenants to focus on developing their applications.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=d4b41a7c882e" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Decoupling Policy from Applications with Open Policy Agent]]></title>
            <link>https://klarrio.medium.com/decoupling-policy-from-applications-with-open-policy-agent-c4cd98cf4175?source=rss-7d00fdb355e3------2</link>
            <guid isPermaLink="false">https://medium.com/p/c4cd98cf4175</guid>
            <category><![CDATA[access-control-policy]]></category>
            <category><![CDATA[open-policy-agent]]></category>
            <category><![CDATA[policy-engine]]></category>
            <category><![CDATA[access-control]]></category>
            <category><![CDATA[devoxx]]></category>
            <dc:creator><![CDATA[Klarrio]]></dc:creator>
            <pubDate>Tue, 28 Nov 2023 08:03:02 GMT</pubDate>
            <atom:updated>2023-11-28T08:03:02.131Z</atom:updated>
            <content:encoded><![CDATA[<p>Robust access control and security measures are increasingly challenging as software systems grow in complexity and scale.</p><blockquote>At Klarrio, this led us to explore Open Policy Agent (OPA), a versatile open-source tool that offers powerful capabilities for managing and enforcing security policies across diverse systems.</blockquote><p>In this article, we’ll delve into why and how to integrate OPA into your architecture.</p><p><strong><em>Note</em></strong><em>: This article is based on our colleague </em><strong><em>Lander Visterin</em></strong><em>’s insightful video presentation @Devoxx Belgium 2023, which also features a practical demo. </em><a href="https://www.youtube.com/watch?v=_Trzv60QNPw"><em>Watch the video demonstration</em></a><em>.</em></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*EUDVmL8Sa_BIsdrCYK5Y1Q.jpeg" /></figure><h3>Understanding Access Control: Authorization vs. Authentication</h3><p>When we talk about access control, two important aspects come into play: authorization (authz) and authentication (authn).</p><p>Authorization is about defining and enforcing what actions a verified user can perform on a resource. Authentication, on the other hand, deals with verifying the identity of a user through mechanisms like Single Sign-On (SSO) and Multi-Factor Authentication (MFA).</p><h3>Access Control Models</h3><p>To enforce authorization, multiple access control models can be used:</p><ul><li><strong>Access Control Lists (ACLs)</strong>: Managing the list of users that have access to a resource, for each resource.</li><li><strong>Role-Based Access Control (RBAC)</strong>: This model simplifies management by grouping users into roles with certain permissions.</li><li><strong>Attribute-Based Access Control (ABAC)</strong>: A more dynamic approach that considers multiple attributes of both the user and the resource to make access decisions. ABAC can be seen as a superset of ACLs and RBAC, enabling more nuanced access control policies. It’s easy to maintain, but the downside: it’s more complex to implement.</li></ul><h3>Decoupling Policy from Application Code</h3><p>Managing systems with multiple applications often presents a challenge in ensuring consistent access control.</p><blockquote>Initially, it might seem logical to implement a different policy language or framework for each application. But your future self might disagree once your system’s growth spurt kicks in.</blockquote><p>Instead of reinventing the wheel ad infinitum, you could adopt a shared authorization system strategy. This allows you to focus on building and improving your policies semi-independently from your applications, which is particularly beneficial when your team scales up.</p><p>Additionally, it offers the flexibility to build and maintain a simple interface that can be applied across multiple applications, simplifying policy management.</p><h3>Building Blocks</h3><p>The following components are involved:</p><ul><li><strong>Policy Decision Point (PDP):</strong> Contains the logic for making access decisions based on defined policies.</li><li><strong>Policy Administration Point (PAP)</strong>: The management layer where policies are defined and distributed to the PDPs.</li><li><strong>Policy Information Point (PIP)</strong>: An optional component that provides additional information the PDP might require to make informed decisions.</li><li><strong>Audit Log</strong>: Keeps a record of all decisions made by the system for compliance and analysis.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*4tAezUu8Ni-y3B5N" /></figure><h3>Introduction to Open Policy Agent (OPA)</h3><p>Open Policy Agent (OPA) is a general-purpose policy engine that can serve as the PDP in a decoupled architecture. It’s a <a href="https://www.cncf.io/project-metrics/">CNCF graduated open-source project</a>, signifying its maturity and large community.</p><h3>Integrating OPA in Your Application</h3><p>There are several ways to integrate OPA with your system:</p><ul><li><strong>Standalone OPA server</strong>, running it as a standalone binary alongside your application. It runs on the same host as the application for improved latency and reliability. On Kubernetes, you might implement this as a sidecar.</li><li><strong>Implementing the OPA SDK</strong>, if you’re working with Golang. It imports OPA entirely in your application. But it doesn’t serve the full OPA API, only the part that allows you to query the policy, and obviously, you can only use Go.</li><li><strong>Using the Rego Go library or compiling the policies into WebAssembly</strong>.<strong> </strong>The big downside is that you’ll need to manually implement functionalities like loading the policy from a remote endpoint, in exchange for more low-level control.</li></ul><h3>Policy Distribution: The Role of Policy Bundles</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/163/1*W1sftUiQJZNo3q1G3ETW5w.png" /></figure><p>If OPA has been set up and integrated, you still need to get the policy into it. The central point where your policy comes from is called the Policy Administration Point (PAP).</p><p>This is where the policy bundles come into the picture. These are archives containing Rego code and extra data required by your policy logic. You can distribute these bundles, using an OCI registry, an object store like Amazon S3, or by implementing the OPA bundle API (HTTP get endpoint).</p><blockquote>Monitoring the rollout and integrity of these bundles is crucial for the security and consistency of your policy system. You can implement the OPA status API, which would be called whenever Open Policy Agent has an update, or track it through Prometheus metrics.</blockquote><h3>Verifying the Integrity of the Policy Bundle</h3><p>As your policy bundle is distributed across various systems in different locations, it’s crucial to verify its authenticity and integrity. This can be achieved through cryptographic signatures.</p><p>To sign a policy bundle, you can use the `opa sign` command. It generates a JWT, which can be packaged into the bundle. The JWT is then verified out of the box by a key that you configure in your OPA instance.</p><p>Key management is limited here, as you can only use a single static keypair.</p><blockquote>To improve this, you could for example implement a custom interface that OPA provides for extension. This would enable integration with your cloud key management solution, offering a more secure approach than managing the keys yourself.</blockquote><p>If you’re using Open Container Initiative (OCI) artifacts to distribute your policy bundles, you might be tempted to apply the same tools you utilize for signing your container images, such as Sigstore or Cosign.</p><p>Unfortunately, verifying these signatures is not supported out of the box by OPA. It would require additional configuration and setup. The built-in `opa sign` command is typically sufficient for the needs of most users.</p><h3>Audit Logging and Policy Testing</h3><p>Using the standalone server or SDK, you can configure event logging to the console or a designated HTTP endpoint.</p><p>With the complete input, output, and policy version stored in the log, you can answer questions like “why was this decision made”, which is particularly useful if you include some kind of request ID in the user-facing error message to find the exact event with. This way, finding bugs in your authorization rules becomes trivial, since you can also locally replay it.</p><blockquote>Change impact analysis is also a great superpower your audit logs can give you. Given historical data, and a proposed new policy, you can write some code to calculate what kinds of past events would turn out differently if it were deployed now. This way, you can catch mistakes before they ship, or verify the effectiveness of your rule change.</blockquote><p>Another way of verifying your changes is, as we typically do in software development, by writing unit tests. Policies are a great target for tests since inputs and outputs are very well-contained. OPA already provides a way of building and running tests, making it very easy to get started.</p><h3>Policy Authoring (PAP): Best Practices and Considerations</h3><p>When writing your policies, there are some best practices you should take into account:</p><ul><li><strong>Avoid negative rules</strong>: Start your policies with a deny by default rule and incrementally allow access rather than denying it, reducing complexity and potential errors.</li><li><strong>Use version control for policies</strong>: Treat policy code like software code, using Git for change history and collaborative management.</li><li><strong>Consider building policy authoring tools</strong>: For ease of use and increased transparency, especially for those who may not be comfortable writing Rego code. You can choose to write your core logic in Rego and express policies as structured JSON data, but it’s also possible to let user-friendly tools output Rego directly.</li></ul><h3>Your OPA Implementation Action Plan</h3><p>Are you convinced that OPA might be right up your alley? Then consider these practical steps to get started:</p><ol><li>Thoroughly assess your applications for policy control needs, and gather the global access control requirements.</li><li>Define all the subject and resource attributes.</li><li>Establish a schema for policy requests, ensuring consistency across your system. Evaluate the need for a PIP; if it’s not essential, you can simplify your architecture. Otherwise, plan its implementation based on your data requirements.</li><li>Determine your PDPs for enforcing decisions within the application flow. Decide if you’ll deploy an OPA agent with each application instance or opt for a more granular approach depending on the use case.</li><li>Consider who will read and write your policy. Determine whether you will need to create user interfaces for policy authoring or if the policies will be managed directly by developers. In the latter case, the policies might simply be code artifacts that are maintained in a version control system like Git.</li></ol><p><strong>Glossary</strong></p><ul><li><strong>ABAC: </strong>Attribute-Based Access Control</li><li><strong>ACL: </strong>Access Control Lists</li><li><strong>OPA: </strong>Open Policy Agent</li><li><strong>PAP: </strong>Policy Administration Point</li><li><strong>PDP: </strong>Policy Decision Point</li><li><strong>PIP: </strong>Policy Information Point</li><li><strong>RBAC: </strong>Role-Based Access Control</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/190/1*fya7BdUaXa1TsiYAuzJlTA.png" /></figure><p><strong>Author: Lander Visterin<br></strong>Software Architect @ Klarrio</p><p>Lander is a Software Architect at Klarrio with a passion for cloud-native infrastructure. He has worked on solving problems to make cloud-agnostic, multi-tenant platforms scalable and maintainable.</p><p>For more information, you can visit our website, <a href="http://www.klarrio.com/">www.klarrio.com</a>, or follow us on <a href="https://www.linkedin.com/company/klarrio/">LinkedIn</a> and <a href="https://twitter.com/klarr_io">Twitter</a>.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=c4cd98cf4175" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[SaaS vs. open-source — Seven essential criteria to consider when choosing for your business]]></title>
            <link>https://klarrio.medium.com/saas-vs-open-source-seven-essential-criteria-to-consider-when-choosing-for-your-business-dc1f1887ed55?source=rss-7d00fdb355e3------2</link>
            <guid isPermaLink="false">https://medium.com/p/dc1f1887ed55</guid>
            <category><![CDATA[open-source]]></category>
            <category><![CDATA[digital-transformation]]></category>
            <category><![CDATA[saas]]></category>
            <category><![CDATA[cloud]]></category>
            <category><![CDATA[cloud-services]]></category>
            <dc:creator><![CDATA[Klarrio]]></dc:creator>
            <pubDate>Tue, 29 Aug 2023 06:02:27 GMT</pubDate>
            <atom:updated>2023-08-29T06:02:27.062Z</atom:updated>
            <content:encoded><![CDATA[<h3>SaaS vs. open-source — Seven essential criteria to consider when choosing for your business</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*0PdiOEuauHEAiExW4r1lLw.png" /></figure><p>Companies today are migrating to cloud and Software-as-a-Service (SaaS) services in the belief that these are more cost-effective compared to running their own software. While this can be true when leveraging on-demand capacity only when required (elastic horizontal scalability) or at a small scale, in practice, we see companies migrate to the cloud without thoroughly investigating the longer-term consequences.</p><p>In this article, we cover seven criteria you should consider before deciding on buying an off-the-shelf SaaS product or leveraging open-source software to build your own customized solution.</p><h3>1. Costs</h3><p>Many companies opt for using SaaS cloud solutions because, at the entry point, the initial cost of getting started is very low or even free. For many companies that begin with small-scale rollouts or proofs-of-concept, this cloud model may initially be much cheaper than setting up hardware servers themselves.</p><p>But there is a catch. As the consumption of these companies grows (for example, the volumes of data or amount of applications), the costs will also increase accordingly.</p><p>This is something that organizations usually need to be made aware of since the general perception is that public cloud services are the most cost-effective option. However, at a large scale, creating solutions based on open-source software can be ten times more cost-efficient than opting for a SaaS service.</p><p>To help our customers, we typically assist them in preparing a forecast and estimating the volumes of data they will be processing, storing, and using in the future. Based on these estimates, we can make an objective estimation to enable customers to make the best strategic decision.</p><h3>2. Vendor lock-in</h3><p>Vendor lock-in means that once you move your organization’s data to cloud SaaS services, you may be unable to migrate to other solutions without considerable implementation effort.</p><p>Many companies end up in such a situation and become entirely dependent on one service provider that can increase their fees on a whim. Costs are also likely to keep rising as the volume of data and the data consumption (e.g., amount of queries) keep growing, as discussed in the previous criterion.</p><p>Vendor lock-in can also jeopardize business continuity: if your business-critical processes are entirely dependent on one provider and the service is down, your business operations will be interrupted and forced to a halt.</p><p>Open-source software, however, can help you mitigate these vendor lock-in risks. When leveraging open-source software, you are in control of the business-critical parts of your solution, with minimal dependencies on the underlying cloud infrastructure. In that case, migrating from one cloud infrastructure vendor to another becomes much easier.</p><p>Alternatively, you can opt for a real multi-vendor set-up, where your solution runs on multiple public cloud providers simultaneously, possibly in combination with on-premise hardware. Many companies operate using such a (hybrid) multi-cloud strategy to avoid entirely relying on one vendor’s whims while keeping all flexibility and control in deciding where to deploy services.</p><h3>3. Data sovereignty</h3><p>Every day, numerous companies collect vast amounts of personal information that people are not always aware of or have consented to. Furthermore, it is not always clear where exactly the data is stored, for how long, and who has access to it.</p><p>Data sovereignty means ensuring that data is stored in locations under the control of the data owners and compliant with laws and regulations with full transparency on who has access to data that may be privacy sensitive or contain company IP (Intellectual Property). It is not commonly known that foreign states have surveillance acts that grant access to data regardless of where data is physically stored and that these acts overrule any local regulation.</p><p>Having control over where data resides also impacts business continuity: are you able to retrieve or backup all your data and move data to other locations? Not all SaaS solutions provide ways to export, backup, delete, or migrate data, so customers have very limited control over their data.</p><p>Using open-source software to build custom solutions enables companies to run these solutions and store data anywhere in the world while remaining in full control.</p><h3>4. Transparency</h3><p>Transparency can be an essential criterion for some organizations that need to have full visibility of their complete supply chain to know where the software is coming from and its exact functionality. This is important because these companies have to ensure that there are no back doors or security vulnerabilities and that they know all the risks involved with using the software.</p><p>The issue with a SaaS service is that you don’t get any transparency. In fact, you don’t see the underlying software at all. You can read and accept the terms and conditions, but apart from that, it’s a matter of blind trust without any real guarantee that your data will be protected or to which risks it is exposed.</p><p>If software transparency is an important factor for your business, we at Klarrio would recommend creating your customized solution with open-source software. These technologies are supported by large organizations, and they have good documentation and huge, vibrant communities working on bug fixes from all over the world. With open-source software and a Software Bill of Materials (SBOM), you have full transparency in the software, its dependencies, functionality, and any security risks involved.</p><h3>5. Scalability</h3><p>In most cases, it is crucial that the technology you are using can accommodate and scale to larger volumes of data as your business grows.</p><p>One of the challenges with SaaS solutions can be that there is no guarantee that the underlying technology will provide sufficient elasticity and scale; you can only hope that it will cope with your increasing volumes of data and future data consumption needs.</p><p>When starting small with a proof of concept or pilot project, any solution will carry the load, but there is a hidden risk that at a certain point in time, you may encounter limits and will need to redesign and reimplement the solution.</p><p>If you estimate your organization and its data consumption to grow to a significantly large scale in the years to come, it may be wise to consider leveraging some open-source cloud-native technologies instead of SaaS services.</p><p>These technologies (for example, Apache Kafka, Apache Flink, Apache Spark) are designed and proven to scale; in fact, they were created by data-driven new economy companies because old legacy solutions were unable to meet their scalability requirements (volumes of data, elasticity of workloads, variety of data formats). When we work with this open-source software, we know from experience that these technologies will scale to your future needs.</p><p>By leveraging open-source software, you can remain in full control, and you can dimension and optimize the performance as required. The flexibility to migrate to any public cloud provider or even on-premise infrastructure avoids a complete dependency on a single SaaS provider and its ability to scale.</p><h3>6. Custom requirements</h3><p>Throughout the decades of working experience in our field, we’ve seen that customers have very different and specific requirements when it comes to data. These requirements may be in order to differentiate from competitors and keep an innovative edge or because of regulatory compliance for a very specific industry or environment. Most often, the generic off-the-shelf SaaS products cannot meet all of their needs.</p><p>Remember, these SaaS services have been designed to cover the most common requirements relevant to the highest number of companies and are not tailored to specific needs. In fact, they are trying to serve as many customers as possible with the most generic offering, hence providing the largest common denominator functionality.</p><p>By opting for a SaaS, companies become dependent on an external service that, in the end, may or may not implement the features that they require. They become completely dependent on the service provider roadmap with limited control or visibility on when their requirements will be fulfilled.</p><p>In most cases, there are alternative options for larger enterprises with specific security, functional, or integration requirements that want or need to take control over their own destiny.</p><p>While using custom solutions based on open-source software does require an upfront investment, in the long term, it provides the advantage of being in control of their roadmap and their own solution. This may be a business requirement to be able to offer innovative and differentiating solutions to customers.</p><h3>7. Service Level Agreements (SLAs)</h3><p>Most public cloud and SaaS providers don’t provide real guaranteed SLAs or Service Level Agreements. In most cases, they only offer best-effort objectives to meet service uptime for a limited number of services. If these SLA objectives are not met, service credits are provided for your next (e.g., monthly) billing cycle as compensation.</p><p>However, many companies need stronger and better ways to ensure that the potentially business-critical services they depend on meet the service availability targets. They need stronger guarantees and not just service credits as compensation for critical services not being available.</p><p>If this is a concern for you and your organization, we recommend opting for a tailored solution designed for service availability instead. With these solutions, companies have stronger service guarantees with full transparency and control.</p><p>While there is a clear industry trend to migrate to public cloud and SaaS services, the longer-term consequences and their strategic impact are not always considered. In this article, we covered seven criteria to consider when deciding to select a SaaS solution or go with a custom open-source software-based solution. There are long-term effects that may be difficult to revert, so organizations should think twice before establishing a cloud and data strategy.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=dc1f1887ed55" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>