Giter VIP home page Giter VIP logo

insights-remediations-1's Introduction

Build Status

Insights Remediations

Insights Remediations is a generator of Ansible playbooks that remediate issues discovered by Red Hat Insights.

Insights Remediations supports the following types of remediations:

  1. Rule-based

    This remediation type is used by Insights. Templates from insights-playbooks repository are used. See project wiki for more details.

  2. CVE-based

    This remediation type is used by the Vulnerability application. A single generic template, which remediates the given set of CVEs by upgrading relevant packages, is used.

  3. Erratum-based

    This remediation type is used by the System Patch Manager application. A single generic template, which remediates the given set of erratum by upgrading relevant packages, is used.

  4. SCAP Security Guide (SSG)

    This remediation type is used by the Compliance application. Templates from SCAP Security Guide are used.

Documentation

Getting started

Prerequisities

  • node.js 10

Running the application locally

  1. docker-compose -f build/docker-compose.yml up
  2. open http://localhost:9002

Local development

  1. docker-compose -f build/docker-compose.yml up db
  2. docker-compose -f build/docker-compose.yml up redis
  3. npm run db:ims
  4. npm start
  5. open http://localhost:9002

To use the demo database seeder, prepend DEMO_MODE=true to each of the above commands.

Running tests

Database container has to be running as a prerequisite for tests:

docker-compose -f build/docker-compose.yml up db

To run the linter, unit and integration tests run:

npm run verify

To run a single test run:

npm test <path-to-test-file>

Configuration

Application configuration can be changed using environmental variables.

Troubleshooting

If your local database isn't updating, or it's not running as expected, run this command to remove old containers:

docker-compose -f build/docker-compose.yml rm -vf

Then, rebuild the image:

docker-compose -f build/docker-compose.yml build

Releases

Upon any change in the master branch the branch is tested, an image is built and deployed in CI and QA environments automatically. This process is controlled by the deployment Jenkinsfile.

The image can then be promoted to production using a Jenkins job. Use the git commit SHA as the REVISION when running the job.

Contact

For questions or comments join #platform-data-pipeline-standup at ansible.slack.com.

insights-remediations-1's People

Contributors

jharting avatar aleccohan avatar stevehnh avatar kruai avatar tkasparek avatar jason-rh avatar tahmidefaz avatar akofink avatar chenlizhong avatar ronnypfannschmidt avatar yungbender 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.