Commit Graph

29 Commits

Author SHA1 Message Date
Martin Wortschack cd6f774093 Externalize strings in app/models
- Update PO file
2019-04-12 12:28:07 +00:00
Kamil Trzciński c5f1f7f3db Use encrypted runner tokens
This makes code to support encrypted runner tokens.
This code also finished previously started encryption
process.
2019-03-06 12:18:53 +00:00
Grzegorz Bizon a1bd34e9c0 Fix typo in encrypted token authenticatable strategy 2018-12-04 14:32:03 +01:00
Grzegorz Bizon 68780d29ad Fix token_set? method by checking migration status 2018-12-04 09:10:57 +01:00
Grzegorz Bizon 239a4f7264 Use plaintext token when migration is not complete 2018-12-03 14:29:51 +01:00
Grzegorz Bizon e9abacedb0 Refactor encrypted token strategy class 2018-12-03 14:12:51 +01:00
Grzegorz Bizon fe4b5c9820 Fix token encrypted strategy when migrating data 2018-12-03 13:40:45 +01:00
Grzegorz Bizon f8dea2e214 Implement migration strategy for token authenticatable 2018-12-03 12:35:49 +01:00
Grzegorz Bizon b7f35e8939 Expire application settings after encrypting tokens 2018-11-28 11:43:17 +01:00
Grzegorz Bizon 7d2b37bc48 Fix resetting old token when fallback strategy is provided 2018-11-27 15:21:23 +01:00
Grzegorz Bizon 37add27a00 Improve token authenticable tests and exceptions 2018-11-27 14:34:05 +01:00
Grzegorz Bizon 718ea942dc Improve test cases description in token-related specs 2018-11-23 10:43:47 +01:00
Grzegorz Bizon 636b038e01 Only allow valid options when configuring tokens 2018-11-23 10:25:52 +01:00
Grzegorz Bizon d31a3873f4 Improve token strategy fallback and add more specs 2018-11-23 10:12:09 +01:00
Grzegorz Bizon 56e5a2a3ab Reset insecure token when setting an encrypted one 2018-11-20 15:25:45 +01:00
Grzegorz Bizon f691b1fa08 Use falback to set token if encrypted field is missing 2018-11-20 14:29:46 +01:00
Grzegorz Bizon bc00b814d4 Do not raise if encrypted tokens field does not exist
This is mostly important in specs for migration, where we are still
using factories, despite that we have a Rubocop cop that should prevent
doing that.
2018-11-20 13:46:39 +01:00
Grzegorz Bizon 0df989ba06 Add specs for token authenticable strategy factory method 2018-11-16 15:10:02 +01:00
Grzegorz Bizon 3ee8e01923 Extract token authenticatable strategy fabrication 2018-11-15 16:08:28 +01:00
Grzegorz Bizon f1a74a656b Encrypt new instance runners registration tokens 2018-11-15 15:17:32 +01:00
Grzegorz Bizon 9a830f1e0b Add unit tests for encrypted token authenticatable 2018-11-14 15:24:00 +01:00
Grzegorz Bizon c04f56d3b4 Add specs scaffold for encrypted token authenticatable 2018-11-14 14:58:11 +01:00
Grzegorz Bizon ce22c7e10f Remove text prepended to a class by a mistake 2018-11-14 14:47:59 +01:00
Grzegorz Bizon 10b8fd71f6 Refactor token authenticatable encrypted strategy 2018-11-14 14:46:46 +01:00
Grzegorz Bizon 10ea75396b Remove token_field_name method from base class 2018-11-14 14:40:37 +01:00
Grzegorz Bizon 444062d9ee Do not use cleartext approach for encrypted tokens 2018-11-13 15:35:38 +01:00
Grzegorz Bizon 2dbc4175b7 Add `encrypted` strategy to persist encrypted tokens 2018-11-13 15:11:36 +01:00
James Edwards-Jones 69b9a879a1 TokenAuthenticatable allows non-unique tokens
Avoids needing an index to repeatedly check that
the token doesn't already exist when saving.
2018-10-31 17:28:42 +00:00
Imre Farkas b9652d8e4d [master] Persist only SHA digest of PersonalAccessToken#token 2018-10-29 16:06:45 +00:00