Configure global.baseDomain and TLS material before or immediately after you install Red Hat Edge Manager on Red Hat Enterprise Linux, so the flightctl-gateway service can present a single trusted HTTPS endpoint on port 443.
Before you begin
- A Red Hat Enterprise Linux host prepared for the Red Hat Edge Manager RPM installation. See Installing the Red Hat Edge Manager RPM package.
- Administrative access (root or sudo) on the host.
- A DNS name that resolves to the Red Hat Edge Manager host from administrator workstations, automation, and (for the agent API) enrolled edge devices.
Procedure
-
Choose the base domain (
baseDomain) for the deployment. Use a fully qualified domain name that clients will use in the browser and in flightctl login, for example edge.example.com. This name is the server_name for HTTPS on port 443; path prefixes such as /_/flightctl/ are served on the same host name, not on separate virtual hosts.
-
Ensure that DNS records point to the Red Hat Edge Manager host:
- Create an
A or AAAA record (or equivalent) for <baseDomain> that resolves to the host IP address used for management access.
- Confirm resolution from a client workstation:
-
Plan firewall rules on the host and on perimeter firewalls:
-
Configure TLS for the gateway in
/etc/flightctl/service-config.yaml.
-
For a new installation with automatically generated certificates (typical lab or proof-of-concept), set:
global:
baseDomain: <baseDomain>
generateCertificates: builtin
When generateCertificates is builtin, the installation creates a local CA under /etc/flightctl/pki/ and issues a gateway server certificate at /etc/flightctl/pki/flightctl-gateway/server.crt and /etc/flightctl/pki/flightctl-gateway/server.key. Distribute /etc/flightctl/pki/ca.crt to administrator workstations and browsers that must trust the deployment, or replace the generated material with certificates from your organizational CA (next step).
-
To use your own CA and certificates, set
generateCertificates to none and place PEM files before you start flightctl.target:
global:
baseDomain: <baseDomain>
generateCertificates: none
Install at minimum:
-
If you edit
service-config.yaml on an existing host, stop services, update the file, and restart:
sudo systemctl stop flightctl.target
sudo vi /etc/flightctl/service-config.yaml
sudo systemctl enable --now flightctl.target
-
Verify that the gateway is running and listening on port
443:
sudo systemctl status flightctl-gateway.service
sudo ss -tlnp | grep -E ':443|:7443'
-
Open the web console at
https://<baseDomain>/ and log in. From an administrator workstation, authenticate the CLI with one of the following:
What to do next
When you integrate an external OIDC provider, register redirect and callback URLs that use https://<baseDomain>/ on port 443, not legacy service ports. Update externalOidcAuthority and related settings in service-config.yaml to match URLs that clients can reach through the gateway. See Authenticating with OpenID Connect.