Study guide · Architecture Models and Zero Trust
Architecture Models and Zero Trust
How secure a system is often depends on its architecture. On this page you learn the cloud models and shared responsibility, along with infrastructure as code, serverless and microservices. You learn how to divide networks into zones, where to place security devices and how to decide what happens when they fail. At the end comes zero trust: no access is trusted just because it comes from the internal network. The running example is once again the mid-sized online retailer. It runs a web shop and a logistics warehouse with an automated conveyor system, and it uses several cloud services.
Cloud models and shared responsibility
Cloud services differ in who uses them. A public cloud is open to all customers of a provider. A private cloud belongs to a single organization. A community cloud is shared by organizations with similar requirements, for example several hospitals or government agencies. They share costs and compliance effort. A hybrid cloud connects your own data centers or a private cloud with services from a public provider. The retailer does exactly that: the inventory system runs in its own data center, while the web shop scales in the public cloud. The connection between the two worlds needs its own protection.
If a company spreads its services across several providers, this is called multicloud. The benefit for resilience: if one provider fails, not everything goes down. The price is complexity. A company using three cloud providers faces three typical challenges.
- Each provider has its own permission and security models, terms and default settings.
- Monitoring and logs have to be brought together centrally from several sources.
- The team needs expertise in several platforms.
Cloud security posture management tools, CSPM for short, check the settings across all providers.
Services also differ in what the provider takes over. This leads to the shared responsibility model. With IaaS, infrastructure as a service, the customer rents virtual machines. The provider secures the data centers, the hardware and the hypervisor. The guest operating system, the applications, the data and the access belong to the customer. So the customer patches the operating system of their virtual machines. With PaaS, the provider also takes over the operating system and the runtime. With SaaS, the provider runs almost everything up to the application. Even here, the customer always remains responsible for accounts, permissions and their own data.
Serverless, microservices and infrastructure as code
With serverless computing, the provider runs the servers and the runtime environment. The customer only supplies code that runs as a function on demand. Servers still exist, of course, just not in the customer's hands. Two security tasks stay with the customer: secure coding with input validation, and least privilege for the function's execution role. Overprivileged roles are a common mistake. If the function is abused, the attacker gets all of its permissions.
A microservice architecture breaks an application into many small, independent services. They call each other through interfaces. That makes updates and scaling easier. The downside: many interfaces need authentication. Without mutual verification, for example with mTLS, and without authorization between services, a compromised service can freely talk to all the others.
With infrastructure as code, IaC for short, the team describes servers, networks and firewall rules as code. This code lives in version control and is rolled out automatically. The security benefit: configurations are versioned, reviewable and repeatable. Every environment is built the same way, and changes can be tested and rolled back.
But whatever is automated also automates its mistakes. If an unreviewed template contains an open firewall rule, it spreads to every environment at scale. The retailer therefore wants to make sure that no template rolls out public storage or open admin ports. Two measures work best.
- An automated policy check in the pipeline tests every template against rules and stops violations. This is called policy as code.
- A mandatory review checks every change before the merge and catches what the rules do not cover.
Manual configuration in the console would be more error-prone, not more secure.
IaC also helps with another architecture criterion, ease of recovery. After a ransomware attack or a serious failure, systems have to be rebuilt quickly. If they can be built automatically from code and images, downtime drops considerably. Hand-maintained one-off systems, by contrast, are hard to restore.
Weighing architecture choices
An architecture is always a trade-off. Besides technology, business factors count: cost, scalability, risk and responsibility for the data. On top of that come the classification of the data and where it is stored. Highly classified data may only be allowed in certain countries or environments.
A start-up with strongly fluctuating user numbers needs two properties above all: scalability and usage-based costs. Elastic cloud services grow and shrink with the load and only cost what is used. Fixed capacity for the peaks would usually be expensive and sit idle most of the time.
When a data center moves to a smaller site, technical questions come first. Is there enough computing power for the workloads? Can the power supply and cooling handle the equipment? An insufficient power supply is also an availability risk.
Security and usability also have to be balanced. A clinic is planning a patient portal with high security requirements. The login becomes so complicated that many patients give up. Security that is too cumbersome gets bypassed or drives users away. Passkeys or risk-based authentication combine strong security with easy use.
For software, the question is proprietary or open source. Open code allows your own review, but it guarantees nothing. The fact that many people could review the code does not mean anyone does. With proprietary software, you depend on the vendor for patches, and the vendor sets the pace and scope. What matters is maintenance, updates and support, not the license model alone.
Finally, there is data sovereignty. Data is subject to the law of the place where it is stored. That determines which laws apply and which authorities can access it.