Commit graph

46 commits

Author SHA1 Message Date
Luca Palmieri
f70b2b9d00 Update dependencies 2024-08-29 16:46:59 +02:00
Luca Palmieri
09d928a13a Update sqlx to 0.7 2023-09-20 09:53:47 +02:00
Luca Palmieri
c3e0da643e Update outdated dependencies 2023-02-18 22:50:06 +00:00
Luca Palmieri
78a6a9de27 Update Cargo.lock and resolve cargo-audit report 2023-02-18 18:46:19 +00:00
Luca Palmieri
7cdcdb8e0d Fix CI 2022-10-01 18:43:04 +01:00
Luca P
ac8a60b4c5 Update all dependencies 2022-07-05 18:48:09 +01:00
Luca P
9e6339f729 Chapter 11: fault tolerant workflows. 2022-03-13 19:41:50 +00:00
Luca P
df6bdea82b Last part of chapter 10 - sessions, seed users and change password form 2022-03-12 19:05:53 +00:00
Luca P
2b6c2c5bc0 Add login form with errors via HMAC-protected query parameters 2022-03-12 00:45:26 +00:00
Luca P
4c86217f2b Update to actix-web v4 2022-02-26 00:06:38 +00:00
Luca Palmieri
9a858dade4 Update to actix-web beta.19 2022-01-05 18:22:04 +00:00
Luca Palmieri
6f0a9eb718 Update dependencies. 2021-12-28 13:08:43 +01:00
Luca Palmieri
93ed0c4150 Add secrecy 2021-12-27 15:10:20 +01:00
Luca Palmieri
db806e011b Remove tracing-futures. 2021-12-27 11:17:22 +01:00
Luca Palmieri
4ce4ef382a Update to 2021 edition. 2021-12-27 11:00:49 +01:00
Luca Palmieri
1bf53dcf9a Update to latest version of actix-web, tracing-bunyan-formatter and tracing-subscriber. Use tokio macros instead of actix-web's macros. 2021-12-26 17:03:38 +01:00
LukeMathWalker
8266590ecd Lower sqlx's log level 2021-09-30 21:19:08 +01:00
Luca Palmieri
2fc300b2c8 Update actix-web. 2021-09-11 21:59:51 +02:00
Luca Palmieri
454a5e4afd Update actix-http. 2021-08-31 23:30:25 +02:00
Luca Palmieri
4695dfebf4 Remove SHA-3. 2021-08-30 10:10:32 +02:00
Luca Palmieri
e106c5c69a Tests pass. 2021-08-29 22:32:52 +02:00
Luca Palmieri
7d515138d5 Implement password hashing using Argon2, with PHC string format as storage encoding. 2021-08-29 22:09:43 +02:00
LukeMathWalker
312ee4aa89 Password hashing using SHA3-256. 2021-08-22 16:54:41 +01:00
LukeMathWalker
1d0d1cc382 Extract basic credentials. 2021-08-14 22:57:03 +01:00
LukeMathWalker
bc22cdca68 Update to actix-web 4.0.0-beta.8. 2021-07-09 08:42:43 +01:00
LukeMathWalker
4e04ade2ed Use anyhow. 2021-05-12 09:08:38 +01:00
LukeMathWalker
c6e88e8f8e Use thiserror. 2021-05-10 09:57:49 +01:00
LukeMathWalker
5f89afe095 Update tracing-bunyan-formatter. 2021-05-02 17:02:25 +01:00
LukeMathWalker
80ba8ace26 Update to latest actix-web. 2021-05-01 16:19:24 +01:00
LukeMathWalker
d05c9c9491 Use once_cell instead of lazy_static for tracing. Use custom sinks instead of filters to disable logging. 2021-05-01 15:54:39 +01:00
LukeMathWalker
a8f1bc9024 Generate random token. 2021-03-11 22:07:17 +00:00
LukeMathWalker
2ac9ccbe97 Red test (confirmation link). 2021-03-08 22:10:23 +00:00
LukeMathWalker
d5e09e849b Update to tokio 1. 2021-02-11 09:23:13 +00:00
LukeMathWalker
3145991669 Happy case test. 2021-01-16 23:01:08 +00:00
LukeMathWalker
e71aaeb3ce Remove reqwest from dev dependency list. 2021-01-16 14:37:57 +00:00
LukeMathWalker
72725c5306 Add reqwest as dependency 2021-01-11 08:32:27 +00:00
LukeMathWalker
95061149da Use at most 2.3 of fake to get rand 0.7. 2021-01-03 18:13:45 +00:00
LukeMathWalker
9dd9aaffd6 Use TryInto. 2020-12-29 10:00:11 +00:00
LukeMathWalker
f6d62fb7a1 Add email validation. 2020-12-28 12:26:05 +00:00
Luca Palmieri
9dd3b0590a Return 400 on bad names. 2020-12-11 15:50:09 +00:00
Luca Palmieri
0eaf310f29 Add SubscriberName constructor. 2020-12-09 17:20:15 +00:00
Luca Palmieri
847bb8152a Update CI + update sqlx 2020-12-05 19:10:01 +00:00
Luca Palmieri
bfbbf96c41 Chapter 05 (snapshot) 2020-12-05 17:07:31 +00:00
Luca Palmieri
0a4addc6bb
Chapter 5 (#13)
* Add chapter 5

* Basic deployment stuff

* Fix Dockerfile.

* Add an explicit connection timeout.

* Align port with configuration.

* Use debug for faster feedback loops.

* Add address configuration.

* Provision database.

* Use structured options.

* Add configuration

* Fix typo.

* Customise deserialization logic.

* Change to Require.

* Fix spec.

* Add a few more things to the dockerignore file.

* Update to match chapter.

* Add base configuration.

* Amend configuratiohn.

Co-authored-by: LukeMathWalker <rust@lpalmieri.com>
2020-11-01 21:25:11 +00:00
Luca Palmieri
3e553eaf60
Chapter04 (#9)
* Add chapter 4 code.

* Add logger middleware.

* Add env_logger.

* Instrumented.

* Test logs.

* Introduce instrument.

* Refactor handler.

* Use TracingLogger.

* Update.

* Fix linter error.
2020-09-27 17:09:42 +01:00
LukeMathWalker
7e63ca87bd Scaffolding 2020-08-23 11:34:29 +01:00