BlueDev Identity Deployment Kit
The Bluedev Identity Deployment Kit provides instructions for bringing up a StepCA server to manage OIDC provisioners and handle enrollment requests initiated by bluedev-bouncer on BlueRock hosts.
The StepCA server can be deployed either directly within a BlueRock VM instance or on a separate VM to serve multiple BlueRock instances. The StepCA package contains Docker files for StepCA and Caddy, along with just command scripts for setup and management.
StepCA: Registers OIDC provisioners for
bluedevxsign-in and accepts enrollment authentication requests initiated bybluedev-bouncer.Caddy (Optional): Handles automatic TLS certificate generation and maintenance from Let's Encrypt for public deployments. For private, VPN-gated network architectures, StepCA can run independently without Caddy by binding directly to a private interface.

StepCA Deployment
Deploying the StepCA server establishes the central Certificate Authority (CA) required to issue short-lived SSH certificates for user authentication and host enrollment. The following procedures outline the end-to-end setup, from extracting the deployment package to bringing up the service.
Prerequisites and Installation
Extract the package source:
Install prerequisites:
For AL2023:
For Ubuntu:
Configure Environment
Navigate to the compose directory and configure the environment settings:
Define the following variables in the .env file to set the enrollment password and the host certificate validity windows:
BOUNCER_PASSWORD: The password matched during BlueRock Host enrollment.DEFAULT_HOST_SSH_CERT_DURATION: Sets the validity duration assigned to enrolled hosts upon signing.MAX_HOST_SSH_CERT_DURATION: Sets the maximum validity ceiling enforced bystep-cafor host certificates. Keep the default at or below the max.
Choose a Deployment Architecture
Configure the .env file based on the required network architecture:
Private Deployment (without Caddy)
Use this configuration for a CA reachable over a VPN-gated private subnet or SSH tunnel (without Caddy). StepCA publishes directly on a specific interface using self-signed TLS certificates generated for the designated private IP.
Public Deployment (with Caddy)
Use this configuration for a publicly reachable StepCA server using Let's Encrypt or a local CA:
Configure Google Identity Provisioner
Create a Google OIDC Desktop Client App via the Google Cloud Console (Requires admin privileges) to enable Google Workspace integration. To create a Google OIDC app:
Access the Google Cloud Console and select or create a project.
Navigate to APIs & Services, then select Credentials.
Configure the OAuth Consent Screen by selecting the user type (Internal or External) and defining the mandatory fields, such as the App Name and support email.
Select Create Credentials and choose OAuth client ID.
Select Desktop app as the Application type. This automatically sets the redirect URI to
http://127.0.0.1. Define a name and select Create.Copy the generated Client ID and Client Secret.
Copy and edit the Google provider template:
Configure the required parameters:
Google Workspace Provisioner Configuration Variables
Review and define the following variables carefully before executing the provisioner setup script. Incorrect values will prevent successful host enrollment and developer authentication.
Variable
Description
Notes
PROVISIONER_NAME
The internal identifier for the OIDC provisioner within the StepCA configuration.
Example: google
ISSUER_URL
The OpenID Connect discovery endpoint for Google Workspace.
The value must be exactly https://accounts.google.com.
CLIENT_ID
The OAuth 2.0 Client ID generated within the Google Cloud Console credentials page.
Required to identify the application to Google's authorization servers.
CLIENT_SECRET
The sensitive OAuth 2.0 Client Secret paired with the designated Client ID.
Must be kept secure and never committed to version control.
ADMINS
A comma-separated list of administrator email addresses authorized to manage the CA.
Example: admin@domain.com
DOMAIN_RESTRICT
The specific email domain authorized to authenticate via this OIDC provisioner.
Example: bluerock.io
BLUEDEV_DOMAINS
The domain name utilized for generating the SSH principal mapping.
Typically matches the DOMAIN_RESTRICT value.
DEFAULT_SSH_CERT_DURATION
The standard time-to-live (TTL) validity period assigned to issued SSH certificates.
Example: 8h
MAX_SSH_CERT_DURATION
The absolute maximum validity period permitted for issued SSH certificates.
Example: 24h
Service Bring-Up and Management
Review available commands using just help:
Register the OIDC provider and start services:
Check health status:
Expected Output:
Retrieve the auto-generated CA enrolment string:
Output format:
For private deployments, the generated fingerprint URL utilizes the specified private IP address. Output format:
Enrol BlueRock Host
Log in to the BlueRock VM and execute the enrollment command using the generated CA URL:
Enter the BOUNCER_PASSWORD when prompted
Modifying Certificate Expiration (TTL)
Updating these configuration values is only required if the validity window needs to be changed after the initial CA deployment.
Modifying User Certificate Expiration (TTL)
To extend the session validity period and reduce sign-out frequency, update the Time-to-Live (TTL) settings in the provider configuration.
Open the relevant provider environment file (for example,
providers/entra.envorproviders/google.env).Update the duration parameters to the required validity period (for example, 168 hours). The
MAX_SSH_CERT_DURATIONvalue must always be greater than or equal to theDEFAULT_SSH_CERT_DURATIONvalue:Apply the configuration changes by executing the non-destructive update command:
Modifying Host Certificate Expiration
To modify the host SSH certificate lifetimes on the StepCA server after the initial deployment:
Open
./compose/.envin the identity CA kit directory (/opt/bluedev-identity) on the StepCA VM instance.Update the
DEFAULT_HOST_SSH_CERT_DURATIONandMAX_HOST_SSH_CERT_DURATIONvariables to the new required validity period.Execute the non-destructive update command on the StepCA VM instance to apply the updated environment variables:
Renewing the Host Certificate After TTL Change
Host certificates require manual monitoring for expiration. To prevent connectivity loss, verify the remaining time-to-live (TTL) and manually renew the certificate before it expires.
Renewing the Host Certificate
To renew a certificate before the TTL expires, retrieve the credentials from the StepCA server and execute the enrollment command again.
Retrieve CA Information (On the StepCA VM): Retrieve the required CA URL, provisioner, and password by running the following command on the StepCA VM instance:
Execute Renewal (On the BlueRock Host): Log in to the affected BlueRock host and execute the enrollment command to renew the certificate:
Operational Requirements:
--ca(Mandatory): Must include the full URL appended with#fp=<SPKI-FINGERPRINT>. A non-interactive enrollment refuses a bare fingerprint.--password(Mandatory): Must read from standard input (stdin) to prevent exposing plain-text credentials in process list arguments.--principals(Optional): Required to map the host's primary private IP address. Omitting this flag generates a valid certificate that leaves the host unreachable.
Checking Host Certificate Validity
To check the host certificate status and remaining TTL directly on the BlueRock host instance, run the primary JSON health probe:
The output reports the remaining validity window and warns when a renewal is required.
Expected Output:
Alternatively, inspect the certificate and view the principals via ssh-keygen:
Configure Microsoft Entra ID Provisioner
Create an OIDC Desktop App using App Registrations in the Azure Portal to enable Microsoft Entra ID integration. To create a Microsoft Entra ID app:
Access the Azure Portal and navigate to Microsoft Entra ID.
Select App registrations, then select New registration.
Define the application name and select the supported organizational directory account types.
Set the Platform to Public client (mobile & desktop).
Set the Redirect URI to
http://127.0.0.1.Select Register and copy the generated Application (client) ID.
Create and edit
entra.env:Configure the required parameters:
Entra ID Provisioner Configuration Variables
Review and define the following variables carefully before executing the provisioner setup script. Incorrect values will prevent successful host enrollment and developer authentication.
PROVISIONER_NAME
The internal identifier for the OIDC provisioner within the StepCA configuration.
Example: entra
ISSUER_URL
The OpenID Connect discovery endpoint for the Microsoft Entra ID tenant.
Replace <TENANT_ID> with the exact Entra tenant ID.
CLIENT_ID
The Application (client) ID generated during the Entra ID app registration process.
Located in the Entra ID application overview panel.
ADMINS
A comma-separated list of administrator email addresses authorized to manage the CA.
Example: admin@domain.com
DOMAIN_RESTRICT
The specific email domain authorized to authenticate via this OIDC provisioner.
Example: bluerock.io
BLUEDEV_DOMAINS
The domain name utilized for generating the SSH principal mapping.
Typically matches the DOMAIN_RESTRICT value.
DEFAULT_SSH_CERT_DURATION
The standard time-to-live (TTL) validity period assigned to issued SSH certificates.
Example: 8h
MAX_SSH_CERT_DURATION
The absolute maximum validity period permitted for issued SSH certificates.
Example: 24h
Bring-Up Service
Register the Entra ID provider and start services:
Retrieve Fingerprint and Enroll Host
Get the host enrollment string:
Expected output:
Log in to the target BlueRock VM and execute enrollment:
Enter the
BOUNCER_PASSWORDwhen prompted
Unenroll a BlueRock Host
If the BlueRock Identity Service was previously configured on a host instance, the bouncer must be unenrolled to prevent configuration conflicts before switching to a different authentication method (such as SSH Key Trust) or decommissioning the environment.
To reverse a host enrollment and clear the Certificate Authority (CA) trust configuration, execute the following command directly on the BlueRock host instance terminal:
Command Actions:
The unenroll command reverses the enroll process. Upon execution, it performs the following system modifications:
Removes the bouncer SSH configuration file (
/etc/ssh/sshd_config.d/51-bluedev-bouncer-ca.conf).Deletes the CA public key located at
/etc/bluedev/user_ca.pub(unless the--keep-ca-pubkeyflag is specified).Removes all host-certificate files (unless the
--keep-host-certflag is specified).
Configure Okta Identity Provisioner
Create an OpenID Connect (OIDC) Native Application via the Okta Console to enable Okta integration.
To create an Okta app:
Access the Okta Console and select Create App Integration.
Choose OIDC - OpenID Connect and set the application type to Native Application.
Define your application name.
Set the Sign-in redirect URI exactly to
http://127.0.0.1:8420/(Okta strictly matches this and requires the trailing slash).Configure the required user assignments and access policies.
Select Save and copy the generated Client ID and Client Secret.
Copy and edit the Okta provider template:
Configure the required parameters:
Okta Provisioner Configuration Variables
Review and define the following variables carefully before executing the provisioner setup script. Incorrect values prevent successful host enrollment and developer authentication.
Variable
Description
Notes
PROVISIONER_NAME
The internal identifier for the OIDC provisioner within the StepCA configuration.
Example: okta
ISSUER_URL
The OpenID Connect discovery endpoint for Okta.
Replace <your-org> with the Okta org subdomain. Custom authorization servers require the specific server path (for example, https://<your-org>[.okta.com/oauth2/default](https://.okta.com/oauth2/default)).
CLIENT_ID
The OAuth 2.0 Client ID generated during the Okta app creation process.
Required to identify the application to Okta's authorization servers.
CLIENT_SECRET
The sensitive OAuth 2.0 Client Secret paired with the designated Client ID.
Must be kept secure and never committed to version control. Okta requires the Client Secret.
LISTEN_ADDRESS
The fixed OAuth callback address advertised to every client.
Set to 127.0.0.1:8420. Okta refuses arbitrary loopback ports.
ADMINS
A comma-separated list of administrator email addresses authorized to manage the CA.
Example: admin@domain.com
DOMAIN_RESTRICT
The specific email domain authorized to authenticate via the OIDC provisioner.
Example:
<company-domain>.com
BLUEDEV_DOMAINS
The domain name utilized for generating the SSH principal mapping.
Typically matches the DOMAIN_RESTRICT value.
DEFAULT_SSH_CERT_DURATION
The standard time-to-live (TTL) validity period assigned to issued SSH certificates.
The system default is 8h.
MAX_SSH_CERT_DURATION
The absolute maximum validity period permitted for issued SSH certificates.
The system default is 24h.
Bluedev Bouncer CLI Reference
The bluedev-bouncer runs directly on the target BlueRock host to handle system setup and CA trust enrollment. Below is the complete command-line interface surface for operator reference.
Expected output:
Command reference table
Command
Usage / Description
Example
install
Installs bluedev-bouncer on the host. Performs system setup (user creation, configuration placement, sshd snippet setup, systemctl reload). Idempotent; requires root.
sudo bluedev-bouncer install
uninstall
Uninstalls the bouncer, reversing the install process. Preserves catalog and package directories unless --purge is used.
sudo bluedev-bouncer uninstall --purge
enroll
Configures CA trust and optionally signs host SSH certificates via a CA provisioner. Writes necessary CA and host-cert configuration files.
sudo bluedev-bouncer enroll --ca 'https://<CA>:9000#fp=<FP>'
unenroll
Reverses the enroll process. Removes the CA public key and host certificates unless specific --keep flags are provided.
sudo bluedev-bouncer unenroll --keep-host-cert
self-check
Runs health probes to verify Docker daemon reachability, DevContainer CLI availability, git version, file permissions, and certificate validity.
sudo bluedev-bouncer self-check --json
doctor
[Deprecated]. Alias for self-check. Prints a deprecation notice and defers to self-check.
sudo bluedev-bouncer doctor
print-paths
Prints resolved configuration paths as shell-safe KEY='value' variables for downstream scripts to read.
bluedev-bouncer print-paths > paths.env
Provides an admin view listing every bouncer-managed container, its owner, and active client sessions (IP and connect time). Read-only; requires root.
sudo bluedev-bouncer sessions
build-catalog
Pre-builds every DevContainer template to skip the slow image-build step during subsequent up invocations.
sudo bluedev-bouncer build-catalog
install-catalog-packages
Bakes .deb/.rpm packages into the primed image, bypassing runtime package installation for faster startup.
sudo bluedev-bouncer install-catalog-packages
link
Internal command used by sshd ForceCommand for protocol-v2 link connections. Handles handshakes and multiplexed dispatch loops.
(Internal use by sshd daemon; not run manually)
help
Prints the help message or detailed usage for a specific subcommand.
sudo bluedev-bouncer help enroll
Global Options
Option
Usage / Description
Example
--config <CONFIG>
Overrides the path to the main configuration file. Default: /etc/bluedev/bouncer.toml.
sudo bluedev-bouncer --config /opt/custom.toml sessions
-h, --help
Prints a summary help message.
sudo bluedev-bouncer --help
View Active bluedev-bouncer Sessions
Execute the bluedev-bouncer sessions command to display all containers managed by the bluedev-bouncer and view active client sessions on the BlueRock host:
Last updated