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

17 Коммитов

Автор SHA1 Сообщение Дата
Phil Booth 1449161261
fix(ci): enable branch builds in travis 2018-11-15 07:33:23 +00:00
Philip Jenvey 3903f0b94f
chore: utilize a rust-toolchain file
moves the toolchain spec to solely one file
2018-09-17 15:56:03 -07:00
Beatriz Rizental 9854cc99a0 chore(deps): update rocket, failure, rusoto and rust versions 2018-08-08 09:43:34 -07:00
Phil Booth 7512acf0b8 fix(deploy): pin to a known compatible rust version in docker and ci (#131) r=@vladikoff
Fixes #130.

We don't want the regular cycle of conflicts between Rust nightlies and (usually) rocket codegen to affect us in prod. And, funnily enough, the version that I first tried pinning to contains one of those of conflicts, so good reminder there. (nightly 2018-07-15 works with Rocket 0.3.15, but we're pinned to a specific commit on master for now)
2018-07-16 08:53:44 -04:00
Phil Booth b47e2f9d4a chore(docs): automatically publish rustdoc output to github pages 2018-07-04 23:01:46 +01:00
Phil Booth 98b738a9c6
feat(metadata): store caller-specific metadata with the message id
Stores a "metadata" string from the caller in Redis, keyed by a hash of
the message id. In practice the metadata is JSON in the auth server's
case, but this repo neither knows or cares about that. No functionality
is added here to read or clear the data from Redis, that's coming in a
separate changeset for the queues process.

The HMAC key for hashing the message id comes from config, obviously,
because it's secret. It has a very specific name at the moment, but we
should feel free to rename it to something more generic than that if we
have other data that we'd like to hash with it in the future.

https://github.com/mozilla/fxa-email-service/pull/72
r=vladikoff
2018-06-19 08:28:02 +01:00
Phil Booth 22bd45fd48
chore(project): unpin rust from nightly-2018-06-10 2018-06-17 07:09:17 +01:00
Beatriz Rizental 931ae45fc5 refactor(clippy): refactor job based on some clippy lints
Fixes #52 
https://github.com/mozilla/fxa-email-service/pull/71
r=philboth
2018-06-12 07:02:49 +01:00
Phil Booth 02965a0b42 chore(project): pin rust to nightly-2018-06-10 2018-06-11 07:41:29 +01:00
Phil Booth 1d5d100d20
chore(project): update rocket, unpin from nightly-2018-05-29 2018-06-01 10:24:13 +01:00
Phil Booth e114385c03
chore(project): cargo update + pin to nightly-2018-05-29
Rocket 0.3.11 doesn't compile in Rust nightly-2018-05-30.
2018-05-31 10:03:11 +01:00
Phil Booth b716e04abb chore(ci): disable ci on non-master branches 2018-05-18 14:28:10 +01:00
Phil Booth 490a69e100
feat(db): check the emailBounces table before sending email
Loads bounce limits from config and then checks email addresses against
those limits before sending the email. If any address violates a limit,
the request will fail with status 429 and email will not be sent.

As it introduces a dependency on the fxa-auth-db-mysql repo, some extra
scripting has been thrown in to make working with node.js easier.

Running `./tdb` will check whether an `fxa-auth-db-mysql` directory
exists and, if not, clone the repo. Then it will check for running db
server processes and, if none are found, run `npm i`, run the db patcher
and start the db server in a background process. Then it finishes by
invoking the existing `./t` script.

This is not ideal because it leaves the node process running in the
background after tests have finished. But I figure it's good enough for
now because it only leaves one of them running, they don't multiply with
subsequent test runs. And you don't have to use the new script of
course, if you already have the db server running in fxa-local-dev, you
can just run `./t` and the tests should pass. The new script is mostly
there for Travis' benefit.

https://github.com/mozilla/fxa-email-service/pull/22
r=rfk,vbudhram
2018-05-16 05:25:08 +01:00
Phil Booth 4ab1d9ce03 feat(ses): implement basic ses-based email sending 2018-05-08 07:47:38 +01:00
Phil Booth 106edd8e2b chore(project): update rocket and unpin from nightly-2018-04-28 2018-05-05 09:37:43 +01:00
Phil Booth 04e33b0afc chore(ci): fix to rust nightly 2018-04-28
Related to https://github.com/SergioBenitez/Rocket/pull/624
2018-05-03 17:28:39 +01:00
Phil Booth b616c36ca3 chore(project): add ci config 2018-04-25 15:40:51 +01:00