Commit Graph

345 Commits

Author SHA1 Message Date
Willy Kloucek
dd9afe059a bump wopi server, collabora and onlyoffice for deployment examples and ci 2023-10-24 09:43:31 +02:00
Michael Barz
749f689f33 Merge pull request #7084 from owncloud/d7oc/wopiserver-ssl
fixed WOPISERVER_INSECURE in entrypoint script for wopiserver
2023-09-27 18:56:54 +02:00
Ralf Haferkamp
48306cbef3 deployment: Disable username validation for keycloak example
Set 'GRAPH_USERNAME_MATCH' to 'none'. To accept any username that is
also valid for keycloak.
2023-09-05 16:51:01 +02:00
Dennis Sieben
004ac82f30 - changed script to be compatible with dash and busybox 2023-08-25 14:50:02 +02:00
Dennis Sieben
a810cf3906 Revert "- fixed WOPISERVER_INSECURE in entrypoint skript for wopiserver"
This reverts commit 7162b29ad4.
2023-08-25 14:34:09 +02:00
Willy Kloucek
6a8be29258 Merge branch 'master' into d7oc/wopiserver-ssl 2023-08-25 08:50:31 +02:00
Christian Richter
c63d5b83e5 Fix typos in expample deployments
Co-authored-by: Julian Koberg <jkoberg@owncloud.com>

Signed-off-by: Christian Richter <crichter@owncloud.com>
2023-08-22 17:25:24 +02:00
Christian Richter
ad439fcbde change example deployments
Signed-off-by: Christian Richter <crichter@owncloud.com>
2023-08-22 17:25:24 +02:00
Dennis Sieben
dc4fb75543 - raised default wopiserver version to 10.1.0
- raised wopiserver in ci as well
2023-08-21 20:07:15 +02:00
Dennis Sieben
7162b29ad4 - fixed WOPISERVER_INSECURE in entrypoint skript for wopiserver 2023-08-21 19:32:04 +02:00
Christian Scherm
0ddbb95300 Add fulltext search frontend part to ocis_wopi 2023-08-15 16:10:44 +02:00
Dennis Sieben
de5dfef15d - disabled revokeRefreshToken in Keycloak config 2023-08-09 16:27:59 +02:00
Florian Schade
90ba75e27e enhancement: Evaluate policy resource information on single file shares (#6888)
* enhancement: Evaluate policy resource information on single file shares

* enhancement: switch to resource name evaluation for example rego put rule
2023-07-31 12:12:56 +02:00
Willy Kloucek
30ab02d30c fix onlyoffice with wopi 2023-07-10 18:56:28 +02:00
Florian Schade
c09f82405f enhancement: add mimetype to file extension rego function (#6133)
* enhancement: add mimetype to file extension rego function

add rego function to detect the resource extension by mimetype, at the same time this pr introduces a custom ocis namespace for the rego functions.

* enhancement: add custom logPrinter to opa policies service

* fix: imports and test

TypeByExtension which is used to resolve extension by mimetype relies on MIME-info database which differs at my local env (macos <-> drone). This is fixed by using one of the builtinTypes for testing

---------

Signed-off-by: Christian Richter <crichter@owncloud.com>
Co-authored-by: Christian Richter <crichter@owncloud.com>
2023-07-10 16:28:23 +02:00
Willy Kloucek
dd5fa693e6 use wopiserver 10.0.1 2023-06-30 16:24:13 +02:00
Willy Kloucek
7455d4ed83 Merge branch 'master' into wopiserver-10 2023-06-30 15:31:15 +02:00
Michael Barz
a86aba1c41 Adapt example deployment 2023-06-08 22:17:00 +02:00
Roman Perekhod
96f658c281 Merge pull request #6440 from 2403905/issue-6436
Fix the username validation when an admin update the user
2023-06-07 12:23:47 +03:00
Roman Perekhod
1ac49dfd64 Fix the username validation when an admin update the user 2023-06-06 17:15:38 +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
Roman Perekhod
cd39dd4073 Fix to prevent the email notification X-Site scripting 2023-06-02 09:47:06 +02:00
Willy Kloucek
a16b14af9a switch to wopiserver 10 2023-05-31 12:54:11 +02:00
Ralf Haferkamp
94d9dd80eb ocis_keycloak: Don't start builtin IDP when using keycloak 2023-05-24 17:12:38 +02:00
Ralf Haferkamp
47f5245f55 ocis_keycloak: Fix deployment example
After commit 52951b42b0 we need to set PROXY_USER_CS3_CLAIM and
PROXY_USER_OIDC_CLAIM for the keycloak example to still work.

Also update release notes to mentions the changed default.
2023-05-24 17:12:38 +02:00
Roman Perekhod
972dc14dbb the idm run excluded for the ocis ldap stack #6184 2023-05-03 10:41:31 +02:00
Ralf Haferkamp
d563b63d8f Update to latest schema 2023-04-27 12:28:13 +02:00
Ralf Haferkamp
3baeee3b73 ocis_keycloak: Enable backchannel logout for "web" client
This enables backchannel logout for the "web" client.

Also this bumps keycloak to 21.1
2023-04-24 16:02:52 +02:00
Florian Schade
fdaf39f5d1 fix: proxy policies middleware tus filename evaluation
when uploading files via uppy (tus), the path does not give any information about the file, PUT contains the filename in the path, tus POST not.

this pr extracts the HeaderUploadMetadata from that POST request and enhances the policies grpc environment request with that information.

Therefore, the policies service is now able to evaluate proxy requests for tus uploads too.
2023-04-18 20:26:52 +02:00
Michael Barz
8d76b15e6e add roles to scope 2023-04-04 22:41:47 +02:00
Ralf Haferkamp
087e768f35 ocis_keycloak: Move to role assignment via oidc claim (#5882)
Use the new PROXY_ROLE_ASSIGNMENT_DRIVER "oidc". This also means we can
now run with OCIS_ADMIN_USER_ID being empty. So that no admin user will
be created on startup and no default role assignment will happen.

By setting GRAPH_ASSIGN_DEFAULT_USER_ROLE to "false", we make sure to
not create the default "user" role assignment when auto provisioning a
user.
2023-03-20 21:04:37 +01:00
Florian Schade
f38a9f4385 Introduce Policies-Service (#5716)
* add policies service
add policies proxy middleware
add policies event service
add policies grpc service
prepare ci and git environments (ci, make, readme, doc)

* add webfinger to the drone conf

* fix docs
remove not used virus scan postprocessing step

* relocate example rego file
implicitly enable and disable proxy and postprocessing policy checking by setting the query.
update configuration descriptions

* move policies
update readme

* use converter func to convert pp environment to actual environment
expose and test custom rego functions
add engine unit tests
add opa unit tests
update policies readme

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

* relocate sample policies to the deployments folder
change and document policies service port

* update index.md and small fix

* add health command
add version command
add debug server

---------

Co-authored-by: Martin <github@diemattels.at>
2023-03-14 16:08:22 +01:00
David Christofas
1039953a3b Merge pull request #5806 from amamus/patch-3
Update .env
2023-03-13 09:55:11 +01:00
David
f944f9f8d1 Update .env
Added Collabora Admin Panel URL
2023-03-12 20:58:43 +01:00
David
ff7cb56b17 Update .env
added explanation how to use traefik dashboard basic auth
2023-03-12 20:18:18 +01:00
Willy Kloucek
1a6f432d62 Merge pull request #5720 from wkloucek/onlyoffice-file-size
increase allowed file size in onlyoffice
2023-03-08 14:10:30 +01:00
Ralf Haferkamp
b57504696b ocis_keycloak: Add ocis roles as realm roles (#5750)
* ocis_keycloak: Add ocis roles as realm roles

This adds the roles ocisAdmin, ocisSpaceAdmin, ocisUser and ocisGuest as realm roles
to the the oCIS realm. It also assigns those roles to the demo users.

Additionally the missing demo user "Katherine Johnson" is added with the role of
"ocisSpaceAdmin".

* Expose realm_roles in "roles" claim of id tokens and userinfo
2023-03-08 12:11:21 +01:00
Willy Kloucek
77dae5ac0b increase allowed file size in onlyoffice 2023-03-02 16:10:46 +01:00
Dennis Sieben
3808603a07 - make ldap example use share for certs 2023-02-28 09:00:13 +01:00
Ralf Haferkamp
72a5a25f04 ocis_ldap: Remove leftover schema file
When moving to the bitnami OpenLDAP image, we forgot to remove
the owncloud schema file from the `ldif` directory.
2023-02-27 12:47:17 +01:00
Ralf Haferkamp
8ec167d792 ocis_ldap example: Switch to newer ldap server image
Switch away from the unmaintained osixia image to the more uptodate
bitnami image.

Also update the owncloud schema to include the latest changes

Fixes #5636
2023-02-24 12:10:22 +01:00
Ralf Haferkamp
026842f99c ocis_ldap example: allow to run with podman
Make docker socket path and log driver configurable to be able to run
the example deployment with podman.
2023-02-24 12:10:22 +01:00
Willy Kloucek
4591c7e715 Merge pull request #5628 from owncloud/ChrisEdS-docker-compose-fix
Fix invalid type in ocis_traefik docker-compose file
2023-02-22 19:04:05 +01:00
Christian Scherm
6e1dc16199 Fix invalid type in ocis_traefik docker-compose file 2023-02-22 15:34:13 +01:00
Christian Scherm
a90e13af99 Fix invalid type in ocis_wopi docker-compose file
Fix for 
`ERROR: The Compose file './docker-compose.yml' is invalid because:
services.ocis.environment.NOTIFICATIONS_SMTP_INSECURE contains true, which is an invalid type, it should be a string, number, or a null`
2023-02-22 15:25:33 +01:00
Daniël Franke
22f3577b7d Update comment 2023-02-20 14:40:10 +01:00
Daniël Franke
3f39bb530e Integrate feedback. 2023-02-20 14:40:10 +01:00
Daniël Franke
bea3ec6207 Add refint support to user rename.
When refint is enabled on an LDAP server, it will rename all references
to an entity if its DN is modified. If this happens, the member
renames will not be needed, and will also return an error.

This PR does the following:

* Detects the attribute error, and don't return an error.
* Log that the server has been misconfigured.
* Add config value that skips renaming if set.
2023-02-20 14:40:10 +01:00
Willy Kloucek
33ce53d436 fix account console in keycloak deployment example 2023-02-15 09:18:04 +01:00
Willy Kloucek
1029775635 enable bruteforce protection 2023-02-08 17:26:32 +01:00