git
,nodejs:18
npm install
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
Start the Flight Control UI:
DEV:
npm run start:dev
PRE/PRO
npm run build
npm run start
- 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-----