inspec/inspec: InSpec: Auditing and Testing Framework

3 phút đọc

inspec/inspec: InSpec: Auditing and Testing Framework – Repository inspec/inspec. Mô tả: InSpec: Auditing and Testing Framework. 3092 stars, 678 forks, ngôn ngữ chính Ruby, cập nhật 2026-09-22.

1. Repository làm gì?

For more information on project states and SLAs, see this documentation.

Chef InSpec is an open-source testing framework for infrastructure with a human- and machine-readable language for specifying compliance, security and policy requirements.

Chef InSpec makes it easy to run your tests wherever you need. More options are found in our CLI docs.

Chef InSpec requires Ruby ( >= 3.1.0 ).

All currently supported versions of Chef InSpec (5.0 and later) require accepting the EULA to use. Please visit the license acceptance page on the Chef docs site for more information.

The Chef InSpec package is available for MacOS, RedHat, Ubuntu and Windows. Download the latest package at Chef InSpec Downloads or install Chef InSpec via script:

2. Dữ liệu và cấu trúc đáng chú ý

For more information about the install scripts, see the Chef Install Script documentation.

Installing Chef InSpec from source may require installing ruby build tools to manage gem dependencies. (A compiler-free variant is available with reduced functionality; use inspec-core-bin and inspec-core.)

To install build tools, use your package manager.

To install the inspec executable, which requires accepting the Chef License, run:

You may also use inspec as a library, with no executable. This does not require accepting the license. To install the library as a gem, run:

Download the image and define a function for convenience:

If you call inspec from your shell, it automatically mounts the current directory into the Docker container. Therefore you can easily use local tests and key files. Note: Only files in the current directory and sub-directories are available within the container.

3. Khả năng ứng dụng và giới hạn

To scan the docker containers running on the host using the containerized InSpec, we need to bind-mount the Unix socket /var/run/docker.sock from the host machine to the InSpec Container.

/var/run/docker.sock is the Unix socket the Docker daemon listens on by default.

Note that installing from OS packages from the download page is the preferred method.

To install it as a gem locally, run:

On Windows, you need to install Ruby with Ruby Development Kit to build dependencies with its native extensions.

Currently, this method of installation only supports Linux. See the Chef Habitat site for more information.

Download the hab binary from the Chef Habitat site.

Also have a look at our examples for:

Run tests against different targets:

Số liệu repository có thể thay đổi; nên mở liên kết nguồn để kiểm tra README, giấy phép và trạng thái phát hành.

Nguồn tham khảo: Xem bài gốc

📆
Âm Lịch: 17/8
Giáp Thìn

📆 Lịch Âm Dương NsN

×
Hôm Nay - Chủ Nhật
Âm Lịch: 17 Tháng 8
Năm Bính Ngọ
📌 Ngày Can Chi: Giáp Thìn
✨ Giờ Hoàng Đạo: Dần (3-5), Thìn (7-9), Tỵ (9-11), Thân (15-17), Dậu (17-19), Hợi (21-23)
Vĩnh Phúc (Liên Bảo - Vĩnh Yên)
27°C
Nắng Đẹp
💧 89% | 💨 15 km/h
Hôm nay 32°
28/09 33°
29/09 34°
30/09 33°
01/10 31°