The UI API microservice, grc-ui-api
, is the API server for the governance and risk dashboard UI for Open Cluster Management. (See grc-ui
for the UI microservice that uses it)
-
Install the modules
npm ci
-
Build the project
npm run build or npm run build:watch or npm run build:production
SECURITY WARNING: The GRC UI API provides an SSL certificate in /sslcert
that is open to the public. In order to run this in production, you'll need to replace these certificates. For our production builds, we replace these certificates using its Helm chart.
- The following environment variables need to be set.
API_SERVER_URL SERVICEACCT_TOKEN - the token that you can get from the top right corner of RHACM page - configure client - the value of oc config set-credentials admin --token, it's a long string, starts with "ey...". Please note that this is a temporary token and it expires.
- Start the server
- Development:
npm start
- Production:
npm run start:production