Commit Graph

734 Commits

Author SHA1 Message Date
Jörn Friedrich Dreyer
43547cc681 Benchmark options (#5684)
* make benchmark clients remember cookies

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

* add --rate option for benchmark clients

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

* create a new request on every request to fix vanishing data

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

* use corret minute unit

Co-authored-by: Florian Schade <f.schade@icloud.com>

---------

Signed-off-by: Jörn Friedrich Dreyer <jfd@butonic.de>
Co-authored-by: Florian Schade <f.schade@icloud.com>
2023-03-07 11:37:14 +01:00
Michael Barz
50a30c0340 remove arm from docker releases 2023-03-03 16:12:53 +01:00
jkoberg
a1fbbbb82b add commands for missing services
Signed-off-by: jkoberg <jkoberg@owncloud.com>
2023-03-01 15:05:37 +01:00
Jörn Friedrich Dreyer
ddae4f67f5 Benchmark cli (#5652)
* cli to benchmark low level syscalls

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

add benchmark client & syscall commands

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

* update the oidc-agent docs

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

* Update ocis/pkg/command/benchmark.go

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

---------

Signed-off-by: Jörn Friedrich Dreyer <jfd@butonic.de>
Co-authored-by: Martin <github@diemattels.at>
2023-02-28 09:14:53 +01:00
jkoberg
d56565555b introduce userlog service
Signed-off-by: jkoberg <jkoberg@owncloud.com>
2023-02-21 14:25:21 +01:00
jkoberg
c9dfb778a9 sharpen eventhistory service
Signed-off-by: jkoberg <jkoberg@owncloud.com>
2023-02-21 10:51:32 +01:00
Jörn Friedrich Dreyer
2c98d3246c 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 11:05:20 +01:00
Jörn Friedrich Dreyer
078698fdf4 graph: add appRoleAssignments and minimal application resource (#5318)
* bump libregraph-go lib

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

* add appRoleAssignment stubs

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

* add get application stub

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

* fetch appRoles for application from settings service

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

* initial list appRoleAssignments implementation

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

* initial create appRoleAssignment implementation, extract assignmentToAppRoleAssignment, configurable app id and displayname

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

* initial delete appRoleAssignment implementation, changed error handling and logging

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

* initial expand appRoleAssignment on users

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

* test user expand appRoleAssignment

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

* test appRoleAssignment

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

* fix education test by actually using the mocked roleManager

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

* test getapplication

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

* list assignments

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

* use common not exists error handling

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

* default to just 'ownCloud Infinite Scale' as application name

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

* fix store_test

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

* roll application uuid on init

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

* fix tests

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

* extract method

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

* Apply suggestions from code review

Co-authored-by: Michael Barz <mbarz@owncloud.com>

Signed-off-by: Jörn Friedrich Dreyer <jfd@butonic.de>
Co-authored-by: Michael Barz <mbarz@owncloud.com>
2023-01-12 16:09:34 +01:00
kobergj
341cdc9dd3 Merge pull request #5207 from kobergj/AsyncPostprocessing
[full-ci] Async Postprocessing
2022-12-16 11:58:24 +01:00
Jörn Friedrich Dreyer
53d15d329e remove deprecated use of ioutil (#5205)
Signed-off-by: Jörn Friedrich Dreyer <jfd@butonic.de>

Signed-off-by: Jörn Friedrich Dreyer <jfd@butonic.de>
2022-12-08 14:44:53 +01:00
jkoberg
06f3f5adb3 start pp service in single binary
Signed-off-by: jkoberg <jkoberg@owncloud.com>
2022-12-08 11:49:04 +01:00
Michael Barz
7e6b57e138 make storage users mount id configurable (#5091) 2022-11-25 13:47:41 +01:00
Willy Kloucek
86a108ac49 switch to a more recent alpine image for image builds (#5123) 2022-11-25 13:35:24 +01:00
David Christofas
ac6d53d317 Merge pull request #4960 from owncloud/ocis-readme
add a README to the ocis package
2022-11-03 10:44:58 +01:00
Ralf Haferkamp
ee974afebf [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 10:17:08 +01:00
Edith Parzefall
2e22d00801 Apply suggestions from code review
language review
2022-11-03 09:42:47 +01:00
David Christofas
56c3d9d76f add a README to the ocis package 2022-11-03 09:42:39 +01:00
David Christofas
ab5ceb1928 add nats tls insecure flags to ocis init 2022-10-12 17:24:16 +02:00
Willy Kloucek
503c8a38eb add curl to the oCIS OCI image 2022-10-07 07:14:37 +02:00
David Christofas
3babaf1a4d remove the graph-explorer servier from ocis (#4733) 2022-10-04 15:55:30 +02:00
Ralf Haferkamp
5d121b4bad Do not start auth-bearer service by default
The auth-bearer service is currently not needed by ocis. Reva tookens
for oidc authenticated clients are currently minted via the auth-machine
service.  This commit does not completely remove the service as we shoud
consider to rework the proxy's oidc middleware to use the auth-bearer
service in the future (see #4701)

Fixes: #4692
2022-09-28 12:11:06 +02:00
Ralf Haferkamp
8f2bf0ed9c Default to in-memory registry in single-binary mode
This avoids various issues of the old "mdns" default. At least for the simple
single process setup (#3134, #4597). When starting the services individually we
still default to "mdns".
2022-09-26 16:25:56 +02:00
Willy Kloucek
c997e50b8d add insecure option to ocis init 2022-09-26 09:26:04 +02:00
Andre Duffeck
8bdfe5f6d1 Update ocis/pkg/command/migrate.go
Co-authored-by: Jörn Friedrich Dreyer <jfd@butonic.de>
2022-09-09 15:33:20 +02:00
André Duffeck
1f68321acc Add support for the jsoncs3 public share manager 2022-09-09 13:07:01 +02:00
Jörn Friedrich Dreyer
38b2a9a487 Merge branch 'master' into jsoncs3-share-manager 2022-08-25 15:24:20 +00:00
Jörn Friedrich Dreyer
1287d1ba52 migration fixes
Signed-off-by: Jörn Friedrich Dreyer <jfd@butonic.de>
2022-08-25 15:19:02 +00:00
Willy Kloucek
9f2be9f4f9 remove Log prefix from configlog functions 2022-08-22 08:08:18 +02:00
Willy Kloucek
e58eaabdeb move config parse error logging into function to ensure new lines and don't parse config for help 2022-08-18 15:27:28 +02:00
Willy Kloucek
6154466bbc rename extensions to services (leftover occurences) 2022-08-17 15:36:52 +02:00
jkoberg
f64ea7dc1b make runset a map
Signed-off-by: jkoberg <jkoberg@owncloud.com>
2022-07-21 16:19:36 +02:00
jkoberg
4b8d1acdf4 allow providing list of services not to start
Signed-off-by: jkoberg <jkoberg@owncloud.com>
2022-07-21 15:51:17 +02:00
Willy Kloucek
c68039185a relax folder permissions in the dockerfile for
- /var/lib/ocis
- /etc/ocis
from 750 to 751, to allow oCIS running with uid/pid != 1000 to traverse
these directories for eg. the case that a volume is mounted in these
directories.
2022-07-18 10:12:28 +02:00
Willy Kloucek
9f0a31140f Merge pull request #4102 from wkloucek/fix-logging-levels
fix logging levels and go micro default log level
2022-07-11 09:31:19 +02:00
Bishop Clark
155baa83cb Update README.md
adjective order
2022-07-09 12:45:02 -07:00
Willy Kloucek
83bbabac3c remove leftover setMicroLogger from runtime 2022-07-08 07:55:11 +02:00
Ralf Haferkamp
875ad911db Fixup previous commit to avoid using blank imports 2022-07-07 17:16:28 +02:00
Ralf Haferkamp
4a09d8a948 Remove redundant setting of cli.HelpFlag
The help flag is configured automatically by default already. We don't
need to redo that for every single service.

This also addresses one of the finding of "go race" (#4088)
2022-07-05 14:59:06 +02:00
Willy Kloucek
33f6ee34fc fix logging levels and go-micro logging format 2022-07-05 13:49:30 +02:00
Willy Kloucek
8f3b0c50cd Merge branch 'master' into config-doc-descriptions 2022-06-28 13:03:19 +02:00
Christian Richter
3b87f75132 further refactoring & add changelog
Signed-off-by: Christian Richter <crichter@owncloud.com>
2022-06-27 14:07:02 +02:00
Christian Richter
f8f1320501 refactor extensions -> services
Signed-off-by: Christian Richter <crichter@owncloud.com>
2022-06-27 14:05:36 +02:00
Willy Kloucek
8e19a83e36 Merge branch 'master' into config-doc-descriptions 2022-06-27 10:56:16 +02:00
André Duffeck
f290330dbc Actually use the sharing configuraion from the config file 2022-06-27 10:14:11 +02:00
André Duffeck
f2cbffa938 Incorporate review suggestions 2022-06-21 14:33:20 +02:00
André Duffeck
42e32e5b69 Implement migrating public shares 2022-06-21 12:06:53 +02:00
André Duffeck
df6f00ffbb Make the source and destination managers configurable 2022-06-21 12:06:53 +02:00
André Duffeck
f15aec8859 Implement a "migrate" command for migrating between share managers 2022-06-21 12:06:53 +02:00
Willy Kloucek
9bf2661395 add more config doc descriptions 2022-06-21 09:13:38 +02:00
Willy Kloucek
68a6f43538 fix version info 2022-06-13 10:43:52 +02:00