Chapter 4. Securing a Sample Application
In this chapter, we put together a serverless application that is based on a Node.js runtime, and several functions to be utilized for an API, an HTML rendering view and a back-office administration so that we can populate and control the data for the application.
Our serverless application includes several security vulnerabilities and bad practices that we have discussed in previous chapters. These will help you to understand how bad security manifests in real-world applications.
Project Setup
This serverless application is meant to be deployed as an Azure Functions project, and its source is available here.
We invite you to follow the sample project repository for updates and support for other cloud providers as we add those over the course of time, and we welcome any contributions from the community to further build on the basis of the sample application as presented here in this book.
If you want to try running the application locally or deploying to Azure, you’ll need the following:
-
Homebrew for macOS, used to download Microsoft Azure CLI tools; you can also use other installation methods for different operating systems.
-
Git, to clone the sample repository.
-
Node.js and npm to run the application locally.
-
An Azure account and Azure CLI tools.
For Git and the Node.js stack, refer to their respective websites for the best installation method suited to your requirements.
Azure command line tools enable deployment and local testing. ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access