For the complete documentation index, see llms.txt. This page is also available as Markdown.

BlueRock Connector for VS Code

The BlueRock Connector extension authenticates to connect to and execute the BlueRock instance VM, and to run Sandbox containers from VS Code.

This document details the configuration, authentication, and access requirements for the BlueRock Connector VS Code extension.

Setup and Configuration Workflow

Follow the complete deployment path below, or jump directly to the required phase:

Prerequisites

  • VS Code (latest version)

  • Remote - SSH extension (from Microsoft VS Code Marketplace)

  • BlueRock Connector VS Code Extension (from Microsoft VS Code Marketplace).

Host Enrollment

Run the BlueRock host enrollment directly on the BlueRock instance VM before configuring the BlueRock Connector in VS Code.

  1. Access the BlueRock instance VM terminal.

  2. Run the following command to enroll the bluedev-bouncer:

    Enter the BOUNCER_PASSWORD when prompted.

  3. Construct the <bootstrap-URL> by combining the instance's Public DNS (or IP address) and the appropriate SHA256 fingerprint:

    1. Obtaining the Public DNS / IP Address

      Navigate to the respective cloud provider console such as AWS, GCP, or Azure to locate the public address of the BlueRock instance:

    2. Obtaining the Fingerprint (<sha256>)

      The required fingerprint depends on the chosen authentication method for the workspace:

      • For BlueRock Identity Service (OIDC): The fingerprint is the SHA-256 hash of the CA certificate. Retrieve this directly from the identity service administrator, or by running just fingerprint --auto on the CA host. For more details, refer to the BlueDev Identity Development Kit.

      • For SSH Key Trust: The fingerprint is the host's SSH key fingerprint. Retrieve it by running the following command on the local machine, replacing <host-ip> with the public address obtained above:

        Bash

Setting up the Identity

Once the BlueRock Connector extension is installed, restart VS Code. The extension will load in the left panel. In the extension, select the Setup button to configure the BlueRock Instance using either of the following authentication methods.

  1. BlueRock Identity Service

  2. SSH key trust

BlueRock Identity Service

  1. Select the Enroll with identity service... button.

  2. Insert the Bootstrap URL .

  3. Enter the Public DNS or IP Address of the instance and select Enroll.

  4. Select Sign-in and complete the authentication on the browser.

  5. After successful authentication, the left panel will show the green icon next to the identity and host.

When authenticated with the identity service, the following files are created on the BlueRock instance:

SSH key trust

notes-sticky

Note:

If BlueRock Identity Service is previously configured, then unenroll the bouncer on the host instance first to prevent configuration conflicts before switching to the SSH Key Trust:

  1. Select the Set up SSH key Trust... button to enroll using an existing SSH key.

  2. Run the following command on the local machine to get the fingerprint (SHA256: <base 64>):

    Insert the Bootstrap string with the following format

    For example:

  3. Select Verify, and once verified, select I have compared these and they match - Next button.

  4. Select the required key from the local .ssh folder or select Use another key file... to browse the other keys. Click the Configure button.

notes-sticky

Note:

Ensure the same key is present in the .ssh folder of the instance's Bluedev profile. For that, run the following commands:

Working with Containers

Creating a Container using Catalog

Once the instance is successfully connected to VS Code, create containers using a pre-built template from the Catalog. These reside at the /srv/bluedev/catalog in the BlueRock instance with packages at /srv/bluedev/packages.

By default, the BlueRock Instance ships the following catalog containers:

  • Claude workload sandbox: It’s a template specifically for the Claude IDE for dev containers.

  • Fedora - BlueRock dev: It’s a template with a Fedora environment for dev containers.

  • Ubuntu - BlueRock dev: It’s a template with an Ubuntu environment for dev containers.

To launch them in VS Code, select the Arrow icon next to the container template. It will create the Container and connect it automatically. For example, starting an Ubuntu - BlueRock dev container

Then the Ubuntu Container will be created on the fly and load in a new VS Code window with all its files.

While loading, click the Connecting to Dev Container (show log) dialog box

To trust the authors of the files and folders

Also loads pre-installed packages such as Claude, Gemini, and Codex in the container. Authenticate the package with the required account to run within the container.

For example, using Claude to create a dummy shell script in the Ubuntu container.

Creating a Container using a Git Repo

Select the Repo tab and paste the GitHub/GitLab repo link that has devcontainer.json . Click Warp; it will fetch the devcontainer.json.

For the first time on a new repo, it will prompt to Trust this repo to build and create hooks defined in the repo.

Also, provide the Personal Access Token (PAT) of your GitLab/GitHub account once prompted.

Select the Container based on the options from the devcontainer.json file.

Then it will clone the repo, create the container, and open it in a new VS Code window.

Manage Containers

Select the Containers tab to manage the Containers created with different icons.

  • Arrow icon to attach the container in a new VS Code window.

  • Pen icon to rename the container.

  • Square icon to stop the running container.

  • Bin icon to destroy the container and its content from VS Code and the host.

OTEL Events

In CloudWatch, all events are captured for all actions triggered on any Container from VS Code. For example, the following CloudWatch OTEL log shows an OTEL event of sensor_startup lifecycle event emitted by bluerockd when the identity monitoring agent binary initializes on a host.

OTEL event in AWS CloudWatch:

Another example is an OTEL event claude_hook event emitted by bluerockd when a new Claude session (SessionStart) initializes within a user's workspace context.

OTEL event in AWS CloudWatch:

Last updated