Commit Graph

237 Commits

Author SHA1 Message Date
Willy Kloucek 2efbb13e66 change secrets on deploy 2021-02-10 14:20:38 +01:00
Benedikt Kulmann 8cfbbf77b3 Update JS dependencies 2021-01-29 22:02:04 +05:45
Ilja Neumann 03cadf304c Rename konnectd to IDP 2021-01-29 12:31:16 +01:00
Pascal Wengerter d7b1ecb3dc Change (ocis,OCIS) to oCIS, unify GitHub branding 2021-01-28 00:32:47 +00: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
Benedikt Kulmann 17a1d29d6a Fix server url for js client in accounts and settings 2021-01-13 09:23:49 +01:00
Benedikt Kulmann e18d286e8a Fix server url usage in settings and accounts 2021-01-13 09:23:48 +01:00
Benedikt Kulmann 118f1a24ad Update js deps 2020-12-15 00:23:12 +01:00
Jörn Friedrich Dreyer 8a33993d76 Make all paths configurable and default to
Signed-off-by: Jörn Friedrich Dreyer <jfd@butonic.de>
2020-12-14 07:51:17 +00:00
Alex Unger 0dfdcd7fb3 Merge pull request #1066 from owncloud/runtime-cleanup 2020-12-11 14:56:38 +01:00
A.Unger 7bba6bcb6a increase log level for missing config on default location to debug 2020-12-11 14:16:51 +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
Benedikt Kulmann 40449ac875 Regenerate assets 2020-11-20 11:13:55 +01:00
David Christofas 2f69265a66 add permission check to role management 2020-11-18 16:30:51 +01:00
Benedikt Kulmann 9c6dac8328 Add caching for static web assets 2020-11-16 23:22:56 +01:00
Benedikt Kulmann aaf9029a3e Rename "Cache" middleware to "NoCache" 2020-11-16 22:13:26 +01:00
A.Unger 641fd2703a make version command registry aware 2020-11-12 11:53:37 +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
A.Unger d6e25798f7 Merge branch 'master' into fix-672 2020-11-10 15:49:24 +01:00
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
A.Unger bf2fa91690 do not override config, use shallow copy instead 2020-11-06 08:25:31 +05:45
Jörn Friedrich Dreyer c124102df2 Merge pull request #627 from butonic/add-basic-auth-option
add enable basic auth option and check permissions
2020-11-05 16:36:16 +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 9adbc3b5c7 fix tests, one more account present
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 157e460945 normalize log messages to use lowercase 2020-11-04 16:00:09 +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