GithubHelp home page GithubHelp logo

tnadrev / openscap-openshift Goto Github PK

View Code? Open in Web Editor NEW

This project forked from samueltauil/openscap-openshift

0.0 2.0 0.0 2.4 MB

Openshift template to execute OpenSCAP over a given image

Shell 51.22% Groovy 48.78%

openscap-openshift's Introduction

openscap-openshift

In this demo we are using Host path, they are restricted by default in most SCCs since they provide direct access to the host. We need to grant access to an elevated SCC called privileged. Also use project demo.

  1. Using minishift or oc cluster up login as system:admin:
oc login -u system:admin
  1. Give grant access to privileged SCC:
oc adm policy add-scc-to-user privileged -z default -n demo
  1. Create the secret (named docker-registry) to provide the credentials so the image inspector pod can pull and scan the image:
oc secrets new-dockercfg docker-registry \
    --docker-server=<registry-server-url> --docker-username=<username> \
    --docker-password=$(oc whoami -t) --docker-email=<email-address>
  1. Provide the url for the image to scan (eg. IMAGE_URL=registry.access.redhat.com/rhel7:latest)
oc process -f image-inspector-template.json \
    -p APPLICATION_NAME=image-inspector -p IMAGE_URL=registry.access.redhat.com/rhel7:latest \
    | oc create -f -

or execute the script create-objects.sh to create everything you need.

  1. In the case you executed the script, you are going to have Jenkins provisioned in the project, so log into Jenkins and go to Manage Plugins and install the Openshift Client Plugin.

  2. Now you can go to Builds -> Pipeline, and start the pipeline.

  3. Open the result report at <route url>/api/v1/content/results.html

  4. The app provided by the inspector provides WebDAV sharing to the content of the image scanned, so on Mac you can execute:

cadaver http://<route url>/api/v1/content/

openscap-openshift's People

Contributors

debianmaster avatar samueltauil avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.