Skip to content

Commit

Permalink
add IgnorePollers plugin (v2.18.2-9)
Browse files Browse the repository at this point in the history
  • Loading branch information
guimard committed Apr 18, 2024
1 parent 92dce58 commit 85161f6
Show file tree
Hide file tree
Showing 8 changed files with 581 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/docker-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ env:
VERSION: 2.18.2
PGVERSION: 15
DEBIANRELEASE: bookworm
DOCKERREVISION: 8
DOCKERREVISION: 9

on:
push:
Expand Down
2 changes: 2 additions & 0 deletions Changes.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
# Changes

* 2024-04-18: add IgnorePollers plugin (v2.18.2-9)
* 2024-04-17: add package libhttp-browserdetect-perl for Lemonldap::NG::Portal::Plugins::LocationDetect
* 2024-04-08: add `DEFAULT_WEBSITE` and `PROTECTION` env var
* 2024-04-04: add docker revision in version string
* 2024-04-03: fix cache patch
Expand Down
1 change: 1 addition & 0 deletions full/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ RUN echo auth-to-authn-by-jwt-manager.patch && patch -p1 < auth-to-authn-by-jwt-
echo patch anssi.patch && patch -p1 < anssi.patch && \
echo patch oidc-auth-pkce.patch && patch -p1 < oidc-auth-pkce.patch && \
echo patch jitsi.patch && patch -p1 < jitsi.patch && \
echo patch ignorepollers.patch && patch -p1 < ignorepollers.patch && \
rm -f *.patch && \
LLNG_DEFAULTCONFFILE=/etc/lemonldap-ng/lemonldap-ng.ini \
perl -MLemonldap::NG::Manager::Build -e 'Lemonldap::NG::Manager::Build->run( \
Expand Down
225 changes: 225 additions & 0 deletions full/ignorepollers.patch
Original file line number Diff line number Diff line change
@@ -0,0 +1,225 @@
--- a/usr/share/perl5/Lemonldap/NG/Manager/Build/Attributes.pm
+++ b/usr/share/perl5/Lemonldap/NG/Manager/Build/Attributes.pm
@@ -1408,6 +1408,22 @@ sub attributes {
documentation => 'CrowdSec API key',
},

+ # IgnorePollers plugin
+ ignorePollers => {
+ type => 'bool',
+ documentation => 'Enable IgnorePollers plugin',
+ },
+ ignorePollersLimit => {
+ type => 'int',
+ default => 10,
+ documentation => 'IgnorePollers max same request',
+ },
+ ignorePollersDelay => {
+ type => 'int',
+ default => 300,
+ documentation => 'Delay to reconsider pollers',
+ },
+
# History
failedLoginNumber => {
default => 5,
--- a/usr/share/perl5/Lemonldap/NG/Manager/Build/Tree.pm
+++ b/usr/share/perl5/Lemonldap/NG/Manager/Build/Tree.pm
@@ -947,6 +947,15 @@ sub tree {
'initializePasswordResetSecret',
],
},
+ {
+ title => 'ignorePollersLabel',
+ help => 'ignorepollers.html',
+ form => 'simpleInputContainer',
+ nodes => [
+ 'ignorePollers', 'ignorePollersLimit',
+ 'ignorePollersDelay',
+ ],
+ },
{
title => 'customPluginsNode',
help => 'plugincustom.html',
--- a/usr/share/lemonldap-ng/manager/htdocs/static/languages/ar.json
+++ b/usr/share/lemonldap-ng/manager/htdocs/static/languages/ar.json
@@ -427,6 +427,10 @@
"httpOnly":"الحماية بواسطة جافا سكريبت",
"https":"إتش تي تي بي س",
"ignore":"Ignore",
+"ignorePollers":"Activation",
+"ignorePollersDelay":"Delay",
+"ignorePollersLabel":"Ignore pollers",
+"ignorePollersLimit":"Max requests",
"impersonation":"Impersonation",
"impersonationHiddenAttributes":"السمات المخفية",
"impersonationIdRule":"Identities use rule",
--- a/usr/share/lemonldap-ng/manager/htdocs/static/languages/en.json
+++ b/usr/share/lemonldap-ng/manager/htdocs/static/languages/en.json
@@ -427,6 +427,10 @@
"httpOnly":"Javascript protection",
"https":"HTTPS",
"ignore":"Ignore",
+"ignorePollers":"Activation",
+"ignorePollersDelay":"Delay",
+"ignorePollersLabel":"Ignore pollers",
+"ignorePollersLimit":"Max requests",
"impersonation":"Impersonation",
"impersonationHiddenAttributes":"Hidden attributes",
"impersonationIdRule":"Identities use rule",
--- a/usr/share/lemonldap-ng/manager/htdocs/static/languages/es.json
+++ b/usr/share/lemonldap-ng/manager/htdocs/static/languages/es.json
@@ -427,6 +427,10 @@
"httpOnly":"Protección javascript",
"https":"HTTPS",
"ignore":"Ignore",
+"ignorePollers":"Activation",
+"ignorePollersDelay":"Delay",
+"ignorePollersLabel":"Ignore pollers",
+"ignorePollersLimit":"Max requests",
"impersonation":"Suplantación",
"impersonationHiddenAttributes":"Atributos ocultos",
"impersonationIdRule":"Regla de uso de identidades",
--- a/usr/share/lemonldap-ng/manager/htdocs/static/languages/fr.json
+++ b/usr/share/lemonldap-ng/manager/htdocs/static/languages/fr.json
@@ -427,6 +427,10 @@
"httpOnly":"Protection contre javascript",
"https":"HTTPS",
"ignore":"Ignorer",
+"ignorePollers":"Activation",
+"ignorePollersDelay":"Délai",
+"ignorePollersLabel":"Ignorer les testeurs",
+"ignorePollersLimit":"Nombre maximal de requêtes",
"impersonation":"Simulation d'identité",
"impersonationHiddenAttributes":"Attributs masqués",
"impersonationIdRule":"Règle d'utilisation des identités",
--- a/usr/share/lemonldap-ng/manager/htdocs/static/languages/he.json
+++ b/usr/share/lemonldap-ng/manager/htdocs/static/languages/he.json
@@ -427,6 +427,10 @@
"httpOnly":"הגנת Javascript",
"https":"HTTPS",
"ignore":"Ignore",
+"ignorePollers":"Activation",
+"ignorePollersDelay":"Delay",
+"ignorePollersLabel":"Ignore pollers",
+"ignorePollersLimit":"Max requests",
"impersonation":"התחזות",
"impersonationHiddenAttributes":"מאפיינים נסתרים",
"impersonationIdRule":"זהויות משתמשות בכלל",
--- a/usr/share/lemonldap-ng/manager/htdocs/static/languages/it.json
+++ b/usr/share/lemonldap-ng/manager/htdocs/static/languages/it.json
@@ -427,6 +427,10 @@
"httpOnly":"Protezione Javascript",
"https":"HTTPS",
"ignore":"Ignore",
+"ignorePollers":"Activation",
+"ignorePollersDelay":"Delay",
+"ignorePollersLabel":"Ignore pollers",
+"ignorePollersLimit":"Max requests",
"impersonation":"Imitazione",
"impersonationHiddenAttributes":"Attributi nascosti",
"impersonationIdRule":"Le identità usano la regola",
--- a/usr/share/lemonldap-ng/manager/htdocs/static/languages/pl.json
+++ b/usr/share/lemonldap-ng/manager/htdocs/static/languages/pl.json
@@ -427,6 +427,10 @@
"httpOnly":"Ochrona JavaScript",
"https":"HTTPS",
"ignore":"Ignorować",
+"ignorePollers":"Activation",
+"ignorePollersDelay":"Delay",
+"ignorePollersLabel":"Ignore pollers",
+"ignorePollersLimit":"Max requests",
"impersonation":"Personifikacja",
"impersonationHiddenAttributes":"Ukryte atrybuty",
"impersonationIdRule":"Reguła korzystania z tożsamości",
--- a/usr/share/lemonldap-ng/manager/htdocs/static/languages/pt.json
+++ b/usr/share/lemonldap-ng/manager/htdocs/static/languages/pt.json
@@ -427,6 +427,10 @@
"httpOnly":"Proteção Javascript",
"https":"HTTPS",
"ignore":"Ignorar",
+"ignorePollers":"Activation",
+"ignorePollersDelay":"Delay",
+"ignorePollersLabel":"Ignore pollers",
+"ignorePollersLimit":"Max requests",
"impersonation":"Personificação",
"impersonationHiddenAttributes":"Atributos escondidos",
"impersonationIdRule":"Regra de uso de identidades",
--- a/usr/share/lemonldap-ng/manager/htdocs/static/languages/pt_BR.json
+++ b/usr/share/lemonldap-ng/manager/htdocs/static/languages/pt_BR.json
@@ -427,6 +427,10 @@
"httpOnly":"Proteção Javascript",
"https":"HTTPS",
"ignore":"Ignorar",
+"ignorePollers":"Activation",
+"ignorePollersDelay":"Delay",
+"ignorePollersLabel":"Ignore pollers",
+"ignorePollersLimit":"Max requests",
"impersonation":"Personificação",
"impersonationHiddenAttributes":"Atributos escondidos",
"impersonationIdRule":"Regra de uso de identidades",
--- a/usr/share/lemonldap-ng/manager/htdocs/static/languages/ru.json
+++ b/usr/share/lemonldap-ng/manager/htdocs/static/languages/ru.json
@@ -427,6 +427,10 @@
"httpOnly":"Защита Javascript",
"https":"HTTPS",
"ignore":"Игнорировать",
+"ignorePollers":"Activation",
+"ignorePollersDelay":"Delay",
+"ignorePollersLabel":"Ignore pollers",
+"ignorePollersLimit":"Max requests",
"impersonation":"Исполнение роли",
"impersonationHiddenAttributes":"Скрытые атрибуты",
"impersonationIdRule":"Правило использования идентификаторов",
--- a/usr/share/lemonldap-ng/manager/htdocs/static/languages/tr.json
+++ b/usr/share/lemonldap-ng/manager/htdocs/static/languages/tr.json
@@ -427,6 +427,10 @@
"httpOnly":"Javascript koruması",
"https":"HTTPS",
"ignore":"Görmezden gel",
+"ignorePollers":"Activation",
+"ignorePollersDelay":"Delay",
+"ignorePollersLabel":"Ignore pollers",
+"ignorePollersLimit":"Max requests",
"impersonation":"Başka bir kullanıcı gibi davran",
"impersonationHiddenAttributes":"Gizli nitelikler",
"impersonationIdRule":"Kimlik kullanım kuralı",
--- a/usr/share/lemonldap-ng/manager/htdocs/static/languages/vi.json
+++ b/usr/share/lemonldap-ng/manager/htdocs/static/languages/vi.json
@@ -427,6 +427,10 @@
"httpOnly":"Bảo vệ Javascript",
"https":"HTTPS",
"ignore":"Phớt lờ",
+"ignorePollers":"Activation",
+"ignorePollersDelay":"Delay",
+"ignorePollersLabel":"Ignore pollers",
+"ignorePollersLimit":"Max requests",
"impersonation":"mạo danh",
"impersonationHiddenAttributes":"Thuộc tính ẩn",
"impersonationIdRule":"Quy tắc sử dụng danh tính",
--- a/usr/share/lemonldap-ng/manager/htdocs/static/languages/zh.json
+++ b/usr/share/lemonldap-ng/manager/htdocs/static/languages/zh.json
@@ -427,6 +427,10 @@
"httpOnly":"Javascript 保護",
"https":"HTTPS",
"ignore":"Ignore",
+"ignorePollers":"Activation",
+"ignorePollersDelay":"Delay",
+"ignorePollersLabel":"Ignore pollers",
+"ignorePollersLimit":"Max requests",
"impersonation":"模擬",
"impersonationHiddenAttributes":"隱藏屬性",
"impersonationIdRule":"身份使用規則",
--- a/usr/share/lemonldap-ng/manager/htdocs/static/languages/zh_TW.json
+++ b/usr/share/lemonldap-ng/manager/htdocs/static/languages/zh_TW.json
@@ -427,6 +427,10 @@
"httpOnly":"Javascript 保護",
"https":"HTTPS",
"ignore":"Ignore",
+"ignorePollers":"Activation",
+"ignorePollersDelay":"Delay",
+"ignorePollersLabel":"Ignore pollers",
+"ignorePollersLimit":"Max requests",
"impersonation":"模擬",
"impersonationHiddenAttributes":"隱藏屬性",
"impersonationIdRule":"身份使用規則",
1 change: 1 addition & 0 deletions manager/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ RUN echo auth-to-authn-by-jwt-manager.patch && patch -p1 < auth-to-authn-by-jwt-
echo patch anssi.patch && patch -p1 < anssi.patch && \
echo patch oidc-auth-pkce.patch && patch -p1 < oidc-auth-pkce.patch && \
echo patch jitsi.patch && patch -p1 < jitsi.patch && \
echo patch ignorepollers.patch && patch -p1 < ignorepollers.patch && \
rm -f *.patch && \
LLNG_DEFAULTCONFFILE=/etc/lemonldap-ng/lemonldap-ng.ini \
perl -MLemonldap::NG::Manager::Build -e 'Lemonldap::NG::Manager::Build->run( \
Expand Down
Loading

0 comments on commit 85161f6

Please sign in to comment.