liveBook · Manning

Security

As explained in Infrastructure as Code, Patterns and Practices: With examples in Python and Terraform

The protection of systems, information, resources, and operations against unauthorized access, use, disclosure, alteration, disruption, or destruction.

Security in infrastructure as code means detecting and preventing insecure configurations before deployment, then using configuration to audit access, assess impact, and remediate breaches. This shifts security left: checks catch public access, excessive permissions, exposed secrets, and unsafe network rules during development rather than production. section 1.4.4

Apply security checks to infrastructure and the tools used to manage it:

  • Test object-store policies to prevent public read or write access and restrict production access to specific objects. section 1.4.4
  • Audit firewall rules so inbound connections come only from known sources. section 1.4.4
  • Review external modules for sensitive outputs, third-party data transfers, and compliance-test results before adoption; reassess them after releases. section 13.1 section 13.1.2
Figure 13.3 Decision flow for assessing usage of module or tool based on security

Use the decision flow to evaluate a module or tool’s security before introducing it to an organization. section 13.1.2

How Infrastructure as Code, Patterns and Practices: With examples in Python and Terraform covers it

How deep it goes
Explains preventive checks, access auditing, breach remediation, and module review, but defers detailed security patterns.
Examples
Uses object-store policies, firewall rules, and a database module exposing neither secrets nor third-party data.
What it assumes
Assumes familiarity with infrastructure as code and existing security and compliance tests.
What you can do after
Evaluate infrastructure configurations and external modules for exposure, unauthorized access, data leakage, and compliance failures.
How it connects
Connects infrastructure as code with access control, security testing, compliance, and supply-chain attacks.

Also explained in

Compare how 28 books explain security →

Related concepts

This explainer was generated by Manning's knowledge graph from the text of Infrastructure as Code, Patterns and Practices: With examples in Python and Terraform. The section links point to the parts of the book it draws on.