replicas-cli 0.2.518 → 0.2.519

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/index.mjs +12 -5
  2. package/package.json +1 -1
package/dist/index.mjs CHANGED
@@ -8249,10 +8249,17 @@ var EGRESS_TUNNEL_SERVICE = "replicas-egress.service";
8249
8249
  var EGRESS_TUNNEL_INTERFACE = "rpxtun0";
8250
8250
  var EGRESS_DNS_SERVERS = ["1.1.1.1", "8.8.8.8"];
8251
8251
  var EGRESS_PATHS = {
8252
- CONFIG_DIR: "/etc/replicas/egress",
8253
- /** Root-only (0600). Holds the customer's proxy password never baked into the image. */
8254
- CONFIG_FILE: "/etc/replicas/egress/config.json",
8255
- RESOLV_BACKUP: "/etc/replicas/egress/resolv.conf.orig",
8252
+ /**
8253
+ * Under /run, which is tmpfs. The key therefore never touches disk and cannot
8254
+ * be carried into a filesystem snapshot or a paused sandbox's disk image. It
8255
+ * does not survive a reboot either, which is correct: the monolith rewrites
8256
+ * it on every resume, so a revoked credential cannot come back with the
8257
+ * workspace.
8258
+ */
8259
+ CONFIG_DIR: "/run/replicas-egress",
8260
+ CONFIG_FILE: "/run/replicas-egress/config.json",
8261
+ /** Persistent: this records the workspace's original resolver so the tunnel can put it back, and must outlive a reboot. */
8262
+ RESOLV_BACKUP: "/var/lib/replicas-egress-resolv.conf.orig",
8256
8263
  UNIT_FILE: `/etc/systemd/system/${EGRESS_TUNNEL_SERVICE}`,
8257
8264
  UP_SCRIPT: "/usr/local/lib/replicas-egress-up",
8258
8265
  DOWN_SCRIPT: "/usr/local/lib/replicas-egress-down"
@@ -9904,7 +9911,7 @@ function formatTurnElapsed(ms) {
9904
9911
  }
9905
9912
 
9906
9913
  // ../shared/src/cli-version.ts
9907
- var CLI_VERSION = "0.2.518";
9914
+ var CLI_VERSION = "0.2.519";
9908
9915
 
9909
9916
  // ../shared/src/version.ts
9910
9917
  function compareVersions(v1, v2) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "replicas-cli",
3
- "version": "0.2.518",
3
+ "version": "0.2.519",
4
4
  "description": "CLI for managing Replicas workspaces - SSH into cloud dev environments with automatic port forwarding",
5
5
  "main": "dist/index.mjs",
6
6
  "bin": {