Commit Graph

82 Commits

Author SHA1 Message Date
ownClouders
33d9be3832 [tx] updated from transifex 2023-05-04 00:25:45 +00:00
Roman Perekhod
27322c5bbf The email HTML templates added #6146 (#6147)
* The email HTML templates added #6146

* use a single palne text email template. use fs.FS

* Update services/notifications/README.md

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

* Update services/notifications/README.md

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

* fix md

---------

Co-authored-by: Roman Perekhod <rperekhod@owncloud.com>
Co-authored-by: Martin <github@diemattels.at>
2023-05-03 10:47:46 +02:00
ownClouders
01f6604182 [tx] updated from transifex 2023-05-01 00:16:24 +00:00
kobergj
0c1efbd626 Merge pull request #6137 from kobergj/DisableEmailNotifications
Disable Email Notifications
2023-04-27 13:35:11 +02:00
Christian Richter
c39a7f45ed add debug server to notifications (#6155)
Signed-off-by: Christian Richter <crichter@owncloud.com>
2023-04-27 09:56:09 +02:00
ownClouders
7cb622f4b2 [tx] updated from transifex 2023-04-27 00:19:23 +00:00
jkoberg
8b7b8d083a respect disable email setting in notification service
Signed-off-by: jkoberg <jkoberg@owncloud.com>
2023-04-26 15:33:55 +02:00
Roman Perekhod
5f4c0689cb Merge pull request #6089 from 2403905/issue-6087
Determine the users preferred language to translate emails via Transi…
2023-04-24 12:13:29 +02:00
ownClouders
169a3abe07 [tx] updated from transifex 2023-04-23 00:35:11 +00:00
Roman Perekhod
6cf09321c9 Determine the users preferred language to translate emails via Transifex. #6087 2023-04-21 16:30:48 +02:00
ownClouders
84351f78e9 [tx] updated from transifex 2023-04-21 00:34:27 +00:00
ownClouders
ac6fdd4bd1 [tx] updated from transifex 2023-04-20 04:03:38 +00:00
Martin
6c6c15d741 Merge pull request #6090 from owncloud/fix_notification_readme 2023-04-19 23:42:19 +02:00
mmattel
ad1f45eeca clarify transifex comments for translation strings 2023-04-19 19:48:42 +02:00
Michael Barz
38f6f3da2e delete empty translations [skip ci] 2023-04-19 17:03:03 +02:00
Martin
0c48a565cf Merge pull request #6079 from owncloud/fix_removal_version
[docs-only] Correct the removal version according semver to 4.0.0
2023-04-19 15:21:13 +02:00
ownClouders
5ded7aac95 [tx] updated from transifex 2023-04-19 11:11:30 +00:00
mmattel
8ed34926ef [docs-only] Correct the removal version according semver to 4.0.0 2023-04-19 10:16:06 +02:00
Roman Perekhod
22f8076a4f README.md updated.
returned value swapped
2023-04-17 16:15:21 +02:00
Roman Perekhod
cd59424a16 Make Emails translatable via transifex #6025
The transifex translation add in to the email templates.
The optional environment variable NOTIFICATIONS_TRANSLATION_PATH added to config.
2023-04-16 14:02:40 +02:00
Daniel Swärd
afbfd2d6b2 Deprecating and renaming many environment variables
Fixes #5767
Fixes #5905
Fixes #5532
2023-04-05 11:05:48 +02:00
Roman Perekhod
fcfb2ab9fa Introduced global OCIS_EVENTS_ENDPOINT and OCIS_EVENTS_CLUSTER #5901 2023-04-04 15:43:03 +02:00
David Walter
6ab0d1eab4 Update shareCreated.email.body.tmpl
German version had wrong variable
2023-03-07 17:21:26 +01:00
David Christofas
924c2ca346 add missing comments 2023-03-06 19:01:16 +01:00
David Christofas
63fa35fa50 reduce duplication in configuration code 2023-03-06 16:52:44 +01:00
Jörn Friedrich Dreyer
ce9c7b2868 fix notification tests
Signed-off-by: Jörn Friedrich Dreyer <jfd@butonic.de>
2023-02-16 13:15:57 +00:00
Jörn Friedrich Dreyer
9b00f02383 bump reva to ec27f5f8feb3
Signed-off-by: Jörn Friedrich Dreyer <jfd@butonic.de>
2023-02-15 15:26:07 +00:00
kobergj
d120880a0f update expiration email templates
Co-authored-by: Michael Barz <michael.barz@zeitgestalten.eu>
2023-01-12 15:31:49 +01:00
jkoberg
9bb83c8753 unit tests
Signed-off-by: jkoberg <jkoberg@owncloud.com>
2023-01-12 13:21:37 +01:00
jkoberg
63b592a04d membership expired notification
Signed-off-by: jkoberg <jkoberg@owncloud.com>
2023-01-12 13:21:11 +01:00
jkoberg
cfe7f39027 share expired notification
Signed-off-by: jkoberg <jkoberg@owncloud.com>
2023-01-12 13:20:57 +01:00
David Christofas
445e594eff add notification for space unshares 2022-12-21 11:20:42 +01:00
David Christofas
68ead43000 extract code to methods 2022-12-20 14:42:14 +01:00
jkoberg
b29ffeb3a9 use stream pkg instead server pkg
Signed-off-by: jkoberg <jkoberg@owncloud.com>
2022-12-20 09:53:11 +01:00
Jörn Friedrich Dreyer
b2b4f9893c align revactx package import (#5206)
Signed-off-by: Jörn Friedrich Dreyer <jfd@butonic.de>

Signed-off-by: Jörn Friedrich Dreyer <jfd@butonic.de>
2022-12-08 14:45:30 +01:00
Andre Duffeck
1b764d2142 Handle more events (#5071)
* Handle SpaceShared events

* Adapt to changed ID in the SpaceShared event

* Handle the SpaceUnshared events

* Handle the SpaceUpdated event

* update reva to latest edge

* fix typo

* Disable cyclomatic complexity check for StartAuditLogger

Co-authored-by: Michael Barz <mbarz@owncloud.com>
2022-11-23 14:00:29 +01:00
Willy Kloucek
61be11a651 improve description 2022-11-08 13:41:57 +01:00
Willy Kloucek
4db9d060b7 add NOTIFICATIONS_WEB_UI_URL 2022-11-07 15:46:29 +01:00
Jörn Friedrich Dreyer
0f7dba53fb use min tls 1.2 (#4969)
* use min tls 1.2

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

* add changelog

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

Signed-off-by: Jörn Friedrich Dreyer <jfd@butonic.de>
2022-11-03 16:08:56 +01:00
jkoberg
2443d7d687 use private link syntax for spaceinvite link
Signed-off-by: jkoberg <jkoberg@owncloud.com>
2022-11-03 15:18:03 +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
Ralf Haferkamp
fbb3382a42 Revert backwards incompatible reva config changes
The commit of unifying the Reva Client config introduced some backwards
incompatible changes to the config structures and yaml config tags. For
the "thumbnails", "webdav" and "notifications" service. This reverts the
changes on the service and introduces TLS options in a backwards
compatible manner.
2022-10-25 11:50:08 +02:00
Ralf Haferkamp
3d57f5cc21 Introduce TLS Settings for all reva grpc services and clients 2022-10-25 11:50:08 +02:00
Ralf Haferkamp
e373e48383 Get rid of duplicated Reva config struct
Consolidate all services to use the Reva config struct for the shared package.
This works because all services (except 'notifications', 'thumbnails' and
'webdav') where using the same config keys and environment variables for
setting the reva gateway.
2022-10-25 11:50:08 +02:00
Michael Barz
ec764ea5b1 improve the description of the help texts 2022-10-21 12:50:03 +02:00
David Christofas
45b92fc56f add config option to enable or disable TLS for nats 2022-10-21 12:40:21 +02:00
Christian Richter
b4caf6397c refactor templating, add subject templating
Signed-off-by: Christian Richter <crichter@owncloud.com>
2022-10-13 14:29:11 +02:00
David Christofas
4623b6c8e7 Nats tls (#4781)
* use tls for nats connections

* add config options for nats client tls config

* add nats tls config to CI

* add function to create a certpool

* add option to provide a rootCA to validate the server's TLS certificate

* add option to provide a rootCA to validate the server's TLS certificate

* add option to provide a rootCA to validate the server's TLS certificate

* add option to provide a rootCA to validate the server's TLS certificate

* configure nats clients in reva to use tls
2022-10-12 14:56:47 +02:00
Ralf Haferkamp
c6664cfe61 Fix share/space link in notification mail
Use OCIS_URL as the link base. This change also makes sure that the
top-level OcisURL config value gets a default assigned, even when
OCIS_URL is unset.

Fixes: #4688
2022-09-29 16:26:21 +02:00
Ralf Haferkamp
de1588843a Fix notifications for group grantees
For looking up group members we need to pass an authenticated reva context via
the notification interface. We use the share owner's context that we generated
when stating the share target.

Fixes: #4703
2022-09-29 16:26:21 +02:00