diff --git a/service/cliproxy/service.pkl b/service/cliproxy/service.pkl index eba3cdd94a1d627dc4d7051b4e06585c800c49ae..d5810a58591196e6778c726f1739382cb4c3e54d 100644 --- a/service/cliproxy/service.pkl +++ b/service/cliproxy/service.pkl @@ -4,6 +4,7 @@ import "../../config/site.pkl" as site import "../../config/OpenID.pkl" as sso name = "CLIProxyAPI" +enabled = false tagline = "Codex and Claude API access" access = "infra-admin" stageIsolation = "fresh" diff --git a/tools/cliproxy-test.py b/tools/cliproxy-test.py index e59559fe7a7707206e365aeb0baa8a4f3db20e53..fae29e774da78261a563aaa7c732843b3a87f096 100644 --- a/tools/cliproxy-test.py +++ b/tools/cliproxy-test.py @@ -37,7 +37,7 @@ API_HOST = "cliproxy-preview-12345678-cliproxy-api.paperclover.net" class ServiceTests(unittest.TestCase): @classmethod def setUpClass(cls): - 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) + 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) cls.data = json.loads(result.stdout) cls.data.update(uid=3150, sourceId="cliproxy", inputs={}) cls.data.pop("requirements") diff --git a/tools/cliproxy.md b/tools/cliproxy.md index 755e175a3332c6ded7a17a6666cf48e29d634352..c5b9126e4ac1d4d03dfa36b1464ab3f54d811de4 100644 --- a/tools/cliproxy.md +++ b/tools/cliproxy.md @@ -1,5 +1,11 @@ # CLIProxyAPI +The service is parked with `enabled = false`: its job and public routes are +removed while the source, `/srv/prod/cliproxy`, and Nomad variables remain. +To resume, set `enabled = true` in `service/cliproxy/service.pkl` and use the +normal production deployment workflow; existing configuration and accounts are +retained. + `cliproxy.paperclover.net` is the management panel, protected by Snow's `infra-admin` role. Snow sign-in opens it automatically; nginx supplies the independent management key to its management endpoints on the server.