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

2606 Коммитов

Автор SHA1 Сообщение Дата
Phil Booth 307f24c639 chore(docs): document the newsletter flow events
https://github.com/mozilla/fxa-auth-server/pull/1951
r=philbooth
2017-06-21 12:49:03 +01:00
Ryan Kelly 88a9fc8a9b fix(notifications): Make data fields consistent across all notifyAttachedServices calls. (#1879); r=philbooth
Previously, some of them send a plain "uid" and some of them sent the "uid" as "uid@domain" for historical reasons.  Now they all just send a plain "uid", with the domain in a separate "iss" field.
2017-06-21 12:21:38 +10:00
Phil Booth 3f78f6eefd fix(server): step in before node-uap parses Sync UA strings
https://github.com/mozilla/fxa-auth-server/pull/1949
r=vbudhram
2017-06-19 08:44:08 +01:00
Phil Booth 13eeab2b89 feat(metrics): emit a flow.continued event for signinCodes
https://github.com/mozilla/fxa-auth-server/pull/1946
r=seanmonstar
2017-06-16 11:53:05 +01:00
Vijay Budhram a358d7c7b8 Release v1.89.0 2017-06-14 06:46:04 -04:00
Vijay Budhram bcad58c76b fix(email): Escape device name in HTML emails. (#1944), r=@philbooth
It's derived from user-provided data, so we can't trust it
enough to insert it as a raw string.

https://github.com/mozilla/fxa-auth-server-private/pull/66

r=philbooth
2017-06-14 06:43:47 -04:00
Shane Tomlinson fa9ebc70e2 fix(CAD): Fix connectMethod table formatting. (#1941), r=@philbooth 2017-06-13 11:39:21 -04:00
Ryan Kelly be2d1ef074 fix(tests): Update loadtests to cope with sign-in confirmation (#1890) r=jrgm,vladikoff 2017-06-12 16:27:05 -04:00
Sean McArthur 5ca2acbf35 Make our test suite faster (again) (#1938) r=vladikoff
* test(i18n): cache parsing of po files

When running our remote tests, every time we restarted the server, we
would re-parse all of the po translation files. Each time takes around
500ms. By caching files we've already parsed, this shaves around 12s off
the remote test suite.

* test(dev): make `npm test` faster, provide `npm run test-ci`

Since `npm test` is what we run constantly when working on features, if
we can make it faster, we make development faster.

- Disable memcache. We never specifically start a memcached, but the
  tests were running trying to look for it. With the default settings
  being to retry once with a 500ms timeout, many test would hang for 1s
  checking memcached for data that wasn't even useful to the test. By
  setting to 'none', this saved 45s.

- Disable scrypt. scrypt is **slow**. While developing locally, and
  running the tests, we don't actually need to test that some value run
  through scrypt turns out to be correctly encrypted. By using the
  verifier version '0', this saved 55s.

- Disable coverage. Using coverage takes some time to instrument the
  code, and spawn in a child process. While nyc is pretty good at caching,
  and the slow down isn't that much, it's also more annoying to debug
  with. First, it ruins all stack trace lines numbers. Second, it spits a
  gigantic coverage report at the end of the test run, requiring scrolling
  back up to see the actual test results.

To make sure we still run the test suite with the default options
enabled, this provides a `test-ci` target, that is enabled to be always
be run from TravisCI and Circle.
2017-06-09 15:30:45 -04:00
Vlad Filippov 8dfb5e3d33 fix(tests): add CC suport to mail_helper (#1937) r=vbudhram 2017-06-09 11:32:54 -04: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
Sean McArthur 85bbeacf7b Merge pull request #1934 from mozilla/bounce-tiers
feat(bounces): add tiers to bounce blocklist
2017-06-08 12:35:27 -07:00
Sean McArthur 09e18e5161 feat(bounces): add tiers to bounce blocklist
The config for each bounce type can now contain a map of counts vs
durations. This allows a tiered approach to blocking email actions based
on bounce history.

For example:

```
{
  0: 5000,
  5: 20000
}
```

This tier mapping is translated as "more than 0 in 5 seconds" or "more
than 5 in 20 seconds". If either condition is true, the appropriate
error is thrown.

The throw error also now includes the timestamp of the latest bounce, to
allow for reporting of when exactly that bounce was recorded at.

Closes #1893
2017-06-07 17:04:16 -07:00
Sean McArthur 47b7f037af Merge pull request #1933 from mozilla/phil/issue-1932
fix(server): remove duplicate URL-safe base 64 validator
2017-06-07 11:49:42 -07:00
Phil Booth 50f63036f2 fix(server): remove duplicate URL-safe base 64 validator 2017-06-07 18:10:51 +01:00
Vijay Budhram a459ff102f feat(emails): Add endpoint to check if secondary emails are enabled (#1926), r=@philbooth, @rfk 2017-06-07 10:49:52 -04:00
Shane Tomlinson aa789f805f fix(CAD): Document CAD flow events.
https://github.com/mozilla/fxa-auth-server/pull/1922
r=philbooth
2017-06-07 15:38:25 +01:00
Shane Tomlinson 38bca361ff Merge pull request #1925 from mozilla/use-real-sender-for-mock-nexmo r=@philbooth
fix(sms): Use the real email sender when sending via MockNexmo
2017-06-07 13:50:41 +01:00
Shane Tomlinson ef2cc2a5dd fix(test): Fix the broken smsSend test.
Also remove `sender` when sending a mail from the mock-nexmo.
It isn't needed to send the message.
2017-06-07 12:54:22 +01:00
Shane Tomlinson 068791aff5 fix(test): Add tests for the `sender` and `from` fields in mock-nexmo. 2017-06-07 11:47:46 +01:00
Shane Tomlinson 577db706a9 fix(sms): Use the real email sender when sending via MockNexmo
We were using a made up sender, which caused our email provider
to drop the messages on the ground when testing on fxa-ci. Messages
were reported as delivered, but never seen again.
2017-06-07 11:47:46 +01:00
Vijay Budhram ae0a4f81f9 feat(emails): Add email metrics documentation (#1919) r=vladikoff,davismtl 2017-06-06 15:50:57 -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
Phil Booth c9b0c43ebb Release v1.88.1 2017-06-01 22:14:58 +01:00
Phil Booth 23946522b9 fix(sms): ditch the balance checks due to rate-limiting woe
https://github.com/mozilla/fxa-auth-server/pull/1924

r=vbudhram,shane-tomlinson
2017-06-01 22:13:15 +01:00
Sean McArthur d03f96f82f Release v1.88.0 2017-05-30 22:02:31 -07:00
Shane Tomlinson 27c6b2eb0f Merge pull request #1920 from mozilla/sms-in-email-helper r=@philbooth
feat(sms): Show SMS links in the mail helper.
2017-05-30 17:45:15 +01:00
Shane Tomlinson fd4b85ad58 feat(sms): Show SMS links in the mail helper. 2017-05-30 17:27:15 +01:00
Vlad Filippov f2a3d156c1 Merge pull request #1918 from mozilla/public-87.1-backport
Backport ECDH key validation from private repo
2017-05-29 08:57:31 -04:00
Phil Booth f10655d1b7 feat(server): add endpoint for consuming signinCodes
https://github.com/mozilla/fxa-auth-server/pull/1906

r=vbudhram,shane-tomlinson
2017-05-29 09:54:27 +01:00
Ryan Kelly 05034798bb chore(push): Add a link to nodejs ECDH issue in code comments. 2017-05-29 14:53:36 +10:00
Ryan Kelly 5825341706 Merge tag 'v1.87.1-private' into public-87.1-backport 2017-05-29 14:51:29 +10:00
Vlad Filippov 90185f7740 Release v1.87.1 2017-05-26 09:21:47 -04:00
Vlad Filippov 5362c64ee6 fix(push): add extra logs 2017-05-26 09:21:24 -04:00
Ryan Kelly 8920a012d8 fix(push): Validate push public keys at registration time.
We currently allow devices to submit invalid public keys with
their push registration, causing attempts to notify those devices
to fail in an ugly way.  This adds additional validation so that
only known-good keys get stored in the db.
2017-05-26 09:21:24 -04: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
Vlad Filippov 43b8fd839e fix(tests): adjust public keys in tests 2017-05-25 17:16:02 -04:00
udara 91ce14c3f0 fix(notifications): Send disable notification to all devices 2017-05-25 17:16:02 -04:00
Phil Booth 009428e422 fix(devices): handle new user agent string from Sync client lib
https://github.com/mozilla/fxa-auth-server/pull/1909

r=seanmonstar
2017-05-25 08:10:20 +01:00
Sean McArthur 3ae52506e1 Merge pull request #1912 from udaraweerasinghege/patch-1
chore(ci): always get most recent node 4 on travis
2017-05-24 09:29:36 -07:00
Udara Weerasinghege 4e9b8b4e9e chore(ci): always get most recent node 4 on travis 2017-05-24 10:51:17 -04:00
Ryan Kelly 33d752d4f2 Merge pull request #1900 from eoger/push-on-account-destroy; r=rfk
Send push notification on account destroy
2017-05-23 08:08:06 +10:00
Phil Booth 2610d2f5f4 feat(server): include signinCode in the installFirefox SMS
https://github.com/mozilla/fxa-auth-server/pull/1904

r=shane-tomlinson,vbudhram
2017-05-22 16:03:13 +01:00
Edouard Oger 163e2f4d0c feat(push): send push notification on account deletion 2017-05-18 14:19:49 -04:00
Edouard Oger 7ba4f67fcf fix(push): correct params types in push.js 2017-05-18 14:19:47 -04:00
Phil Booth 2d5943c306 fix(docs): overhaul the metrics events documentation
https://github.com/mozilla/fxa-auth-server/pull/1901

r=vbudhram
2017-05-18 14:38:07 +01:00
Phil Booth 643ed85864 feat(docs): automatically generate API docs from the code
https://github.com/mozilla/fxa-auth-server/pull/1786

r=vladikoff
2017-05-18 11:48:04 +01:00
Vijay Budhram 65f85bb95f Release v1.87.0 2017-05-17 10:32:54 -04:00
Phil Booth 362aa6b750 chore(deps): update nexmo (#1899), r=@vbudhram 2017-05-17 09:37:20 -04:00
Vlad Filippov ff78b043d8 feat(emails): enable secondary email for matching emails (#1896), r=@vbudhram 2017-05-15 10:53:53 -04:00