Commit Graph

388 Commits

Author SHA1 Message Date
Colin McDonald
254d5336bf Don't require removedBy field when deleting grants, ip bans, and punishments 2016-07-11 22:53:31 -04:00
Colin McDonald
e48a0c1736 Add audit log todo 2016-07-11 21:50:37 -04:00
Colin McDonald
1f3d01b4e2 Remove debug from MaxMind util 2016-07-11 18:39:20 -04:00
Colin McDonald
d2dcd8c3e1 Add default permissions 2016-07-11 18:39:07 -04:00
Colin McDonald
b9c9a3f9bc Change default log level back to error 2016-07-11 18:38:48 -04:00
Colin McDonald
536de6d8b2 Make all save and delete methods on models use void callbacks (instead of exposing Mongo's internal result) 2016-07-10 16:15:29 -04:00
Colin McDonald
ecaf008f66 Properly register POST /users/:userId/confirmPhone 2016-07-10 15:49:29 -04:00
Colin McDonald
5e44d53216 Fix naming of some path parameters 2016-07-10 15:48:51 -04:00
Colin McDonald
45a706e0d7 Encode and then decode GET /metrics response to fix serialization issue with Vertx's JsonObject 2016-07-10 15:43:29 -04:00
Colin McDonald
529bf25daf Replace 3 line BlockingCallback pattern with 1 line SyncUtils#runBlocking lambda pattern 2016-07-10 15:42:42 -04:00
Colin McDonald
6319f944bb Optimize imports 2016-07-10 14:20:29 -04:00
Colin McDonald
07e1090445 Modify User#findByPhone to search for usages in both confirmed numbers and pending numbers 2016-07-10 14:20:16 -04:00
Colin McDonald
f84f8635a2 Finish Zang telephone linking (hopefully!). Completes #27 2016-07-10 14:17:18 -04:00
Colin McDonald
38d356f7b5 Add note regarding the version of fr.javatic.mongo:mongo-jackson-codec 2016-07-10 13:25:51 -04:00
Colin McDonald
0071291236 Move body handler up in the route order to fix stack traces we were having 2016-07-10 13:12:31 -04:00
Colin McDonald
752c2cae96 Add debug to MaxMind circuit breaker 2016-07-10 13:12:01 -04:00
Colin McDonald
6e4169c6ad Add formatted timestamps to API logs 2016-07-10 13:11:45 -04:00
Colin McDonald
1f5672e98b Bump versions of io.vertx:* to 3.3.1, com.warranstrange:googleauth to 1.1.1, and set org.projectlombok:lombok to 1.16.8 2016-07-10 12:56:11 -04:00
Colin McDonald
e4a574852a Add support for reading the http keystore path + keystore password from our config file 2016-07-10 12:50:04 -04:00
Colin McDonald
5aa0827d18 Change default log level to warn 2016-07-10 12:45:41 -04:00
Colin McDonald
b6f987e75a Readd metrics integration with Librato (and small redis metrics) 2016-07-10 12:45:13 -04:00
Colin McDonald
a61ad36151 Add commented line with code to return relative time in responses 2016-07-10 12:18:33 -04:00
Colin McDonald
53aa9ce368 Remove debug code from main class, use vertx's timeout handler instead of our debugging version 2016-07-10 12:18:07 -04:00
Colin McDonald
f0d8256f07 Add MaxMind circuit breaker. Finishes #38 2016-07-10 12:17:03 -04:00
Colin McDonald
53a56401e0 Change POST /grants|ipBans|punishments to use expiresIn (a relative field in seconds) instead of expiresAt (absolute time) 2016-07-10 11:48:53 -04:00
Colin McDonald
6fbc8925eb Optimize imports 2016-07-09 17:25:54 -04:00
Colin McDonald
f431cd40d6 Remove unused @Slf4j annotations 2016-07-09 17:25:18 -04:00
Colin McDonald
9043abfa72 Add short circuit to MaxMindUtils until we can fix (with timeout + circuit breaker) 2016-07-09 17:23:34 -04:00
Colin McDonald
a6e31129e9 Commit two forgotten files from taking out metrics 2016-07-09 17:23:02 -04:00
Colin McDonald
a30823099d Remove unneeded @Slf4j annotation in User and MojangUtils 2016-07-09 17:22:39 -04:00
Colin McDonald
d519527986 Commit ?active=true flag for GET /punishments 2016-07-09 17:21:43 -04:00
Colin McDonald
97b296a79d Add store order + item id for Ariel 2016-07-09 17:21:24 -04:00
Colin McDonald
f999319666 Remove metrics, change GET /ipLog/:id to accept both ips and user uuids 2016-07-09 17:20:57 -04:00
Colin McDonald
d55325d255 Add SyncUtils#vertxWrap. This is something we wrap all mongo callbacks with so all business logic is ran on vertx worker threads. This is important for 2 reasons:
1. Running all of our logic on the vertx threads makes sense, as we're a vertx application. (This also allows us to utilize vertx's thread pool logic + config, instead of relying on mongo's thread pool)
2. The more important one, it allows exceptions to be processed (instead of swallowed by mongo) with relevant context information.

There is an overhead to the thread switching we'll be doing because of this, but doing all of our work on a better thought out thread pool and (more importantly) having stack traces completely make this change worth the overhead.
2016-07-09 17:19:20 -04:00
Colin McDonald
5de25c498b Fix NPE when checking an access token's locked ips 2016-07-09 17:14:04 -04:00
Colin McDonald
a99d10c002 Add basic metrics + GET /metrics route 2016-07-03 19:59:42 -04:00
Colin McDonald
7bb1b17575 Small changes discovered while writing documentation 2016-07-03 19:41:01 -04:00
Colin McDonald
85b98b4a1d Add debug timeout handler, change default log level (for now) 2016-07-03 16:32:56 -04:00
Colin McDonald
fa5aee848a Commit two totp changes from before 2016-07-03 16:32:02 -04:00
Colin McDonald
d3bdeb6d50 Public/private reasons on punishments 2016-07-03 16:31:43 -04:00
Colin McDonald
252a18d326 Add translationId and translationParams to non-standard error types 2016-07-03 16:31:17 -04:00
Colin McDonald
035e9fbb81 Add UuidUtils#parseUuid, which is more liberal on what it accepts, and convert most everything to use it 2016-07-03 16:30:24 -04:00
Colin McDonald
527f465c12 Fail properly if MaxMind fails to respond / returns invalid data 2016-07-03 16:28:31 -04:00
Colin McDonald
77c3e49048 Fix logins not saving users, ip intel in heartbeats 2016-07-02 17:39:30 -04:00
Colin McDonald
adb16d8c8d Add Mojang api debug 2016-07-02 17:38:56 -04:00
Colin McDonald
de9a490aa1 Change ErrorUtils#respondInternalError to print the error + request info with slf4j 2016-06-30 23:01:13 -04:00
Colin McDonald
043bc76cd3 Update dump cache immediately upon startup 2016-06-30 17:30:20 -04:00
Colin McDonald
c1017f9241 Fix a few mistakes we made when passing callback results back up 2016-06-30 17:29:28 -04:00
Colin McDonald
968ceb1a1d Modify APIv3#respondJson to not have default status code 2016-06-29 21:23:37 -04:00
Colin McDonald
bcd95d9e9b Code updates to fit "expected" documentation 2016-06-29 00:24:41 -04:00