Skip to main content

IaC Scan Runner CLI

Project description

IaC Scan Runner

Service that scans your Infrastructure as Code for common 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.7.tar.gz (109.9 kB view details)

Uploaded Source

Built Distribution

iac_scan_runner-0.1.7-py3-none-any.whl (33.6 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: iac-scan-runner-0.1.7.tar.gz
  • Upload date:
  • Size: 109.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.0 CPython/3.9.12

File hashes

Hashes for iac-scan-runner-0.1.7.tar.gz
Algorithm Hash digest
SHA256 00341a265c373206be8b760f9a3f9475f6b92f937dd11d2ed46c8b97839f6f16
MD5 1e87498483394c44a6afe04746c622f5
BLAKE2b-256 dd8d02dc1458b9db85ce3a95b7b52cb11aadaf6e2e5a2de5d506cf093a01fb6b

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for iac_scan_runner-0.1.7-py3-none-any.whl
Algorithm Hash digest
SHA256 ed809a33d1bd1232a1cc3e61cb7ad4583b3c06c0e78f78c2a15b7027a63462a5
MD5 737e67d937816ab137272d55823d9888
BLAKE2b-256 0eeaa4fededd57d673cb85efd7d2ca37b6119585fcfa4dea1b195f4b55d8a4a4

See more details on using hashes here.

Supported by

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