991a35ef1a
implemented "fix_ip_address_list_length"
2024-11-29 13:04:10 +01:00
1b6f142cb5
marked regex with 'r'
2024-11-22 15:07:54 +01:00
1daa365df9
code styling
2024-11-22 15:00:16 +01:00
afb38d628b
typos
2024-11-22 14:19:51 +01:00
53c88a79ac
improved logging and implemented method to reduce response mac_address_length
2024-11-22 14:16:10 +01:00
317699ff58
code styling
2024-11-21 08:51:39 +01:00
fb3ac4291f
code styling
2024-11-21 08:51:39 +01:00
15f14cac11
implemented "SUPPORT_MALFORMED_JSON" variable
2024-11-21 08:51:39 +01:00
bc6d692f0a
added "delete_expired" method for leases
2024-11-13 15:03:37 +01:00
63c37c6334
fixed timezone in json response
2024-11-13 15:03:12 +01:00
fa2c06972e
sql query improvements
2024-11-13 15:01:33 +01:00
0dc8f6c582
refactorings
2024-07-11 05:49:13 +02:00
c79455b84d
added way to include driver version in api
...
use `create_driver_matrix_json.py` to generate file in `static/driver_matrix.json`. Logging currently is disabled to not confuse users when file is missing. This is optional!
2024-06-21 19:01:33 +02:00
35fc5ea6b0
set log format
2024-06-21 18:59:23 +02:00
c9ac915055
code styling & comments
2024-06-13 20:34:45 +02:00
8c5850beda
migrated from deprecated "startup" to "lifespan" hook (fastapi)
2024-06-13 20:34:27 +02:00
0d9e814d0d
show if debug is enabled on app startup
2024-06-13 20:18:33 +02:00
5438317fb7
rearranged imports
2024-06-13 20:18:18 +02:00
21f19be8ab
code styling & improved logging
2024-06-13 20:16:51 +02:00
eff6aae25d
code styling
2024-06-13 19:53:57 +02:00
6473655e57
import fixes
2024-06-13 19:24:46 +02:00
7e5f8b6c8a
implemented endpoint to remove expired leases
2023-06-12 10:48:00 +02:00
e42dc6aa86
code styling
2023-03-20 10:06:21 +01:00
59152f95e6
fixed - The `declarative_base()
` function is now available as sqlalchemy.orm.declarative_base()
2023-01-30 10:23:09 +01:00
62d347510d
fixed - sqlalchemy.exc.ArgumentError: Textual SQL expression '\nCREATE TABLE origin (\n\to...' should be explicitly declared as text('\nCREATE TABLE origin (\n\to...')
2023-01-30 10:22:18 +01:00
02276d5440
disabled openapi endpoints
2023-01-23 07:33:54 +01:00
f7ef8d76b6
fixed Origin.delete()
2023-01-23 07:12:02 +01:00
95427d430e
added startup script
2023-01-19 07:26:22 +01:00
c3ea0aa48c
added variable for client-token-expire-delta
2023-01-19 07:26:07 +01:00
91be7b226c
added some comments for default values
2023-01-19 07:25:44 +01:00
48c37987b2
fixed logging and added current timezone info
2023-01-18 14:23:25 +01:00
0ab5969d3a
fixes
2023-01-18 06:56:16 +01:00
b2e6fab294
fixes
2023-01-17 16:49:15 +01:00
3c19fc9d5b
implemented "lease_renewal" attribute as calculated value within what period of time the license must be renewed
2023-01-17 11:49:56 +01:00
a758d93970
main.py - fixed empty lease origin response
2023-01-17 11:18:07 +01:00
aecad82914
main.py - added confirmation to deleteOrigins()
2023-01-04 18:12:59 +01:00
32b05808c4
fixed "return" instead of "raise"
2023-01-04 10:14:00 +01:00
6c9ea63dc1
added variable for TOKEN_EXPIRE_DELTA
2023-01-04 10:08:17 +01:00
b839e6c2b3
code styling
...
- replaced 'json.loads' with 'json_loads'
- shortened 'JSONResponse' to 'JSONr'
- shortened 'HTMLResponse' to 'HTMLr'
- replaced HTTPException with JsonResponses
- added some error handing for invalid tokens
2023-01-04 10:04:52 +01:00
7b2428ea38
removed some debugging
2023-01-03 18:05:46 +01:00
ac811d5df7
added 'LEASE_EXPIRE_HOURS' variable for better debugging
2023-01-03 18:05:46 +01:00
d6cc6dcbee
fixes
2023-01-03 17:38:32 +01:00
18e9ab2ebf
fixes
2023-01-03 14:52:31 +01:00
ef1730f4fe
orm.py - added some docs
2023-01-03 14:20:13 +01:00
5a5ad0e654
removed 'scope_ref' from code checks because we only support one 'ALLOTMENT_REF', so we need no checks
2023-01-03 14:09:19 +01:00
0e3e7cbd3a
main.py - corrected leasing behaviour (migrated from 'LEASE_REF' to 'ALLOTMENT_REF')
2023-01-03 13:05:05 +01:00
bd5625af42
main.py - removed example responses
2023-01-03 13:02:37 +01:00
8f9d95056f
code styling - migrated direct dict access to '.get()'
2023-01-03 09:20:18 +01:00
2b8c468270
main.py - fixed missing 'LEASE_RENEWAL_PERIOD' on '/auth/v1/origin'
2023-01-03 07:25:09 +01:00
50e0dc8d1f
implemented '/leasing/v1/lessor/shutdown' for windows guests
2023-01-02 19:42:23 +01:00
8b934dfeef
fixed '/-/config' endpoint serialisation
2023-01-02 19:23:23 +01:00
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
2e950ca6f4
implemented '/-/config' endpoint to list runtime environment variables
2023-01-02 19:14:25 +01:00
34662e6612
implemented 'LEASE_RENEWAL_PERIOD' variable
2023-01-02 18:57:41 +01:00
a3e089a3d5
added some references
2023-01-02 18:10:11 +01:00
ab996bb030
code styling
2023-01-02 18:04:14 +01:00
98d7492534
main.py - fixed cors parsing
2022-12-30 07:42:57 +01:00
3d83e533da
fixed client-token filename (missing .tok extension)
2022-12-30 03:50:48 +01:00
1f56d31351
code styling
2022-12-29 20:42:40 +01:00
400c983025
added redirect for "/-/" route
2022-12-29 20:41:55 +01:00
fa3a06a360
code styling
2022-12-29 20:40:42 +01:00
c0ab3a589f
migrated '/client-token' to '/-/client-token'
2022-12-29 20:33:50 +01:00
a8504f3017
hardcoded default CORS to https, since drivers only support secure connections
2022-12-29 19:14:49 +01:00
17978c2e2e
main.py - added endpoint to release single lease
2022-12-29 19:03:09 +01:00
569ca8b3ea
orm.py - fixed renewing timestamps from params
2022-12-29 19:00:14 +01:00
e0843ca1d4
code styling
2022-12-29 18:59:26 +01:00
3fad49b18a
main.py - added api descriptions
2022-12-29 18:48:30 +01:00
13ec45e762
orm.py - added init call after dropping table by migration
2022-12-29 12:34:25 +01:00
8b9c7d688b
added some docs to custom endpoints
2022-12-29 10:35:15 +01:00
a09fc5f2ad
added some new endpoints and links in readme
2022-12-29 10:31:25 +01:00
ed1b55f5f1
created a simple management ui
2022-12-29 10:12:31 +01:00
2b7fed3381
created endpoints to delete origins and to delete a lease
2022-12-29 09:57:37 +01:00
922dc9f5a7
refactored database structure and created migration script
2022-12-29 09:40:50 +01:00
1a50e28202
main.py - removed unused import
2022-12-29 09:15:51 +01:00
d86948aee2
added some comments
2022-12-29 09:01:36 +01:00
6b2e6bf392
added optional query parameter to '/-/origins' and '/-/leases' for linked leases/origin
2022-12-29 09:00:52 +01:00
a6ac58d12c
fixes
2022-12-29 07:41:25 +01:00
6978ba4873
orm.py - timestamps are not updated in database
2022-12-29 07:09:39 +01:00
2663901988
util.py - implemented generate key method
2022-12-28 14:30:42 +01:00
92fe6154e6
code styling
2022-12-28 11:53:56 +01:00
a951433ca0
fixes
2022-12-28 11:33:06 +01:00
dada9cc4cd
fixes
2022-12-28 11:05:41 +01:00
e88b1afcf7
fixes
2022-12-28 09:57:55 +01:00
e1f2e942a6
code styling
2022-12-28 09:23:17 +01:00
2afa01273a
Merge branch 'debian' into 'dev'
...
Debian
See merge request oscar.krause/fastapi-dls!11
2022-12-28 09:16:32 +01:00
5db66c893d
Merge branch 'dev' into sqlalchemy
...
# Conflicts:
# README.md
2022-12-28 09:14:41 +01:00
ddb1299f5c
Merge branch 'dev' into debian
2022-12-28 07:29:54 +01:00
180cdcb43d
added some variables
2022-12-28 07:29:38 +01:00
52faba5a1d
Merge branch 'dev' into debian
2022-12-28 06:50:19 +01:00
c38ed25a2f
fixes
2022-12-27 20:28:09 +01:00
1b34edfda6
fixes
2022-12-27 20:22:00 +01:00
85736c5ce4
typos
2022-12-27 20:10:18 +01:00
07f1e64553
fixes
2022-12-27 20:08:37 +01:00
560b18b5c4
orm.py - fixed not null column
2022-12-27 19:57:58 +01:00
b5c64038cb
main.py - migrated merged changes from dataset to sqlalchemy
2022-12-27 19:05:41 +01:00
c7aa28382a
Merge branch 'dev' into sqlalchemy
...
# Conflicts:
# app/main.py
2022-12-27 19:04:41 +01:00
6d5ed1a142
main.py - added origin update endpoint
2022-12-27 19:03:03 +01:00
f9e3740150
main.py - added env variable for "INSTANCE_REF"
2022-12-27 17:42:58 +01:00
52fb18dea0
main.py - fixed imports for "Crypto" and "Cryptodome" (on debian)
2022-12-27 12:21:52 +01:00
4e17e6da82
main.py fixed pycryptodome import
2022-12-23 14:09:13 +01:00