Skip to content

Open-source Grok Bot alternative with a virtual machine that bots can use

Own server: the hardened launcher from home images 0.1.145 on

milind-sonic6027696b4c7
diff --git a/connector/src/settings.ts b/connector/src/settings.ts
index 23f1d6d927..69da410fa0 100644
--- a/connector/src/settings.ts
+++ b/connector/src/settings.ts
@@ -70,7 +70,7 @@ export const LEASE_FIXED_VERSION = [0, 1, 131] as const;
* as soon as it has remounted /proc with hidepid. An older image gets its secrets in its environment and never these
* two capabilities: it would keep CAP_SYS_ADMIN for life.
*/
-export const HARDENED_LAUNCHER_VERSION = [0, 1, 144] as const;
+export const HARDENED_LAUNCHER_VERSION = [0, 1, 145] as const;
export const HIDEPID_CAPABILITIES = ["SYS_ADMIN", "SETPCAP"] as const;
/** The home's secrets: kept out of its container's environment (docker inspect shows that) once its launcher reads the file. */
diff --git a/connector/test/home.test.ts b/connector/test/home.test.ts
index 2e19277f6a..48fd562efb 100644
--- a/connector/test/home.test.ts
+++ b/connector/test/home.test.ts
@@ -34,7 +34,7 @@ function fixture(options: { free?: number } = {}) {
const docker = new FakeDocker(state.dir);
let clock = 1_800_000_000_000;
docker.now = () => clock;
- for (const [ref, version] of [[A, "v0.1.130"], [B, "v0.1.131"], [C, "v0.1.132"], [D, "v0.1.144"]] as const) docker.publish(ref, version);
+ for (const [ref, version] of [[A, "v0.1.130"], [B, "v0.1.131"], [C, "v0.1.132"], [D, "v0.1.145"]] as const) docker.publish(ref, version);
const healthy = new Set<string>([A, B, C, D]);
/** What each image's bot box reports; every check passes unless a test says otherwise. */
const boxes = new Map<string, { box: string; checks: string | null; failed: string[] }>();
@@ -190,8 +190,8 @@ describe("the home on an own server", () => {
expect(old.HostConfig.Mounts).toEqual([{ Type: "volume", Source: "mausbot-data", Target: "/data" }]);
expect(old.Env).toContain(`OMB_CLOUD_BOOTSTRAP_SECRET=${SECRET}`);
expect(launcherOf(null)).toEqual({ secretsFile: false, dropsCapabilities: false });
- expect(launcherOf([0, 1, 143])).toEqual({ secretsFile: false, dropsCapabilities: false });
- expect(launcherOf([0, 1, 144])).toEqual({ secretsFile: true, dropsCapabilities: true });
+ expect(launcherOf([0, 1, 144])).toEqual({ secretsFile: false, dropsCapabilities: false });
+ expect(launcherOf([0, 1, 145])).toEqual({ secretsFile: true, dropsCapabilities: true });
expect(launcherOf([0, 2, 0])).toEqual({ secretsFile: true, dropsCapabilities: true });
});