Commit Graph

111 Commits

Author SHA1 Message Date
A.Unger a361c12e2a defensive code around accounts init 2021-02-23 12:45:21 +01:00
A.Unger f280e98897 no race condition 2021-02-23 11:16:55 +01:00
A.Unger 2004942a3a shift role initialization from accounts to settings 2021-02-22 12:19:50 +01:00
A.Unger 7e505fbd9f remove any micro v2 occurences from the project 2021-02-18 08:01:53 +00:00
Willy Kloucek 2efbb13e66 change secrets on deploy 2021-02-10 14:20:38 +01:00
Ilja Neumann 03cadf304c Rename konnectd to IDP 2021-01-29 12:31:16 +01:00
Florian Schade af870e005e add more tests and benchmark for cache
refactor cache to use atomic uint
2021-01-19 23:23:41 +01:00
Florian Schade f13530425a move cache to sync package
rollback indexer map
use sync.pool for cache entries
add tests for cache
remove main locks from nrwmutex and use sync.map and sync.pool instead
bump dockerfile go version
2021-01-19 23:23:41 +01:00
Florian Schade a02fb890f7 remove locking from accounts service
add a cached named rwlock pkg
use sync.map in the cache pkg
use named rwlock in indexer pkg
use sync.map in indexer pkg
remove husky
2021-01-19 23:23:41 +01:00
Willy Kloucek 84e0d70323 get rid of unused AccountsDataPath 2020-12-11 08:33:02 +01:00
David Christofas 0c4d46ee2f implement tracing in the account service 2020-12-04 14:28:59 +01:00
Florian Schade e39cd16617 add LastPasswordChangeDateTime to cache key 2020-11-27 16:18:22 +01:00
Florian Schade 2bc7f2175c straight out code because staticcheck error 2020-11-27 16:18:22 +01:00
Florian Schade 2a259dd3b1 add Unset to cache.go
harden accounts cache security
2020-11-27 16:18:22 +01:00
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 Christofas 14063508bb make hash difficulty configurable 2020-11-11 10:26:33 +05:45
David Christofas 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 Kulmann c954bcb49c Apply admin role to reva and konnectd users 2020-11-05 13:06:05 +01:00
Benedikt Kulmann 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 Kulmann 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