Normalize n8n workflow auth placeholders

This commit is contained in:
Fizzlepoof
2026-05-16 20:11:29 +00:00
parent ff9e94e95b
commit 19f1f8c5e3
24 changed files with 33 additions and 38 deletions

View File

@@ -49,7 +49,7 @@
}, },
{ {
"name": "Authorization", "name": "Authorization",
"value": "Bearer sk-REPLACE_WITH_LITELLM_KEY" "value": "={{'Bearer ' + $env.LITELLM_API_KEY}}"
} }
] ]
}, },

View File

@@ -49,7 +49,7 @@
}, },
{ {
"name": "Authorization", "name": "Authorization",
"value": "Bearer sk-REPLACE_WITH_LITELLM_KEY" "value": "={{'Bearer ' + $env.LITELLM_API_KEY}}"
} }
] ]
}, },

View File

@@ -49,7 +49,7 @@
}, },
{ {
"name": "Authorization", "name": "Authorization",
"value": "Bearer sk-REPLACE_WITH_LITELLM_KEY" "value": "={{'Bearer ' + $env.LITELLM_API_KEY}}"
} }
] ]
}, },

View File

@@ -49,7 +49,7 @@
}, },
{ {
"name": "Authorization", "name": "Authorization",
"value": "Bearer {{ $env.LITELLM_API_KEY }}" "value": "={{'Bearer ' + $env.LITELLM_API_KEY}}"
} }
] ]
}, },

View File

@@ -143,7 +143,7 @@
}, },
{ {
"name": "Authorization", "name": "Authorization",
"value": "Bearer {{ $env.LITELLM_API_KEY }}" "value": "={{'Bearer ' + $env.LITELLM_API_KEY}}"
} }
] ]
}, },

View File

@@ -49,7 +49,7 @@
}, },
{ {
"name": "Authorization", "name": "Authorization",
"value": "Bearer sk-REPLACE_WITH_LITELLM_KEY" "value": "={{'Bearer ' + $env.LITELLM_API_KEY}}"
} }
] ]
}, },

View File

@@ -210,7 +210,7 @@
}, },
{ {
"name": "Authorization", "name": "Authorization",
"value": "Bearer sk-REPLACE_WITH_LITELLM_KEY" "value": "={{'Bearer ' + $env.LITELLM_API_KEY}}"
} }
] ]
}, },

View File

@@ -210,7 +210,7 @@
}, },
{ {
"name": "Authorization", "name": "Authorization",
"value": "Bearer sk-REPLACE_WITH_LITELLM_KEY" "value": "={{'Bearer ' + $env.LITELLM_API_KEY}}"
} }
] ]
}, },

View File

@@ -163,7 +163,7 @@
}, },
{ {
"name": "Authorization", "name": "Authorization",
"value": "Bearer sk-REPLACE_WITH_LITELLM_KEY" "value": "={{'Bearer ' + $env.LITELLM_API_KEY}}"
} }
] ]
}, },
@@ -256,7 +256,7 @@
"parameters": [ "parameters": [
{ {
"name": "Authorization", "name": "Authorization",
"value": "Bearer ${PAPERLESS_API_TOKEN}" "value": "={{'Token ' + $env.PAPERLESS_API_TOKEN}}"
} }
] ]
}, },
@@ -352,7 +352,7 @@
"parameters": [ "parameters": [
{ {
"name": "Authorization", "name": "Authorization",
"value": "Bearer ${PAPERLESS_API_TOKEN}" "value": "={{'Token ' + $env.PAPERLESS_API_TOKEN}}"
} }
] ]
}, },

View File

@@ -144,7 +144,7 @@
}, },
{ {
"name": "Authorization", "name": "Authorization",
"value": "=Bearer {{ $env.LITELLM_API_KEY }}" "value": "={{'Bearer ' + $env.LITELLM_API_KEY}}"
} }
] ]
}, },

View File

@@ -163,7 +163,7 @@
}, },
{ {
"name": "Authorization", "name": "Authorization",
"value": "Bearer sk-REPLACE_WITH_LITELLM_KEY" "value": "={{'Bearer ' + $env.LITELLM_API_KEY}}"
} }
] ]
}, },
@@ -256,7 +256,7 @@
"parameters": [ "parameters": [
{ {
"name": "Authorization", "name": "Authorization",
"value": "Bearer ${PAPERLESS_API_TOKEN}" "value": "={{'Token ' + $env.PAPERLESS_API_TOKEN}}"
} }
] ]
}, },
@@ -352,7 +352,7 @@
"parameters": [ "parameters": [
{ {
"name": "Authorization", "name": "Authorization",
"value": "Bearer ${PAPERLESS_API_TOKEN}" "value": "={{'Token ' + $env.PAPERLESS_API_TOKEN}}"
} }
] ]
}, },

View File

@@ -180,7 +180,7 @@
}, },
{ {
"name": "Authorization", "name": "Authorization",
"value": "Bearer sk-REPLACE_WITH_LITELLM_KEY" "value": "={{'Bearer ' + $env.LITELLM_API_KEY}}"
} }
] ]
}, },

View File

@@ -180,7 +180,7 @@
}, },
{ {
"name": "Authorization", "name": "Authorization",
"value": "Bearer sk-REPLACE_WITH_LITELLM_KEY" "value": "={{'Bearer ' + $env.LITELLM_API_KEY}}"
} }
] ]
}, },

View File

@@ -49,7 +49,7 @@
}, },
{ {
"name": "Authorization", "name": "Authorization",
"value": "Bearer sk-REPLACE_WITH_LITELLM_KEY" "value": "={{'Bearer ' + $env.LITELLM_API_KEY}}"
} }
] ]
}, },

View File

@@ -49,7 +49,7 @@
}, },
{ {
"name": "Authorization", "name": "Authorization",
"value": "Bearer sk-REPLACE_WITH_LITELLM_KEY" "value": "={{'Bearer ' + $env.LITELLM_API_KEY}}"
} }
] ]
}, },

View File

@@ -115,7 +115,7 @@
}, },
{ {
"name": "Authorization", "name": "Authorization",
"value": "Bearer sk-REPLACE_WITH_LITELLM_KEY" "value": "={{'Bearer ' + $env.LITELLM_API_KEY}}"
} }
] ]
}, },
@@ -295,7 +295,7 @@
"parameters": [ "parameters": [
{ {
"name": "Authorization", "name": "Authorization",
"value": "Bearer ${PAPERLESS_API_TOKEN}" "value": "={{'Token ' + $env.PAPERLESS_API_TOKEN}}"
} }
] ]
}, },

View File

@@ -115,7 +115,7 @@
}, },
{ {
"name": "Authorization", "name": "Authorization",
"value": "=Bearer {{ $env.LITELLM_API_KEY }}" "value": "={{'Bearer ' + $env.LITELLM_API_KEY}}"
} }
] ]
}, },

View File

@@ -295,7 +295,7 @@
"parameters": [ "parameters": [
{ {
"name": "Authorization", "name": "Authorization",
"value": "Bearer ${PAPERLESS_API_TOKEN}" "value": "={{'Token ' + $env.PAPERLESS_API_TOKEN}}"
} }
] ]
}, },

View File

@@ -45,7 +45,7 @@
"headerParameters": { "headerParameters": {
"parameters": [ "parameters": [
{ "name": "Content-Type", "value": "application/json" }, { "name": "Content-Type", "value": "application/json" },
{ "name": "Authorization", "value": "=Bearer {{ $env.LITELLM_API_KEY }}" } { "name": "Authorization", "value": "={{'Bearer ' + $env.LITELLM_API_KEY}}" }
] ]
}, },
"sendBody": true, "sendBody": true,

View File

@@ -59,7 +59,7 @@
}, },
{ {
"name": "Authorization", "name": "Authorization",
"value": "=Bearer {{ $env.LITELLM_API_KEY }}" "value": "={{'Bearer ' + $env.LITELLM_API_KEY}}"
} }
] ]
}, },

View File

@@ -37,7 +37,7 @@
"parameters": [ "parameters": [
{ {
"name": "Authorization", "name": "Authorization",
"value": "Bearer ={{ $env.PAPERLESS_API_TOKEN }}" "value": "={{'Token ' + $env.PAPERLESS_API_TOKEN}}"
} }
] ]
}, },

View File

@@ -37,7 +37,7 @@
"parameters": [ "parameters": [
{ {
"name": "Authorization", "name": "Authorization",
"value": "Bearer ={{ $env.PAPERLESS_API_TOKEN }}" "value": "={{'Token ' + $env.PAPERLESS_API_TOKEN}}"
} }
] ]
}, },

View File

@@ -37,7 +37,7 @@
"parameters": [ "parameters": [
{ {
"name": "Authorization", "name": "Authorization",
"value": "Bearer ={{ $env.PAPERLESS_API_TOKEN }}" "value": "={{'Token ' + $env.PAPERLESS_API_TOKEN}}"
} }
] ]
}, },

View File

@@ -31,7 +31,7 @@ _Last updated: 2026-05-13_
**Pre-test checklist:** **Pre-test checklist:**
- [ ] `knowledge_base` collection exists in Qdrant (`GET http://10.5.1.6:6333/collections`) - [ ] `knowledge_base` collection exists in Qdrant (`GET http://10.5.1.6:6333/collections`)
- [ ] `nomic-embed-text` model pulled in Ollama (`ollama list` on PD) - [ ] `nomic-embed-text` model pulled in Ollama (`ollama list` on PD)
- [ ] **Hardcoded LiteLLM key** in `LiteLLM Answer` node — should use `$env.LITELLM_API_KEY` - [x] LiteLLM auth now reads `$env.LITELLM_API_KEY`; hardcoded key removed from repo artifacts
**Test approach:** POST `{"text": "some test content", "source": "test"}` to `/rag/ingest`, then POST `{"query": "test content question"}` to `/rag/query` and verify an answer comes back. **Test approach:** POST `{"text": "some test content", "source": "test"}` to `/rag/ingest`, then POST `{"query": "test content question"}` to `/rag/query` and verify an answer comes back.
@@ -42,8 +42,8 @@ _Last updated: 2026-05-13_
**Pre-test checklist:** **Pre-test checklist:**
- [ ] Paperless webhook configured to POST to `https://n8n.paccoco.com/webhook/paperless/new-document` on document add - [ ] Paperless webhook configured to POST to `https://n8n.paccoco.com/webhook/paperless/new-document` on document add
- [ ] **Hardcoded Paperless token** in `Fetch Document`, `Add Note to Document`, and inline in `Apply Suggested Tags to Paperless` code — should use `$env.PAPERLESS_API_TOKEN` - [x] Paperless auth now reads `$env.PAPERLESS_API_TOKEN`; hardcoded token removed from repo artifacts
- [ ] **Hardcoded LiteLLM key** in `AI Classify & Extract` — should use `$env.LITELLM_API_KEY` - [x] LiteLLM auth now reads `$env.LITELLM_API_KEY`; hardcoded key removed from repo artifacts
- [ ] Gotify credential `ajvRjvj0QldLQYmo` ("Paperless") — already wired ✓ - [ ] Gotify credential `ajvRjvj0QldLQYmo` ("Paperless") — already wired ✓
**Test approach:** Upload a test document to Paperless, then manually POST `{"document_id": <id>}` to the webhook to trigger processing. Check Paperless for note + tags, check Gotify for notification. **Test approach:** Upload a test document to Paperless, then manually POST `{"document_id": <id>}` to the webhook to trigger processing. Check Paperless for note + tags, check Gotify for notification.
@@ -55,7 +55,7 @@ _Last updated: 2026-05-13_
**Pre-test checklist:** **Pre-test checklist:**
- [ ] `knowledge_base` collection exists in Qdrant (same as 02) - [ ] `knowledge_base` collection exists in Qdrant (same as 02)
- [ ] **Hardcoded Paperless token** in `Fetch Document` — should use `$env.PAPERLESS_API_TOKEN` - [x] Paperless auth now reads `$env.PAPERLESS_API_TOKEN`; hardcoded token removed from repo artifacts
- [ ] Gotify credential `SETUP_REQUIRED` ("Paperless RAG") — needs wiring - [ ] Gotify credential `SETUP_REQUIRED` ("Paperless RAG") — needs wiring
**Test approach:** POST `{"document_id": <id>}` to the webhook. Verify chunks appear in Qdrant and Gotify notification fires. **Test approach:** POST `{"document_id": <id>}` to the webhook. Verify chunks appear in Qdrant and Gotify notification fires.
@@ -67,7 +67,7 @@ _Last updated: 2026-05-13_
**Pre-test checklist:** **Pre-test checklist:**
- [ ] `rss_seen_items` table exists in Postgres - [ ] `rss_seen_items` table exists in Postgres
- [ ] **Hardcoded LiteLLM key** in `AI Summarize Feed` node — should use `$env.LITELLM_API_KEY` - [x] LiteLLM auth now reads `$env.LITELLM_API_KEY`; hardcoded key removed from repo artifacts
- [ ] Postgres credential `n9svoXemqSZoNNUB` — already wired ✓ - [ ] Postgres credential `n9svoXemqSZoNNUB` — already wired ✓
- [ ] Gotify credential `ExUx3oqYQyhkqZcp` ("Rss Feed") — already wired ✓ - [ ] Gotify credential `ExUx3oqYQyhkqZcp` ("Rss Feed") — already wired ✓
@@ -79,11 +79,6 @@ _Last updated: 2026-05-13_
| Workflow | Issue | Priority | | Workflow | Issue | Priority |
|----------|-------|----------| |----------|-------|----------|
| 02 | Hardcoded LiteLLM API key | Medium |
| 03 | Hardcoded LiteLLM API key + Paperless token | Medium |
| 05 | Hardcoded Paperless token | Medium |
| 06 | Hardcoded LiteLLM API key | Medium |
| 07 | Hardcoded LiteLLM API key (working but tech debt) | Low |
| 15 | `includeData: false` means error messages show as "Unknown error" | Low | | 15 | `includeData: false` means error messages show as "Unknown error" | Low |
| 09 v1.0 | Still active in n8n alongside v1.1 — should be deactivated | Low | | 09 v1.0 | Still active in n8n alongside v1.1 — should be deactivated | Low |