notifications-consumer merge requestshttps://gitlab.cern.ch/push-notifications/notifications-consumer/-/merge_requests2021-03-29T15:55:59+02:00https://gitlab.cern.ch/push-notifications/notifications-consumer/-/merge_requests/36[#27] SoftDelete support in PG queries2021-03-29T15:55:59+02:00Emmanuel Ormancey[#27] SoftDelete support in PG queriesCloses #27Closes #27PrototypeEmmanuel OrmanceyEmmanuel Ormanceyhttps://gitlab.cern.ch/push-notifications/notifications-consumer/-/merge_requests/34[#26] Limit access to sending critical notifications2021-03-26T11:42:15+01:00Dimitra Chatzichrysoudimitra.chatzichrysou@cern.ch[#26] Limit access to sending critical notificationsFixes also DB mapping errors.
Closes #26Fixes also DB mapping errors.
Closes #26PrototypeCarina AntunesIgor JakovljevicCarina Antuneshttps://gitlab.cern.ch/push-notifications/notifications-consumer/-/merge_requests/29[#24] Fix Live Email template2021-03-09T10:59:08+01:00Dimitra Chatzichrysoudimitra.chatzichrysou@cern.ch[#24] Fix Live Email templateCloses #24
- Fixes title from being on the bottom of the page for live emails:
![image](/uploads/3e37b458fbe45fc5c17e3b24d25865f4/image.png)
- After updating the templates:
![image](/uploads/c57d7bffcd9464d0d4c1f98de67f4ced/image.png)Closes #24
- Fixes title from being on the bottom of the page for live emails:
![image](/uploads/3e37b458fbe45fc5c17e3b24d25865f4/image.png)
- After updating the templates:
![image](/uploads/c57d7bffcd9464d0d4c1f98de67f4ced/image.png)PrototypeCarina AntunesIgor JakovljevicCaetan Tojeiro CarpenteCarina Antuneshttps://gitlab.cern.ch/push-notifications/notifications-consumer/-/merge_requests/27[#21] Refactor ids: use uuid (clone)2021-02-26T18:59:18+01:00Emmanuel Ormancey[#21] Refactor ids: use uuid (clone)not much, DB changes for ids as string
Closes #21not much, DB changes for ids as string
Closes #21PrototypeEmmanuel OrmanceyEmmanuel Ormanceyhttps://gitlab.cern.ch/push-notifications/notifications-consumer/-/merge_requests/11[#6] Add .dockerignore2020-11-23T14:29:14+01:00Dimitra Chatzichrysoudimitra.chatzichrysou@cern.ch[#6] Add .dockerignoreCloses #6Closes #6PrototypeCarina AntunesIgor JakovljevicCarina Antuneshttps://gitlab.cern.ch/push-notifications/notifications-consumer/-/merge_requests/10[#12] Add a email whitelist configuration and use it in the email processor2020-11-23T13:16:18+01:00Dimitra Chatzichrysoudimitra.chatzichrysou@cern.ch[#12] Add a email whitelist configuration and use it in the email processorCloses #12Closes #12PrototypeCarina AntunesIgor JakovljevicCarina Antuneshttps://gitlab.cern.ch/push-notifications/notifications-consumer/-/merge_requests/83[#64] Auditing events2022-02-07T18:35:54+01:00Emmanuel Ormancey[#64] Auditing eventsCloses #64Closes #64PilotEmmanuel OrmanceyEmmanuel Ormanceyhttps://gitlab.cern.ch/push-notifications/notifications-consumer/-/merge_requests/82[#63] Use cs8-base image in Dockerfile-base2021-12-16T14:59:33+01:00Dimitra Chatzichrysoudimitra.chatzichrysou@cern.ch[#63] Use cs8-base image in Dockerfile-baseCloses #63Closes #63PilotEmmanuel OrmanceyCarina AntunesCaetan Tojeiro CarpenteJose SemedoEmmanuel Ormanceyhttps://gitlab.cern.ch/push-notifications/notifications-consumer/-/merge_requests/81[#62] Replace whitelist with group2021-12-17T12:29:39+01:00Dimitra Chatzichrysoudimitra.chatzichrysou@cern.ch[#62] Replace whitelist with groupCloses #62Closes #62PilotEmmanuel OrmanceyCarina AntunesCaetan Tojeiro CarpenteJose SemedoEmmanuel Ormanceyhttps://gitlab.cern.ch/push-notifications/notifications-consumer/-/merge_requests/78[#59][HOTFIX] Headers multiline error2021-10-07T13:54:44+02:00Emmanuel Ormancey[#59][HOTFIX] Headers multiline errorCloses #59
- Updated ```vendor/django_mail/message.py``` to specify maxlen=0 (no max) on each Header instanciation so that long headers are not splitted into multi lines.
Fixed the current multiline subject issue, but not the SMIME iss...Closes #59
- Updated ```vendor/django_mail/message.py``` to specify maxlen=0 (no max) on each Header instanciation so that long headers are not splitted into multi lines.
Fixed the current multiline subject issue, but not the SMIME issue (currently fixed by an ugly replace in ```prepareSignedMessage```. ```smail``` module also has calls to headers, and could be copied locally for the same fix to be applied.PilotEmmanuel OrmanceyEmmanuel Ormanceyhttps://gitlab.cern.ch/push-notifications/notifications-consumer/-/merge_requests/76[#58] Mattermost Device support2021-10-11T11:14:20+02:00Emmanuel Ormancey[#58] Mattermost Device supportCloses #58
- New activeMQ queue for Mattermost consumer
- Mattermost sending using ```mattermostdriver``` python package.
Requires env
```
MATTERMOST_SERVER=mattermost.web.cern.ch
MATTERMOST_TOKEN=fill-me
```Closes #58
- New activeMQ queue for Mattermost consumer
- Mattermost sending using ```mattermostdriver``` python package.
Requires env
```
MATTERMOST_SERVER=mattermost.web.cern.ch
MATTERMOST_TOKEN=fill-me
```PilotEmmanuel OrmanceyEmmanuel Ormanceyhttps://gitlab.cern.ch/push-notifications/notifications-consumer/-/merge_requests/73[#54 ] Sign outgoing mails (SMIME)2021-08-10T15:30:51+02:00Emmanuel Ormancey[#54 ] Sign outgoing mails (SMIME)Closes #54
- Enable SMIME by using smimesmtp backend, and set 2 files for certificate
```
EMAIL_BACKEND=vendor.django_mail.backends.smimesmtp.EmailBackend
EMAIL_SMIME_CERT_FILE_PATH=/etc/notifications-noreply.pem
EMAIL_SMIME_CERT_KEY_FI...Closes #54
- Enable SMIME by using smimesmtp backend, and set 2 files for certificate
```
EMAIL_BACKEND=vendor.django_mail.backends.smimesmtp.EmailBackend
EMAIL_SMIME_CERT_FILE_PATH=/etc/notifications-noreply.pem
EMAIL_SMIME_CERT_KEY_FILE_PATH=/etc/notifications-noreply-key.pem
```
should be used for mail / mail_daily / mail_weekly / mail_monthly
Requires
```https://pypi.org/project/python-smail/```
and probably asn1 module upgrade.PilotEmmanuel OrmanceyEmmanuel Ormanceyhttps://gitlab.cern.ch/push-notifications/notifications-consumer/-/merge_requests/68[#52] Set expiration of message to 48h2021-06-13T20:29:21+02:00Dimitra Chatzichrysoudimitra.chatzichrysou@cern.ch[#52] Set expiration of message to 48hCloses #52
Infra: https://gitlab.cern.ch/push-notifications/notifications-infra/-/merge_requests/66Closes #52
Infra: https://gitlab.cern.ch/push-notifications/notifications-infra/-/merge_requests/66PilotEmmanuel OrmanceyCarina AntunesCaetan Tojeiro CarpenteEmmanuel Ormanceyhttps://gitlab.cern.ch/push-notifications/notifications-consumer/-/merge_requests/67[#50] Send notification source type2021-06-15T22:54:14+02:00Dimitra Chatzichrysoudimitra.chatzichrysou@cern.ch[#50] Send notification source typeCloses #50
Refers to https://gitlab.cern.ch/push-notifications/notifications-design/-/issues/12Closes #50
Refers to https://gitlab.cern.ch/push-notifications/notifications-design/-/issues/12PilotEmmanuel OrmanceyCarina AntunesCaetan Tojeiro CarpenteEmmanuel Ormanceyhttps://gitlab.cern.ch/push-notifications/notifications-consumer/-/merge_requests/60[#47] Add db integration tests2021-06-21T16:39:27+02:00Dimitra Chatzichrysoudimitra.chatzichrysou@cern.ch[#47] Add db integration testsCloses #47Closes #47PilotCarina AntunesIgor JakovljevicCaetan Tojeiro CarpenteCarina Antuneshttps://gitlab.cern.ch/push-notifications/notifications-consumer/-/merge_requests/55[#44] Fix webpush issue on empty message body2021-05-25T01:09:37+02:00Emmanuel Ormancey[#44] Fix webpush issue on empty message bodyCloses #44Closes #44PilotEmmanuel OrmanceyEmmanuel Ormanceyhttps://gitlab.cern.ch/push-notifications/notifications-consumer/-/merge_requests/52[#43] HTML Decode content for push2021-05-10T11:34:21+02:00Emmanuel Ormancey[#43] HTML Decode content for pushCloses #43Closes #43PilotEmmanuel OrmanceyEmmanuel Ormanceyhttps://gitlab.cern.ch/push-notifications/notifications-consumer/-/merge_requests/51[#42][HOTFIX] Invalid link to channel and notification link in Mail and Digest2021-05-17T15:54:30+02:00Emmanuel Ormancey[#42][HOTFIX] Invalid link to channel and notification link in Mail and DigestCloses #42Closes #42PilotEmmanuel OrmanceyEmmanuel Ormanceyhttps://gitlab.cern.ch/push-notifications/notifications-consumer/-/merge_requests/50[#36] Implement monthly and weekly consumers2021-06-17T16:54:31+02:00Dimitra Chatzichrysoudimitra.chatzichrysou@cern.ch[#36] Implement monthly and weekly consumersCloses #36Closes #36PilotEmmanuel OrmanceyCarina AntunesIgor JakovljevicCaetan Tojeiro CarpenteEmmanuel Ormanceyhttps://gitlab.cern.ch/push-notifications/notifications-consumer/-/merge_requests/48[#41] Catch error 410 Gone to not retry2021-04-30T15:14:25+02:00Emmanuel Ormancey[#41] Catch error 410 Gone to not retryCloses #41
- Sendpush will only throw an exception if error is temporary (503) so it will be retried.
- If error 410 (device does not accept notifications anymore) then specific log for later cleanup
For reference Webpush Error codes h...Closes #41
- Sendpush will only throw an exception if error is temporary (503) so it will be retried.
- If error 410 (device does not accept notifications anymore) then specific log for later cleanup
For reference Webpush Error codes https://autopush.readthedocs.io/en/latest/http.html#error-codesPilotEmmanuel OrmanceyEmmanuel Ormancey