Commit Graph

404 Commits

Author SHA1 Message Date
Ignacio Gómez e4d655557e
Fix README custom plugin returns, fix prefix/registered order for auth check, don return an error on enabled but unregistered superuser on valid prefix. 2021-03-09 23:13:06 -03:00
Ignacio Gómez 5cc687351e
Add backends tests and fix a couple of issues in Redis. 2021-03-09 23:13:03 -03:00
Ignacio Gómez ca22c6f9fa
Refactor backends to take all the init and checking logic out of the main package, add options to enable registering specific checks per backend. 2021-03-09 23:11:57 -03:00
Pierre Fersing 82ca3fc6a1
Merge pull request #123 from PierreF/cache-jitter
Cache jitter
2021-03-07 20:42:58 +01:00
Pierre Fersing a3a27a1a45 Kept cache jitter disabled by default 2021-03-07 19:50:13 +01:00
Pierre Fersing 541c3f9ffa
Use ACL cache jitter for ACL check
Co-authored-by: Ignacio Gómez <iegomez@uc.cl>
2021-03-07 11:16:40 +01:00
Pierre Fersing 76e798c72c
Merge pull request #124 from PierreF/retry-http
Retry on backend error
2021-03-07 11:05:31 +01:00
Pierre Fersing 19315cf24a
Merge pull request #121 from PierreF/docker-test
Add Docker image to run tests
2021-03-07 11:04:52 +01:00
Ignacio Gómez 766110745f
Merge pull request #157 from iegomez/fix/add-deny-and-spaces-in-files
[Files]: Add support for deny ACL, and whitespaces in usernames/topics.
2021-03-05 18:17:14 -03:00
Ignacio Gómez e7c2aec65f
Add tests for files fixes... not yet ready, patterns are failing. 2021-03-05 18:15:53 -03:00
Pierre Fersing c619a88e79 Improve retry count description
Co-authored-by: Ignacio Gómez <iegomez@uc.cl>
2021-03-05 10:23:23 +01:00
Pierre Fersing ca6e9d8e21 Add retry capibility 2021-03-05 10:23:23 +01:00
Pierre Fersing 59281887bc Use jitter in cache test 2021-03-05 10:13:02 +01:00
Pierre Fersing fa6d397c5f Add warning for cache jitter larger than expiration 2021-03-05 10:03:21 +01:00
Pierre Fersing 8abfcd2755
Apply suggestions from code review
Co-authored-by: Ignacio Gómez <iegomez@uc.cl>
2021-03-05 09:57:52 +01:00
Ignacio Gómez d2fc01e2f7
Add support for deny ACL and whitespaces in topics.
Support whitespaces in Files username
2021-02-26 20:33:18 -03:00
Pierre Fersing c0667a4c6e
Merge pull request #120 from PierreF/backend-error
Improve handling of backend failure
2021-02-17 16:37:45 +01:00
Pierre Fersing 04ca042252
Fix typo
Co-authored-by: Ignacio Gómez <iegomez@uc.cl>
2021-02-13 16:04:43 +01:00
Pierre Fersing 84620d8665 Rename "firstError" in "err" 2021-02-13 15:56:39 +01:00
Pierre Fersing b5c925d119 Allow to get a shell on Docker testing image
This make much easier to re-run test multiple time without avoid to wait
backends to start each time.
2021-02-13 15:07:26 +01:00
Pierre Fersing 90a24b52c6 Fix leaking existence of username from error 2021-02-13 15:00:35 +01:00
Pierre Fersing f1a3fef9ee
Improve log messages
Apply suggestions from code review

Co-authored-by: Ignacio Gómez <iegomez@uc.cl>
2021-02-13 14:04:13 +01:00
Pierre Fersing 9321be9081
Merge pull request #153 from PierreF/file-cpu-hog
Avoid using 100% when using file backend
2021-02-13 13:59:37 +01:00
Pierre Fersing e2f384916c Use switch and cover all plugin possible reply 2021-02-13 13:59:07 +01:00
Pierre Fersing 28db4c0362 Avoid using 100% when using file backend 2021-02-13 13:35:16 +01:00
Pierre Fersing 250485f2bd Merge branch 'master' into backend-error 2021-02-13 12:14:28 +01:00
Ignacio Gómez 46f79fc499
Merge pull request #152 from iegomez/feat/reload-file-on-sighup
Reload static files on SIGHUP.
2021-02-12 13:22:28 -03:00
Ignacio Gómez 4bb8dcc34b
Reload static files on SIGHUP. 2021-02-12 13:20:05 -03:00
Pierre Fersing 4be4a085d8 Merge branch 'master' into backend-error 2021-02-11 16:04:00 +01:00
Ignacio Gómez 2cfa50cd63
Remove outadted comment from readme. 2021-02-11 11:12:24 -03:00
Ignacio Gómez f8108ebbe9
Merge pull request #116 from iegomez/feat/jwt-add-js-interpreter
JWT checkers and JS mode
2021-02-11 11:05:28 -03:00
Ignacio Gómez 7a844596a0
Add javascript backend. 2021-02-11 11:02:53 -03:00
Ignacio Gómez fc44c811d2
Refactor JWT backend, add JS mode, allow pre parsing of token for JS and local mode, allow local mode specific DB options instead of sharing with regular DB backends. 2021-02-11 09:48:54 -03:00
Ignacio Gómez f0eeb85439
Merge pull request #151 from iegomez/fix/add-db-ping-retries
Add connect_tries option for DB backends.
2021-02-11 09:38:29 -03:00
Ignacio Gómez 1efdaab4c4
Return last ping error. 2021-02-11 09:35:28 -03:00
Pierre Fersing 7b18c44ff1 In Docker testing image, start all services first
This avoid trying to access service while it still starting. This
happened with Redis cluster.
2021-02-10 20:02:26 +01:00
Pierre Fersing 10dc489833 Ensure apt-get update is run before apt-get install
If an old image is usage, not running apt-get update may cause 404 error
when trying to install packages.
This is true even if there is apt-get update in previous RUN
instruction, because the way Docker cache thing, previous RUN of apt-get
update may use cached version (which could be weeks old).
2021-02-10 20:00:41 +01:00
Ignacio Gómez 2e0c63b383
Add connect_tries option for DB backends. 2021-02-10 13:14:26 -03:00
Ignacio Gómez 3acfc21ae4
Fix typo in argon2id constant. 2021-01-27 21:47:29 -03:00
Ignacio Gómez c664131a56
Merge pull request #145 from calpit/master
Fixed go architecture for aarch64
2021-01-27 21:39:28 -03:00
calpit 982b786201 Fixed go architecture for arm64 2021-01-23 16:49:50 +01:00
Ignacio Gómez e116ab6796
Merge pull request #141 from manuelmaurer/master
Fix include order for mosquitto 2.x
2021-01-13 12:00:22 -03:00
Manuel Maurer bbfd75559f Fix include order for mosquitto 2.x 2021-01-12 20:34:00 +01:00
Ignacio Gómez 30a62283b0
Merge pull request #137 from timotto/dynamic-arch
Download go in matching architecture
2020-12-23 13:12:44 -03:00
Tim Otto afb982cf24 Download go in matching architecture 2020-12-23 07:21:01 +01:00
Ignacio Gómez 6764dfb5bd
Merge pull request #122 from PierreF/acl-cache
Use ACL expiration for ACL entry
2020-12-17 22:16:16 -03:00
Ignacio Gómez 149bd8a57c
Add current state to readme 2020-12-04 21:17:24 -03:00
Ignacio Gómez 2799395701
Fix postgres sslmode require typo. 2020-12-01 23:20:44 -03:00
Ignacio Gómez 4350a3be1a
Merge pull request #130 from iegomez/fix/update-readme-and-makefile
Fix conf instruction and Makefile
2020-11-26 22:54:29 -03:00
Ignacio Gómez 0f04ed1835
Fix readme conf instructions, group building options to simply run make in Linux and MacOS. 2020-11-26 22:52:19 -03:00