replicas-engine 0.1.630 → 0.1.631

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/dist/src/index.js +12 -5
  2. package/package.json +1 -1
package/dist/src/index.js CHANGED
@@ -844,10 +844,17 @@ var EGRESS_TUNNEL_SERVICE = "replicas-egress.service";
844
844
  var EGRESS_TUNNEL_INTERFACE = "rpxtun0";
845
845
  var EGRESS_DNS_SERVERS = ["1.1.1.1", "8.8.8.8"];
846
846
  var EGRESS_PATHS = {
847
- CONFIG_DIR: "/etc/replicas/egress",
848
- /** Root-only (0600). Holds the customer's proxy password never baked into the image. */
849
- CONFIG_FILE: "/etc/replicas/egress/config.json",
850
- RESOLV_BACKUP: "/etc/replicas/egress/resolv.conf.orig",
847
+ /**
848
+ * Under /run, which is tmpfs. The key therefore never touches disk and cannot
849
+ * be carried into a filesystem snapshot or a paused sandbox's disk image. It
850
+ * does not survive a reboot either, which is correct: the monolith rewrites
851
+ * it on every resume, so a revoked credential cannot come back with the
852
+ * workspace.
853
+ */
854
+ CONFIG_DIR: "/run/replicas-egress",
855
+ CONFIG_FILE: "/run/replicas-egress/config.json",
856
+ /** Persistent: this records the workspace's original resolver so the tunnel can put it back, and must outlive a reboot. */
857
+ RESOLV_BACKUP: "/var/lib/replicas-egress-resolv.conf.orig",
851
858
  UNIT_FILE: `/etc/systemd/system/${EGRESS_TUNNEL_SERVICE}`,
852
859
  UP_SCRIPT: "/usr/local/lib/replicas-egress-up",
853
860
  DOWN_SCRIPT: "/usr/local/lib/replicas-egress-down"
@@ -11066,7 +11073,7 @@ var DEFAULT_CODEX_ARGS = [
11066
11073
  var MIN_CODEX_CLI_VERSION = "0.144.6";
11067
11074
  var CODEX_UPGRADE_TIMEOUT_MS = 12e4;
11068
11075
  var codexCliVersionEnsured = null;
11069
- var ENGINE_PACKAGE_VERSION = "0.1.630";
11076
+ var ENGINE_PACKAGE_VERSION = "0.1.631";
11070
11077
  var INITIALIZE_METHOD = "initialize";
11071
11078
  var INITIALIZED_NOTIFICATION = "initialized";
11072
11079
  var ACCOUNT_LOGIN_START_METHOD = "account/login/start";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "replicas-engine",
3
- "version": "0.1.630",
3
+ "version": "0.1.631",
4
4
  "description": "Lightweight API server for Replicas workspaces",
5
5
  "type": "module",
6
6
  "main": "dist/src/index.js",