Securing BFF services
In Chapter 6, A Best Friend for the Frontend, we covered the BFF pattern. These services expose a synchronous interface to the frontend, which means they expose an attack surface at the boundary of the system. Fortunately, securing a serverless BFF service in depth is mostly a declarative exercise. We need to grant access to a service, then grant access to the data, track who did what and ensure a service cannot access resources outside the service. Let's discuss these topics in this order.