Commit Graph

12672 Commits

Author SHA1 Message Date
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
dependabot[bot] cd84a57a5e Bump golang.org/x/image from 0.5.0 to 0.6.0
Bumps [golang.org/x/image](https://github.com/golang/image) from 0.5.0 to 0.6.0.
- [Release notes](https://github.com/golang/image/releases)
- [Commits](https://github.com/golang/image/compare/v0.5.0...v0.6.0)

---
updated-dependencies:
- dependency-name: golang.org/x/image
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-03-20 12:40:01 +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 5dfadc557a Automated changelog update [skip ci] 2023-03-17 15:03:56 +00: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
kobergj cefdb457a1 Automated changelog update [skip ci] 2023-03-17 13:45:19 +00:00
kobergj 05e934e6f4 Merge pull request #5843 from owncloud/ChangeQuotaPermission
Change Project Space Quota Permission
2023-03-17 14:44:25 +01:00
jkoberg 03f2741d8b bump reva
Signed-off-by: jkoberg <jkoberg@owncloud.com>
2023-03-17 12:52:24 +01:00
jkoberg c4c73bc9e7 adjust expected failures
Signed-off-by: jkoberg <jkoberg@owncloud.com>
2023-03-17 12:51: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 5cb3d3e62e temporarily deactivate e2e tests
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
Andre Duffeck ebbc388b6d Automated changelog update [skip ci] 2023-03-17 11:31:38 +00:00
Andre Duffeck 7bd735f615 Add command for inspecting and manipulating node metadata (#5858)
* Add command for inspecting and manipulating node metadata

* Add changelog

* Bump reva
2023-03-17 12:31:07 +01:00
Prarup Gurung 110f3312ed Merge pull request #5860 from owncloud/remove-log-file-related-codes-master
[full-ci] [tests-only] Remove log file related codes master
2023-03-17 14:32:25 +05:45
Prarup Gurung 9f99d03fc8 Removed LoggingContext and LoggingHelper 2023-03-17 12:33:26 +05:45
Prarup Gurung 0f9ff603bd Removed log file related steps and implementation 2023-03-17 12:33:18 +05:45
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
Martin 22a74ceaf8 Merge pull request #5859 from owncloud/mmattel-patch-1
[docs-only] Fix edit path for port-ranges.md
2023-03-16 16:24:04 +01:00
Martin bba6a30f0c [docs-only] Fix edit path for port-ranges.md
This fixes the edit path for the `port-ranges.md` file.
Missed to correct it.
2023-03-16 16:12:34 +01:00
Martin 2d89b33e06 Merge pull request #5857 from owncloud/make_missing_services_appear_in_dev_docs
[docs-only] Adds missing services and fixes content for owncloud.dev
2023-03-16 16:04:03 +01:00
mmattel 23ee8615c6 [docs-only] Adds missing services and fixes content for owncloud.dev 2023-03-16 15:03:29 +01:00
dependabot[bot] 16985d6bf4 Bump github.com/go-micro/plugins/v4/client/grpc from 1.1.0 to 1.2.0
Bumps [github.com/go-micro/plugins/v4/client/grpc](https://github.com/go-micro/plugins) from 1.1.0 to 1.2.0.
- [Release notes](https://github.com/go-micro/plugins/releases)
- [Commits](https://github.com/go-micro/plugins/compare/v3/auth/jwt/v1.1.0...v4/auth/jwt/v1.2.0)

---
updated-dependencies:
- dependency-name: github.com/go-micro/plugins/v4/client/grpc
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-03-16 09:08:30 +01:00
dependabot[bot] 14ba87f39c Bump github.com/gofrs/uuid from 4.3.1+incompatible to 4.4.0+incompatible
Bumps [github.com/gofrs/uuid](https://github.com/gofrs/uuid) from 4.3.1+incompatible to 4.4.0+incompatible.
- [Release notes](https://github.com/gofrs/uuid/releases)
- [Commits](https://github.com/gofrs/uuid/compare/v4.3.1...v4.4.0)

---
updated-dependencies:
- dependency-name: github.com/gofrs/uuid
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-03-16 09:08:02 +01:00
Prarup Gurung ad061c661f Merge pull request #5838 from owncloud/remove-runOcc-method-from-FeatureContext-master
[full-ci] [tests-only] Remove `runOcc` method from `FeatureContext`
2023-03-16 10:01:16 +05:45
Michael Barz 5a54c8a8b5 Automated changelog update [skip ci] 2023-03-15 23:21:04 +00: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
Michael Barz 8332244383 add read_write_delete key to public link pw enforcement capabilites 2023-03-15 23:11:03 +01:00
Jörn Friedrich Dreyer 6efccc69d9 bump reva to 53ed6a88 (#5845)
Signed-off-by: Jörn Friedrich Dreyer <jfd@butonic.de>
2023-03-15 17:16:33 +01:00
Prajwol Amatya ea8181548a added test for getting non-existing group (#5830) 2023-03-15 21:17:41 +05:45
Ralf Haferkamp 8b704085ce Allow ADMIN_USER_ID being empty (#5842)
For certain setups we don't need the ADMIN_USER_ID to be set. It is
mainly needed for bootstrapping the internal idm and the initial role
assignment.  If roles are assigned by other means (e.g. OIDC claims
in the future) we don't need it.

This makes the ADMIN_USER_ID optional, also if ADMIN_USER_ID is unset
we don't need to configure a password for the admin user. We will still
generated the admin_id and password when running 'ocis init', but it is
ok to run manual setups without those settings.
2023-03-15 16:15:18 +01:00
dependabot[bot] 901c447487 Bump github.com/tus/tusd from 1.10.0 to 1.10.1 (#5833)
Bumps [github.com/tus/tusd](https://github.com/tus/tusd) from 1.10.0 to 1.10.1.
- [Release notes](https://github.com/tus/tusd/releases)
- [Commits](https://github.com/tus/tusd/compare/v1.10.0...v1.10.1)

---
updated-dependencies:
- dependency-name: github.com/tus/tusd
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-03-15 15:51:14 +01:00
Ralf Haferkamp 81c0f21f78 graph: Allow to disable the default role assignment on user creation
Introduces a switch ('GRAPH_ASSIGN_DEFAULT_USER_ROLE') to allow to disable the assignment of the default role "User" to newly created users.
This will be used for setups where the role-assignments are populated either manually or during first login (e.g. from OIDC claims)
2023-03-15 15:42:57 +01:00
Ralf Haferkamp b4b0f7abe7 graph: Skip default role assignment for education/users
For the education/users endpoints the role assignment does not
need to happen when creating a new user.
2023-03-15 15:42:57 +01:00
kobergj 58026b0a0e Merge pull request #5839 from kobergj/FixDocsCreation
[docs-only] Fix Docs Creation
2023-03-15 14:43:36 +01:00
Daniel Swärd 6327edf574 graph: Change so that educationUsers can be created without email. 2023-03-15 14:43:22 +01:00
Michael Barz a24456fb6a Merge pull request #5835 from owncloud/fix-l10n
[tests-only] raise percent setting and remove empty .po files
2023-03-15 13:12:59 +01:00
jkoberg fb4f05339b adjust pages_directory to new version
Signed-off-by: jkoberg <jkoberg@owncloud.com>
2023-03-15 12:39:41 +01:00