Infisical is the open-source platform for securing secrets, certificates, access, and AI Agents.
TypeScript acmeagentsai-agentscertificate-managementdevsecopsenvironment-variableskubernetesopen-sourcepampkipostgresprivate-caprivileged-access-managementsecret-managementsecret-managersecretssecrets-managementsecuritysecurity-toolsvault
fix(identity-tls-cert-auth): match trailing-slash login URI in proxy config
Vlad Ligai42e84af5f663
diff --git a/nginx/default.conf b/nginx/default.confindex 540a84fc84..b4d61b570a 100644--- a/nginx/default.conf+++ b/nginx/default.conf@@ -47,8 +47,9 @@ server {}# Identity TLS-cert auth: the client certificate is provided by the TLS-terminating upstream.- # Exact-match location takes priority over the regex /api block below.- location = /api/v1/auth/tls-cert-auth/login {+ # Regex (matched before the /api block below) covers the optional trailing slash, since the+ # backend treats /login and /login/ as the same route.+ location ~ ^/api/v1/auth/tls-cert-auth/login/?$ {proxy_set_header X-Real-IP $remote_addr;proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;diff --git a/nginx/default.dev.conf b/nginx/default.dev.confindex 22ca36ef18..c9cdc51ae1 100644--- a/nginx/default.dev.conf+++ b/nginx/default.dev.conf@@ -53,8 +53,9 @@ server {}# Identity TLS-cert auth: the client certificate is provided by the TLS-terminating proxy.- # Exact-match location takes priority over the regex /api block below.- location = /api/v1/auth/tls-cert-auth/login {+ # Regex (matched before the /api block below) covers the optional trailing slash, since the+ # backend treats /login and /login/ as the same route.+ location ~ ^/api/v1/auth/tls-cert-auth/login/?$ {proxy_set_header X-Real-IP $remote_addr;proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;