Add INTERNAL_API_KEY authentication for error_log_api; update all services to send key

This commit is contained in:
Sven laptop
2026-09-23 20:09:38 +02:00
parent b36975b680
commit 2707bff6fd
6 changed files with 77 additions and 5 deletions
+4 -1
View File
@@ -39,7 +39,10 @@ async function reportError({ partofservice, error }) {
try {
await fetch(ERROR_LOG_API_URL, {
method: "POST",
headers: { "Content-Type": "application/json" },
headers: {
"Content-Type": "application/json",
"x-internal-api-key": process.env.INTERNAL_API_KEY || "",
},
body: JSON.stringify({
service: "auth_api",
partofservice,