authoravatarclover caruso<git@paperclover.net>2026-10-17 13:54:18-07:00
committeravatarclover caruso<git@paperclover.net>2026-10-21 02:52:29-07:00
logca3474dac5b86aeb1a15454d8c839235c9d53849
treec5b22e5a85326228a22619626d46b40d82fd53dc
parent37e0df5408fde20231e6a694bacc5f458946535e
signature Signed by SSH key SHA256:52mNGHRsVFBDED9IAX5pe+LRWUefqTbxEReunq21QvU

Park CLIProxyAPI while preserving its source and state

Disable its containers with the existing service switch so normal releases remove the Nomad job and routes while retaining the dataset and Nomad keys. Keep the enabled implementation covered by its existing fixture tests and document resuming it. Verified disabled Pkl output and all 17 native gateway/panel tests. Assisted-by: gpt-6.1-sol

3 files changed, 8 insertions(+), 1 deletions(-)

service/cliproxy/service.pkl+1
...@@ -4,6 +4,7 @@ import "../../config/site.pkl" as site...@@ -4,6 +4,7 @@ import "../../config/site.pkl" as site
4import "../../config/OpenID.pkl" as sso4import "../../config/OpenID.pkl" as sso
55
6name = "CLIProxyAPI"6name = "CLIProxyAPI"
7enabled = false
7tagline = "Codex and Claude API access"8tagline = "Codex and Claude API access"
8access = "infra-admin"9access = "infra-admin"
9stageIsolation = "fresh"10stageIsolation = "fresh"
tools/cliproxy-test.py+1-1
...@@ -37,7 +37,7 @@ API_HOST = "cliproxy-preview-12345678-cliproxy-api.paperclover.net"...@@ -37,7 +37,7 @@ API_HOST = "cliproxy-preview-12345678-cliproxy-api.paperclover.net"
37class ServiceTests(unittest.TestCase):37class ServiceTests(unittest.TestCase):
38 @classmethod38 @classmethod
39 def setUpClass(cls):39 def setUpClass(cls):
40 result = subprocess.run([os.environ.get("PKL", "pkl"), "eval", "-p", "uid=3150", "-p", "serviceId=cliproxy", "-p", "domain=paperclover.net", str(SERVICE / "service.pkl")], check=True, capture_output=True, text=True)40 result = subprocess.run([os.environ.get("PKL", "pkl"), "eval", "-x", "((module) { enabled = true }).output.text", "-p", "uid=3150", "-p", "serviceId=cliproxy", "-p", "domain=paperclover.net", str(SERVICE / "service.pkl")], check=True, capture_output=True, text=True)
41 cls.data = json.loads(result.stdout)41 cls.data = json.loads(result.stdout)
42 cls.data.update(uid=3150, sourceId="cliproxy", inputs={})42 cls.data.update(uid=3150, sourceId="cliproxy", inputs={})
43 cls.data.pop("requirements")43 cls.data.pop("requirements")
tools/cliproxy.md+6
...@@ -1,5 +1,11 @@...@@ -1,5 +1,11 @@
1# CLIProxyAPI1# CLIProxyAPI
22
3The service is parked with `enabled = false`: its job and public routes are
4removed while the source, `/srv/prod/cliproxy`, and Nomad variables remain.
5To resume, set `enabled = true` in `service/cliproxy/service.pkl` and use the
6normal production deployment workflow; existing configuration and accounts are
7retained.
8
3`cliproxy.paperclover.net` is the management panel, protected by Snow's9`cliproxy.paperclover.net` is the management panel, protected by Snow's
4`infra-admin` role. Snow sign-in opens it automatically; nginx supplies the10`infra-admin` role. Snow sign-in opens it automatically; nginx supplies the
5independent management key to its management endpoints on the server.11independent management key to its management endpoints on the server.