support bypass auth rules on gateway

This commit is contained in:
miloschwartz
2026-08-12 11:18:16 -04:00
parent 379b53bcca
commit 83035753af
-8
View File
@@ -259,13 +259,6 @@ export async function verifyResourceSession(
); );
if (action == "ACCEPT") { if (action == "ACCEPT") {
// Public inference still requires a virtual API key; do not
// bypass that with an allow rule.
if (mode === "inference") {
logger.debug(
"Rule ACCEPT ignored for inference; continuing to virtual API key check"
);
} else {
logger.debug("Resource allowed by rule"); logger.debug("Resource allowed by rule");
logRequestAudit( logRequestAudit(
@@ -280,7 +273,6 @@ export async function verifyResourceSession(
); );
return allowed(res, undefined, dontStripSession); return allowed(res, undefined, dontStripSession);
}
} else if (action == "DROP") { } else if (action == "DROP") {
logger.debug("Resource denied by rule"); logger.debug("Resource denied by rule");