Commit Graph

404 Commits

Author SHA1 Message Date
Ignacio Gómez 2037a9fac9
Merge pull request #73 from LolHens/feature/http-duration-config
added http timeout config parameter
2020-06-16 18:05:58 -04:00
Ignacio Gómez c1f3456296
Update README.md 2020-06-15 14:27:59 -04:00
Pierre Kisters d75c03c0cf fixed http timeout config parameter 2020-06-15 02:53:42 +02:00
Pierre Kisters 796b6332d3 updated mosquitto in Dockerfile 2020-06-15 02:32:38 +02:00
Pierre Kisters 16831dcbc9 updated mosquitto in Dockerfile 2020-06-15 02:11:12 +02:00
Pierre Kisters a1fa66045b added http timeout config parameter 2020-06-15 02:04:19 +02:00
Ignacio Gómez 5b603bffb9
Merge pull request #71 from iegomez/feature/redis_cluster
Add Redis cluster support
2020-05-24 01:47:51 -04:00
Ignacio Gómez c52ca818a9
Mention tests future work. 2020-05-24 01:46:38 -04:00
Ignacio Gómez fdb6c0146d
Remove goconvey from Redis tests. This should lead to a whole rewrite of tests for all backends, as well as building a sound dockerized environment for testing, but that's out of scope for this particular PR. 2020-05-24 01:25:39 -04:00
Ignacio Gómez a8f34d9ddb
Merge branch 'master' of github.com:iegomez/mosquitto-go-auth into feature/redis_cluster 2020-05-23 20:29:20 -04:00
Ignacio Gómez f8bc7e6406
Upgrade Redis version so that single and cluster clients have the same interface. Implement cluster for both Redis backend and cache. 2020-05-23 20:28:47 -04:00
Ignacio Gómez 6d50def855
Merge pull request #70 from iegomez/fix/http_crash
Fix HTTP crashes
2020-05-21 18:04:47 -04:00
Ignacio Gómez 8900189fb5
Check if http client is nil, move deferred body close to after error is checked. 2020-05-21 17:53:35 -04:00
Ignacio Gómez ae59716457
Merge pull request #69 from demestav/patch-1
Minor fix in README.md
2020-05-21 17:39:32 -04:00
Ignacio Gómez 8f7c97a5e6
Fix pw print. 2020-05-21 17:38:35 -04:00
Ignacio Gómez 2361cacf57
Merge pull request #63 from iegomez/feature/disable_superuser_option
Add disable_superuser option.
2020-05-21 17:37:36 -04:00
Demetris Stavrou 55839f193f
Minor fix in README.md
I believe it should be `MOSQ_` instead of `MOSQL_`.
2020-05-21 11:24:09 +03:00
Ignacio Gómez e44be1af4b
Document changes about prefixes for JWT and Files ACLs behaviour when running solo or with other backends. 2020-05-14 23:52:00 -04:00
Ignacio Gómez 02e432df1f
Refactor some exported fields (many more to go) and constants. 2020-05-14 23:34:45 -04:00
Ignacio Gómez 9e3c4a7ee0
Grant/deny access when no ACLs are given for Files is it's the only backend or not. Strip JWT token from the prefix when the token is prefixed, handle it on unprefixed usernames when not. 2020-05-14 19:56:07 -04:00
Ignacio Gómez 01296e73f9
Fix Mongo tests. 2020-05-14 19:21:53 -04:00
Ignacio Gómez 0602d7330c
Merge pull request #45 from coldfire84/pr-mosquitto-auth-plug-compat
PR mosquitto-auth-plug compatible hash
2020-05-14 11:44:40 -04:00
Ignacio Gómez 8d0a644d47
Merge pull request #66 from ivica3730k/master
Update README.md
2020-05-14 11:26:12 -04:00
Ivica Matić d7e0b7b38b
Update README.md 2020-05-14 13:47:34 +01:00
Ignacio Gómez e0cd381fa3
Don't loop through backends if disable superuser is set. 2020-05-13 23:43:20 -04:00
Ignacio Gómez 8ec8a67edb
Remove unnecessary logging. 2020-05-13 23:02:33 -04:00
Ignacio Gómez e3ff0e847e
Document disable superuser options. Allow superuser uri to be empty to disable it in http and jwt backends. Add superuser disabled tests. 2020-05-13 22:44:23 -04:00
Ignacio Gómez 13ebcc7f5d
Add disable_superuser options at the plugin level and as local options for relevant backends (DBs don't need it as they may have empty superuser queries). TODO: tests and docs. 2020-05-13 19:58:00 -04:00
Ignacio Gómez 4256819016
Merge pull request #62 from iegomez/fix-status-codes
Accept any 2XX status code in htpp and jwt backends.
2020-05-13 19:23:39 -04:00
Ignacio Gómez 56cf8250a9
Accept any 2XX status code in htpp and jwt backends. 2020-05-13 19:19:51 -04:00
Ignacio Gómez 457b61dd2b
Remove commented log. 2020-05-04 12:47:11 -04:00
Chris Bradford 9f7bd72596 As per review:
> Use common.Base64, common.UTF8 in switch saltEncoding across
 backends
> Move saltEncoding log output from 'info' to 'debug'
2020-05-03 22:32:48 +01:00
Chris Bradford da4013392c Remove empty err declaration as-per code review feedback 2020-04-29 14:45:59 +01:00
Chris Bradford 1d47c63dca Fix duplicate SaltEncoding definition 2020-04-29 14:43:20 +01:00
Chris Bradford dee695a547 Initial changes associated w/ code review feedback 2020-04-29 13:11:58 +01:00
Chris Bradford 3930cb2474 Add tests for utf-8 salt scenario. This is limited to authentication as ACL testing is completed against RAW salt user. 2020-04-28 21:45:44 +01:00
Chris Bradford 8d2135c4bd Create initial standalone mongo utf-8 salt test file. 2020-04-27 15:29:51 +01:00
Chris Bradford 6f4d57c66a Re-sync upstream 2020-04-26 18:26:11 +01:00
Ignacio Gómez 678ca3ef01
Fix missing err refactoring in go-auth.go 2020-02-28 20:22:25 -03:00
Ignacio Gómez d53b09a41d
Merge pull request #54 from intolerance/docker-local-src
Docker Local Source
2020-02-24 17:41:43 -03:00
intolerance fb2eb9660a Bumped Mosquitto and Go versions 2020-02-24 14:36:47 -06:00
intolerance ce8e340693 fixed headers 2020-02-24 13:31:53 -06:00
intolerance 2050ca87c0 Added basic commands 2020-02-24 13:29:45 -06:00
intolerance 3ed92ebbcd updated readmes and PLUGIN_VERSION 2020-02-24 12:40:27 -06:00
Ignacio Gómez 88f612a7a0
Merge pull request #53 from iegomez/fix/check_hashsplit_len_and_refactoring
Check hash split length and refactoring.
2020-02-22 01:17:39 -03:00
Ignacio Gómez 00e21013c5
Refactor weird error names and log line breaks. Check for hash split length. 2020-02-22 01:16:41 -03:00
Ignacio Gómez ecc46b64c0
Merge pull request #52 from iegomez/feature/pass_clientid_to_acl
Finish getuser clientid support.
2020-02-21 23:29:10 -03:00
Ignacio Gómez 0e39a99963
Finish getuser clientid support. 2020-02-21 23:27:51 -03:00
Chris Bradford 216dd43b49 Add error handling for hashSplit array length < 5 (invalid PBKDF2 hash format)
Add error handling to catch error on determine iterations via strconv.Atoi
2020-01-25 19:25:49 +00:00
Chris Bradford dd6004706d Add error handling for base64 DecodeString operations
Modify pw to use 0 for default key length, which will then cause algorithum default hash size to be used, vs hard-coded default of '32'

Make salt_encoding option plugin specific by adding plugin prefix
2020-01-18 09:22:36 +00:00