Commit Graph
61 Commits
Author SHA1 Message Date
kobergj 571fa3590a Merge pull request #9079 from owncloud/feat/reva-app-auth
feat: reva app auth
2024-07-23 08:41:15 +00:00
Michael Barz 5100e7a76d Merge pull request #9458 from rhafer/issue/5538
autoprovisioning: Manage group memberships
2024-07-08 08:03:54 +00:00
Roman Perekhod 3dbb57501a Merge pull request #9449 from 2403905/issue-9355
Add the backchannel logout event
2024-06-26 08:36:10 +00:00
Michael Barz 5a735ab516 Merge pull request #8952 from rhafer/issue/8635
Autoprovsioning fixes
2024-05-02 14:10:19 +00:00
Thomas Müller 72ed5d228c feat: add CSP and other security related headers in the oCIS proxy service (#8777)
* feat: add CSP and other security related headers in the oCIS proxy service

* fix: consolidate security related headers - drop middleware.Secure

* fix: use github.com/DeepDiver1975/secure

* fix: acceptance tests

* feat: support env var replacements in csp.yaml
2024-04-26 07:16:47 +00:00
Thomas Müller 1578594b2f Merge pull request #8770 from owncloud/chore/typos-and-other-tourette-triggers
fix: typos, naming clashes, error messages and deprecations
2024-04-04 09:13:11 +00:00
Jörn Friedrich Dreyer 42e11ded53 drop store service in favor of a micro store implementation (#8419)
Signed-off-by: Jörn Friedrich Dreyer <jfd@butonic.de>
2024-02-26 15:11:30 +00:00
Christian Richter 2fde64db24 Merge pull request #8229 from dragonchaser/fix-ocis-path-in-docs
change ocis basepath from home to
2024-01-17 12:57:05 +00:00
kobergj 585702719f Merge pull request #7989 from kobergj/AuthenticationForNats
Authentication for nats
2023-12-19 10:29:07 +00:00
kobergj 3594fcc054 Merge pull request #7979 from kobergj/InmemNatsjsStore
[full-ci] Add inmem option for nats-js stores
2023-12-15 13:33:55 +00:00
kobergj 8647f0e134 Merge pull request #7793 from kobergj/FixNatsjsCache
[full-ci] Use nats-js cache
2023-12-14 10:53:37 +00:00
Martin e96bfa70c2 Merge pull request #7699 from owncloud/fix_envvar_array_slice_descriptions
[docs-only] Fix envvars with a array slice ([]string)
2023-11-09 13:09:38 +00:00
Martin e0644ce339 Merge pull request #7690 from owncloud/fix_envvar_duration_descriptions
[docs-only] Fix envvars with a duration.
2023-11-09 08:32:17 +00:00
Ralf Haferkamp e6e7e8c14a graph: debug logging for requireadmin middleware 2023-09-07 18:57:13 +00:00
kobergj 54bcdba7c0 Merge pull request #7106 from owncloud/allow-skip-userinfo
allow skipping userinfo call
2023-08-23 13:14:13 +00:00
Christian Richter 70ce7c7f2a Merge pull request #7099 from dragonchaser/deprecate_variables
Deprecate variables
2023-08-23 08:26:46 +00:00
Martin da9ac7a126 Merge pull request #6723 from owncloud/fix_loglevel_description
[docs-only] Increase readability for log level values in the description
2023-07-07 15:08:17 +00:00
Martin 224ee6d546 Merge pull request #6724 from owncloud/fix_tracing_description
[docs-only] Increase readability for tracing values in the description
2023-07-07 08:34:04 +00:00
Florian SchadeandRalf Haferkamp 5d44d1d61d [full-ci] enhancement: use reva client pool selectors (#6452)
* enhancement: use reva client pool selectors

register mock service to registry and pass tests

* enhancement: bump reva

* Fix a couple of linter issues

---------

Co-authored-by: Ralf Haferkamp <rhaferkamp@owncloud.com>
2023-06-08 10:43:53 +00:00
Ralf Haferkamp e012901079 Revert "idp/proxy: Match users by ID instead of name by default"
This reverts commit 52951b42b0.

The change broke authentication for at least the desktop client when
using the builtin idp. There seem to be issues in the IDP (lico) which
result in the implicit scoped not being added correctly in some case.
When that scope is missing the `lg.uuid` claim will not be present in
the userinfo and we can correctly match users by id.

This reverts back to the old behaviour of matching users by name. Which
also brings some aspects of https://github.com/owncloud/ocis/issues/904

Fixes #6415
2023-06-01 09:20:33 +00:00
Ralf Haferkamp 388af1daaa ocis_keycloak: Don't start builtin IDP when using keycloak 2023-05-24 15:14:20 +00:00
Ralf Haferkamp dbfc660bf4 idp/proxy: Match users by ID instead of name by default
Reconfigure the oidc clients for lico, so that lico adds the "lg.uuid" to
tokens and userinfo by default. That claim will contain the userid. So
we can now use the userid for matching users when using the default
idm/idp configuration. This fixes further problems so that users being
recreated with the same name are correctly treated as differnt users.

Fixes: #904
2023-05-23 07:50:42 +00:00
Phil Davis 2806f15a3c Merge pull request #6341 from owncloud/allows-to
Reword 'allows to' sentences
2023-05-18 05:22:33 +00:00
Martin 5803484982 Merge pull request #6193 from owncloud/proxy_tls_envvar 2023-05-02 19:53:30 +00:00
Sagar Gurung 0ca2041ee8 [tests-only]Added GDPR export. check events when user is created (#6106)
* Added GDPR export for event upload file

* Add for user created events for GDPR export

* Add for user information assertion

* Review Address
2023-04-27 10:21:01 +00:00
Christian Richter 0423a1dea0 Merge pull request #6153 from dragonchaser/issue-5003-idm-debug-port
add debug server to idm
2023-04-27 09:18:57 +00:00
Ralf Haferkamp 2082ab16ce oidc: Remove "aud" claim validation of logout tokens (#6156)
The "aud" claim of the logout token is supposed to contain the client-id
of the client for which the token was issued. Our current implementation of
validating that claim is somewhat broken. We only allow to configure a single
value for the allowed client id. But we have different client-ids
accessing oCIS.

This completely removes the current validation of the `aud` claim until
we come up with a working solution. As we currently require a session id
to be present in the logout token the risk not validating the `aud`
claim is pretty low.

Related: #6149
2023-04-27 08:36:02 +00:00
Andre Duffeck a045f5b0a1 [full-ci] More cache cleanup (#6134)
* Make env var names consistent with the others

* Remove unused OCS cache

* Use the same cache database for shared caches

* Bump reva
2023-04-25 13:48:35 +00:00
Michael Barz c5911733b3 Merge pull request #6125 from owncloud/release-3.0.0-rc.1
[full-ci] prepare changelog, bump version
2023-04-24 15:08:13 +00:00
Roman Perekhod 5d47999bc0 Merge pull request #6089 from 2403905/issue-6087
Determine the users preferred language to translate emails via Transi…
2023-04-24 14:14:34 +00:00
Andre DuffeckandMartin fcd3c081c6 [full-ci] Refactor stores (#6019)
* Streamline the store implementation with and into reva

* Adapt to the cache/store refactoring in reva

* Streamline config options and their env vars

* Apply suggestions from code review

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

* Use the same database for all stores

* Bump reva

* Configure stat and filemetadata cache separately

* Fix default config

---------

Co-authored-by: Martin <github@diemattels.at>
2023-04-24 13:15:27 +00:00
Christian Richter 86fc6d69ed Merge pull request #6007 from dragonchaser/backchannellogout
[full-ci] Implement backchannel logout
2023-04-20 11:25:24 +00:00
Martin b43a3ed9a7 Merge pull request #6008 from owncloud/excds/modification/Deprecating_and_renaming_many_environment_variables
Deprecating and renaming many environment variables
2023-04-06 09:02:34 +00:00
kobergj 22f1ea48b0 Merge pull request #5930 from owncloud/d7-typo-fix
[docs-only] Fixed typos
2023-03-27 08:31:56 +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 59f46ef36a Address some linter warnings
Response bodies need to be closed
2023-03-20 14:15:49 +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
Martin 07270a21aa commit 6a31158ca9
Merge: b3d71f002 cd20bc82b
Author: Martin <github@diemattels.at>
Date:   Fri Feb 10 11:37:58 2023 +0100

    Merge pull request #5548 from wkloucek/PROXY_USER_OIDC_CLAIM-improvment

    improve the description of PROXY_USER_OIDC_CLAIM
2023-02-10 10:39:41 +00:00
Martin a48a731765 commit 1365838e86
Merge: 9bcb6c1c1 210cd5481
Author: Martin <github@diemattels.at>
Date:   Fri Feb 3 10:27:46 2023 +0100

    Merge pull request #5497 from owncloud/fix_envvar_descriptions

    [docs-only] Fix envvar descriptions
2023-02-03 09:29:07 +00:00
Martin 4d58bd50e0 commit b7945336a2
Merge: 5d9806054 3cad3fbf2
Author: Martin <github@diemattels.at>
Date:   Thu Nov 24 10:26:55 2022 +0100

    Merge pull request #5109 from owncloud/fix_some_env_descriptions

    Fix some env descriptions
2022-11-24 09:29:53 +00:00
dependabot[bot] d5daf8a97b commit 187c1264a0
Author: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Date:   Thu Nov 17 06:08:55 2022 +0000

    Bump github.com/go-micro/plugins/v4/events/natsjs from 1.1.0 to 1.2.0

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

    Signed-off-by: dependabot[bot] <support@github.com>
2022-11-23 14:38:29 +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
Martin b3d8abaf2a commit 5f2262b946
Merge: 6c4b54015 bdcbe3e0c
Author: Martin <github@diemattels.at>
Date:   Thu Oct 27 13:48:46 2022 +0200

    Merge pull request #4920 from owncloud/small_description_rephrasing_proxy

    Proxy env var description rephrasing
2022-10-27 11:50:48 +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
David Christofas 97e812d79d commit f3a6f92dd6
Merge: 35bf9bde1 c997e50b8
Author: David Christofas <dchristofas@owncloud.com>
Date:   Mon Sep 26 11:19:10 2022 +0200

    Merge pull request #4601 from wkloucek/remove-default-insecure

    change the default value for PROXY_OIDC_INSECURE to false
2022-09-26 09:23:43 +00:00