| author | |
| committer | |
| log | ca3474dac5b86aeb1a15454d8c839235c9d53849 |
| tree | c5b22e5a85326228a22619626d46b40d82fd53dc |
| parent | 37e0df5408fde20231e6a694bacc5f458946535e |
| signature | Signed by SSH key SHA256:52mNGHRsVFBDED9IAX5pe+LRWUefqTbxEReunq21QvU |
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-sol3 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 |
| 4 | import "../../config/OpenID.pkl" as sso | 4 | import "../../config/OpenID.pkl" as sso |
| 5 | 5 | ||
| 6 | name = "CLIProxyAPI" | 6 | name = "CLIProxyAPI" |
| 7 | enabled = false | ||
| 7 | tagline = "Codex and Claude API access" | 8 | tagline = "Codex and Claude API access" |
| 8 | access = "infra-admin" | 9 | access = "infra-admin" |
| 9 | stageIsolation = "fresh" | 10 | stageIsolation = "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" |
| 37 | class ServiceTests(unittest.TestCase): | 37 | class ServiceTests(unittest.TestCase): |
| 38 | @classmethod | 38 | @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 | # CLIProxyAPI | 1 | # CLIProxyAPI |
| 2 | 2 | ||
| 3 | The service is parked with `enabled = false`: its job and public routes are | ||
| 4 | removed while the source, `/srv/prod/cliproxy`, and Nomad variables remain. | ||
| 5 | To resume, set `enabled = true` in `service/cliproxy/service.pkl` and use the | ||
| 6 | normal production deployment workflow; existing configuration and accounts are | ||
| 7 | retained. | ||
| 8 | |||
| 3 | `cliproxy.paperclover.net` is the management panel, protected by Snow's | 9 | `cliproxy.paperclover.net` is the management panel, protected by Snow's |
| 4 | `infra-admin` role. Snow sign-in opens it automatically; nginx supplies the | 10 | `infra-admin` role. Snow sign-in opens it automatically; nginx supplies the |
| 5 | independent management key to its management endpoints on the server. | 11 | independent management key to its management endpoints on the server. |