You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
James Harmison 188f0e3b57
Added coverage badge to README
4 months ago
examples Added some more examples 4 months ago
src/hardening_importer Implemented cli tests and commands 4 months ago
tests Implemented cli tests and commands 4 months ago
.gitignore Added html report output to CI jobs 4 months ago
.gitlab-ci.yml Added html report output to CI jobs 4 months ago
LICENSE Added license 5 months ago
README.md Added coverage badge to README 4 months ago
setup.cfg Enabled resource downloads 4 months ago
setup.py Initial commit 5 months ago
tox.ini Added html report output to CI jobs 4 months ago

README.md

Hardening Importer

coverage report

Ingest Iron Bank hardening manifests, produce a build environment.

Prerequisites

You must configure a GitLab personal access token to use HTTP basic auth. Please see the user profile page for creating these tokens here. You will be required to input this token to authenticate.

Usage

# When prompted for your username, enter `__token__`
# When prompted for your password, enter your personal GitLab access token
pip3 install --user hardening-importer --extra-index-url https://gitlab.jharmison.com/api/v4/projects/4/packages/pypi/simple
hardening import .

Details

Parses the hardening_manifest.yaml file located in the provided directory and downloads the files listed in the resources list. Validate their sums, as listed. Generates a commandline to use with Kaniko for building the image listed and outputting it to stdout. This can be integrated with GitLab by following their instructions for using Kaniko in your image builds, accessible here

Advanced usage

You can run hardening import --help to get more detailed usage instructions.