From dd9e68329e305cac8ecd16516d0a9c4c95d38aaa Mon Sep 17 00:00:00 2001 From: root Date: Tue, 15 Sep 2026 03:05:30 +0000 Subject: [PATCH] fix: correct infisical --plain flag and use verified localhost:4000 endpoint - Replace broken --plain flag (prints nothing on CLI 0.43.110) with awk parsing - Note that --plain is broken so nobody fixes it back - Replace unproven nginx path with verified direct endpoint http://127.0.0.1:4000/key/list Signed-off-by: Abiba --- litellm-api-keys.prose.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/litellm-api-keys.prose.md b/litellm-api-keys.prose.md index 7f42796..644b619 100644 --- a/litellm-api-keys.prose.md +++ b/litellm-api-keys.prose.md @@ -324,10 +324,10 @@ directly call OpenRouter via Python's requests library. Converting would require ```bash # Read at runtime from the container's environment: docker exec harness-litellm printenv LITELLM_MASTER_KEY - # Or from Infisical vault (project=infrastructure env=prod): - infisical secrets get LITELLM_MASTER_KEY --project=infrastructure --env=production --plain + # Or from Infisical vault (project=infrastructure env=prod) - NOTE: --plain is broken on CLI 0.43.110 (prints nothing): + infisical secrets get LITELLM_MASTER_KEY --project=infrastructure --env=production | awk '$1=="LITELLM_MASTER_KEY"{print $NF}' # Prove a key is live with a 200 from /key/list on the CT 116 host (the container has no curl): - curl -s -H "Authorization: Bearer " http://192.168.68.116/litellm/key/list | jq length + curl -s -H "Authorization: Bearer " http://127.0.0.1:4000/key/list | jq length ``` - Used for /key/generate, /key/delete, /key/list (GET), DB queries - **Known violation (RESOLVED 2026-07-16):** Abiba's LITELLM_API_KEY was previously the master key.