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

167 Коммитов

Автор SHA1 Сообщение Дата
Vlad Filippov 63738c85b5
feat(server): Update to hapi 17 (#2486) r=@vbudhram,@philbooth
Fixes #2438

Co-authored-by: deeptibaghel deeptibaghel@gmail.com
2018-07-11 09:19:05 -04:00
Phil Booth d8bd876c02 chore(emails): delete bin/mailer_server.js (#2303) r=@vladikoff 2018-02-14 08:50:49 -05:00
Ryan Kelly bb2c67747b fix(logging): Make oauth_client_info use shared logging instance. (#2299) r=@vladikoff
Previously it would require() its own version of the logging module, and hence would not correctly use various test stubs and mocks, and hence caused npm test to dump a bunch of logging output to the screen when executing the remote tests. This changes it to accept the log object as an argument in a similar style to other modules in this repo.
2018-02-09 00:45:55 -05:00
Phil Booth a33756e8cd
chore(emails): remove all verification reminder code
https://github.com/mozilla/fxa-auth-server/pull/2283
r=vbudhram
2018-02-08 08:09:35 +00: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
John Morrison 2d59a0c5e0 fix(newrelic): allow enabling newrelic in background daemons r=@vladikoff 2017-11-13 11:11:53 -05: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 df6cd60442 fix(server): enforce 'use strict' everywhere (#2124), r=@vbudhram 2017-09-19 09:00:37 -04:00
Phil Booth f084830bcf feat(server): lazily get devices array on the request object (#2107) r=vladikoff,vbudhram
Fixes #2106.

Prevents us from accidentally calling db.devices more than once per request. I saw one definite case of this in /recovery_email/verify_code and it's possible there were others. I'll also be making use of this property heavily for the amplitude events, so it will get further usage imminently.

Making the change necessitated pulling calls to db.devices out of lib/push, which triggered some refactoring that almost got away from me. I'll add inline commentary to call out why things have changed the way they have, but most push methods now take an extra devices argument and a few other methods became redundant so I deleted them. I don't think I've broken anything.
2017-09-12 15:17:08 -04:00
Phil Booth 29036090e7 refactor(server): extract email-related routes to a separate module (#1989), r=@vbudhram 2017-07-14 09:47:59 -04: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
Vlad Filippov b06033e13f fix(mailer): escape json output (#1853) r=vladikoff
refs: bmo bug 1320211
2017-04-26 13:14:40 -04:00
Vlad Filippov bb35ed2a1c fix(notifier): disable notifier in key_server.js (#1852) r=jrgm 2017-04-26 12:04:09 -04:00
Vlad Filippov 7414ee8ac1 refactor(server): remove separate notifier process (#1800) r=vbudhram 2017-04-20 17:25:47 -04:00
John Morrison 7fd45e3432 fix(starup): handle promise rejected on bind failure (#1838) r=vladikoff,seanmonstar 2017-04-18 16:27:31 -04:00
Vlad Filippov 4a4df8e984 fix(mailer): bring back process ports for mailer_server.js (#1815) r=jrgm
Fixes #1814
2017-04-13 10:24:38 -04:00
Vijay Budhram 64c96d652f fix(config): Merge auth and mailer configs (#1798), r=@philbooth 2017-04-11 09:56:50 -04:00
Sean McArthur 470387fc24 Merge pull request #1765 from mozilla/unjection
Remove some unnecessary dependency injection
2017-03-29 09:35:00 -07:00
Sean McArthur 48d7625d65 refactor(bounces): pull bounce logic into separate module 2017-03-28 10:06:29 -07:00
Sean McArthur cbad916acd refactor(db): remove unnecessary dependency injection for DB 2017-03-27 11:54:08 -07:00
Sean McArthur a6b97a79cf refactor(routes): remove unnecessary dependency injection in routes 2017-03-27 11:54:08 -07:00
Sean McArthur 4604d5c209 Merge pull request #1735 from eoger/profile-server-push
feat(profile): send push notifications after a profile update
2017-03-27 11:49:56 -07:00
Sean McArthur 8d5c1ed29a test(remote): refactor to run remote tests in a single process
This refactors our remote test driver to stop spawning multiple
child processes to run our servers, and instead to run the servers
in the same process.

- By using the same process, we can pass configuration as a plain old
  JavaScript object, and not have to be adjusting the `process.env`.
  While writing this patch, `process.env` pollution was already found
  to make some tests dependent on others running first. Now, we can
  isolate the tests by starting a server with a private config object,
  and the other tests are non the wiser.
- By not starting up and tear down child processes for each suite of
  remote tests, the full set runs much faster. In my case, running the
  remote tests went from ~4 minutes to ~1 minute.
2017-03-23 11:30:24 -07:00
Edouard Oger 2e8342093c feat(profile): send push notifications after a profile update 2017-03-21 18:56:26 -04:00
Sean McArthur 51f85ced9a feat(mailer): check for hard bounced or complaints before sending emails 2017-03-09 10:17:49 -08:00
Phil Booth 2a5d3d0b77 fix(metrics): log locale instead of accept languages on flow events
https://github.com/mozilla/fxa-auth-server/pull/1702

r=vbudhram,vladikoff
2017-03-08 16:40:21 +00:00
Phil Booth 838b602e33 chore(deps): update bluebird (#1688) r=vladikoff 2017-03-01 13:06:46 -05:00
Phil Booth d09759cee8 fix(project): move mailer files into proper directories (#1676) r=vladikoff 2017-02-24 10:31:07 -05:00
Phil Booth d35d4420ce feat(api): add an endpoint for sending SMS messages
https://github.com/mozilla/fxa-auth-server/pull/1648

r=vbudhram
2017-02-16 08:21:22 +00: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
vladikoff 90b37d5ab5 fix(push): do not throw if push fails on the notify endpoint
Fixes #1510
2016-10-28 20:37:11 -04:00
Sean McArthur f82db02c40 feat(unblock): change unblock codes to base32 (#1529) r=vladikoff
Closes #1497
2016-10-27 14:33:26 -04:00
Phil Booth 16cf030e91 refactor(logging): decorate request object with metricsContext methods
#1503

r=seanmonstar
2016-10-16 10:02:36 +01:00
Sean McArthur c3a66c217f feat(unblock): add Signin Unblock feature
Adds a `unblockCode` parameter to the `/account/login` route, which can
be used to bypass select rate-limits.

Also addes `/account/login/send_unblock_code` and
`/account/login/reject_unblock_code` routes, to facilitate receiving an
unblock code through email, or to reject and report one if someone tried
attacking your account.

Closes #1398
2016-10-11 17:26:37 -07:00
Phil Booth 479b034ff1 fix(scripts): nicely stringify regexps when logging config 2016-10-06 14:25:53 +01:00
Phil Booth 51d7cdd081 fix(server): hide session token lastAccessTime updates behind a flag 2016-09-27 16:02:43 +01:00
John Morrison c811ebe9fb feature(newrelic): add optional newrelic integration 2016-09-06 15:41:04 -07:00
John Morrison 4085c7850f fix(geodb): load at startup and log configuration used (#1414) r=vladikoff 2016-08-15 19:07:05 -04:00
Vlad Filippov 6648da0c98 chore(deps): update tap testing to latest version (#1339) r=vladikoff 2016-07-15 09:18:20 -04:00
Phil Booth ace64e7071 feat(server): emit new activity events for kpi dashboards
r=rfk
2016-06-27 11:02:10 +01:00
Ryan Kelly d5dc75b35e feat(events): Include metrics context in SQS events 2016-05-24 13:25:30 +10:00
Ryan Kelly a1da2284ac refactor(bounces): Make bounce-handling code testable, add some tests. 2016-02-12 07:42:38 +11:00
John Morrison 2c4df032b2 fix(startup): if error on startup, log and exit 2015-10-29 14:05:19 -07:00
Ryan Kelly 30a2651852 Merge pull request #1073 from mozilla/issue-1037-extract-basket-events
refactor(basket): move basket event processing into separate repo.
2015-10-20 21:15:49 +11:00
Ryan Kelly 7d0a4fd376 refactor(basket): move basket event processing into separate repo.
The basket event-processing logic now lives in a basket-specific repo,
https://github.com/mozilla/fxa-basket-proxy/
2015-10-05 15:53:57 +11:00
Danny Coates 9a21e38e56 wip on multiple public keys 2015-09-21 17:14:23 -07:00
Phil Booth 28842c7228 feat(basket): send sync login events to basket 2015-09-17 09:58:31 +01:00
Danny Coates 14893645bb Merge pull request #1007 from dannycoates/openid2
OpenID login support
2015-08-24 15:58:27 -07:00
John Morrison e413713cf8 fix(notifier): calling undefined log.level method throws 2015-08-19 16:03:19 -07:00
Danny Coates ff5dd20a6c WIP on openid 2015-08-18 15:29:44 -07:00