Derek Coleman & Associates Inc logoDerek Coleman & Associates Inc

Home / Docs / DCA Hardened Identity Provider — for Keycloak™ / Install

Install DCA Hardened Identity Provider — for Keycloak™

Launch, connect, and validate — with the expected result after every step.

Prerequisites

Google Cloud

  1. Deploy from the Google Cloud Marketplace listing (or its deployment package): at least 4 vCPU and 16 GB RAM (default n2-standard-8, 50 GB balanced boot disk). Leave the tcp:8443 firewall toggle off until HTTPS is configured.
    Expected result The VM DEPLOYMENT-vm is RUNNING; on it, curl -fsS http://127.0.0.1:9000/health/ready reports UP.
  2. Tunnel port 8080 and sign in to http://localhost:8080/admin/ with the credential in /root/keycloak-admin-credentials.txt.
    Expected result The admin console opens in the master realm.
  3. To serve users and applications: configure HTTPS on 8443 with your certificate and hostname (Configuration page), then allow tcp:8443 from your users' ranges.
    Expected result https://<your hostname>:8443/ serves Keycloak with your certificate.

Validate

curl -fsS http://127.0.0.1:9000/health/ready   → status UP

First boot: keycloak-firstboot.service mints the bootstrap administrator before keycloak.service first starts; Keycloak creates the master realm with it; keycloak-verify-firstboot.service proves the administrator obtains a token, a wrong password is refused, the version is 26.8.0 and every listener is loopback-only, then removes /etc/keycloak/bootstrap-admin.env and writes /var/lib/dca-firstboot/keycloak.verified. The first start takes a while; health/ready answers UP when it is done.

First login / credentials

  1. Connect with OS Login and forward the console: gcloud compute ssh INSTANCE_NAME --zone ZONE --tunnel-through-iap -- -L 8080:127.0.0.1:8080 (reading the credential file needs sudo, i.e. roles/compute.osAdminLogin).
  2. Read this VM's administrator: sudo cat /root/keycloak-admin-credentials.txt (root-only, 0600) — KEYCLOAK_ADMIN_USER=admin and KEYCLOAK_ADMIN_PASSWORD.
  3. Open http://localhost:8080/admin/ on your workstation and sign in to the master realm as admin. Then create a permanent administrator and delete or re-password admin (Configuration page).

Secure it

Costs & quotas

Software is billed by the marketplace at the listed rate; infrastructure (VM, storage, egress) is billed by your cloud at its standard rates. The recommended size fits default service quotas in most accounts — if you scale out, review your cloud's quota console before launch.

Next: configuration · troubleshooting · security notes

Keycloak™ names the open-source software this image packages. Derek Coleman & Associates Inc is not affiliated with or endorsed by the Keycloak project.