Commit Graph
14 Commits
Author SHA1 Message Date
Roman Perekhod 6213ca000f Merge pull request #6912 from 2403905/issue-5108
Fix CORS issues
2023-07-28 10:55:29 +00:00
Michael Barz e68c97d131 Merge pull request #6355 from owncloud/fix-cors-headers
fix preflight requests
2023-05-24 07:41:50 +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
kobergj b2325a5af7 Merge pull request #6022 from kobergj/ConfigureGRPCInOCS
Fix Panic in OCS service
2023-04-06 10:08:46 +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
Jörn Friedrich Dreyer e0af9c1837 commit 32cc9beb0b
Author: Jörn Friedrich Dreyer <jfd@owncloud.com>
Date:   Mon Jan 23 12:30:34 2023 +0100

    walk and log chi routes, ocs cleanup (#5428)

    * walk and log chi routes, ocs cleanup

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

    * make linter happy

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

    Signed-off-by: Jörn Friedrich Dreyer <jfd@butonic.de>
2023-01-23 11:32:32 +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
Jörn Friedrich Dreyer e0eb49efe2 commit e9e9947f88
Author: Jörn Friedrich Dreyer <jfd@owncloud.com>
Date:   Tue Oct 4 16:56:05 2022 +0200

    bring back CORS env vars (#4723)

    * bring back CORS env vars

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

    * update CORS descriptions

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

    * align writing of 'A comma-separated ...'

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

    * fix some desc quotes

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

    * Apply suggestions from code review

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

    * Apply more suggestions from code review

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

    * Apply final suggestions from code review

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

    Signed-off-by: Jörn Friedrich Dreyer <jfd@butonic.de>
    Co-authored-by: Martin <github@diemattels.at>
2022-10-04 14:58:17 +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
Martin 81c09850d9 commit 6ec933c167
Merge: 74c66cd2b 9b4c74608
Author: Martin <github@diemattels.at>
Date:   Fri Jul 1 16:05:53 2022 +0200

    Merge pull request #4077 from wkloucek/config-descriptions-reloaded

    config descriptions reloaded
2022-07-01 14:11:59 +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