Commit graph

1035 commits

Author SHA1 Message Date
Inex Code aa4e5a9251 fix: Remove unused migration entirely 2023-11-22 14:45:36 +03:00
Alexander Tomokhov fa766b7027 use git revision as Nix derivation version 2023-11-22 09:45:53 +04:00
Alexander Tomokhov b3a6e6393c devShell: add python environment explicitly (for VS Code) 2023-11-22 09:45:07 +04:00
Inex Code 22f9d2e9df refactor: Changes to reflect the new NixOS config structure 2023-11-21 23:14:42 +03:00
Alexander Tomokhov d3873119b0 fix nixos-rebuild commands for systemd services 2023-11-21 07:10:41 +04:00
Alexander Tomokhov e1847e1ce8 fix location of userdata.json file 2023-11-21 03:43:48 +04:00
Alexander Tomokhov e28aa8d60d minimal updates to systemd services 2023-11-18 06:37:14 +04:00
Alexander Tomokhov e6e9d0677e add selfprivacy-api NixOS module
Just a copy from selfprivacy-nixos-config.
2023-11-16 06:27:24 +04:00
Alexander Tomokhov 6f7613dedb Merge remote-tracking branch 'origin/master' into flake 2023-11-16 04:39:33 +04:00
Inex Code 113bcf4c29 Merge pull request 'fix(backups): do not infinitely retry automatic backup if it errors out' (#69) from autobackup-errors into master
Reviewed-on: https://git.selfprivacy.org/SelfPrivacy/selfprivacy-rest-api/pulls/69
Reviewed-by: Inex Code <inex.code@selfprivacy.org>
2023-11-15 13:20:43 +02:00
Inex Code c3cec36ad4 style: formatting 2023-11-13 19:36:12 +03:00
Houkime e414f3b8fd fix(auth): fix timezone issues with recovery tokens 2023-11-13 09:15:12 -07:00
Houkime 1bbb804919 test(auth): token tests clearer about timezone assumptions 2023-11-10 17:40:52 +00:00
Houkime dd6f37a17d feature(auth): tz_aware recovery 2023-11-10 17:10:01 +00:00
Houkime 8badb9aaaf refactor(auth): tz_aware expiration comparison 2023-11-10 13:31:12 +00:00
Houkime 8453f62c74 refactor(time): more time functions 2023-11-10 13:05:38 +00:00
Houkime e78bcca9f2 test(auth): forced utc in recovery tests 2023-11-10 12:49:30 +00:00
Houkime 4d893d56b2 test(common): add forced utc times for tests 2023-11-10 12:38:12 +00:00
Houkime 73a847f288 feature(time): timestamp parsers 2023-11-10 12:19:32 +00:00
Houkime b545a400c3 doc(jobs): document that we are tz-naive when storing jobs 2023-11-10 11:47:48 +00:00
Houkime 8caf7e1b24 fix(backups): do not infinitely retry automatic backup if it errors out 2023-11-10 10:20:27 +00:00
Inex Code bc98e41be8 Merge pull request 'feat: Use redis as a data storage for auth data' (#68) from redis/connection-pool-merged into master
Reviewed-on: https://git.selfprivacy.org/SelfPrivacy/selfprivacy-rest-api/pulls/68
2023-11-10 10:57:59 +02:00
Alexander Tomokhov b6e84f2596 git rid of NixOS configuration dependency 2023-11-06 12:39:26 +04:00
Alexander Tomokhov b9b3451a54 Merge remote-tracking branch 'origin/master' into flake 2023-11-06 11:50:38 +04:00
Houkime a66ee2d3e5 test(auth): fix future expiring too fast 2023-11-01 16:46:36 +00:00
Houkime 3deaeb28c5 test(auth): fix assert_ok's wrt nested structure 2023-11-01 15:30:29 +00:00
Houkime b7cd703eaa fix(tokens): missing timezone import 2023-10-25 14:53:18 +00:00
Inex Code 829aca14be Merge branch 'master' into redis/connection-pool 2023-10-24 19:25:36 +03:00
Inex Code badd619dd0 Merge pull request 'autobackup-job-ttl' (#62) from autobackup-job-ttl into master
Reviewed-on: https://git.selfprivacy.org/SelfPrivacy/selfprivacy-rest-api/pulls/62
Reviewed-by: Inex Code <inex.code@selfprivacy.org>
2023-10-10 20:25:30 +03:00
Houkime ece3258c78 test(jobs): test out setting ttl 2023-10-10 20:25:14 +03:00
Houkime 26c0a8fafe feature(jobs): set 1 hour ttl for successful autobackup jobs 2023-10-10 20:25:14 +03:00
Houkime 0912ac1831 feature(jobs): set ttl via method 2023-10-10 20:25:14 +03:00
Inex Code 07aaa21602 chore: bump version 2023-10-09 12:45:22 +03:00
Inex Code 2a03d3962f Merge pull request 'feat(ssh): Add support for ecdsa keys' (#64) from ecdsa-keys into master
Reviewed-on: https://git.selfprivacy.org/SelfPrivacy/selfprivacy-rest-api/pulls/64
Reviewed-by: NaiJi  <naiji@noreply.git.selfprivacy.org>
2023-10-09 12:44:33 +03:00
Inex Code cebb71ff4a feat(ssh): Add support for ecdsa keys 2023-10-03 16:51:06 +03:00
Inex Code 62d5de0dd6 refactor(ssh): Remove unused add_root_ssh_key function 2023-10-03 16:41:09 +03:00
Alexander 82049cc99f readme: proxy query to generate plantuml diagram image 2023-09-18 19:08:36 +04:00
Alexander Tomokhov a737de9b29 flake: update selfprivacy-nixos-configuration pin 2023-09-18 19:08:36 +04:00
Alexander Tomokhov 091179b972 add README.md 2023-09-18 19:08:36 +04:00
Alexander Tomokhov 3b93b33f7d switch to flakes 2023-09-18 02:23:33 +04:00
Inex Code 86f9451b9b Merge pull request 'fix(backups): expose snapshot reason and set the default value' (#59) from backup-reason-fix into master
Reviewed-on: https://git.selfprivacy.org/SelfPrivacy/selfprivacy-rest-api/pulls/59
2023-09-09 09:56:09 +03:00
Inex Code 8b840d4c2c fix(backups): expose snapshot reason and set the default value 2023-09-09 09:52:20 +03:00
Inex Code 6b106cbcf3 Merge pull request 'quotas for autobackups' (#56) from quotas into master
Reviewed-on: https://git.selfprivacy.org/SelfPrivacy/selfprivacy-rest-api/pulls/56
2023-09-09 03:50:18 +03:00
Inex Code 39baa3725b Merge remote-tracking branch 'origin/master' into quotas 2023-09-09 03:36:17 +03:00
Inex Code 450a998ea6 chore:bump version 2023-09-09 03:32:57 +03:00
Inex Code dedd6a9cc9 refactor(backups): use restic-like rotation policy 2023-09-09 03:26:41 +03:00
Houkime 56be3d9c31 fix(backup): trim auto-snapshots on setting the quotas 2023-09-08 16:22:53 +00:00
houkime dd8fa4cf20 Merge pull request 'feature(backups): a task to autorefresh cache. Redis expiry abolished' (#58) from recache-task into master
Reviewed-on: https://git.selfprivacy.org/SelfPrivacy/selfprivacy-rest-api/pulls/58
Reviewed-by: Inex Code <inex.code@selfprivacy.org>
2023-09-01 14:32:32 +03:00
Houkime 0dfb41a689 feature(backups): a task to autorefresh cache. Redis expiry abolished 2023-09-01 10:41:27 +00:00
Inex Code ad9384c850 fix(graphql): backup quotas field typing 2023-08-30 12:03:19 +03:00