2016-09-11 23:26:00 +00:00
---
title: InSpec - Audit and Test Framework
---
2017-01-06 21:21:45 +00:00
2016-12-13 03:13:38 +00:00
/! animated banner
2017-01-18 04:59:40 +00:00
header.blue-gradient.margin-top-offset
2016-12-13 03:13:38 +00:00
.h-top.strict-center.purp-shade
2017-01-09 23:26:16 +00:00
h1.columns.t-white.strict-center data-enllax-ratio=".1" data-enllax-type="foreground" InSpec is compliance as code
2017-01-07 00:03:24 +00:00
img.grid-animate.strict-center style="opacity:0.8" src="/images/home/web.svg" /
2016-12-13 03:13:38 +00:00
/! diamond image
2017-01-18 04:59:40 +00:00
img.strict-center.bright-animate.3d-animate src="/images/home/diamond.png" /
2017-01-09 05:29:00 +00:00
/! canvas elements
2017-01-06 08:06:40 +00:00
#particles-js
canvas.particles-js-canvas-el /
2017-01-09 05:29:00 +00:00
/! style for callout icons
2016-12-13 03:13:38 +00:00
.row
2017-02-24 04:46:54 +00:00
.icon.shadow.hide-for-small-only
img src="/images/circ-arrow.svg" /
2017-01-23 02:50:12 +00:00
2017-03-14 20:16:05 +00:00
/! Event Details go here
2017-03-29 21:09:13 +00:00
.code-pop
.strict-center
p.t-white
| Chef NYC Meetup on April 20: Compliance as Code with InSpec
a href="https://www.meetup.com/Chef-NYC/events/238272428/" target="_blank" Join us!
2017-02-24 04:46:54 +00:00
2016-12-13 03:13:38 +00:00
/! Second Content
.row.margin-both
2017-01-23 02:50:12 +00:00
.large-9.medium-9.columns data-enllax-ratio=".1" data-enllax-type="foreground"
2017-01-20 09:15:38 +00:00
2017-02-24 04:46:54 +00:00
h2.txt-margin Automated testing, codified
2017-01-18 04:59:40 +00:00
p#icon-trigger
2016-12-13 03:13:38 +00:00
| InSpec is an open-source testing framework for infrastructure with a human-readable language for specifying compliance, security and other policy requirements. Easily integrate automated tests that check for adherence to policy into any stage of your deployment pipeline.
2017-01-09 05:29:00 +00:00
2016-12-13 03:13:38 +00:00
/! Third Content
2017-01-06 21:21:45 +00:00
#icon-trigger.row.strict-center.margin-under-xs
2016-12-13 03:13:38 +00:00
.large-12.columns
2017-01-06 21:21:45 +00:00
hr.first/
2017-01-06 08:06:40 +00:00
small FEATURES OF INSPEC
2017-02-24 04:46:54 +00:00
h2.txt-margin InSpec is compliance by design
2017-01-06 21:21:45 +00:00
hr.first/
2016-12-13 03:13:38 +00:00
/! images with text - grid of 4
.row.strict-center.margin-under
.large-3.medium-3.columns.strict-center
img.floating.icon-art src="/images/home/platform.svg" /
h3 Platform Agnostic
p
| InSpec supports all major operating systems and many applications out of the box.
2017-01-06 08:06:40 +00:00
.large-3.medium-3.columns.strict-center
2016-12-13 03:13:38 +00:00
img.icon-art src="/images/home/free.svg" /
h3 Free to run anywhere
2016-09-20 18:33:17 +00:00
p
2016-12-13 03:13:38 +00:00
| InSpec is a language that can easily express compliance as code, with the freedom to run anywhere.
.large-3.medium-3.columns.strict-center
img.icon-art src="/images/home/test.svg" /
h3 Test locally or remotely
p
| InSpec provides a local agent, as well as full remote testing support.
2017-01-06 08:06:40 +00:00
.large-3.medium-3.columns.strict-center
2016-12-13 03:13:38 +00:00
img.icon-art src="/images/home/language.svg" /
2017-01-06 08:06:40 +00:00
h3 Extensible language
2016-12-13 03:13:38 +00:00
p
| Easily extend the InSpec language to cover new operating systems, devices, or applications.
2017-01-09 05:29:00 +00:00
2016-12-13 03:13:38 +00:00
/! Fourth Content
/! style for callout icons
.row
.icon.shadow
2017-01-06 08:06:40 +00:00
img src="/images/circ-arrow.svg" /
.block-angl.blue-gradient
.section.purp-shade
2017-01-20 09:15:38 +00:00
.row.relative-top
.large-7.medium-7.columns.margin-top-xl.margin-under-xs data-enllax-ratio=".1" data-enllax-type="foreground"
2017-01-06 08:06:40 +00:00
small.t-dk Inspec for compliance
h2.t-white
| Transform your compliance and security requirements into simple code
#particles-second
canvas.particles-js-canvas-el
.row
2017-01-13 23:07:38 +00:00
.large-5.medium-5.columns.margin-under-xs
2017-01-20 09:15:38 +00:00
h3.t-white
2017-02-24 04:46:54 +00:00
i.focus.t-dk ⪢
2017-01-06 08:06:40 +00:00
| Codify agreements
p.t-white
| Combine profiles and customize them with overlays. Pick controls and define exceptions as code.
2017-01-20 09:15:38 +00:00
h3.t-white
2017-02-24 04:46:54 +00:00
i.focus.t-dk ⪢
2017-01-06 08:06:40 +00:00
| Add context to your tests
p.t-white
2017-01-29 20:22:02 +00:00
| Utilize many fields like descriptions, tags, and impact.
2017-01-20 09:15:38 +00:00
h3.t-white
2017-02-24 04:46:54 +00:00
i.focus.t-dk ⪢
2017-01-06 08:06:40 +00:00
| Apply to all systems
p.t-white
2017-01-29 20:22:02 +00:00
| Analyze everything using the same codified profiles and controls.
2017-01-06 08:06:40 +00:00
/! code
2017-01-13 23:07:38 +00:00
.large-6.medium-6.columns
.code-example.shadow.relative-top.margin-under
code.code-demo
span.code-attribute control
2017-01-29 20:22:02 +00:00
| 'sshd-21'
2017-04-19 16:59:52 +00:00
span.code-attribute do
2017-01-13 23:07:38 +00:00
br/
span.code-token.indent title
| 'Set SSH Protocol to 2'
br/
span.code-token.indent desc
| 'A detailed description'
br/
span.code-token.indent impact
2017-01-29 20:22:02 +00:00
| 1.0 # This is critical
2017-01-13 23:07:38 +00:00
br/
span.code-token.indent ref
| 'compliance guide, section 2.1'
br/
br/
2017-01-29 20:22:02 +00:00
span.code-attribute.indent describe
2017-01-20 09:15:38 +00:00
| sshd_config
2017-01-13 23:07:38 +00:00
span.code-attribute do
br/
2017-01-29 20:22:02 +00:00
span.code-attribute.indent its
| ('Protocol') { should cmp 2 }
2017-01-13 23:07:38 +00:00
br/
span.code-attribute.indent end
br/
span.code-attribute end
2017-01-20 09:15:38 +00:00
2017-02-24 04:46:54 +00:00
a.btn.strict-right.t-white.try-demo.mobile-hide href="/tutorial" Try the Demo
2017-01-06 08:06:40 +00:00
/! Next row
.row
2017-01-20 09:15:38 +00:00
.large-6.medium-6.columns.margin-under-xs data-enllax-ratio=".1" data-enllax-type="foreground"
2017-01-06 08:06:40 +00:00
small.t-dk Inspec for infrastructure
h2.t-white
| Solve your infrastructure testing needs simply and efficiently
.row
2017-01-13 23:07:38 +00:00
.large-5.medium-5.columns.margin-under-xs
2017-01-20 09:15:38 +00:00
h3.t-white
2017-02-24 04:46:54 +00:00
i.focus.t-dk ⪢
2017-01-06 08:06:40 +00:00
| Test the desired state
2017-01-29 20:22:02 +00:00
p.t-white Verify your infrastructure matches your expectations.
2017-01-20 09:15:38 +00:00
h3.t-white
2017-02-24 04:46:54 +00:00
i.focus.t-dk ⪢
2017-01-06 08:06:40 +00:00
| Use simple and expressive code
p.t-white
2017-01-29 20:22:02 +00:00
| Reduce friction by writing tests that are easy to understand by anyone.
2017-01-20 09:15:38 +00:00
h3.t-white
2017-02-24 04:46:54 +00:00
i.focus.t-dk ⪢
2017-01-06 08:06:40 +00:00
| Test any system anywhere
p.t-white
2017-01-29 20:22:02 +00:00
| Run tests locally or remotely on all major operating systems and configurations.
2017-01-20 09:15:38 +00:00
h3.t-white
2017-02-24 04:46:54 +00:00
i.focus.t-dk ⪢
2017-01-06 08:06:40 +00:00
| Extensible
p.t-white
2017-01-29 20:22:02 +00:00
| Create custom resources with ease and share them.
2017-01-06 08:06:40 +00:00
/! code
2017-01-13 23:07:38 +00:00
.large-6.medium-6.columns
.code-example.shadow.relative-top.margin-under
code.code-demo
span.code-attribute describe
2017-01-20 09:15:38 +00:00
2017-01-29 20:22:02 +00:00
| file('/etc/myapp.conf')
2017-01-20 09:15:38 +00:00
2017-01-13 23:07:38 +00:00
span.code-attribute do
br/
span.code-attribute.indent it
2017-01-29 20:22:02 +00:00
| { should exist }
2017-01-13 23:07:38 +00:00
br/
span.code-attribute.indent its
2017-01-29 20:22:02 +00:00
| ('mode') { should cmp 0644 }
2017-01-13 23:07:38 +00:00
br/
2017-01-29 20:22:02 +00:00
span.code-attribute end
2017-01-13 23:07:38 +00:00
br/
br/
2017-01-29 20:22:02 +00:00
span.code-attribute describe
2017-01-13 23:07:38 +00:00
| myapp.conf
span.code-attribute do
br/
span.code-attribute.indent its
2017-01-29 20:22:02 +00:00
| ('port') { should cmp 8080 }
2017-01-13 23:07:38 +00:00
br/
span.code-attribute end
br/
br/
span.code-attribute describe
| port(8080)
span.code-attribute do
br/
span.code-attribute.indent it
2017-01-29 20:22:02 +00:00
| { should be_listening }
2017-01-13 23:07:38 +00:00
br/
span.code-attribute end
2017-02-24 04:46:54 +00:00
a.btn.strict-right.t-white.try-demo.mobile-hide href="/tutorial" Try the Demo
2017-01-20 09:15:38 +00:00