From 455003d0e924414db339395e8367166e7820c5da Mon Sep 17 00:00:00 2001 From: Alberto Sartori Date: Mon, 24 Feb 2025 14:16:42 +0100 Subject: just serve: allow clients to access execution endpoint with a different address To properly use `just serve`, both the client and the serve instance must talk to the very same execution endpoint. Typically, both the client and serve can reach out to the execution endpoint via the same IP address. However, it might be possible that the client and a serve instance know the same execution endpoint by means of differnet IP addresses. For example, the client knows the execution endpoint address through an _external_ IP address, while the serve instance, deployed within the same network infrastructure, only knows the _internal_ IP address. This patch adds the subkey `"client address"` -- of the key `"execution endpoint"` -- in the serve configuration file, to specify the alternative pair `address:port` used by the client. --- CHANGELOG.md | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'CHANGELOG.md') diff --git a/CHANGELOG.md b/CHANGELOG.md index dfdeaf3c..e9c2635d 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -23,6 +23,14 @@ A feature release on top of `1.4.0`, backwards compatible. defines how special entries (e.g., symlinks) are to be handled when adding directories to CAS. +- `just serve` accepts a new subkey `"client address"` for the key + `"execution endpoint"` in the configuration file. It informs the + `serve` instance that the client will access the remote-execution + endpoint via the given `"client address"` and not using the one + listed in the subkey `"address"`. This feature allows to position + `just serve` next to the remote-execution endpoint behind some + form of address translation. + ### Fixes - `just-import-git` now correctly inherits pragmas for imported -- cgit v1.2.3