Chef InSpec Compliance
My Compliance Automation Journey
What is Chef InSpec?
Why InSpec Changed My Compliance Approach
Before InSpec:
After InSpec:
InSpec Architecture and Components
The InSpec DSL
InSpec Resources
Getting Started with InSpec Shell
Launching InSpec Shell
Interactive Testing in InSpec Shell
Using InSpec Shell with Controls
Creating Your First InSpec Profile
Generating a Profile
Understanding inspec.yml
Writing Controls
Running InSpec Profiles
Local Execution
Remote Execution
My Real-World Example
Generating Reports
CLI Output (Default)
JSON Report
HTML Report
JUnit XML (for CI/CD)
Working with InSpec Inputs
Defining Inputs
Providing Input Values
Using Pre-Built Profiles from Chef Supermarket
Finding Profiles
Running Supermarket Profiles
Customizing Supermarket Profiles
Real-World Compliance Scenario: PCI-DSS
The Challenge
The Solution
The Execution
The Results
Best Practices from My Experience
1. Organize Controls Logically
2. Use Meaningful Impact Levels
3. Tag Everything
4. Provide Context
5. Test Before Deploy
Integration with CI/CD
GitLab CI Example
What's Next?
Last updated