Carlos Quintana
4986ace59f
fix: emit mailboxes change event from alias_mailbox_utils ( #2264 )
2024-10-15 09:39:40 +02:00
Carlos Quintana
f3ca74d9b3
chore: unify change alias mailboxes logic ( #2262 )
2024-10-14 20:25:17 +02:00
Carlos Quintana
bdb0c8bd08
feat: alias audit log ( #2261 )
...
* feat: alias audit log
* feat: crontab to delete old alias_audit_log entries
* Unified messages
---------
Co-authored-by: Adrià Casajús <adria.casajus@proton.ch>
2024-10-14 12:45:00 +02:00
Carlos Quintana
1554bea064
feat: record newrelic event for http status code ( #2259 )
2024-10-11 07:51:52 +00:00
Carlos Quintana
7c0db6067b
fix(admin): change alias.verified to alias.enabled ( #2260 )
2024-10-11 09:41:58 +02:00
Carlos Quintana
076d5108d8
feat: update sentry and ignore 416 errors ( #2258 )
...
* dep: update sentry_sdk
* feat(sentry): ignore 416 status codes
2024-10-10 15:42:54 +02:00
Adrià Casajús
8b5dc9190d
Only change the profile picture if data is sent ( #2255 )
...
* Only change the profile picture if data is sent
* Ensure email is sent
* re-use var
* Ensure email is given on login
* Remove arm from build images
* reverted login changes
2024-10-09 09:13:49 +00:00
Carlos Quintana
b269ce81e6
fix: missing branch on get_alias_recipient_name ( #2254 )
...
* fix: missing branch on get_alias_recipient_name
* test: add test for missing else branch
2024-10-09 10:46:48 +02:00
Carlos Quintana
5bc72f92d4
feat(admin): show better info for alias mailboxes ( #2253 )
...
* feat(admin): show better info for alias mailboxes
* fix: limit the amount of alias mailboxes shown
2024-10-08 17:09:09 +02:00
Carlos Quintana
9bc0c7d24d
chore: extract alias recipient name into function ( #2252 )
2024-10-08 12:48:53 +02:00
Adrià Casajús
eac73c4e8b
On alias transfer send the proper events ( #2249 )
2024-10-04 13:17:59 +00:00
Carlos Quintana
9d5697b624
chore: DNS validation improvements ( #2248 )
...
* chore: DNS validation improvements
* fix: do not show domains pending deletion
* fix: generate verification token if null
* revert: dmarc cleanup
2024-10-03 13:04:17 +02:00
Adrià Casajús
06ab116476
Fix: Allow to create mailboxes for a custom domain if they are not sl domains ( #2236 )
2024-10-02 13:50:51 +00:00
Carlos Quintana
b97a1dd52c
fix: improve MX and SPF domain handling ( #2246 )
...
* fix: improve MX and SPF domain handling
* fix: do not use get_instance function
* fix: legacy use of tuples instead of MxRecord
* refactor: rename partner custom domain variables
2024-10-02 15:46:10 +02:00
Carlos Quintana
ed5e62d479
fix: custom_domain deleted error ( #2245 )
2024-10-02 09:45:54 +02:00
Carlos Quintana
940db18383
chore: extract set_custom_domain_mailboxes from controller ( #2244 )
...
* chore: extract set_custom_domain_mailboxes from controller
* test: set_custom_domain_mailboxes
* feat: improve set_custom_domain_mailboxes performance
2024-10-01 11:25:00 +02:00
Carlos Quintana
8cbd8eb841
fix: preserve web behaviour for mailbox verify code override ( #2240 )
2024-09-30 12:23:58 +02:00
Carlos Quintana
6d17eaa1ec
feat: allow override mailbox verification code ( #2239 )
2024-09-30 11:55:12 +02:00
Carlos Quintana
80404b4dca
chore: add custom domain indices ( #2238 )
2024-09-30 11:52:44 +02:00
Adrià Casajús
b59ca3e47c
Move more contact creation logic to a single function ( #2234 )
...
* Move more contact creation logic to a single function
* Reordered parameters
* Fix invalid arguments
2024-09-27 16:04:32 +02:00
Carlos Quintana
4762dffd96
feat: disable whitelist events ( #2230 )
2024-09-27 15:55:25 +02:00
Adrià Casajús
df4c52815b
Add monitoring for app connections to the db ( #2235 )
2024-09-27 08:00:25 +02:00
Carlos Quintana
20c1145a1d
fix: wrong retries column name in monitoring ( #2233 )
2024-09-25 14:33:14 +02:00
Carlos Quintana
a3bd6969ec
chore: extract delete custom domain from controller ( #2229 )
2024-09-20 14:19:28 +02:00
Adrià Casajús
38d377acb3
Extract contact creation logic to an external function ( #2228 )
...
* Extract contact creation logic to an external function
* PR comments
2024-09-20 10:11:57 +02:00
Carlos Quintana
d0ba7675f0
chore: event changes ( #2227 )
...
* chore: change max_retries to 10
* chore: only send custom domain deleted event if it is not a partner domain
* chore: newrelic events metric names rename
* chore: emit failed events metric
* chore: migration for contact.flags and custom_domain.pending_deletion
* chore: mark custom_domain as pending_deletion when deleting it
* chore: add event type to metric
2024-09-19 16:20:56 +02:00
Carlos Quintana
4d359cff7a
feat: allow to define partner records ( #2226 )
...
* refactor: make config variables explicit
* refactor: make mandatory to have -verification suffix for prefix
2024-09-18 12:18:30 +02:00
Carlos Quintana
b5866fa779
feat: allow to define partner records ( #2225 )
2024-09-18 12:12:42 +02:00
Carlos Quintana
f6708dd0b6
chore: refactor dns to improve testability ( #2224 )
...
* chore: refactor DNS client to its own class
* chore: adapt code calling DNS and add tests to it
* chore: refactor old dkim check not to clear flag
2024-09-17 16:15:10 +02:00
Carlos Quintana
065cc3db92
chore: refactor create custom domain ( #2221 )
...
* fix: scripts/new-migration to use poetry again
* chore: add migration to add custom_domain.partner_id
* chore: refactor create_custom_domain
* chore: allow to specify partner_id to custom_domain
* refactor: can_use_domain return cause
* refactor: remove intermediate result class
2024-09-17 10:30:55 +02:00
Carlos Quintana
647c569f99
feat: extract custom domain utils to a service ( #2215 )
2024-09-13 14:49:48 +02:00
Adrià Casajús
5301d2410d
Send alias creation time in alias status change event also and rename some proto fields ( #2217 )
2024-09-13 14:25:38 +02:00
Adrià Casajús
486b6a7ad1
Send the alias creation time in the alias creation event ( #2216 )
2024-09-13 13:39:41 +02:00
Adrià Casajús
025d4feba0
Sync on partner user creation + several fixes ( #2214 )
...
* Do not close session since it leads to orphan user object
* Redirect instead of render to avoid having to have a mailbox object
* On inital partner link/login trigger sync
* Update github action upload/artifact to v4
* Remove sys.exit used to test script locally
* Simplified script to update alias flags and note
2024-09-12 16:58:20 +02:00
Adrià Casajús
b61a171de3
Add tests that all events have all the info we need ( #2211 )
...
* Add tests that all events have all the info we need
* Reorder
* Fix import
2024-09-10 11:05:24 +02:00
Son Nguyen Kim
7856706da1
fix "authentication with proton" button in mobile view ( #2210 )
...
Co-authored-by: Son NK <son@simplelogin.io>
2024-09-09 11:22:33 +02:00
Adrià Casajús
1ba97eef6e
Fix: Add alias delete event to contain email
2024-09-06 18:23:12 +02:00
Adrià Casajús
9f33764068
Ensure mailbox verifcation exception is caught and show proper error to the user
2024-09-06 15:47:47 +02:00
Adrià Casajús
cc44247482
AdminPanel: Show up to 10 mailboxes found ( #2204 )
...
* AdminPanel: Show up to 10 mailboxes found
* Add links
2024-09-03 17:05:05 +02:00
Adrià Casajús
1fb2e8f01c
Fix newrelic test
2024-09-02 17:23:51 +02:00
Adrià Casajús
5b0fd3cee4
Email search improvements
2024-09-02 17:00:56 +02:00
Adrià Casajús
728f9bf1f8
Add metrics and logs for the event sending
2024-09-02 16:59:20 +02:00
Son Nguyen Kim
d49f6b88a9
Upgrade djlint and reformat all fiels ( #2197 )
...
* update djlint
* reformat all files
* update precommit version
---------
Co-authored-by: Son NK <son@simplelogin.io>
2024-08-28 13:07:34 +02:00
Son Nguyen Kim
c1625a8002
Fix user can't choose "not selected" for default alias domain ( #2196 )
...
* update contributing guide: replace rye by poetry and add a section for mac
* fix the bug where user can't choose "not selected" for the default alias domain
* ruff format
* remove trailing space
---------
Co-authored-by: Son NK <son@simplelogin.io>
2024-08-27 23:26:12 +02:00
Son Nguyen Kim
4b82dff070
Replace forum.simplelogin.io by github one ( #2193 )
...
Co-authored-by: Son NK <son@simplelogin.io>
2024-08-25 22:22:39 +02:00
Carlos Quintana
35a950da04
fix: add missing commits on event sending ( #2192 )
2024-08-23 13:32:32 +02:00
Carlos Quintana
737c561227
fix: specify default dispatcher in job runner ( #2191 )
2024-08-23 09:11:47 +02:00
Carlos Quintana
57991f4d6b
feat: add command to debug sync events ( #2190 )
2024-08-21 10:35:08 +00:00
Carlos Quintana
33c418d7c6
chore: allow to define a different DB_URI for event listener ( #2189 )
2024-08-20 14:01:48 +00:00
Carlos Quintana
a72b7bde92
chore: add config for enabling sync for specific users ( #2184 )
...
* chore: add config for enabling sync for users
* chore: error handling
2024-08-19 06:35:39 +00:00