Commit Graph
27 Commits
Author SHA1 Message Date
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