Commit Graph
47 Commits
Author SHA1 Message Date
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
kobergj 86dc94423e Merge pull request #7741 from kobergj/ProxyAllowAddingAdditionalRoutes
Allow configuring custom proxy routes
2023-11-17 14:54:02 +00:00
Andre Duffeck 2eafd31309 Merge pull request #7564 from aduffeck/ocm2
[full-ci] Wire ocm services
2023-10-24 12:16:06 +00:00
Ralf Haferkamp e6e7e8c14a graph: debug logging for requireadmin middleware 2023-09-07 18:57:13 +00:00
dependabot[bot] c6441bfb55 Bump i18next-parser from 5.4.0 to 8.7.0 in /services/idp
Bumps [i18next-parser](https://github.com/i18next/i18next-parser) from 5.4.0 to 8.7.0.
- [Release notes](https://github.com/i18next/i18next-parser/releases)
- [Changelog](https://github.com/i18next/i18next-parser/blob/master/CHANGELOG.md)
- [Commits](https://github.com/i18next/i18next-parser/compare/5.4.0...8.7.0)

---
updated-dependencies:
- dependency-name: i18next-parser
  dependency-type: direct:development
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-08-30 08:38:56 +00:00
dependabot[bot] b2a8028464 Bump postcss-preset-env from 6.7.0 to 9.1.2 in /services/idp
Bumps [postcss-preset-env](https://github.com/csstools/postcss-plugins/tree/HEAD/plugin-packs/postcss-preset-env) from 6.7.0 to 9.1.2.
- [Changelog](https://github.com/csstools/postcss-plugins/blob/main/plugin-packs/postcss-preset-env/CHANGELOG.md)
- [Commits](https://github.com/csstools/postcss-plugins/commits/HEAD/plugin-packs/postcss-preset-env)

---
updated-dependencies:
- dependency-name: postcss-preset-env
  dependency-type: direct:development
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-08-30 07:42:05 +00:00
kobergj 2120b0fa15 Merge pull request #6992 from fschade/sse-service
enhancement: add sse service skeleton
2023-08-30 07:40:37 +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
Roman Perekhod 76bad8a290 Merge pull request #6927 from owncloud/register-chi-routes
properly register webdav methods with chi
2023-08-02 11:10:35 +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 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
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
Christian Richter 86fc6d69ed Merge pull request #6007 from dragonchaser/backchannellogout
[full-ci] Implement backchannel logout
2023-04-20 11:25:24 +00:00
Ralf Haferkamp b3348cc074 proxy: Rework oidc role mapper to allow multiple matching roles
If multiple claims values have a valid matching for ocis roles, we'll pick
the ocis role that appears first in the mapping configuration.
2023-04-19 06:58:33 +00:00
kobergj 2cf32f0ae7 Merge pull request #5700 from owncloud/invitations
Invitations service
2023-03-28 13:30:01 +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 f81a558669 commit fd5790d8dd
Merge: 3a07e143d a9561d85c
Author: Martin <github@diemattels.at>
Date:   Thu Feb 23 15:33:12 2023 +0100

    Merge pull request #5610 from kobergj/UserlogService

    Userlog Service
2023-02-23 14:36:02 +00:00
David Christofas 4a5bff40da commit 3fbb6ca2fe
Merge: 4edd97f56 17b5706cc
Author: David Christofas <dchristofas@owncloud.com>
Date:   Wed Feb 22 17:08:16 2023 +0100

    Merge pull request #5617 from owncloud/role-quota

    add config option to set default quota per role
2023-02-22 16:09:35 +00:00
Michael Barz 9c3899ef23 commit 2b04573628
Merge: 8fb991475 2323410f3
Author: Michael Barz <mbarz@owncloud.com>
Date:   Mon Feb 13 22:30:09 2023 +0100

    Merge pull request #5559 from owncloud/branding-api

    Branding api
2023-02-13 21:32:04 +00:00
Jörn Friedrich Dreyer f2d693600f commit 2c98d3246c
Author: Jörn Friedrich Dreyer <jfd@owncloud.com>
Date:   Mon Feb 13 11:05:20 2023 +0100

    minimal webfinger (#5373)

    * initial webfinger stub

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

    * add webfinger to proxy, return current host

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

    * some cleanup

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

    * allow passing multiple rel params

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

    * introduce interfaces

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

    * parse oidc auth token

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

    * add templating, drop chain, use map of relation providers

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

    * fix ocis url yaml

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

    * fix typos

    Co-authored-by: Dominik Schmidt <dschmidt@owncloud.com>

    * switch to userinfo claims

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

    * readme cleanup

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

    * add TODO.md with ideas

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

    * replace subject on authenticated request responses

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

    * Apply suggestions from code review

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

    * markdown lint

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

    * return a 401 when bearer token expired, some more docs

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

    * Apply suggestions from code review

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

    * fix docs

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

    * clarify env var

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

    * extract handler func

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

    * use correct service in reflex.conf

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

    * test relations

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

    * Update services/webfinger/pkg/config/config.go

    ---------

    Signed-off-by: Jörn Friedrich Dreyer <jfd@butonic.de>
    Co-authored-by: Dominik Schmidt <dschmidt@owncloud.com>
    Co-authored-by: Martin <github@diemattels.at>
2023-02-13 10:07:05 +00:00
Benedikt Kulmann d8c55caaea commit 3525302160
Merge: 03814af64 8c033e193
Author: Benedikt Kulmann <benedikt@kulmann.biz>
Date:   Mon Feb 6 14:30:10 2023 +0100

    Merge pull request #5463 from owncloud/kill-the-settings-ui

    [full-ci] change: remove the settings ui
2023-02-06 13:32:09 +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
David Christofas 72ade067a0 commit 3babaf1a4d
Author: David Christofas <dchristofas@owncloud.com>
Date:   Tue Oct 4 15:55:30 2022 +0200

    remove the graph-explorer servier from ocis (#4733)
2022-10-04 13:57:31 +00:00
Andre Duffeck 8a3acd6b78 commit 68b17eb68d
Author: Andre Duffeck <aduffeck@users.noreply.github.com>
Date:   Tue Sep 27 10:38:15 2022 +0200

    Search dav spaces (#4661)

    * Add a Ref option to SearchRequest, e.g. for limiting the search to a space

    * Enable REPORT requests for /dav/spaces URLs

    * Limit the search to the according space in case of /dav/spaces searches

    * Add changelog

    * Adapt expected failures

    * Comment exported functions
2022-09-27 08:43:50 +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
David Christofas ed7baf96c1 commit bfb26cc660
Author: David Christofas <dchristofas@owncloud.com>
Date:   Tue Aug 30 17:46:34 2022 +0200

    update tests
2022-09-01 10:45:34 +00:00
Michael Barz 3847de2bdf commit 03c63380da
Merge: 98769cce0 205f87f98
Author: Michael Barz <mbarz@owncloud.com>
Date:   Mon Aug 8 15:36:34 2022 +0200

    Merge pull request #4346 from wkloucek/rewrite-oidc-well-known

    add middleware to rewrite the /.well-known/openid-configuration endpoint for external idps
2022-08-08 13:43:17 +00:00
Ralf Haferkamp e3e9c1a5f1 commit 6e848c7254
Author: Ralf Haferkamp <rhaferkamp@owncloud.com>
Date:   Mon Jul 25 16:38:10 2022 +0200

    Use mutex for lazy init function

    To avoid possible threading issues
2022-08-03 10:03:42 +00:00
Michael Barz a4083f0d12 commit 6aef99b578
Merge: d3979b158 3d0cdbebe
Author: Michael Barz <mbarz@owncloud.com>
Date:   Thu Jul 14 16:52:05 2022 +0200

    Merge pull request #4203 from wkloucek/update-reva

    update reva
2022-07-14 14:54:28 +00:00
Jörn Friedrich Dreyer 7886fbfa00 commit 3274b8620c
Author: Jörn Friedrich Dreyer <jfd@owncloud.com>
Date:   Thu Jul 14 11:29:38 2022 +0000

    bump reva to 4ad9ffbece1 (#4201)

    Signed-off-by: Jörn Friedrich Dreyer <jfd@butonic.de>
2022-07-14 12:25:04 +00:00
Ralf Haferkamp 9af4913063 commit 0f257af6e4
Author: Ralf Haferkamp <rhaferkamp@owncloud.com>
Date:   Thu Jul 14 12:23:20 2022 +0200

    Align default login attribute across services

    Up to now the builtin lico was using the "username" as the login
    attribute, while the proxy (and to some extend the auth-basic) service
    tried to uniquely identify users by mail address. This aligns the
    default configuration of the services to use the username everywhere.

    Fixes: #4039
2022-07-14 12:24:29 +00:00
Andre Duffeck 4418fa197c commit edb8e85fb9
Merge: 9c38cd480 d65dcfe90
Author: Andre Duffeck <aduffeck@users.noreply.github.com>
Date:   Thu Jul 7 08:47:19 2022 +0200

    Merge pull request #4118 from aduffeck/webdav-search

    Wire up the search service at the old webdav endpoint
2022-07-07 06:50:09 +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