Ralf Haferkamp
01cde87af0
Adjust mockery configs for new name
2025-01-13 15:05:38 +01:00
Jörn Friedrich Dreyer
8e028f17e9
change module name
...
Signed-off-by: Jörn Friedrich Dreyer <jfd@butonic.de >
2025-01-13 09:58:18 +01:00
Jörn Friedrich Dreyer
dde999d5c2
align shutdown logging
...
Signed-off-by: Jörn Friedrich Dreyer <jfd@butonic.de >
2024-10-28 14:47:11 +01:00
Christian Richter
26bf70a5b1
remove random default ports
...
Signed-off-by: Christian Richter <crichter@owncloud.com >
2024-10-23 11:12:20 +02:00
Florian Schade
66ff86bd35
enhancement: simplify ready and health check handler usage
2024-10-16 20:26:00 +02:00
Christian Richter
3defed1bc4
add http checks to invitations & ocs
...
Signed-off-by: Christian Richter <crichter@owncloud.com >
2024-10-15 13:49:22 +02:00
Christian Richter
0094d30378
code cleanup & refactoring
...
Signed-off-by: Christian Richter <crichter@owncloud.com >
2024-10-14 08:39:42 +02:00
Florian Schade
0671039474
enhancement: add readyz and healthz check handler
2024-10-14 08:39:42 +02:00
Florian Schade
c82a7c560e
enhancement: use global ready and health handlers
2024-10-14 08:39:42 +02:00
Jörn Friedrich Dreyer
a3c7bd3182
bump libre graph api
...
Signed-off-by: Jörn Friedrich Dreyer <jfd@butonic.de >
2024-08-19 14:20:20 +02:00
Jörn Friedrich Dreyer
066c4b8173
only register signal handling once
...
Signed-off-by: Jörn Friedrich Dreyer <jfd@butonic.de >
2024-07-29 16:28:13 +02:00
Jörn Friedrich Dreyer
7999e2969b
do not force exit to let all services shutdown gracefully
...
Signed-off-by: Jörn Friedrich Dreyer <jfd@butonic.de >
2024-07-24 14:02:52 +02:00
Jörn Friedrich Dreyer
9d1515e8fc
rely on context from app
...
Signed-off-by: Jörn Friedrich Dreyer <jfd@butonic.de >
2024-07-24 14:02:11 +02:00
Jörn Friedrich Dreyer
008f379a01
pass config context when running apps
...
Signed-off-by: Jörn Friedrich Dreyer <jfd@butonic.de >
2024-07-24 13:30:42 +02:00
Jörn Friedrich Dreyer
7a22dfb6de
NotifyContext when running services standalone
...
Signed-off-by: Jörn Friedrich Dreyer <jfd@butonic.de >
2024-07-24 13:26:58 +02:00
Jörn Friedrich Dreyer
799b12b8dd
fix service names for userlog, graph, invitations, sse and web
...
Signed-off-by: Jörn Friedrich Dreyer <jfd@butonic.de >
2024-05-13 17:04:01 +02:00
Thomas Müller
a8cbc612cc
chore: remove unused return value from BindSourcesToStructs ( #9033 )
2024-04-30 18:18:31 +02:00
Thomas Müller
bdbba929d0
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 09:10:35 +02:00
Thomas Müller
07f0cd5574
fix: typos, naming clashes, error messages and deprecations
2024-04-03 15:34:36 +02:00
Christian Richter
fe4cd7a901
make code more readable
...
Signed-off-by: Christian Richter <crichter@owncloud.com >
2024-03-19 14:21:21 +01:00
Christian Richter
b5ca297f54
prevent nil pointer
...
Signed-off-by: Christian Richter <crichter@owncloud.com >
2024-03-19 13:56:10 +01:00
Christian Richter
72916dc53c
adapt cors headers
...
Signed-off-by: Christian Richter <crichter@owncloud.com >
Signed-off-by: Jörn Friedrich Dreyer <jfd@butonic.de >
2024-03-19 10:54:58 +01:00
Phil Davis
9d2be66a85
chore: add introductionVersion pre5.0 to environment variable docs
2024-03-06 17:50:20 +05:45
Ralf Haferkamp
3d3f8949f5
Bump mockery to 2.40.2
...
to address issues when building with go1.22:
https://github.com/vektra/mockery/pull/753
2024-02-09 11:48:45 +01:00
Jörn Friedrich Dreyer
fad94d2038
bump mockery, add test stub for oidc_auth.go, align mock generation ( #8321 )
...
* bump mockery, add test stub for oidc_auth.go
Signed-off-by: Jörn Friedrich Dreyer <jfd@butonic.de >
* use .mockery.yaml for all mocks
Signed-off-by: Jörn Friedrich Dreyer <jfd@butonic.de >
* drop legacy go:generate mockery
Signed-off-by: Jörn Friedrich Dreyer <jfd@butonic.de >
* align mock placement
Signed-off-by: Jörn Friedrich Dreyer <jfd@butonic.de >
---------
Signed-off-by: Jörn Friedrich Dreyer <jfd@butonic.de >
2024-02-01 10:07:44 +01:00
Florian Schade
ad06a192d8
enhancement: add graph beta listPermissions endpoint ( #7753 )
...
* enhancement: add graph beta listPermissions endpoint
besides the new api endpoint it includes several utilities to simplify the graph api development.
* resolve drive and item id from the request path
* generic pointer and value utilities
* space root detection
* update GetDriveAndItemIDParam signature to return a error
* move errorcode package
* enhancement: add generic error code handling
* fix: rebase
2023-11-28 17:06:04 +01:00
mmattel
5e74b50efb
[docs-only] Fix envvars with a array slice ([]string)
2023-11-09 12:22:59 +01:00
jkoberg
1f1aa50c54
hard exit when services fail
...
Signed-off-by: jkoberg <jkoberg@owncloud.com >
2023-09-21 13:53:18 +02:00
Daniël Franke
053ffc869f
Change invitations to use service tracing provider
...
This changes the invitations service to use the service tracing provider.
2023-07-25 12:06:42 +02:00
mmattel
6ad53971ef
[docs-only] Increase readability for log level values in the description
2023-07-07 10:33:42 +02:00
mmattel
d7b447b791
[docs-only] Increase readability for tracing values in the description
2023-07-07 09:50:39 +02:00
Ralf Haferkamp
c9a9fddef1
Consitently switch to stretchr/testify
...
We were using stretchr/testify and test-go/testify inconsitently and
sometimes mixed in the same tests. This can cause very strange issue,
e.g when using things like mock.MatchedBy().
This moves all our code to stretchr/testify, which seems to be far
more active and maintained then test-go/testify.
2023-06-29 13:44:49 +02:00
Daniel Swärd
571d2318c0
Add missing span kind for tracing. ( #6471 )
...
* Add missing span kind for tracing.
* Add missing spanKind for tracing.
2023-06-22 10:09:10 +02:00
mmattel
758192bd6d
[docs-only] Fix some envvar descriptions
2023-06-09 13:03:17 +02:00
Willy Kloucek
733e5efdda
Merge pull request #6444 from owncloud/remove-references-to-oc.ios-protocol
...
remove references to oc.ios://ios.owncloud.com since it is no longer used
2023-06-05 15:28:03 +02:00
Willy Kloucek
0f3dddafab
remove references to oc.ios://ios.owncloud.com since it is no longer used
2023-06-05 13:57:05 +02:00
jkoberg
d347448ec0
remove duplicated sutureservice code
...
Signed-off-by: jkoberg <jkoberg@owncloud.com >
2023-06-02 12:02:27 +02:00
Phil Davis
4874da778c
Reword 'allow to' sentences
2023-05-18 09:48:29 +05:45
Daniël Franke
a52ebd1f79
Make getUserByParams private.
2023-04-19 10:46:50 +02:00
Daniël Franke
81491efdc7
Remove GetUserByEmail method.
2023-04-19 10:19:07 +02:00
Daniël Franke
30edab9f69
Search users by username instead of by email
...
As some setups don't have email addresses setup or reuse email
addresses, the keycloak search has to be done by username as that
is guaranteed to always be unique and defined.
This PR changes that.
2023-04-18 11:43:13 +02:00
Daniël Franke
2d8fb2549a
Add modified mock.
2023-04-14 15:09:54 +02:00
Daniël Franke
2e8b741530
improve readme
...
Co-authored-by: Martin <github@diemattels.at >
2023-04-14 15:09:54 +02:00
Daniël Franke
8e32b4f5da
Integrate keycloak and events data into graph.
...
This PR adds the data from keycloak and events into the GDPR export of
the graph service.
2023-04-14 15:09:54 +02:00
mmattel
b2504035e0
fix readme service names
2023-04-12 18:40:41 +02:00
kobergj
e46041b01f
Merge pull request #5955 from owncloud/ainmosni/feature/keycloak-pkg
...
Add keycloak package.
2023-03-30 15:01:49 +02:00
Daniël Franke
bc9ba63b06
Fix tests for invitations service.
2023-03-30 11:12:00 +02:00
Martin
2ac804cb89
[docs-only] Update example-realm.json
...
Remove not necessary source code ticks from file.
2023-03-29 14:42:25 +02:00
mmattel
b52a2bf8a9
[docs-only] Just a small README.md fix for invitations
2023-03-29 14:19:32 +02:00
Daniël Franke
5793970e5d
Add keycloak package.
...
This PR adds the keycloak package, which contains the following:
* More genericised functions for the invitations backend.
* User query functions.
* PII query functions.
2023-03-29 13:37:03 +02:00