Commit Graph
60 Commits
Author SHA1 Message Date
Jörn Friedrich Dreyer 731d228f62 Merge pull request #10309 from kobergj/RemoveDeprecations
Remove Deprecations
2024-10-16 13:00:02 +00:00
Jörn Friedrich Dreyer 19c0e7fab6 Merge pull request #9815 from owncloud/ocm-wellknown-config
add ocm wellknown config
2024-10-04 08:17:04 +00:00
kobergj 670630be50 Merge pull request #9755 from kobergj/AppTokenApi
App Token API
2024-08-09 11:10:03 +00:00
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
kobergj b6b3203517 Merge pull request #9361 from kobergj/ActivityApi
Activity API
2024-06-25 07:23:05 +00:00
Jörn Friedrich Dreyer f7358cdc67 Merge pull request #9149 from owncloud/correct-servicenames
fix service names for userlog, graph, invitations, sse and web
2024-05-24 08:43:57 +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
Michael Barz f7872e6ba7 fix: change default config for the role mapping 2024-02-28 11:10:15 +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
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