Red Hat Vulnerability for OpenShift service is used to assess and monitor the status of security vulnerabilities on OpenShift clusters, understand the level of exposure of infrastructure, and plan a course of action. This is the front-end repository for this service.
- Make sure you have
Node.jsversion >= 18 installed - Run script to patch your
/etc/hosts - Make sure you are using Red Hat proxy
- Make sure you are connected to the Red Hat VPN
- Install dependencies with
npm install - Run development server with
npm run startand select desired environment (stage-previewis recommended) - Local version of the app will be available at URL printed out to the console (https://stage.foo.redhat.com:1337/preview/openshift/insights/vulnerability/ if you selected
stage-preview)
Cypress is used as the testing framework
npm run test- run all Cypress testsnpx cypress open --component- open Cypress in the component testing mode.npm run lint- run linter
- Make sure
npm run testare ran before the coverage - Run
npm run coverage
The app uses containerized builds which are configured in app-interface.
| Environment | Available at | Deployed version |
|---|---|---|
| stage preview | https://console.stage.redhat.com/preview | master branch |
| stage stable | https://console.stage.redhat.com | master branch |
| production preview | https://console.redhat.com/preview | up to the commit configured in app-interface |
| production stable | https://console.redhat.com | up to the commit configured in app-interface |
This project uses Patternfly React.
This app imports components from Insights Front-end Components library. ESI tags are used to import Insights Chrome which takes care of the header, sidebar, and footer. These libraries are described in the Platform experience documentation.