From: Tom Hughes Date: Mon, 25 Oct 2021 19:26:42 +0000 (+0100) Subject: Use an equality match for TOTP validation X-Git-Url: https://git.openstreetmap.org./chef.git/commitdiff_plain/a19f9c4c8ce5cbc8b5b73d2d33de98bae686176b Use an equality match for TOTP validation --- diff --git a/cookbooks/overpass/templates/default/apache.erb b/cookbooks/overpass/templates/default/apache.erb index fea5133fe..47e136381 100644 --- a/cookbooks/overpass/templates/default/apache.erb +++ b/cookbooks/overpass/templates/default/apache.erb @@ -30,7 +30,7 @@ DocumentRoot <%= @directory %> RewriteMap totp prg:/srv/query.openstreetmap.org/apache/totp-filter - RewriteCond "${totp:%{HTTP_COOKIE}}" "0" + RewriteCond ${totp:%{HTTP_COOKIE}} =0 RewriteRule ^.*$ - [F,L] <% if node[:overpass][:restricted_api] -%>