Skip to content

jelkosz/flightctl-ui

 
 

Repository files navigation

Flight Control UI

Building

Prerequisites:

  • git, nodejs:18

Checkout the repo and from within the repo run:

npm install

Copy the flightctl-server certs to proxy the api access with express (app.js)

mkdir certs
cp ~/.flightctl/certs/client-enrollment.crt certs/front-cli.crt
cp ~/.flightctl/certs/client-enrollment.key certs/front-cli.key
cp ~/.flightctl/certs/ca.crt certs

Running

Start the Flight Control UI:

DEV:

npm run start:dev

PRE/PRO

npm run build
npm run start

(Optional) Configure Keycloak:

  • Go to the flightctl Realm clients view like: https://localhost:9080/admin/master/console/#/flightctl/clients
  • select the ClientID "flightctl-ui"
  • Set the Access settings URLs and redirect URIs for your UI instance
  • In the left Menu, go to Users and Create the first one
  • Once the user is created, go to its Credentials tab
  • Set the user password
  • Create the ".env" file with your values like this:
# flightctl-ui/.env
KEYCLOAK_AUTHORITY="https://localhost:9080/realms/flightctl"
KEYCLOAK_CLIENTID="flightctl-ui"
KEYCLOAK_REDIRECT="https://localhost:9000"

NEW keycloak requirement: Secured API by JWT validation

  • Go to "Realm settings", "Keys" TAB
  • At the key of use "SIG", get the public key
  • Save it to certs/api-sig.key
-----BEGIN PUBLIC KEY-----
MIIBI[...]
-----END PUBLIC KEY-----

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • TypeScript 94.2%
  • JavaScript 5.0%
  • Other 0.8%