concept security in category microservice

appears as: security, The security, security
Microservices Security in Action

This is an excerpt from Manning's book Microservices Security in Action.

In this book, we focus on microservices security. When you make the decision to go ahead with microservices architecture to build all your critical business operations, security is of topmost importance. A security breach could result in many unpleasant outcomes, from losing customer confidence to bankruptcy. Emphasis on security today is higher than at any time in the past. Microservices are becoming key enablers of digital transformation, so microservices security must be consciously planned, designed, and implemented.

As shown in figure 1.6, any request to a microservice first has to come through the API gateway. The API gateway centrally enforces security for all the requests entering the microservices deployment, including authentication, authorization, throttling, and message content validation for known security threats. We get into the details of each topic in chapters 3, 4, and 5.

Figure 1.6 Multiple security enforcement points at multiple layers help improve the level of security of a microservices deployment.
Enterprise Java Microservices

This is an excerpt from Manning's book Enterprise Java Microservices.

If you’re unsure of what Thorntail dependencies might be needed by your application, you have a couple of options. You can generate a skeleton project by visiting http://wildfly-swarm.io/generator and selecting the types of functionality that you need for your microservice. There are options for Java EE features and non-Java EE features such as Eclipse MicroProfile, Hibernate Search, fault tolerance, and security, to name a few.

Security is a feature that should never be taken for granted, no matter what precautions might be implemented. A common misconception is that security is infallible, which is certainly not the case.

Looking again at figure 9.2, if you don’t consider an internal network secure, you’re more inclined to add extra security within your own microservice to prevent unpermitted access to it. If every application or microservice that’s purely for internal purposes doesn’t include its own security precautions, you’ve made the security at the boundary of the external network a single point of failure.

Few types of applications are developed that don’t need security. Those applications are mostly limited to serving read-only data that’s available to the general public already.

Figure 9.3. Malicious internal user

That’s a fairly narrow definition of an application for which you can ignore security. How many of these are your enterprise’s building every day? Probably none! Applications of this type that an enterprise has developed, or will, in its entire lifetime, would be extremely small in number. Static data that’s also publicly available doesn’t interest an enterprise.

What does all that mean? It means that no application or microservice can ignore security, at all, ever.

9.1.2. What problems does security need to solve?

Now that you know you need security, what kind of problems do you need to solve? That in itself could be the sole topic for a book! Because you’re not looking to re-create War and Peace for microservices, you’ll focus on the areas that would be of most interest.

Authentication and authorization are the two aspects of security that are the most relevant to microservices for us. Before you delve too deeply, you need to outline what each of these terms means.

Spring Microservices in Action

This is an excerpt from Manning's book Spring Microservices in Action.

By the time you’re done reading this book, you should have the knowledge needed to build and deploy a Spring Boot-based microservice. You’ll also understand the key design decisions need to operationalize your microservices. You’ll understand how service configuration management, service discovery, messaging, logging and tracing, and security all fit together to deliver a robust microservices environment. Finally, you’ll see how your microservices can be deployed within a private or public cloud.

Security. The mention of the word will often cause an involuntary groan from the developer who hears it. You’ll hear them mutter and curse under their breath, “It’s obtuse, hard to understand, and even harder to debug.” Yet you won’t find any developer (except maybe for inexperienced developers) say that that they don’t worry about security.

Security in general is all about building layers of accessing and enforcing the concept of least privilege. Least privilege is the concept that a user should have the bare minimum network access and privileges to do their day-to-day job. To this end, you should implement least-privilege by separating your services into two distinct zones: public and private.

Microservices in .NET Core: with examples in Nancy

This is an excerpt from Manning's book Microservices in .NET Core: with examples in Nancy.

Nancy is OWIN-compliant, so the microservices you build with Nancy work as OWIN applications in the OWIN pipeline. In this book, you’ll use middleware to take care of a number of cross-cutting technical concerns that don’t fit nicely with application code. In part 3, we’ll dive into implementing support for monitoring, performance logging, request logging, and security as pieces of middleware that can be reused across all your microservices.

These are the platform areas I’ve chosen to cover for this book, but they aren’t necessarily the things you’ll need in a microservice platform for your system. I’ve tried to include common components. In particular, I think such platforms should include the monitoring, correlation token, request/response-logging, and performance-logging bits. They don’t have to be in the exact form used in this book—you may, for instance, prefer a different correlation token format or another logging framework. Your authorization middleware will be tied to the approach you choose to use for security between microservices; but if you choose to put security measures in place around microservice collaboration, libraries supporting that should be included in your microservice platform.