Commit Graph

404 Commits

Author SHA1 Message Date
Ignacio Gómez 00279e9a01
Merge pull request #128 from grafolean/fix/cache-refresh-typo
Fix cache_refresh typo
2020-11-16 14:56:24 -03:00
Anze 6cb9662854 Fix cache_refresh typo 2020-11-16 18:49:43 +01:00
Pierre Fersing 725202e47e Add a jitter to ACL cache expiration 2020-11-13 18:58:37 +01:00
Pierre Fersing 86d9143c48 Use ACL expiration for ACL entry
The auth expiration was used.
2020-11-13 17:10:10 +01:00
Pierre Fersing dc1edd8963 Improve handling of backend failure
* No longer cache response from backend when the backend fail.
* Reply to Mosquitto using "MOSQ_ERR_UNKNOWN" which will disconnect
  client and avoid silent data loss when the error occure for ACL
  checks.
2020-11-13 17:04:34 +01:00
Pierre Fersing 33bfc226c7 Add Docker image to run tests 2020-11-13 16:33:15 +01:00
Ignacio Gómez 3bc6508dfd
Merge pull request #112 from iegomez/feat/per-check-jwt-skip-expiration
Allow to skip expiration per user or acl check in JWT.
2020-10-30 20:57:52 -03:00
Ignacio Gómez 283a2801e0
Allow to skip expiration per user or acl check in JWT. 2020-10-30 20:56:05 -03:00
Ignacio Gómez 33ab13401b
Merge pull request #109 from iegomez/feat/jwt-skip-expiration
JWT skip expiration.
2020-10-29 20:50:08 -03:00
Ignacio Gómez 0c36103b19
When skip expiration set, check errors is a validation and expiration one. 2020-10-29 20:47:05 -03:00
Ignacio Gómez 1fb8e9ae49
Merge pull request #108 from iegomez/fix/skip-acl-read-when-user-not-present
Skip reading acls for not present users, add test cases.
2020-10-29 19:45:44 -03:00
Ignacio Gómez b6fd9d3d14
Skip reading acls for not present users, add test cases. 2020-10-29 19:44:34 -03:00
Ignacio Gómez bcd2b21a3c Use latest in docker compose. 2020-10-23 21:51:08 -03:00
Ignacio Gómez a97818e724 Bump docker version in compose. 2020-10-23 20:55:36 -03:00
Ignacio Gómez e80c9df392
Merge pull request #103 from iegomez/fix/support-older-plugin-interface
Fix MOSQ_AUTH_PLUGIN_VERSION for 1.4.x and older
2020-10-23 20:44:11 -03:00
Ignacio Gómez 1762e1a5ee Fix indentation. 2020-10-23 20:17:46 -03:00
Ignacio Gómez 4a8e33fcf1 Fix indentation. 2020-10-23 20:17:24 -03:00
Ignacio Gómez 838fd670e4 Check if plugin version is defined to return the right version. 2020-10-23 20:10:19 -03:00
Ignacio Gómez 958d7bcc68
Merge pull request #101 from iegomez/feat/cache-refresh-option
Cache refresh option
2020-10-23 19:17:05 -03:00
Ignacio Gómez 33cadc06d5 Mention cache security issue and fix custom plugin description. 2020-10-23 19:10:35 -03:00
Ignacio Gómez 65287cd288
Define MOSQ_AUTH_PLUGIN_VERSION if not defined to support 1.4.x and older versions. 2020-10-22 20:49:20 -03:00
Ignacio Gómez d5e0f9028d
Merge pull request #102 from iegomez/fix/hasher-opts-keys
Fix opts prefix for hasher.
2020-10-22 20:36:42 -03:00
Ignacio Gómez bb8acfa511
Add opts prefix for hasher, add mysql options table. 2020-10-22 20:35:08 -03:00
Ignacio Gómez 89d2817d2e
Add cache refresh change warning in readme. 2020-10-22 20:07:33 -03:00
Ignacio Gómez 4395cdf7b8
Add cache refresh option, default to true to avoid frequent access attack. 2020-10-22 20:05:15 -03:00
Ignacio Gómez 4b20bb3176
Merge pull request #99 from iegomez/feat/support-new-mosquitto-interface
Return version 4 to support new interface.
2020-10-07 20:08:06 -03:00
Ignacio Gómez 70c0cacf58
Return version 4 to support new interface. 2020-10-07 20:06:58 -03:00
Ignacio Gómez 30e30bbcc4
Merge pull request #97 from AndreiD/master
Fix MySQL sslrootcert
2020-10-07 20:01:46 -03:00
Dan Ξ 606b9557bc
Update mysql.go 2020-10-01 11:16:00 +03:00
Dan Ξ dd90a94c71
should be sslrootcert
since you're setting up mysql_sslrootcert.....
2020-09-30 14:33:03 +03:00
Ignacio Gómez f6cb4b5d71
Mention subscribe in Mongo ACLs. 2020-08-25 19:52:07 -04:00
Ignacio Gómez b2159f6bc2 Fix hashing options docs. 2020-07-24 20:50:08 -04:00
Ignacio Gómez 81b60ac724
Fix pw keylen/shasize use. 2020-07-21 21:40:06 -04:00
Ignacio Gómez 7dd3f5a895
Merge pull request #81 from iegomez/feature/hashing-options
New hash strategies
2020-07-13 23:22:37 -04:00
Ignacio Gómez aa487a9a05
Refactor hashing: add support for bcrypt and argond2id hashers.
Fix cache security issue.
2020-07-13 23:21:26 -04:00
Ignacio Gómez f5a5cec554 Don't require http superuser uri. 2020-07-13 22:35:07 -04:00
Ignacio Gómez 63d59541df
Merge pull request #83 from iegomez/fix/custom-plugin-user-check-clientid
Add missing clientid to custom plugin user check.
2020-07-02 20:44:12 -04:00
Ignacio Gómez 5e3c49612a
Add missing clientid to custom plugin user check. 2020-07-02 20:41:09 -04:00
Ignacio Gómez 52a9a8f840
Merge pull request #80 from iegomez/fix/redis-cluster-move-errors
Add local go-cache and handle redis cluster MOVED errors.
2020-06-27 21:28:41 -04:00
Ignacio Gómez 5986a16fad
Unify make test. 2020-06-27 21:27:48 -04:00
Ignacio Gómez e803483d92
Change expiration to use time.Duration, add Redis cache tests. 2020-06-27 21:23:14 -04:00
Ignacio Gómez 705515630d
Fix cache expiration time, add tests for go-store. 2020-06-27 19:36:49 -04:00
Ignacio Gómez 8dcfd0aeef
Remove dead interfaces and change receiver name. 2020-06-26 21:10:03 -04:00
Ignacio Gómez e72e522927
Move cache to its own package and add support for go-cache. 2020-06-26 21:03:55 -04:00
Ignacio Gómez 1371452e87
Handle redis cluster MOVED errors in cache and redis backend. 2020-06-25 23:46:15 -04:00
Ignacio Gómez e8b112ba11
Merge pull request #78 from LolHens/patch-1
Add link to dockerhub
2020-06-17 17:28:27 -04:00
Pierre Kisters 922f3676da
Add link to dockerhub 2020-06-17 23:25:57 +02:00
Ignacio Gómez 2a26171bd9
Merge pull request #77 from LolHens/feature/dockerfile-pw
copy pw utility to final docker image in /Dockerfile
2020-06-17 17:24:13 -04:00
Pierre Kisters f3d06a2635 Update Dockerfile 2020-06-17 22:50:52 +02:00
Ignacio Gómez fb4cd839ec
Merge pull request #74 from LolHens/feature/mosquitto-update
updated mosquitto
2020-06-16 18:06:16 -04:00