liveBook · Manning

Secure by design

As explained in Building Web APIs with ASP.NET Core

Security by design is an engineering approach that incorporates security considerations into system design and implementation from the beginning.

Secure by design means choosing the most secure way to complete each engineering task while maintaining a reasonable cost, benefit, and risk trade-off. section 12.1.1

For a web API approaching release, security decisions shape the production architecture before publishing begins, rather than appearing only after deployment. section 12.5

Apply the approach by:

  • Reviewing configuration files and removing unnecessary or potentially vulnerable middleware. section 12.5
  • Adding countermeasures such as HTTP security headers to reduce exposure to attacks, DDoS attempts, and data breaches. section 12.5
  • Using a CDN and full encryption between the hosting server and users’ browsers when the architecture supports it. section 12.5
  • Checking network exposure before creating a cloud VM, especially ports needed by RDP and Web Deploy. section 12.5

How Building Web APIs with ASP.NET Core covers it

How deep it goes
Explains a decision principle and several deployment checks, but stops short of detailed implementation procedures.
Examples
Uses configuration review, middleware removal, HTTP security headers, CDN encryption, and cloud VM port checks as practical examples.
What it assumes
Assumes deployment context and basic infrastructure awareness while emphasizing security decisions needed before publishing.
What you can do after
Operate/configure a web API release by reducing unnecessary exposure and selecting more secure hosting and edge protections.
How it connects
Connects security by design with middleware, HTTP security headers, CDNs, SSL/TLS, virtual machines, and TCP port exposure.

Also explained in

Compare how 3 books explain secure by design →

Related concepts

This explainer was generated by Manning's knowledge graph from the text of Building Web APIs with ASP.NET Core. The section links point to the parts of the book it draws on.