Commit graph

5044 commits

Author SHA1 Message Date
Adrià Casajús
f7882e971e fix: use the domain part of the domain to check if it is a proton addrss 2025-05-14 11:02:47 +02:00
Adrià Casajús
45db4a43ef
Take also into account smtp sending time when there is an error (#2466)
* Take also into account smtp sending time when there is an error

* Add event with the error type
2025-05-12 10:47:08 +00:00
Bohdan Shtepan
4aa126fe0f
IDTEAM-4740: use parallel_limiter to prevent auth_mfa abusing. (#2464)
* IDTEAM-4740: use parallel_limiter to prevent auth_mfa abusing.

* IDTEAM-4740: put back the regular rate limiter.
2025-05-12 10:23:19 +02:00
Carlos Quintana
300500c0c6
fix: flash message content in alias moved to trash (#2461) 2025-05-08 08:56:07 +00:00
Carlos Quintana
1bc0c98834
chore: add missing postgresql_concurrently to migration (#2460) 2025-05-08 08:07:09 +00:00
Carlos Quintana
5a778eb8d6
fix: flash message content in alias moved to trash (#2458) 2025-05-07 17:06:13 +02:00
Emmanuel Ferdman
abc981fa08
fix: migrate to logger.warning usage (#2456)
Signed-off-by: Emmanuel Ferdman <emmanuelferdman@gmail.com>
2025-05-07 14:44:02 +00:00
Carlos Quintana
a3d7732ed8
test: skip apple payment test (#2457) 2025-05-07 16:39:09 +02:00
Carlos Quintana
6e898b141a
Add debug message when retrying message (#2455)
Co-authored-by: Adrià Casajús <adria.casajus@proton.ch>
2025-05-06 17:10:54 +02:00
Carlos Quintana
e68d395554
fix(job-runner): add newrelic annotation to job runner (#2454) 2025-05-06 14:06:12 +00:00
Carlos Quintana
8770b5eaf9
fix: add missing on-delete-cascade constraint (#2453) 2025-05-06 12:01:51 +02:00
Carlos Quintana
6b0c920c03
fix: admin panel delete domain and time calculation (#2449)
* fix(admin): only show delete domain if domain is not pending to be deleted

* fix(oneshot): oneshot script removal and time calculation fix
2025-05-05 09:29:46 +00:00
Carlos Quintana
46b42042db
chore: add missing index for job (#2450) 2025-05-05 11:25:03 +02:00
Carlos Quintana
c1e72bb460
chore: add log message when job is done (#2448)
* fix: schedule subscription job fixes

* chore: add log when job has finished
2025-04-30 10:07:48 +00:00
Carlos Quintana
8369e9e216
fix: schedule subscription job fixes (#2447) 2025-04-30 11:55:13 +02:00
Carlos Quintana
b0562e3b8a
fix: time calculation division check (#2446) 2025-04-30 09:15:50 +00:00
Adrià Casajús
3e3931104b
schedule job script fixes (#2445)
Co-authored-by: Carlos Quintana <74399022+cquintana92@users.noreply.github.com>
2025-04-30 08:48:27 +00:00
Carlos Quintana
846938e610
feat(admin): allow to remove custom domain (#2442) 2025-04-30 08:41:32 +00:00
Carlos Quintana
b4945bde33
feat: add job to schedule subscription sync (#2443) 2025-04-30 10:08:11 +02:00
Son Nguyen Kim
e7eae199ec
improve copy (#2438)
Co-authored-by: Son NK <son@simplelogin.io>
2025-04-22 10:13:10 +02:00
Carlos Quintana
0e95f3d047
feat: allow to limit max email recipients (#2436)
* feat: allow to limit max email recipients

* Set cmake min version

---------

Co-authored-by: Adrià Casajús <adria.casajus@proton.ch>
2025-04-14 16:03:02 +02:00
Carlos Quintana
c7cbc7a4c8
chore: update error message alias custom domain (#2432) 2025-04-04 12:36:59 +02:00
Adrià Casajús
77bd9730ab
Update rate limit to take into account user ID with several fixes (#2431)
* Add more debug info

(cherry picked from commit 4bda49e7ad)

* Add rate limit

* Fix dockerfile to force CMAKE version policy

(cherry picked from commit 2e4a86f9c0)
2025-03-31 12:04:51 +02:00
Carlos Quintana
7a707bdb6d
fix: trash custom domain alias deletes it (#2429)
* fix: trash custom domain alias deletes it

* chore: remove redundant commits
2025-03-27 16:33:49 +01:00
Carlos Quintana
2c1abd05fa
fix: limit schemes for proton oauth (#2428) 2025-03-27 09:57:04 +01:00
Carlos Quintana
29a6350299
fix: alias trash copy (#2427) 2025-03-26 15:47:12 +00:00
Adrià Casajús
a0ba3b1a71
Add config to force http unsub for a certain set of users (#2425) 2025-03-26 09:56:59 +00:00
Carlos Quintana
9e8ee6467c
fix: only allow api_to_cookie if is for same user (#2423) 2025-03-20 15:45:24 +01:00
Adrià Casajús
8acc48d997
Remove nex in activation email and allow to disable change linking accounts in proton (#2421) 2025-03-20 10:38:07 +00:00
Adrià Casajús
bb4d51d6e0
Preserve List-ID (#2420) 2025-03-19 15:05:25 +01:00
Adrià Casajús
3962ab5fb0
Preserve Unsubscribe header and create one that always unsubs via alias (#2419)
* Preserve original unsubs

* Preserve original behaviour in an extra header
2025-03-19 10:59:18 +01:00
Carlos Quintana
84364a1684
feat: alias restore check quota (#2418)
* feat: alias restore check quota

* Update app/dashboard/views/alias_trash.py

Co-authored-by: Adrià Casajús <acasajus@users.noreply.github.com>

* Update app/dashboard/views/alias_trash.py

Co-authored-by: Adrià Casajús <acasajus@users.noreply.github.com>

---------

Co-authored-by: Adrià Casajús <acasajus@users.noreply.github.com>
2025-03-18 11:05:09 +00:00
Carlos Quintana
a70baad478
Implement Alias Trash (#2417)
* wip: start implementing alias trash

* Added alias trash dashboard page

* test: delete_alias changes

* Format html

* fix: mailbox deletion

* feat: add delete_alias_action setting in dashboard settings

* chore: disable alias when trashing it

* Add restore tests

* Move tras/restore to alias_actions

* rename alias_actions to alias_delete

* Remove alias_actions

* Send events and alias audit log on alias restore

* feat: adapt queries to trashed alias

* chore: add metrics on alias trash actions

* fix: missing empty arg

* Add rate limit for restore and restore all

* fix: mailbox alias count

* feat: properly handle alias deletion for custom domain deletion

* chore: add error logs

* chore: update alias trash copy + change Trash location

* feat: make can_create_new_alias not take trashed aliases into account

* chore: update mailbox deletion dialog copy

---------

Co-authored-by: Adrià Casajús <adria.casajus@proton.ch>
2025-03-18 10:10:56 +01:00
Carlos Quintana
352be83839
deps: update flask-limiter and redis deps (#2406) 2025-03-04 09:48:38 +01:00
Carlos Quintana
78aa169c10
feat: add monitoring to job runner (#2404)
* feat: add monitoring to job runner

* feat: add proper error handling in job runner

* chore: unify newrelic metric
2025-02-27 15:42:20 +00:00
Carlos Quintana
7ecae793d7
deps: pin dkimpy to 1.0.5 to avoid py3dns dependency (#2405) 2025-02-27 15:27:32 +00:00
Carlos Quintana
1f710d3d11
fix: check api key exists before returning session (#2403) 2025-02-27 15:51:48 +01:00
Carlos Quintana
9940d04758
feat: add script to send sync user jobs (#2402) 2025-02-27 09:54:45 +01:00
Carlos Quintana
b06f6dde76
refactor: move job names to enum in constants (#2401) 2025-02-26 16:52:49 +01:00
Carlos Quintana
59957ec08b
chore: fix regex warnings on python 3.12 (#2400)
* deps: update some dependencies to fix warnings

* chore: move from sl.local to sl.lan for local development

* fix: mark string as regex

* chore: move facebook import to handler so its not global

* test: fix tests

* style: lint fixes

* test: move all .test and .local to .lan

* ci: do not use setup-python in lint
2025-02-26 15:41:50 +01:00
Carlos Quintana
f5de78f2e1
chore: add query limit to job runner (#2399) 2025-02-26 10:05:55 +01:00
Carlos Quintana
ba9ed4f956
chore: upgrade to python 3.12 (#2396)
* chore: upgrade to python 3.12

* ci: do not use setup-python

* deps: add limits dependency

* deps: remove fixed dependency to six

* chore: disable profiler in flask debug toolbar as it does not work with python3.12

* deps: specify strictyaml dependency for yacron
2025-02-26 09:33:34 +01:00
Carlos Quintana
821a080e1c
chore: upgrade to python 3.11 (#2395) 2025-02-25 15:47:14 +00:00
Carlos Quintana
abdbbe98a2
feat: job runner priorities (#2394)
* feat: job runner priorities

* chore: remove duplicate index
2025-02-25 16:28:01 +01:00
Adrià Casajús
9c3f346280
Allow several job runners to run in parallel (#2281)
* Allow several job runners to run in parallel

* Fix test

* fix: job_runner

---------

Co-authored-by: Carlos Quintana <carlos.quintana@proton.ch>
2025-02-25 15:02:51 +01:00
Adrià Casajús
7e77afa4fc
Fix: if there's an expired manual sub, extend it (#2393) 2025-02-21 14:44:31 +01:00
Adrià Casajús
a908e1cd18
Tweak lifetime command 2025-02-11 15:00:11 +01:00
Adrià Casajús
869ea8bd7d
Set mailbox verified on pre-verified email change 2025-02-11 10:53:21 +01:00
Adrià Casajús
accab2dd52
Add button to unlink from the admin panel (#2387)
* Add button to unlink from the admin panel

* format

* typo

* typo
2025-02-10 10:09:45 +00:00
Carlos Quintana
1903fa53c1
fix: allow to retrieve none getattr for request-id (#2388) 2025-02-10 09:35:11 +01:00