Commit Graph

154 Commits

Author SHA1 Message Date
Oscar Krause
0e3e7cbd3a main.py - corrected leasing behaviour (migrated from 'LEASE_REF' to 'ALLOTMENT_REF') 2023-01-03 13:05:05 +01:00
Oscar Krause
bd5625af42 main.py - removed example responses 2023-01-03 13:02:37 +01:00
Oscar Krause
8f9d95056f code styling - migrated direct dict access to '.get()' 2023-01-03 09:20:18 +01:00
Oscar Krause
2b8c468270 main.py - fixed missing 'LEASE_RENEWAL_PERIOD' on '/auth/v1/origin' 2023-01-03 07:25:09 +01:00
Oscar Krause
50e0dc8d1f implemented '/leasing/v1/lessor/shutdown' for windows guests 2023-01-02 19:42:23 +01:00
Oscar Krause
8b934dfeef fixed '/-/config' endpoint serialisation 2023-01-02 19:23:23 +01:00
Oscar Krause
4fb6243330 removed deprecated endpoints
- '/client-token' moved to '/-/client-token'
- '/status' moved to '/-/health' and '/-/config'

see README.md for more information
2023-01-02 19:18:32 +01:00
Oscar Krause
2e950ca6f4 implemented '/-/config' endpoint to list runtime environment variables 2023-01-02 19:14:25 +01:00
Oscar Krause
34662e6612 implemented 'LEASE_RENEWAL_PERIOD' variable 2023-01-02 18:57:41 +01:00
Oscar Krause
a3e089a3d5 added some references 2023-01-02 18:10:11 +01:00
Oscar Krause
ab996bb030 code styling 2023-01-02 18:04:14 +01:00
Oscar Krause
fc8ef174cd implemented basic ui 2023-01-02 18:01:44 +01:00
Oscar Krause
98d7492534 main.py - fixed cors parsing 2022-12-30 07:42:57 +01:00
Oscar Krause
3d83e533da fixed client-token filename (missing .tok extension) 2022-12-30 03:50:48 +01:00
Oscar Krause
1f56d31351 code styling 2022-12-29 20:42:40 +01:00
Oscar Krause
400c983025 added redirect for "/-/" route 2022-12-29 20:41:55 +01:00
Oscar Krause
fa3a06a360 code styling 2022-12-29 20:40:42 +01:00
Oscar Krause
c0ab3a589f migrated '/client-token' to '/-/client-token' 2022-12-29 20:33:50 +01:00
Oscar Krause
a8504f3017 hardcoded default CORS to https, since drivers only support secure connections 2022-12-29 19:14:49 +01:00
Oscar Krause
17978c2e2e main.py - added endpoint to release single lease 2022-12-29 19:03:09 +01:00
Oscar Krause
569ca8b3ea orm.py - fixed renewing timestamps from params 2022-12-29 19:00:14 +01:00
Oscar Krause
e0843ca1d4 code styling 2022-12-29 18:59:26 +01:00
Oscar Krause
3fad49b18a main.py - added api descriptions 2022-12-29 18:48:30 +01:00
Oscar Krause
13ec45e762 orm.py - added init call after dropping table by migration 2022-12-29 12:34:25 +01:00
Oscar Krause
8b9c7d688b added some docs to custom endpoints 2022-12-29 10:35:15 +01:00
Oscar Krause
a09fc5f2ad added some new endpoints and links in readme 2022-12-29 10:31:25 +01:00
Oscar Krause
ed1b55f5f1 created a simple management ui 2022-12-29 10:12:31 +01:00
Oscar Krause
2b7fed3381 created endpoints to delete origins and to delete a lease 2022-12-29 09:57:37 +01:00
Oscar Krause
922dc9f5a7 refactored database structure and created migration script 2022-12-29 09:40:50 +01:00
Oscar Krause
1a50e28202 main.py - removed unused import 2022-12-29 09:15:51 +01:00
Oscar Krause
d86948aee2 added some comments 2022-12-29 09:01:36 +01:00
Oscar Krause
6b2e6bf392 added optional query parameter to '/-/origins' and '/-/leases' for linked leases/origin 2022-12-29 09:00:52 +01:00
Oscar Krause
a6ac58d12c fixes 2022-12-29 07:41:25 +01:00
Oscar Krause
6978ba4873 orm.py - timestamps are not updated in database 2022-12-29 07:09:39 +01:00
Oscar Krause
2663901988 util.py - implemented generate key method 2022-12-28 14:30:42 +01:00
Oscar Krause
92fe6154e6 code styling 2022-12-28 11:53:56 +01:00
Oscar Krause
a951433ca0 fixes 2022-12-28 11:33:06 +01:00
Oscar Krause
dada9cc4cd fixes 2022-12-28 11:05:41 +01:00
Oscar Krause
e88b1afcf7 fixes 2022-12-28 09:57:55 +01:00
Oscar Krause
e1f2e942a6 code styling 2022-12-28 09:23:17 +01:00
Oscar Krause
2afa01273a Merge branch 'debian' into 'dev'
Debian

See merge request oscar.krause/fastapi-dls!11
2022-12-28 09:16:32 +01:00
Oscar Krause
5db66c893d Merge branch 'dev' into sqlalchemy
# Conflicts:
#	README.md
2022-12-28 09:14:41 +01:00
Oscar Krause
ddb1299f5c Merge branch 'dev' into debian 2022-12-28 07:29:54 +01:00
Oscar Krause
180cdcb43d added some variables 2022-12-28 07:29:38 +01:00
Oscar Krause
52faba5a1d Merge branch 'dev' into debian 2022-12-28 06:50:19 +01:00
Oscar Krause
c38ed25a2f fixes 2022-12-27 20:28:09 +01:00
Oscar Krause
1b34edfda6 fixes 2022-12-27 20:22:00 +01:00
Oscar Krause
85736c5ce4 typos 2022-12-27 20:10:18 +01:00
Oscar Krause
07f1e64553 fixes 2022-12-27 20:08:37 +01:00
Oscar Krause
560b18b5c4 orm.py - fixed not null column 2022-12-27 19:57:58 +01:00
Oscar Krause
b5c64038cb main.py - migrated merged changes from dataset to sqlalchemy 2022-12-27 19:05:41 +01:00
Oscar Krause
c7aa28382a Merge branch 'dev' into sqlalchemy
# Conflicts:
#	app/main.py
2022-12-27 19:04:41 +01:00
Oscar Krause
6d5ed1a142 main.py - added origin update endpoint 2022-12-27 19:03:03 +01:00
Oscar Krause
f9e3740150 main.py - added env variable for "INSTANCE_REF" 2022-12-27 17:42:58 +01:00
Oscar Krause
52fb18dea0 main.py - fixed imports for "Crypto" and "Cryptodome" (on debian) 2022-12-27 12:21:52 +01:00
Oscar Krause
4e17e6da82 main.py fixed pycryptodome import 2022-12-23 14:09:13 +01:00
Oscar Krause
952a74cabe Merge branch 'sqlalchemy' into debian
# Conflicts:
#	app/main.py
2022-12-23 13:50:50 +01:00
Oscar Krause
332b9b23cd code styling 2022-12-23 13:31:43 +01:00
Oscar Krause
3d5d728d67 code styling 2022-12-23 13:22:06 +01:00
Oscar Krause
838e30458d code styling 2022-12-23 13:21:52 +01:00
Oscar Krause
f539db5933 implemented db_init 2022-12-23 13:17:19 +01:00
Oscar Krause
43d5736f37 code styling & removed comments 2022-12-23 08:22:21 +01:00
Oscar Krause
e7102c4de6 fixed updates 2022-12-23 08:16:58 +01:00
Oscar Krause
d1db441df4 removed Auth 2022-12-23 08:16:34 +01:00
Oscar Krause
d5b51bd83c Merge branch 'dev' into sqlalchemy
# Conflicts:
#	app/main.py
2022-12-23 08:08:35 +01:00
Oscar Krause
a0b9eae15b main.py - fixed wrong "origin_ref" in CodeResponse
- fixed issue
- removed the now unnecessary table "auth"
2022-12-23 06:56:29 +01:00
Oscar Krause
394180652e migrated from dataset to sqlalchemy 2022-12-22 12:57:06 +01:00
Oscar Krause
c5b6c79d1c fixes 2022-12-21 11:06:09 +01:00
Oscar Krause
4184731571 dotenv fixes 2022-12-21 10:53:51 +01:00
Oscar Krause
e89401dbc1 replaced "print" with "logging.info" 2022-12-21 10:45:45 +01:00
Oscar Krause
e323fd3488 added cors support and improved logging 2022-12-21 10:41:20 +01:00
Oscar Krause
af6b17319d include version and commit hash in status endpoint 2022-12-21 10:40:05 +01:00
Oscar Krause
802366e9ff code styling 2022-12-21 08:00:52 +01:00
Oscar Krause
76f997d437 render README.md on index page 2022-12-21 07:33:20 +01:00
Oscar Krause
c647363b6d main.py - added some debug endpoints 2022-12-20 18:24:59 +01:00
Oscar Krause
fad0545942 main.py - implemented lease storage support 2022-12-20 18:06:32 +01:00
Oscar Krause
8d93c92de4 README.md - added configuration variables & implemented support for 'LEASE_EXPIRE_DAYS' 2022-12-20 15:05:50 +01:00
Oscar Krause
7ab5e7b264 main.py - refactorings & added simple "dataset" database 2022-12-20 14:55:07 +01:00
Oscar Krause
3c252e2a4c helper.py moved to main.py 2022-12-20 14:45:44 +01:00
Oscar Krause
1efdf19fa6 code styling 2022-12-20 07:15:34 +01:00
Oscar Krause
e7cbc0fc59 main.py - improved responses with wrapping in 'JSONResponse' 2022-12-20 07:15:03 +01:00
Oscar Krause
1a8404b4bb code styling 2022-12-19 22:20:50 +01:00
Oscar Krause
5ee417825d main.py - leases - rollback to @0df63016 2022-12-19 22:16:42 +01:00
Oscar Krause
d7d81a48c7 main.py - try to fix "active_lease_list" 2022-12-19 17:44:42 +01:00
Oscar Krause
7676c69427 main.py - try to fix "active_lease_list" 2022-12-19 16:46:12 +01:00
Oscar Krause
0df63016ab main.py - added some static leases list 2022-12-19 16:31:33 +01:00
Oscar Krause
30679d923e code styling & added some logging 2022-12-19 16:16:44 +01:00
Oscar Krause
fd73f99942 code styling 2022-12-19 15:53:15 +01:00
Oscar Krause
dff38154d1 main.py - fixes 2022-12-19 15:51:49 +01:00
Oscar Krause
cdb7fe777e fixed variable types 2022-12-19 14:48:13 +01:00
Oscar Krause
30256b7272 added some env variables 2022-12-19 14:44:26 +01:00
Oscar Krause
1f8f85479f main.py - fixed file imports 2022-12-19 14:27:10 +01:00
Oscar Krause
15acb6fdbe code styling 2022-12-19 14:11:38 +01:00
Oscar Krause
78ddaa56d3 main.py - replaced SITE_KEY and INSTANCE_KEY with only INSTANCE_KEY 2022-12-19 13:52:16 +01:00
Oscar Krause
c6607bedba main.py - added some documentation for dev-server 2022-12-19 13:35:35 +01:00
Oscar Krause
16e4fc4158 added lease update request (PUT) 2022-12-19 13:15:19 +01:00
Oscar Krause
0db526a2d6 added timestamp to download filename 2022-12-19 13:14:53 +01:00
Oscar Krause
b7da2bb648 typos 2022-12-19 13:14:31 +01:00
Oscar Krause
35e5d70bba code styling 2022-12-19 13:14:21 +01:00
Oscar Krause
03089e82e5 replaced "timedelta" with "relativedelta" 2022-12-19 13:11:28 +01:00