Граф коммитов

30 Коммитов

Автор SHA1 Сообщение Дата
hritvi 818115f0d7 refactor(fxa-auth-server): Added prefer-arrow-callback rule in .eslintrc 2019-03-26 11:09:35 +05:30
hritvi fca50dc23c refactor(fxa-auth-server): Added no-var rule in .eslintrc 2019-03-26 11:09:35 +05:30
hritvi 1b910f0af9 refactor(fxa-auth-server): Added semicolons(semi rule) 2019-03-26 11:09:35 +05:30
Shane Tomlinson 0b3e970de1
refactor(logging): Update to Mozlog format.
Remove all of the `op:` stuff in the logging.

fixes #2940
2019-03-08 17:40:04 +00:00
Phil Booth 03a2f2ee73
fix(metrics): ensure email sent amplitude events include device id 2018-11-29 13:01:08 +00:00
Phil Booth ec3ff7ba8d
fix(metrics): use correct format for email service notifications
The email service made a conscious break with the SQS notification
structure, to make the recipients array more uniform. Rather than
sometimes being an object with an `emailAddress` property and other
times being a string, it makes the items plain strings on all
notification types.

When I added code for the new notification queue to this repo, I forgot
about that and just ported the SQS logic verbatim. This fixes it to
always expect plain strings in the recipient arrays.
2018-10-29 06:10:45 +00:00
Phil Booth ccd55565de
feat(metrics): add code and config for email service notification queue
Fixes #2633.

Once the email service starts handling bounce and complaint events we
will need a way for it to tell the auth server to emit metrics. This
change adds a handler + config for a new SQS queue to that end. It
duplicates some of the code from other handlers but that's intentional,
we plan to remove those queues eventually.
2018-10-25 15:31:57 +01:00
Phil Booth a00dcac4da
chore(email): force value to boolean in account deletion check 2018-08-28 15:15:39 +01:00
Phil Booth 55b3290082
feat(metrics): add amplitude event properties for email service/sender
https://github.com/mozilla/fxa-auth-server/pull/2508
r=rfk
2018-07-10 10:19:51 +01:00
Vlad Filippov e2d2a7ecd5 feat(emails): delete bounced registrations that are younger than 6 hours (#2305); r=rfk
Fixes https://github.com/mozilla/fxa-content-server/issues/5629
2018-03-05 09:38:35 +11:00
Vijay Budhram 3953051b18 fix(bounce): Update bounces lib to use `accountRecord` (#2273) r=@rfk,@vladikoff
Fixes #2272
2018-01-30 19:12:38 -05:00
Phil Booth e7bbb86de3
chore(deps): update fxa-geodb
https://github.com/mozilla/fxa-auth-server/pull/2259
r=vbudhram
2018-01-20 09:03:38 +00:00
Phil Booth 8d23ca987e chore(logging): log email headers to diagnose #2133 2017-10-05 16:07:30 +01:00
Phil Booth 925760aacd feat(metrics): implement email_version amplitude property
https://github.com/mozilla/fxa-auth-server/pull/2145
r=vbudhram
2017-10-03 14:09:41 +01:00
Phil Booth 4f6f367f5e fix(metrics): fix the data on email sent events
https://github.com/mozilla/fxa-auth-server/pull/2139
r=rfk
2017-09-25 08:11:43 +01:00
Phil Booth 34bf4926f9 chore(logs): log error if headers are missing in email notifications
https://github.com/mozilla/fxa-auth-server/pull/2135
r=shane-tomlinson
2017-09-22 13:21:35 +01:00
Phil Booth 938ef5cbdf feat(metrics): include fxa_services_used in amplitude user properties
https://github.com/mozilla/fxa-auth-server/pull/2125
r=vbudhram
2017-09-19 22:49:20 +01:00
Phil Booth df6cd60442 fix(server): enforce 'use strict' everywhere (#2124), r=@vbudhram 2017-09-19 09:00:37 -04:00
Phil Booth 0567350615 fix(metrics): include missing user_properties on amplitude events
https://github.com/mozilla/fxa-auth-server/pull/2114
r=rfk
2017-09-18 08:24:50 +01:00
Ryan Kelly a2e3d1ee27 fix(bounces): Handle mis-formatted bounce addrs as best we can. (#2090); r=jrgm
Different mail servers format the addresses in their bounce messages
in different ways, not all of them strictly RFC compliant.  This change
makes us more lenient in what we accept, so that we don't error out
when receiving a bounce from a noncompliant server, so long as the result
ends up looking like a valid email address.

Fixes https://bugzilla.mozilla.org/show_bug.cgi?id=1393961
2017-09-06 13:30:36 +10:00
Phil Booth 5800418902 feat(logging): send amplitude events to the logs
https://github.com/mozilla/fxa-auth-server/pull/2069
r=rfk,vbudhram
2017-08-28 10:53:25 +01:00
Sean McArthur 0cfd39ca05 refactor(lib): use strings instead of buffers for as much as possible
This settles our dance of `Buffer` vs `String` down to simply this:

> You have a `String`. You should (almost) never have a `Buffer`.

Buffers are useful for talking about a specific set of bytes, without an
encoding. In our app, the places where this is useful are:

- crypto
- mysql

We don't actually speak MySQL in this repo anywhere, so that leaves us
with only crypto. Instead of requiring the mental overhead of "Do I have
a buffer or a string?" throughout all our code base, we can just push
that completely into the crypto code.

This *should* reduce bugs where we aren't sure if we have a `Buffer` or
a `String`. If you're not in crypto, you should just have a `String`.
2017-06-28 16:05:30 -07:00
Sean McArthur 82b24e24e8 fix(email): log a 'sent' email event for each CC address (#1936), r=@vbudhram 2017-06-09 10:25:08 -04:00
Ryan Kelly 3f7ed68e09 chore(log): Remove datadog/statsd integration (#1921); r=vladikoff
We've had too many doubts about the reliability of the numbers to get any
value out of it in practice, so let's remove it to keep things simple.
2017-06-04 12:32:32 +10:00
Sean McArthur 23593c75f3 fix(email): check case insensitive headers in EmailSent event (#1916), r=@philbooth, @vbudhram 2017-05-26 08:42:42 -04:00
Vijay Budhram 1932afee05 feat(logging): Use correct logging format (#60) r=vladikoff 2017-03-17 15:10:14 -04:00
Vijay Budhram 37d656975a refactor(logging): Log email domain if popular otherwise log `other` (#1666), r=@rfk, @vladikoff (#59) 2017-03-17 13:19:55 -04:00
Sean McArthur b4279c1ac4 feat(email): record email bounces in database 2017-02-09 15:54:04 -08:00
Divya Biyani 8ca537cbcc feat(space-unary-ops) : changes according to space unary ops eslint rule (#1639) r=vladikoff 2017-02-08 10:39:56 -05:00
Vijay Budhram 2e84e07e02 feat(email): Add flow events for email delivery notifications (#1626), r=@philbooth
Adds support for handling and processing `flowEvents` for email delivery.
2017-01-26 13:52:05 -05:00