Commit Graph
30 Commits
Author SHA1 Message Date
Ralf Haferkamp 99fed18966 graph: new config option GRAPH_LDAP_GROUP_CREATE_BASE_DN
By setting GRAPH_LDAP_GROUP_CREATE_BASE_DN a distinct subtree can be
configured where new LDAP groups are created. That subtree needs to be
subordinate to GRAPH_LDAP_GROUP_BASE_DN. All groups outside for
GRAPH_LDAP_GROUP_CREATE_BASE_DN are considered read-only and only groups
below that DN can be updated and deleted.

This is introduced for a pretty specific usecase where most groups are managed
in an external source (e.g. a read-only replica of an LDAP tree). But we still
want to allow the local administrator to create groups in a writeable subtree
attached to that replica.
2023-04-04 14:00:08 +00:00
Michael Barz 180012ee18 Merge pull request #5988 from owncloud/add-more-cors
[full-ci] add missing cors config
2023-04-03 17:17:14 +00:00
kobergj 8e81397f0a Merge pull request #5950 from kobergj/GDPRExport
GDPR Export
2023-03-30 14:58:29 +00:00
Jörn Friedrich Dreyer 881e5e5ea6 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 Fri
2023-03-22 14:23:50 +00:00
Ralf Haferkamp 4d7f6cab9b 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 14:45:03 +00:00
kobergj b8150813f4 Merge pull request #5839 from kobergj/FixDocsCreation
[docs-only] Fix Docs Creation
2023-03-15 13:45:56 +00:00
Ralf Haferkamp 7099a03246 commit a34a3b2a98
Author: Ralf Haferkamp <rhaferkamp@owncloud.com>
Date:   Tue Mar 7 14:43:42 2023 +0100

    Cleanup some oidc related bits (#5751)

    * Remove unused code from oidc module

    * Use already existing Metadata type for jwks discovery

    ocis-pkg/oidc already provides a type for the oidc metadata. Switch to
    that instead of defining yet another custom type.

    * oidc: Add helper to get IDP metadata
2023-03-07 13:45:26 +00:00
Benedikt Kulmann d7c78593a5 commit b0124148d5
Merge: 971cfa15c 91370eb61
Author: Benedikt Kulmann <benedikt@kulmann.biz>
Date:   Tue Mar 7 10:39:27 2023 +0100

    Merge pull request #5741 from owncloud/update-web-v7.0.0-rc.17

    [full-ci] bump web to v7.0.0-rc.17
2023-03-07 11:26:07 +00:00
David Christofas 8b9a3bf6df commit 7750492de4
Merge: b0124148d 924c2ca34
Author: David Christofas <dchristofas@owncloud.com>
Date:   Tue Mar 7 10:58:33 2023 +0100

    Merge pull request #5721 from owncloud/clean-up-code

    reduce duplication in configuration code
2023-03-07 10:00:09 +00:00
Daniel Swärd 25066b3b31 commit b517a6c3dd
Merge: c17add76c ca746106d
Author: Daniel Swärd <excds@kth.se>
Date:   Mon Mar 6 10:31:57 2023 +0100

    Merge pull request #5625 from owncloud/excds/feature/5554_Allow_disabling_user_by_adding_to_local_group

    graph: Allow disabling user by adding to local group
2023-03-06 09:33:30 +00:00
Daniël Franke f645243db1 commit 22f3577b7d
Author: Daniël Franke <df@ponc.tech>
Date:   Mon Feb 20 13:40:42 2023 +0100

    Update comment
2023-02-21 00:43:38 +00:00
Michael Barz 074e75d1a7 commit b3435edb89
Merge: 30faae2ae d34730d45
Author: Michael Barz <mbarz@owncloud.com>
Date:   Mon Feb 20 13:42:38 2023 +0100

    Merge pull request #5597 from wkloucek/settings-roles-merge-fix

    fix settings service bunldes config merge problems
2023-02-20 13:54:41 +00:00
Daniël Franke 3b6e09080e commit 22f3577b7d
Author: Daniël Franke <df@ponc.tech>
Date:   Mon Feb 20 13:40:42 2023 +0100

    Update comment
2023-02-20 13:43:36 +00:00
Daniel Swärd 9bd74dc018 commit fcf5783a1b
Author: Daniel Swärd <excds@kth.se>
Date:   Fri Feb 17 13:48:12 2023 +0100

    graph: Add accountEnabled flag to ldap backend. (#5588)

    * graph: Add accountEnabled flag to ldap backend.

    * Add missing accountEnabled attribute to user listing.
2023-02-17 12:49:46 +00:00
Daniel Swärd 7925978fee commit 96239af982
Author: Daniel Swärd <excds@kth.se>
Date:   Fri Jan 13 15:23:40 2023 +0700

    graph: Allow provisioning users with legacy names (#5255)

    Via configuration you can now configure to skip the validation of username and
    instead decide to trust the upstream system that is adding users.
2023-01-18 11:32:47 +00:00
Jörn Friedrich Dreyer 558d49abef commit 078698fdf4
Author: Jörn Friedrich Dreyer <jfd@owncloud.com>
Date:   Thu Jan 12 16:09:34 2023 +0100

    graph: add appRoleAssignments and minimal application resource (#5318)

    * bump libregraph-go lib

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

    * add appRoleAssignment stubs

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

    * add get application stub

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

    * fetch appRoles for application from settings service

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

    * initial list appRoleAssignments implementation

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

    * initial create appRoleAssignment implementation, extract assignmentToAppRoleAssignment, configurable app id and displayname

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

    * initial delete appRoleAssignment implementation, changed error handling and logging

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

    * initial expand appRoleAssignment on users

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

    * test user expand appRoleAssignment

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

    * test appRoleAssignment

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

    * fix education test by actually using the mocked roleManager

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

    * test getapplication

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

    * list assignments

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

    * use common not exists error handling

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

    * default to just 'ownCloud Infinite Scale' as application name

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

    * fix store_test

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

    * roll application uuid on init

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

    * fix tests

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

    * extract method

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

    * Apply suggestions from code review

    Co-authored-by: Michael Barz <mbarz@owncloud.com>

    Signed-off-by: Jörn Friedrich Dreyer <jfd@butonic.de>
    Co-authored-by: Michael Barz <mbarz@owncloud.com>
2023-01-12 15:10:55 +00:00
Florian Schade ed97f698f8 commit bb1540fc45
Author: Florian Schade <f.schade@icloud.com>
Date:   Tue Jan 10 15:42:13 2023 +0100

    [full-ci] add identitySet displayName property to the group and user sets (#5347)

    * add identitySet displayName property to the group and user sets
2023-01-10 14:43:37 +00:00
Daniël Franke bd26f2449e commit 7034b3ca69
Author: Daniël Franke <df@ponc.tech>
Date:   Tue Jan 10 11:06:52 2023 +0100

    Add changelog entry
2023-01-10 10:46:43 +00:00
Ralf Haferkamp ab6284fa33 commit b42bf80d0e
Author: Ralf Haferkamp <rhaferkamp@owncloud.com>
Date:   Wed Dec 21 14:57:06 2022 +0100

    graph: Rename noop backend to ErrEducationBackend
2022-12-21 14:40:21 +00:00
Jörn Friedrich Dreyer 909eb0a37d commit d359a7c2cf
Author: Jörn Friedrich Dreyer <jfd@owncloud.com>
Date:   Mon Dec 12 12:46:10 2022 +0100

    [full-ci] standalone graph service with LDAP (#5199)

    * standalone graph service with LDAP

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

    * no panic on PATCH and DELETE

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

    * fix apitoken yaml key

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

    * update user, fix response codes

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

    * fix group creation return code

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

    * remove unknown user property

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

    * fix create return code checks in graph feature context

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

    * updating uses 200 OK when returning a body

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

    * revert user statusCreated change for now

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

    * revert return code changes

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

    Signed-off-by: Jörn Friedrich Dreyer <jfd@butonic.de>
2022-12-12 11:48:15 +00:00
Willy Kloucek 9cfe7a2328 commit 3e4068e2a0
Author: Willy Kloucek <wkloucek@owncloud.com>
Date:   Tue Nov 15 13:07:53 2022 +0100

    fix OCIS_GRPC_CLIENT_TLS_CACERT annotation
2022-11-15 13:51:44 +00:00
dependabot[bot] b5576b26f9 commit 968bf088d0
Author: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Date:   Thu Nov 3 12:28:28 2022 +0100

    Bump github.com/go-micro/plugins/v4/wrapper/breaker/gobreaker (#4962)

    Bumps [github.com/go-micro/plugins/v4/wrapper/breaker/gobreaker](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/wrapper/breaker/gobreaker
      dependency-type: direct:production
      update-type: version-update:semver-minor
    ...

    Signed-off-by: dependabot[bot] <support@github.com>

    Signed-off-by: dependabot[bot] <support@github.com>
    Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-11-03 11:32:28 +00:00
Ralf Haferkamp 85ffb85c9f commit ee974afebf
Author: Ralf Haferkamp <rhaferkamp@owncloud.com>
Date:   Thu Nov 3 10:17:08 2022 +0100

    [full-ci] Introduce TLS Settings for go-micro based grpc services and clients (#4901)

    * Introduce TLS Settings for go-micro based grpc services and clients

    TLS for the services can be configure by setting the OCIS_MICRO_GRPC_TLS_ENABLED"
    "OCIS_MICRO_GRPC_TLS_CERTIFICATE" and "OCIS_MICRO_GRPC_TLS_KEY"
    enviroment variables.

    TLS for the clients can configured by setting the "OCIS_MICRO_GRPC_CLIENT_TLS_MODE"
    and "OCIS_MICRO_GRPC_CLIENT_TLS_CACERT" variables.

    By default TLS is disabled.

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

    * Unify TLS configuration for all grpc services

    All grpc service (whether they're based on reva) or go-micro use the
    same set of config vars now.

    TLS for the services can be configure by setting the OCIS_GRPC_TLS_ENABLED,
    OCIS_GRPC_TLS_CERTIFICATE and OCIS_GRPC_TLS_KEY enviroment variables.

    TLS for the clients can configured by setting the OCIS_GRPC_CLIENT_TLS_MODE
    and OCIS_MICRO_GRPC_CLIENT_TLS_CACERT variables.

    There are no individual per service config vars currently. If really
    needed, per service tls configurations can be specified via config file.

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

    Co-authored-by: Martin <github@diemattels.at>
2022-11-03 09:20:09 +00:00
Ralf Haferkamp c6846498b5 commit 89f2f2a87f
Author: Ralf Haferkamp <rhaferkamp@owncloud.com>
Date:   Thu Oct 20 12:16:57 2022 +0200

    Add documentation tags for grpc server TLS options
2022-10-25 09:52:26 +00:00
Michael Barz 42bb0be187 commit 5146d16c70
Merge: ff8b16f9d ec764ea5b
Author: Michael Barz <mbarz@owncloud.com>
Date:   Fri Oct 21 13:37:18 2022 +0200

    Merge pull request #4867 from owncloud/nats-tls

    add config option to enable or disable TLS for nats
2022-10-21 11:39:09 +00:00
David Christofas f10344a027 commit 4623b6c8e7
Author: David Christofas <dchristofas@owncloud.com>
Date:   Wed Oct 12 14:56:47 2022 +0200

    Nats tls (#4781)

    * use tls for nats connections

    * add config options for nats client tls config

    * add nats tls config to CI

    * add function to create a certpool

    * add option to provide a rootCA to validate the server's TLS certificate

    * add option to provide a rootCA to validate the server's TLS certificate

    * add option to provide a rootCA to validate the server's TLS certificate

    * add option to provide a rootCA to validate the server's TLS certificate

    * configure nats clients in reva to use tls
2022-10-12 13:02:31 +00:00
Juan Pablo Villafañez 6870c7d905 commit 6ee4a084a2
Author: Juan Pablo Villafañez <jvillafanez@solidgeargroup.com>
Date:   Fri Sep 16 15:42:47 2022 +0200

    Use go-micro store to cache the roles (#4337)

    * Use go-micro store to cache the roles

    Add custom in-memory implementation

    * replace redis with custom etcd implementation

    * adjust table name for the cache in the roles manager

    * Fix tests

    * Fix sonarcloud issues

    * Refactor for sonarcloud

    * Allow configuration of cache per service

    * Reuse parent context in etcd implementation
2022-09-16 13:45:23 +00:00
Phil Davis 040ae5f9d5 commit 7b64403606
Merge: 637c7badf 45f25ee84
Author: Phil Davis <phil@jankaritech.com>
Date:   Thu Jul 7 19:50:49 2022 +0545

    Merge pull request #4134 from wkloucek/remove-unused-graph-spaces-insecure

    remove unused `GRAPH_SPACES_INSECURE`
2022-07-07 14:08:28 +00:00
Ralf Haferkamp 3d3d39ee4e commit 8578f4e4b0
Author: Ralf Haferkamp <rhaferkamp@owncloud.com>
Date:   Tue Jun 28 12:39:42 2022 +0200

    graph: Add descriptions for LDAP related config settings
2022-06-30 12:20:32 +00:00
Christian Richter bcbd4b3617 commit b7dc410e93
Merge: da799d895 0ebfb8908
Author: Christian Richter <1058116+dragonchaser@users.noreply.github.com>
Date:   Tue Jun 28 09:35:38 2022 +0200

    Merge pull request #3980 from owncloud/rename-extensions-to-services

    Refactor extensions to services.
2022-06-28 07:38:26 +00:00