Overview
This is a repackaged open source software product wherein additional charges apply for hardening, security configuration, and setup support.
WHAT IS KEYCLOAK
Keycloak is an open-source identity and access management (IAM) server built on Java and Quarkus. It gives applications single sign-on and standards-based authentication and authorization through OpenID Connect, OAuth 2.0, and SAML 2.0, plus realm-based multi-tenancy, role-based access control, user federation against LDAP and Active Directory, identity brokering, social login, fine-grained authorization, and a full admin and account console. Applications integrate through the per-realm OIDC discovery document and standard token endpoints, so any compliant OIDC or SAML client works without vendor SDKs. Keycloak requires a production relational database; this image bundles a local PostgreSQL instance and rotates its password at first launch. Apache-2.0 license, no vendor lock-in - the same codebase as the Red Hat build of Keycloak, with no open-core feature gating.
WHAT THIS AMI ADDS
Security hardening:
- Production mode (kc.sh build, then start --optimized) against a bundled local PostgreSQL - the embedded H2 database, which upstream supports for development only, is not used
- Random admin password generated at first launch and written to /root/keycloak-credentials.txt (root-only); no password is baked into the image
- PostgreSQL password also generated per instance at first launch
- nginx TLS perimeter on port 443 (self-signed certificate; Certbot pre-installed so a CA-signed certificate is one command away)
- Keycloak HTTP (8080), management and health (9000), and PostgreSQL (5432) all bound to 127.0.0.1 only
- UFW firewall pre-configured (ports 22, 80 and 443 only; 80 redirects to HTTPS)
- fail2ban, auditd, AppArmor pre-configured
- CVE scan - every image is scanned for vulnerabilities before release
OS hardening (CIS Level 1):
- CIS Ubuntu 24.04 LTS Level 1 benchmark applied via ansible-lockdown
- auditd, SSH hardening, Kernel hardening, IMDSv2 enforced
Compliance artifacts:
- SBOM - CycloneDX 1.6 at /etc/lynxroute/sbom.json
- CIS Conformance Report at /etc/lynxroute/cis-report.html
- CIS Tailored Profile at /usr/share/doc/lynxroute/CIS_TAILORED_PROFILE.md
Highlights
- Keycloak security baked in: production mode on a bundled local PostgreSQL, a random admin password generated at first launch and stored root-only, an nginx TLS perimeter on port 443 with Certbot pre-installed, and Keycloak's HTTP (8080), management (9000) and PostgreSQL (5432) ports all bound to 127.0.0.1. UFW pre-configured for ports 22, 80 and 443 only.
- CIS Level 1 hardened Ubuntu 24.04 LTS: auditd, fail2ban, AppArmor, SSH key-only, IMDSv2 enforced. CVE-scanned before every release. SBOM (CycloneDX) and CIS Conformance Report included.
- Standards-based single sign-on: OpenID Connect, OAuth 2.0, SAML 2.0, realms, role-based access control, user federation (LDAP/Active Directory), identity brokering, and social login for any compliant client. Apache-2.0 license - fully auditable, no vendor lock-in.
Details
Features and programs
Financing for AWS Marketplace purchases
Pricing
Free trial
Dimension | Cost/hour |
|---|---|
m6i.large Recommended | $0.05 |
t3.large | $0.03 |
m6i.2xlarge | $0.05 |
m6i.xlarge | $0.05 |
Dimensions summary
Top-of-mind questions for buyers
Vendor refund policy
We do not offer refunds for this product. AWS infrastructure charges (EC2, EBS, data transfer) are billed separately by AWS and are not refundable by us.
How can we make this page better?
Legal
Vendor terms and conditions
Content disclaimer
Delivery details
64-bit (x86) Amazon Machine Image (AMI)
Amazon Machine Image (AMI)
An AMI is a virtual image that provides the information required to launch an instance. Amazon EC2 (Elastic Compute Cloud) instances are virtual servers on which you can run your applications and workloads, offering varying combinations of CPU, memory, storage, and networking resources. You can launch as many instances from as many different AMIs as you need.
Version release notes
Keycloak 26.8.2
- Keycloak updated 26.8.1 -> 26.8.2, a patch release. Apache-2.0 unchanged
- Security: fixes CVE-2026-111497, an out-of-bounds write in the bundled Brotli decoder that can corrupt process memory
- Security: fixes account takeover through stale organization login state (CVE-2026-112208), unverified identity-provider email linking (CVE-2026-97175) and SAML signature bypass (CVE-2026-117691)
- Security: fixes unauthenticated SAML attacks causing CPU exhaustion (CVE-2026-107602), JVM termination (CVE-2026-110931) and denial of service through unbounded XML parsing (CVE-2026-82965)
- Security: fixes realm takeover by client managers (CVE-2026-97847) and delegated role assignment that could grant realm-admin (CVE-2026-96448)
- Security: fixes stored login-page script injection (CVE-2026-107889) and device authorization bypass of minimum authentication-level requirements (CVE-2026-105305)
- Fixes realm imports with separate user files, intermittent theme resource 404s and false brute-force lockouts at concurrent-session limits
- Rebuilt on the latest CIS Level 1 hardened Ubuntu 24.04 LTS base, picking up every operating-system security update published since the previous build
Additional details
Usage instructions
- Launch instance (m6i.large recommended; t3.large minimum)
- Open Security Group - allow TCP 443 and TCP 22 from your IP
- SSH: ssh -i key.pem ubuntu@<PUBLIC_IP>
- Read the generated login: sudo cat /root/keycloak-credentials.txt
- Open https://<PUBLIC_IP>/admin/ in your browser - accept the self-signed certificate warning. First launch takes about 1-2 minutes while the database schema is prepared and the JVM warms up; until Keycloak is ready the page shows a loading screen that refreshes itself.
- Sign in as "admin" with the password from step 4, then create your own administrator under the master realm and remove or change the generated bootstrap account.
- Create your first realm, register your applications as clients, and add users under that realm.
Keycloak runs in production mode (start --optimized) against a bundled local PostgreSQL - no external database is required, and the embedded H2 database (upstream supports it for development only) is not used. Keycloak's HTTP listener, its management and health port, and PostgreSQL are bound to 127.0.0.1; nginx terminates TLS on port 443 and reverse-proxies to Keycloak. The admin console, the account console, and the OIDC/OAuth2/SAML token endpoints are all served over HTTPS on port 443. Each realm publishes an OIDC discovery document under the path /realms/REALM/.well-known/openid-configuration on the same host, where REALM is the realm name (the built-in realm is named master).
The admin password and the PostgreSQL password are generated uniquely per instance at first launch and saved to /root/keycloak-credentials.txt. Restrict Security Group port 443 to your own IP until you have signed in and created your own administrator.
For production, replace the self-signed certificate and the IP-based hostname with your own domain: sudo certbot --nginx -d yourdomain.com sudo sed -i 's|^hostname=.*|hostname=https://yourdomain.com |' /opt/keycloak/conf/keycloak.conf sudo systemctl restart keycloak
Documentation: https://www.keycloak.org/documentation
Resources
Vendor resources
Support
Vendor support
Visit us online: https://lynxroute.com
For Keycloak documentation:
AWS infrastructure support
AWS Support is a one-on-one, fast-response support channel that is staffed 24x7x365 with experienced and technical support engineers. The service helps customers of all sizes and technical abilities to successfully utilize the products and features provided by Amazon Web Services.
Similar products

