Commit Graph

847 Commits

Author SHA1 Message Date
Daniel Swärd
2228d2b82e Merge pull request #5913 from owncloud/excds/feature/add_UserTypeAttribute_to_reva_config
graph: Add UserTypeAttribute to reva config.
2023-03-24 11:17:37 +01:00
kobergj
ce84163983 notify a user when a file was deleted because of policies (#5912)
Signed-off-by: jkoberg <jkoberg@owncloud.com>
2023-03-24 11:14:02 +01:00
Andre Duffeck
0bc471007e Make the number of concurrent goroutines in decomposedfs configurable (#5887)
* Make the number of concurrent goroutines in decomposedfs configurable

* Update services/storage-users/pkg/config/config.go

Co-authored-by: Martin <github@diemattels.at>

* Update services/storage-users/pkg/config/config.go

Co-authored-by: Martin <github@diemattels.at>

---------

Co-authored-by: Jörn Friedrich Dreyer <jfd@butonic.de>
Co-authored-by: Martin <github@diemattels.at>
2023-03-24 10:49:51 +01:00
Daniel Swärd
34e5053d69 graph: Add UserTypeAttribute to reva config. 2023-03-24 09:44:49 +01:00
ownClouders
b81d9266ef [tx] updated from transifex 2023-03-24 00:59:33 +00:00
Michael Barz
dbe9b544ba Merge pull request #5910 from owncloud/change-the-branch-to-master
[full-ci][tests-only]Change web branch to master
2023-03-23 18:58:59 +01:00
jkoberg
0681cec9d1 use accept language header
Signed-off-by: jkoberg <jkoberg@owncloud.com>
2023-03-23 17:15:43 +01:00
Viktor Scharf
4950b28df2 update web commit 2023-03-23 13:54:07 +01:00
kobergj
8e5fcf8482 Merge pull request #5846 from kobergj/Antivirus
Antivirus
2023-03-23 10:04:12 +01:00
jkoberg
81d1521751 abort processing when virus scan errord
Signed-off-by: jkoberg <jkoberg@owncloud.com>
2023-03-22 17:34:24 +01:00
mmattel
d25102c11e update 2023-03-22 17:02:34 +01:00
mmattel
777c302bc9 [docs-only] Clarify the description of the TLS_IDP envvar 2023-03-22 16:53:14 +01:00
Jörn Friedrich Dreyer
6bec87f582 Proxy accesstoken cache store (#5829)
* refactor middleware options

Signed-off-by: Jörn Friedrich Dreyer <jfd@butonic.de>

* use ocmemstore micro store implementaiton for token cache

Signed-off-by: Jörn Friedrich Dreyer <jfd@butonic.de>

* refactor ocis store options, support redis sentinel

Signed-off-by: Jörn Friedrich Dreyer <jfd@butonic.de>

* align cache configuration

Signed-off-by: Jörn Friedrich Dreyer <jfd@butonic.de>

* database and tabe are used to build prefixes for inmemory stores

Signed-off-by: Jörn Friedrich Dreyer <jfd@butonic.de>

* add global persistent store options to userlog config

Signed-off-by: Jörn Friedrich Dreyer <jfd@butonic.de>

* log cache errors but continue

Signed-off-by: Jörn Friedrich Dreyer <jfd@butonic.de>

* drup unnecessary type conversion

Signed-off-by: Jörn Friedrich Dreyer <jfd@butonic.de>

* Better description for the default userinfo ttl

Signed-off-by: Jörn Friedrich Dreyer <jfd@butonic.de>

* use global cache options for even more caches

Signed-off-by: Jörn Friedrich Dreyer <jfd@butonic.de>

* don't log userinfo cache misses

Signed-off-by: Jörn Friedrich Dreyer <jfd@butonic.de>

* default to stock memory store

Signed-off-by: Jörn Friedrich Dreyer <jfd@butonic.de>

* use correct mem store typo string

Signed-off-by: Jörn Friedrich Dreyer <jfd@butonic.de>

* split cache options, doc cleanup

Signed-off-by: Jörn Friedrich Dreyer <jfd@butonic.de>

* mint and write userinfo to cache async

Signed-off-by: Jörn Friedrich Dreyer <jfd@butonic.de>

* use hashed token as key

Signed-off-by: Jörn Friedrich Dreyer <jfd@butonic.de>

* go mod tidy

Signed-off-by: Jörn Friedrich Dreyer <jfd@butonic.de>

* update docs

Signed-off-by: Jörn Friedrich Dreyer <jfd@butonic.de>

* update cache store naming

Signed-off-by: Jörn Friedrich Dreyer <jfd@butonic.de>

* bring back depreceted ocis-pkg/store package for backwards compatability

Signed-off-by: Jörn Friedrich Dreyer <jfd@butonic.de>

* update changelog

Signed-off-by: Jörn Friedrich Dreyer <jfd@butonic.de>

* Apply suggestions from code review

Co-authored-by: kobergj <jkoberg@owncloud.com>

* revert ocis-pkg/cache to store rename

Signed-off-by: Jörn Friedrich Dreyer <jfd@butonic.de>

* add waiting for each step 50 milliseconds

* starlack check

---------

Signed-off-by: Jörn Friedrich Dreyer <jfd@butonic.de>
Co-authored-by: kobergj <jkoberg@owncloud.com>
Co-authored-by: Viktor Scharf <scharf.vi@gmail.com>
2023-03-22 15:21:57 +01:00
jkoberg
86980441fe move debughandlers to their own package
Signed-off-by: jkoberg <jkoberg@owncloud.com>
2023-03-22 13:59:54 +01:00
kobergj
6c00708dbc improve antivirus documentation
Co-authored-by: Jörn Friedrich Dreyer <jfd@butonic.de>
2023-03-22 13:50:42 +01:00
Daniel Swärd
75870d49ac graph: Hide ldap error on group membership patch. 2023-03-22 11:34:14 +01:00
kobergj
48be9ccf3e Merge pull request #5873 from kobergj/NoNotificationForOwnActions
No Notifications for own actions
2023-03-21 16:26:19 +01:00
Martin
bca6834c0c Update services/app-provider/pkg/config/config.go 2023-03-21 12:23:13 +01:00
Dennis Sieben
22098c5659 Fixed typo
- fixed typo in parameter documentation
2023-03-21 11:55:41 +01:00
Daniel Swärd
40ab22195d Merge pull request #5836 from owncloud/excds/bugfix/Fix_updating_accountEnabled_for_educationUser
graph: Fix so that accountEnabled updates work for educationUser.
2023-03-21 11:44:53 +01:00
jkoberg
642d8f0028 notification for virusscan
Signed-off-by: jkoberg <jkoberg@owncloud.com>
2023-03-21 10:06:06 +01:00
kobergj
fc4ba499b1 improve antivirus documentation
Co-authored-by: Martin <github@diemattels.at>
2023-03-21 10:06:06 +01:00
jkoberg
c550390d82 service checklist
Signed-off-by: jkoberg <jkoberg@owncloud.com>
2023-03-21 10:04:11 +01:00
jkoberg
f4ba4e0f64 backport antivirus from experimental
Signed-off-by: jkoberg <jkoberg@owncloud.com>
2023-03-21 10:04:11 +01:00
dependabot[bot]
e7fd4f93f4 Bump i18next from 21.10.0 to 22.0.4 in /services/idp (#4941)
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Florian Schade <f.schade@icloud.com>
Co-authored-by: mmattel <github@diemattels.at>
2023-03-21 10:03:59 +01:00
Ralf Haferkamp
7e6b690ccf proxy: update README with notes about role assignment (#5878) 2023-03-20 21:03:41 +01:00
Jörn Friedrich Dreyer
474c4b848d upgrade to go1.20 and auto set go mem limit (#5732)
* upgrade to go1.19 and set go mem limit

* create ocis-pkg memlimit package

* use std automemlimit import

Signed-off-by: Jörn Friedrich Dreyer <jfd@butonic.de>

* import automemlimit in every ocis service, drop ocis-pkg/memlimit package

Signed-off-by: Jörn Friedrich Dreyer <jfd@butonic.de>

* bump go to 1.20

Signed-off-by: Jörn Friedrich Dreyer <jfd@butonic.de>

* drop unused config options and env vars

Signed-off-by: Jörn Friedrich Dreyer <jfd@butonic.de>

* update all version numbers, add doc

Signed-off-by: Jörn Friedrich Dreyer <jfd@butonic.de>

* fix lint

Signed-off-by: Jörn Friedrich Dreyer <jfd@butonic.de>

* update bingo and mockery

Signed-off-by: Jörn Friedrich Dreyer <jfd@butonic.de>

* bump golangci-lint

Signed-off-by: Jörn Friedrich Dreyer <jfd@butonic.de>

* fix selector test

Signed-off-by: Jörn Friedrich Dreyer <jfd@butonic.de>

* Update changelog/unreleased/enhancement-memlimit.md

Co-authored-by: kobergj <juliankoberg@googlemail.com>

---------

Signed-off-by: Jörn Friedrich Dreyer <jfd@butonic.de>
Co-authored-by: Willy Kloucek <wkloucek@owncloud.com>
Co-authored-by: kobergj <juliankoberg@googlemail.com>
2023-03-20 17:22:02 +01:00
jkoberg
8d3fac48fd do not inform user about her own action
Signed-off-by: jkoberg <jkoberg@owncloud.com>
2023-03-20 15:29:24 +01:00
Ralf Haferkamp
98b4a6a23a Address some linter warnings
Response bodies need to be closed
2023-03-20 15:12:09 +01:00
Jörn Friedrich Dreyer
7f8e54b1c2 fix link 2023-03-20 15:12:09 +01:00
Ralf Haferkamp
1287bbc10d proxy: Cache the role Mapping for some time
Avoid torturing the settings service with "ListRoles" request for
every incoming request to the proxy.
The role Mapping is refreshed if cached data is older than 5 minutes.
2023-03-20 15:12:09 +01:00
Ralf Haferkamp
96ed144745 proxy: Add some missing doc strings 2023-03-20 15:12:09 +01:00
Ralf Haferkamp
a448c75c75 Extract role assignments from claims
Add a UserRoleAssigner implementation that extract role names from the
users' claims and creates role assignments in the settings service based
on a configured mapping of claim values to ocis role names.

Closes: #5669
2023-03-20 15:12:09 +01:00
Ralf Haferkamp
d57d52b33d proxy: Add an interface for user role assignment
This moves the lookup and the creation of the users' role assignemt out
of the user backend into its own interface. This makes the user backend
a bit simpler and allows to provide different implemenation for the user
role assignment more easily.
2023-03-20 15:12:09 +01:00
Ralf Haferkamp
490a835a3a proxy: Move CS3 User backend options to "functional" options
This will make it easier to add/remove options to the backend in the
future.
2023-03-20 15:12:09 +01:00
Ralf Haferkamp
88e8bb1b72 account_resolver: Handle user roles separately from user lookup
This removes the "withRoles" flag from the GetUserByClaims lookup and move the
functionality into a separate method. This should make the code a bit more readable
in preparation for maintaining the RoleAssignments from OIDC claims.
2023-03-20 15:12:09 +01:00
Ralf Haferkamp
f5cfa7e126 proxy: Move to mockery for generating mocks
To align with what we're using everywhere else.
2023-03-20 15:12:09 +01:00
ownClouders
144394993b [tx] updated from transifex 2023-03-19 00:05:05 +00:00
ownClouders
c5ec78363f [tx] updated from transifex 2023-03-18 00:12:12 +00:00
kobergj
3395968953 chore: bump web to v7.0.0-rc22 (#5869)
Signed-off-by: jkoberg <jkoberg@owncloud.com>
2023-03-17 18:50:08 +01:00
kobergj
9750dfaff9 use master version of gotext package (#5868)
Signed-off-by: jkoberg <jkoberg@owncloud.com>
2023-03-17 16:03:28 +01:00
jkoberg
a503ace11f don't check quota permission in graph
Signed-off-by: jkoberg <jkoberg@owncloud.com>
2023-03-17 12:51:28 +01:00
jkoberg
cdddd16c0a add permission to change space quota
Signed-off-by: jkoberg <jkoberg@owncloud.com>
2023-03-17 12:51:26 +01:00
Daniel Swärd
c765e904df Refactor user update methods to be a bit nicer. 2023-03-17 11:03:38 +01:00
Daniel Swärd
525638588d graph: Fix so that accountEnabled updates work for educationUser. 2023-03-17 10:16:39 +01:00
ownClouders
5533a7382e [tx] updated from transifex 2023-03-17 00:43:05 +00:00
Benedikt Kulmann
d409effa57 [full-ci] chore: bump web to v7.0.0-rc.21 (#5849)
* chore: bump web to v7.0.0-rc.21

* Update .drone.env

* Update .drone.env

fixing move copyMove.feature test

---------

Co-authored-by: Viktor Scharf <scharf.vi@gmail.com>
2023-03-16 19:04:07 +01:00
mmattel
23ee8615c6 [docs-only] Adds missing services and fixes content for owncloud.dev 2023-03-16 15:03:29 +01:00
Michael Barz
b31126de90 Merge pull request #5848 from owncloud/update-reva
[full-ci] add read_write_delete key to public link pw enforcement capabilites
2023-03-16 00:20:29 +01:00
ownClouders
25a6693bdf [tx] updated from transifex 2023-03-15 23:03:14 +00:00