Skip to main content

IaC Scan Runner CLI

Project description

IaC Scan Runner

Service that checks your IaC for issues and vulnerabilities.

GitHub Workflow Status Docker Image Version (latest by date) PyPI Test PyPI

Aspect Information
Tool name IaC Scan Runner
Docker image xscanner/runner
PyPI package iac-scan-runner
Documentation docs
Contact us xopera@xlab.si

Table of Contents

Purpose and description

The IaC Scan Runner is a REST API service used to scan IaC (Infrastructure as Code) package and perform various code checks in order to find possible vulnerabilities and improvements. Explore the docs for more info.

Running

This section explains how to run the REST API.

Run with Docker

You can run the REST API using a public xscanner/runner Docker image as follows:

# run IaC Scan Runner REST API in a Docker container and 
# navigate to localhost:8080/swagger or localhost:8080/redoc
$ docker run --name iac-scan-runner -p 8080:80 xscanner/runner

Or you can build the image locally and run it as follows:

# build Docker container (it will take some time) 
$ docker build -t iac-scan-runner .
# run IaC Scan Runner REST API in a Docker container and 
# navigate to localhost:8080/swagger or localhost:8080/redoc
$ docker run --name iac-scan-runner -p 8080:80 iac-scan-runner

Run from CLI

To run using the IaC Scan Runner CLI:

# install the CLI
$ python3 -m venv .venv && . .venv/bin/activate
(.venv) $ pip install iac-scan-runner
# print OpenAPI specification
(.venv) $ iac-scan-runner openapi
# install prerequisites
(.venv) $ iac-scan-runner install
# run IaC Scan Runner REST API
(.venv) $ iac-scan-runner run

Run from source

To run locally from source:

# install prerequisites
$ python3 -m venv .venv && . .venv/bin/activate
(.venv) $ pip install -r requirements.txt
(.venv) $ ./install-checks.sh
# run IaC Scan Runner REST API (add --reload flag to apply code changes on the way)
(.venv) $ uvicorn src.iac_scan_runner.api:app

License

This work is licensed under the Apache License 2.0.

Contact

You can contact the xOpera team by sending an email to xopera@xlab.si.

Acknowledgement

This project has received funding from the European Union’s Horizon 2020 research and innovation programme under Grant Agreement No. 101000162 (PIACERE).

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

iac-scan-runner-0.1.4.tar.gz (145.6 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

iac_scan_runner-0.1.4-py3-none-any.whl (29.2 kB view details)

Uploaded Python 3

File details

Details for the file iac-scan-runner-0.1.4.tar.gz.

File metadata

  • Download URL: iac-scan-runner-0.1.4.tar.gz
  • Upload date:
  • Size: 145.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.7.1 importlib_metadata/4.10.1 pkginfo/1.8.2 requests/2.27.1 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.9.10

File hashes

Hashes for iac-scan-runner-0.1.4.tar.gz
Algorithm Hash digest
SHA256 ce47578a379524b795d350a3dc01b9a17442a820e2f32aede258a0bc00960954
MD5 6c61b5ba1b1c029cc32c9088e807819d
BLAKE2b-256 c88e86f778a63e68798a94a4bb2837125e332b9f5e7f8a0067f99ee7414e989c

See more details on using hashes here.

File details

Details for the file iac_scan_runner-0.1.4-py3-none-any.whl.

File metadata

  • Download URL: iac_scan_runner-0.1.4-py3-none-any.whl
  • Upload date:
  • Size: 29.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.7.1 importlib_metadata/4.10.1 pkginfo/1.8.2 requests/2.27.1 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.9.10

File hashes

Hashes for iac_scan_runner-0.1.4-py3-none-any.whl
Algorithm Hash digest
SHA256 d7725a3457899558f15d2dd31eeb21f27629f1b5dcb55ab7e54945ffefed0243
MD5 4d39f7ddd9a6880c3b2bc7711dd3d6b9
BLAKE2b-256 a0d0cf9defb6f02569a10c0dace48379bcb852c65f20422ca15b782e007b6d59

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page