Skip to content
ImagineWorld

Connect Judiciously but Thoughtlessly

node_idnode-book_edge-computing-patterns-for-solution-architects_chapter-09-connect-judiciously-but-thoughtlessly
node_typechapter-node
schema_profileworld.chapter_node.v1
statusactive
entropyhigh
manifoldworld
domainimagineworld.net
authorityinforms
layercorpus
chapter_num9
chapter_titleConnect Judiciously but Thoughtlessly
governed_byCORPUS
constitutional_citationCONSTITUTION
local graph

Chapter 9 — Connect Judiciously but Thoughtlessly

Section titled “Chapter 9 — Connect Judiciously but Thoughtlessly”

There are three common and potentially overlapping scenarios when connecting applications and services to each other and to fixed infrastructure services: connecting within a secure trusted network behind a DMZ (Demilitarized Zone, a perimeter network), connecting over an untrusted network, and connecting over a transitory or unstable network, whether trusted or not. Each organization involved in providing or enabling that access will have its own processes for provisioning and managing that connectivity. However, all of them serve a purpose orthogonal to the needs of an application architecture.

This chapter discusses a point of view for connectivity that begins and ends with the needs of the application and those that maintain it to optimize the speed and agility of developers and SRE (Site Reliability Engineering, IT Operations using software engineering practices) professionals.

In this chapter, we will cover the following main topics:

  • Declarative versus imperative configuration
  • Zero Trust or as close as you can get
  • Overlay, underlay, and shared responsibilities

By the end of this chapter, you will understand the benefits of application-directed networking and the potential value it can bring to an enterprise by bridging operational silos and abstracting proprietary cloud vendor-offering interfaces and network underlays.

If you would like to learn more about the topics we will discuss, the following resources are recommended:

Declarative versus imperative configuration

Section titled “Declarative versus imperative configuration”

In this section, you will learn about approaches to, and tools for, configuring your edge-connected networks that will increase deployment velocity while removing barriers and bottlenecks. We will give an example from the emerging field of application-centric, or application-directed, networking. By the end, you will be able to explain the benefits of this paradigm and consider when to use it for your distributed edge application architectures.

Cloud Foundry and other platforms introduced, and Kubernetes popularized, the idea of marrying declarative configurations describing the desired outcome state to the concept of eventual consistency, thus bringing a system gradually into alignment from the current state toward the eventual goals. The declarative paradigm is a way of stating (with configuration files or a higher-order language) the outcome that you would like to achieve without needing to specify how to do so. This gives the implementation of the solution the flexibility to determine whether the target system or environment already matches that stated outcome, or whether changes need to be made to bring it into correspondence with that end goal.

The imperative approach, by contrast, specifies specific operations to be performed in the specified order without an understanding of the current system state or the administrator’s eventual goals. This produces brittle solutions that can easily fail when they hardcode assumptions about an operating environment and its participants. These imperative configurations can also lack validation checks and enforcement of full life cycle coverage unless those are also specifically anticipated and covered. This leads to boilerplate code/configuration inflation and a push-and-forget mentality that assumes the task is complete once the tool has run without throwing errors. Every subsequent modification to that configuration or code requires a human to modify it, test the updates, and then push the resulting assets into production.

In edge computing, when you are dealing with so many different architectures, operating systems, and hardware devices, using an imperative approach to configuration introduces risk by specifying precise, static steps to take that may very well be environment- and microarchitecture-specific. This is why edge-native best practices work best with tools and solutions that use a declarative approach to configuration and allow the tool to dynamically determine the best way to achieve the desired outcome. It abstracts away the complexity and differences from one application host and environment to another. See Table 9.1 for the authors’ high-level summary directly comparing the approaches.

Declarative ProgrammingImperative Programming
Describes the desired result with no direction on how to achieve itDescribes how to accomplish the desired result
Specifies what is to be doneSpecifies how it is to be done
Variables are usually immutableVariables could be mutable
Code optimized by the system based on constraints created by the programmerCode optimization is the responsibility of the programmer
Details are largely hidden or minimized from the developer’s viewDevelopers have a lot of control, which is important in low-level programming

Table 9.1 – Declarative programming contrasted with the imperative approach

With these two approaches in mind, let’s discuss the barriers and bottlenecks faced by modern enterprises when it comes to placing and connecting applications to services, other applications, and infrastructure.

What slows down application deployment on the edge?

Section titled “What slows down application deployment on the edge?”

In an enterprise, CloudOps or NetOps (the terms, and team responsibilities, are sometimes interchangeable in this context) is responsible for providing secure, performant connectivity for applications wherever they are located to the resources they are connecting to. DevOps is responsible for the continuous integration and continuous deployment (CI/CD) pipelines, which place the workloads and related assets at their destination and connect them to their resources and dependencies. It is incumbent on DevOps to communicate with CloudOps about the workload connectivity requirements, and then wait for CloudOps to provision the requested connectivity with the appropriate access control restrictions in place.

This back-and-forth can take weeks to complete and will need to be performed for all environments: development, testing, and production. Additionally, the process will need to be repeated for any modifications to existing deployed workloads, and for workload removal.

If a system or tool is misconfigured or otherwise does not function properly in production, it requires collaboration between the CloudOps and DevOps teams to analyze the situation, perform a root cause analysis (RCA), and then request the appropriate changes to fix the issue(s). However, it is quite possible that existing observability and monitoring tools do not provide enough information to determine the root cause without back-and-forth experimentation and testing. This leads to a very long time being spent with all teams addressing discovered problems.

One other issue is that this slow-motion communication and configuration change process prevents the ability of either team to allow the solution to adapt itself rapidly and dynamically to changing environmental factors, whether cost- or performance-based. In other words, it prevents dynamic freedom of movement.

In summary, two or more different teams are responsible for different types of tasks:

  • Deploying applications efficiently without error
  • (Dynamically) connecting applications securely with good performance and within budget

The tools at their disposal are only designed and optimized for those specific tasks and views and do not translate well to other domains and those domains’ terminology, leading to potential communication issues when troubleshooting. And the teams are not incentivized to help other teams meet their KPIs, nor to provide methods and processes to make the other team’s tasks quicker and easier to accomplish. See Figure 9*.1* for a comparison of the two approaches and how the latter application-centric approach allows responsibilities to be shifted left.

Figure 9.1 – Application life cycle management responsibilities compared

If a type of solution could provide DevOps with a self-service function when it comes to network connectivity, as shown in the lower diagram of Figure 9*.1*, while still allowing CloudOps to have granular control over the when/where/what policies and rules of that connectivity, that would go a long way toward improving the status quo. Additionally, it would need to provide enhanced tools and dashboards to expose the state of the workloads and networks and allow “what if” scenarios to be proposed and tested. It would need to allow CloudOps to delegate some execution authority to the DevOps team to be able to make isolated changes to network overlays (and sometimes underlays) specific to the workloads being remediated without potentially disrupting any other activities on the network underlays. Lastly, it should provide the capability to implement dynamic automation so the configuration, and resulting workload deployments, could react to changing conditions by moving and scaling seamlessly.

Let’s break the problem down into specific approaches that will help you better solve the aforementioned issues and proposed solution requirements.

Solutioning edge-connected networks and applications

Section titled “Solutioning edge-connected networks and applications”

Eight best practice approaches are listed here that address those issues for workloads deployed to the edge in a hybrid, multi-cloud world, ideally using declarative configuration:

  • Any solution you choose should be abstracted from any physical hardware or vendor-specific APIs. By using a tool, interface, or API that is vendor- and solution-agnostic, you avoid the trap of specifying your desired outcome(s) as a series of “do this and then that” imperative steps that must be followed in an inflexible sequence. This frees you to instead list the outcomes to be achieved, and in order if required. It also allows you to use vendor-neutral language or terms to describe those outcomes so that you do not accidentally use vendor-specific meanings, overloaded words, or vague terminology. It also gives you flexibility and freedom of movement by ensuring that you are not locked into a specific vendor, platform, or paradigm.
  • Your solutions should rely on auto-discovery of network underlays and related infrastructure, namespaces, policies, ACLs, applications, services, and platforms. Few individuals in a company know how to connect to multiple cloud vendor platforms, query the information, and then consolidate all of that in an easy-to-understand format. By using a solution that can provide that capability, you increase your CloudOps team’s capacity to respond to requests and allow the team members to focus on higher-value tasks. Furthermore, there’s the issue of providing access (and maintaining that access) to individuals who need the information. Instead, organizations are bottlenecked by requesting the information from those who have it, assuming they receive the information they need in the first response. Instead, by having a single solution that is provided with read-only access to all cloud resources, you can then provide access to that solution to any person in the organization who needs the results. A self-service platform could provide many, if not all, of these capabilities. However, adding the auto-discovery of resources to this mix reduces initial setup and ongoing maintenance times from days to hours or even minutes.
  • Your solutions should be able to dynamically reconfigure network infrastructure within the bounds of CloudOps-controlled and -specified guardrails. If a DevOps team member needs a reasonable change made to enable their workload to function, and it does not interfere with existing and planned network usage, and the changes are capable of being automated, then that type of change is safe to perform. If that work can further be delegated to a tool that will validate the configuration parameters and implement the change without error, then it is safer to have the tool perform the update than it would be for a human.
  • Any solution you choose should be able to dynamically provision and modify an application-connected network overlay. This is another task that would typically be performed by a CloudOps team. However, it also requires detailed, error-free communication and advanced planning between teams to work out what should happen, to schedule times when all parties are available to perform the work without impacting the production environment or causing unreasonable downtime, and then testing time afterward to ensure it was correctly performed and has the desired outcome. If your solution can automate all of those steps safely and without error, then it speeds up rollouts while also reducing the potential for errors and the expense of all of the workers it would normally require. A solution that can do this more than pays for itself.
  • Your solutions should be application-aware and application-centric. This capability ensures that applications, services, infrastructure, and related resources exist and are where they are supposed to be. It also determines how they are configured (including access controls), what the software versions are, and what resources they are accessing (both physical and virtual), and then surfaces that information so that it can be consumed by other tools and solutions. Without this capability, humans would have to perform all those actions flawlessly every single time.
  • Your preferred solutions should be able to operate autonomously. There are several reasons for this requirement. With the appropriate configuration, a tool is more than capable of achieving the outcome, so why have a person manually follow the steps? More importantly, the steps will need to be performed on remote systems, and by ensuring that only your tool has access to the target systems, you reduce the potential attack surface and do not need to update which persons need access to which systems as your organization experiences normal employee turnover. And with no human in the loop, you can ensure that the tasks can be performed at any time.
  • Your solutions should be integrated with real-time observability and monitoring solutions. When you use declarative configuration in conjunction with automated and autonomous solutions, you ensure that tasks are performed consistently and correctly every time. But if you are also able to add information about the operating environment, application and network performance, and all potential resources, you level up your capabilities. This means that your deployments can respond to changing conditions and situations to match the desired operating targets more closely. It will also give you the ability to consider and test “what if” scenarios to iteratively improve and optimize application performance.
  • Any solutions you choose should enable zero-touch, hands-free operation. This is the last, critical step in removing human-in-the-loop (HITL) interactions to prevent errors and reduce operating expenses. This does not mean that humans cannot or will not be able to monitor the results and adjust as needed. In fact, the law of unintended consequences ensures that a human should be monitoring for undesirable situations that would not normally be foreseeable. But the point of this is removing persons from the rote, repetitive tasks and allowing them to instead perform high-value work that is not well-suited for automation.

The aforementioned best practice approaches can be implemented piecemeal by connecting and integrating component solutions (for example, Skupper, https://skupper.io/index.html or OpenZiti, https://openziti.io/), in a cohesive solution or platform (for example, IBM Hybrid Cloud Mesh, https://www.ibm.com/products/hybrid-cloud-mesh, or Nephio, https://github.com/nephio-project), or as part of a platform engineering solution (for example, Azure Radius platform engineering, https://github.com/radius-project/radius).

With the preceding best practices in mind, let’s discuss compatible approaches to security in edge-native application development, deployment, and operations.

In this section, we will discuss common and emerging practices to secure the application’s use of the network, and what really matters. We will review major aspects of a Zero Trust architecture in the context of edge computing. By the end, you will be able to describe the approaches, what potential benefits they bring, and when they might be useful to your edge architectures.

Let’s begin with the basics and discuss handling secrets. It can be surprising how often this discipline is overlooked or ignored, yet proper implementation is critical to prevent unauthorized access.

Software development teams should not only be trained in how to securely connect applications to remote services but they should also be provided with edge-native solutions to enable them to properly manage the credentials, API keys, certificates, and other secrets. While some tools such as GitHub provide built-in secrets management capabilities, solutions that span the architecture should have a dedicated secrets management solution, such as Hashicorp Vault, EnvKey, or OpenBao.

While it is important to store secrets in a central location, it is also critical that administrators are able to do the following:

  • Distribute secrets only to the applications that need them
  • Send secrets only when they are needed
  • Configure the secrets to be readable only by the intended applications
  • Deploy, update/renew, and rotate certificates on demand

Do not embed secrets, credentials, or keys inside applications, containers, or even environment variables. Passing secrets as arguments on the command line is also not secure. Use a secrets management solution that stores the information securely and separately and only binds the secrets to the application at runtime.

Now that this topic has been addressed, let’s step back and ensure familiarity with terms and principles for security in edge architectures, beginning with Zero Trust.

Zero Trust architectures in edge computing

Section titled “Zero Trust architectures in edge computing”

The Zero Trust Architecture (ZTA) for remote, cloud-based assets published by NIST in SP 800-207 is shown in Figure 9*.2*. In the middle are the three core components:

  • Policy Engine
  • Policy Administrator
  • Policy Enforcement Point

On the outside are the data sources providing input and policy rules to the core components.

Figure 9.2 – ZTA from NIST

(Image Source: NIST SP 800-207:https://nvlpubs.nist.gov/nistpubs/SpecialPublications/NIST.SP.800-207.pdf.)

ZTA uses zero-trust principles when it comes to enterprise infrastructure and workflows, meaning no implicit trust is granted to any assets, devices, or user accounts, no matter where they are located or who owns them.

A common framework for implementing these zero trust principles in hybrid cloud and edge computing is the secure access service edge framework. Let’s delve into that next.

There are unique security challenges with edge and distributed computing applications. The secure access service edge (SASE) framework addresses those challenges by combining Zero Trust security with wide-area networking. Hyperscalers offer SASE as a service applicable directly to edge devices, thus allowing devices and systems to securely connect to applications and services anywhere.

Instead of the traditional security perimeter around a data center, SASE offers policy-based security services at the edge. This is made possible by using a software-defined wide area network (SD-WAN) capability in the overlay network. Using SD-WAN lets enterprises scale their security posture. Figure 9*.3* shows the convergence of network and security services in a cloud-based SASE architecture:

Figure 9.3 – The SASE architecture

The following are the descriptions of the technologies mentioned in Figure 9*.3*:

Figure 9.4 – Glossary of terms

The policy-based approach that SASE provides is yet another example of the use of the declarative approach to application architecture configuration. Please note that it is largely focused on the network overlay. This is a good time to look at the network overlay and discuss how edge computing and application-centered networking should focus on this abstraction. Let’s discuss how we should approach the overlay and underlay differently and the reasons for those differences.

Overlay, underlay, and shared responsibilities

Section titled “Overlay, underlay, and shared responsibilities”

Should edge computing architectures care about the underlying physical infrastructure, or should architectures just assume that the underlay exists, has standard capabilities, meets industry norms regarding service-level agreements (SLAs), and is reasonably well-maintained, and then abstract away any details and differences?

Enterprises can continue to use network segmentation, which is an architectural approach to isolate the internal network from the rest of the internet. In so doing, it not only improves security and access control but also helps with performance by creating access policies that are enforced via firewalls. With newer technologies now, there are other options.

In this section, we cover different approaches to edge-friendly network overlay implementations. Along the way, we discuss how the overlay can assist with network-level application isolation and why that is important. By the end, solution architects should be thinking about approaches to connect applications and services to each other and to cloud infrastructure.

In the Industrial edge scenario section in Chapter 5, we discussed the network underlay as a choice between public 5G and private 5G. In the Retail edge scenario section, we further discussed using network slicing for specific locations and use cases. Both of those are good examples of possible network underlay approaches. In commercial and residential deployments, various combinations of Ethernet and Wi-Fi are typically used for local area networks (LANs) in conjunction with repeaters as needed to extend coverage and prevent dead spots. In agriculture and other outdoor deployments, they may use a combination of LoRaWAN, Wi-Fi, and Bluetooth, or all three in a shared mesh.

However, these approaches potentially expose machines, hosts, and applications to each other and could allow traffic from one to interfere with traffic from others, in addition to traffic from other connected networks and the internet. To isolate one network or subnet from another, and to limit what traffic can pass between them, firewalls are typically used. However, this introduces configuration and maintenance overhead and can potentially block communications, which prevents distributed applications from functioning unless exceptions are introduced in firewall rules (which provides another potential attack vector). But what if machines did not open inbound ports for requests, and what if applications were not directly reachable by external sources?

Chapter 4 briefly described both the network underlay and the network overlay (which is the virtual network layer on top of the physical network infrastructure). The virtual aspect of an overlay allows the network to connect to thousands of edge devices quickly without needing to interact directly with physical network components. Devices on overlay networks are interconnected via logical links, making up the overlay topology. It is important to note that overlay network topology will vary based on the underlay network architecture.

By extending Figure 4*.3*, we see that edge devices can communicate directly with the networking components in the overlay, rather than overload the physical components in the underlay (see Figure 9*.5*). Another advantage of an overlay network is that because it is software-defined, it scales well.

Figure 9.5 – Edge devices connecting to network overlay

With the distinctions between the network overlay and underlay explained, let’s revisit Zero Trust in light of each.

Zero Trust Network Access (ZTNA) is an emerging approach that authenticates users and devices, authorizes their secure access to each resource independently (other users, devices, services, applications, and infrastructure), and validates that access on a periodic and continuous basis. Like most Zero Trust approaches, it uses the principle of least privilege and defaults to denying all access before authorizing the context of the specific request. See Figure 9*.6*, which shows how ZTNA relates to the various actions and participants:

Figure 9.6 – ZTNA in edge computing and how it relates to system components

The ZTNA approach is well-suited to an edge computing solution because it provides a single, general-purpose solution for the wide range of heterogeneous edge devices that cannot be trusted but are generating and sending data to edge hubs. Since these edge devices cannot be locked in a secure location, it makes sense to enable access control policies on the edge devices and set up security policies at a more “central” location. A goal is to remove the implicit trust of those edge devices. While network teams bear responsibility for configuring elements in a zero-trust network, they should work closely with security teams to develop the overall ZTA. Incidentally, ZTNA 2.0 offers continuous trust verification of the devices and protects all data.

While there are many benefits to using ZTNA, it is not a complete security solution for edge networking. Solution architects must take a holistic approach and recommend SASE, which helps bring security services to WAN topologies such as those in edge computing.

After ensuring that all component services and users are connected and communicating with each other, it is critical to also confirm that only the intended participants in the conversation can read the messages being sent.

When we talk about connecting, the next most obvious question turns to security. Enterprises always want to know whether the connection is secure. That is because a secure connection guarantees that the data flowing through that connection is encrypted, thus protected from promiscuous viewing by others on the same network segment. The connection can span many network hops, which are points or segments in the network along with data is passed.

End-to-end encryption (E2EE) means that the data is encrypted at the source and remains encrypted in transit until it reaches the intended destination. To put this in an edge computing context, the data generated by the edge device is immediately encrypted and transmitted over a secure network to the edge hub or even to the cloud, where, depending on the need and the application, it could be decrypted and acted upon or stored in the encrypted state. This requires an encryption algorithm at the source and a corresponding decryption facility at the destination before the data can be used. See Figure 9*.7*, which illustrates a hypothetical flow in an end-to-end physical solution:

Figure 9.7 – E2EE in edge computing

Remember, E2EE ensures that only the sender and the receiver can see the data in its unencrypted form. There is no entity in the middle, such as the cloud provider or network operator, that can see the data using any kind of key. While encryption comes with a minor cost and inconvenience, sending unencrypted data over an unsecured network can be far more dangerous and expensive. Solution architects have to weigh up those factors while determining when and where encryption should be enforced, especially E2EE.

Note

Gartner defines encryption in the context of network-based communications as “ the process of systematically encoding a bit stream before transmission so that an unauthorized party cannot decipher it ” (https://www.gartner.com/en/information-technology/glossary/encryption).

To connect the concepts of known and authorized participants with the goal of ensuring that only those parties can read the messages being sent, let’s add the concept of application isolation in a distributed solution.

Dynamically creating and managing network connections between applications, microservices, and infrastructure is a new capability provided by modern software networking solutions, which some have described as application-centric networking (ACN). Furthermore, the most comprehensive ACN solutions support endpoints from hyperscalers and cloud-based SaaS offerings, as well as enterprise, regional, and edge clouds, thus providing hybrid, multi-cloud application-centric network overlay connectivity in an application-centric model.

ACN first and foremost requires understanding the application’s connectivity requirements in the form of the following:

  • What it needs to connect to – local or remote services and infrastructure
  • How it needs to connect – protocols and ports
  • Prioritized performance targets – latency limits and response times

Then, it needs to understand the current network overlay and underlay topology and utilization and to be able to construct a model of that state. It also should understand the available deployment endpoint locations: providers, namespaces, cost, performance, and access methods. Lastly, it should have the ability to both observe the performance aspects of all of those in near real time and to deploy infrastructure in the form of gateways at each endpoint location and waypoint gateways at network interconnect points.

With the aforementioned capabilities, especially if they are integrated and can operate autonomously, a distributed application can react to changing network conditions and dynamically redeploy services from one endpoint location to another with no downtime. This is the promise of ACN for edge-based applications accessing remote resources in hybrid, multi-cloud endpoints.

In this chapter, we discussed how an application-centric approach to connectivity could increase application deployment velocity by orders of magnitude, thus enabling freedom of movement for applications, services, and software-based infrastructure. Furthermore, if this approach is implemented with a tool using declarative configuration and autonomous implementation, frictionless and reactive application component movement is possible in minutes instead of hours or days.

We covered security frameworks and paradigms that have recently emerged to handle zero-trust scenarios. These standards ensure that all connected components and systems are proactively identified and authorized for granular access.

We also covered the benefits of decoupling edge applications from the network underlay through an overlay abstraction. This allows application isolation from other network users and systems. Consider using approaches provided by application-centric multi-cloud networking connectivity or platform engineering solutions. These new and emerging practices will give your edge architectures the flexibility needed to rapidly adapt to changing environments while maintaining a secure posture.

In the next chapter, we’ll discuss how enterprises can implement the newest software solutions in open source projects. We’ll show how companies can contribute to these projects to ensure their needs and requirements are met without giving up intellectual property. We’ll also cover how open source licenses can be abused, and how to protect your company from that risk.