Commit Graph
97 Commits
Author SHA1 Message Date
Florian Schade 11ba46eb88 remove accounts cache from basic auth middleware
move cache to ocis-pkg
add password validation cache to accounts service
2020-11-26 13:52:24 +01:00
A.Unger 951a441f65 cleanup old comments 2020-11-11 15:52:13 +01:00
A.Unger 83d9b0c97d Merge branch 'master' into ocis-1018 2020-11-11 15:38:46 +01:00
A.Unger 76c633e650 wip 2020-11-11 11:50:53 +01:00
David ChristofasandPhil Davis 14063508bb make hash difficulty configurable 2020-11-11 10:26:33 +05:45
David ChristofasandPhil Davis 7115b6f661 change hashing algorithm from SHA-512 to bcrypt
Even though SHA-512 is currently considered a secure algorithm it is not the best choice for password hashing. As this change introduces a breaking change it is beast to introduce it as early as possible to prevent us from having to implement a migration strategy

Signed-off-by: David Christofas <dchristofas@owncloud.com>
2020-11-11 10:26:33 +05:45
Jörn Friedrich Dreyer 0c6e8881c3 fix 820 - race condition
Signed-off-by: Jörn Friedrich Dreyer <jfd@butonic.de>
2020-11-10 15:07:27 +01:00
Jörn Friedrich Dreyer e2b5d64618 fix recursive json marshaling
Signed-off-by: Jörn Friedrich Dreyer <jfd@butonic.de>
2020-11-05 13:06:05 +01:00
Jörn Friedrich Dreyer aac932b6e0 fix tons of ocs tests
Signed-off-by: Jörn Friedrich Dreyer <jfd@butonic.de>
2020-11-05 13:06:05 +01:00
Jörn Friedrich Dreyer 8157ac241e put back the role hole
Signed-off-by: Jörn Friedrich Dreyer <jfd@butonic.de>
2020-11-05 13:06:05 +01:00
Benedikt KulmannandJörn Friedrich Dreyer c954bcb49c Apply admin role to reva and konnectd users 2020-11-05 13:06:05 +01:00
Benedikt KulmannandJörn Friedrich Dreyer 59be0d02c6 Use roleIDs instead of permissionIDs in tests 2020-11-05 13:06:05 +01:00
Jörn Friedrich Dreyer 494f9aca88 enforce permissions
Signed-off-by: Jörn Friedrich Dreyer <jfd@butonic.de>
2020-11-05 13:06:05 +01:00
Jörn Friedrich Dreyer abce279355 allow self updating
Signed-off-by: Jörn Friedrich Dreyer <jfd@butonic.de>
2020-11-05 13:06:05 +01:00
Jörn Friedrich Dreyer cac8f2ef04 distinguish badrequest and conflict / already exists errors
Signed-off-by: Jörn Friedrich Dreyer <jfd@butonic.de>
2020-11-05 13:06:05 +01:00
Jörn Friedrich Dreyer 8e39d8b873 actually check permissions to fix tests
Signed-off-by: Jörn Friedrich Dreyer <jfd@butonic.de>
2020-11-05 13:06:05 +01:00
Benedikt KulmannandJörn Friedrich Dreyer 0574fbd738 Introduce admin:admin. webUI tests are hardcoded to that. 2020-11-05 13:06:05 +01:00
A.Unger 81b5615b6b the address of a variable cannot be nil... 2020-11-03 15:57:54 +01:00
A.Unger 1168bdbb5d add recover branch 2020-11-03 15:33:41 +01:00
A.Unger 11dee33e3c update github.com/mennanov/fieldmask-utils@v0.3.3
slim down cofig
2020-11-03 15:33:27 +01:00
Alex Unger 6761f70959 try non unique? 2020-10-29 16:09:20 +01:00
Alex Unger 636caea217 add index on account.Id due to a rogue query 2020-10-29 15:24:26 +01:00
A.Unger c72e212c91 first implementation of our own query tree and tree resolution
added godata dep

use correct godata dependency, enhance tests

refactor around indexer search tree

tests reflecting currently used queries

fix static checker

fix linter

replace old regexp with a calll to indexer.Query

fix linter

remove offenses
2020-10-28 16:02:44 +01:00
Benedikt Kulmann fe0e4303a0 Use LoadAccounts in accounts handler 2020-10-24 06:37:29 +02:00
A.Unger 142f094f43 Merge branch 'master' into rebuild-index 2020-10-23 22:58:35 +02:00
Jörn Friedrich Dreyer 031a1b8012 Fix id or username query handling
Signed-off-by: Jörn Friedrich Dreyer <jfd@butonic.de>
2020-10-23 16:40:52 +02:00
Benedikt Kulmann be6c429535 Add more details to errors 2020-10-23 16:34:51 +02:00
Benedikt Kulmann bf5a960714 Reformat responses 2020-10-23 16:30:23 +02:00
Benedikt Kulmann 16a74c8a7e Docblocks and refactoring 2020-10-23 16:15:52 +02:00
Benedikt Kulmann 6eaa04ee9e Rebuild groups index 2020-10-23 16:09:00 +02:00
Benedikt Kulmann 8ac50f9839 Fix loading all accounts 2020-10-23 16:03:03 +02:00
Benedikt Kulmann 03a0c3d5e5 Rebuild index for accounts 2020-10-23 14:45:37 +02:00
A.Unger f89c05cf61 raw implementation of index Delete 2020-10-23 14:11:20 +02:00
Benedikt Kulmann a518a51f72 Extract creating indices on the indexer into a function 2020-10-23 12:55:01 +02:00
A.Unger 17b7c82425 basic wiring 2020-10-23 12:23:33 +02:00
A.Unger 50b0e6568b Merge branch 'master' into rebuild-index 2020-10-23 12:19:38 +02:00
Benedikt Kulmann 4206071af6 First part of index reset 2020-10-23 11:54:07 +02:00
Benedikt Kulmann d2e011b744 Disable deprecation warning for proto package 2020-10-23 10:30:21 +02:00
Benedikt Kulmann be9f6e574b Use proto.Merge 2020-10-23 10:19:17 +02:00
A.Unger b232e9f46f make vet happy, use protobuf generated merger 2020-10-22 13:39:54 +02:00
A.Unger cbf13d0972 fix build 2020-10-21 12:16:25 +02:00
A.Unger a08d94e8b3 fix staticcheck + linter 2020-10-21 12:12:23 +02:00
Benedikt Kulmann dee9959e69 Make indexes configurable for being case insensitive 2020-10-19 17:53:53 +02:00
Benedikt Kulmann cb5a78f0dd Allow email on auth queries 2020-10-19 12:29:10 +02:00
A.Unger d902f50b42 fix vet 2020-10-19 11:36:19 +02:00
A.Unger b9695c01c1 fix static check 2020-10-19 11:28:47 +02:00
A.Unger febd6fa65b fix query order from more explicit to less 2020-10-19 11:25:22 +02:00
Benedikt Kulmann cb7e98ecbc Add another account search regex 2020-10-19 10:48:45 +02:00
Benedikt Kulmann c340816953 Revert "WIP regexes for account search"
This reverts commit ad33ee7716.
2020-10-19 10:35:05 +02:00
Benedikt Kulmann ad33ee7716 WIP regexes for account search 2020-10-19 09:42:47 +02:00