56 Commits

Author SHA1 Message Date
Oscar Krause 04914740a4 improved tests 2025-04-22 14:38:17 +02:00
Oscar Krause 29268b1658 code styling and tests 2025-04-22 14:16:30 +02:00
Oscar Krause e1ae757a50 updated tests 2025-04-22 08:53:30 +02:00
Oscar Krause 59645d1daf Merge branch 'main' into v18.x-support
# Conflicts:
#	app/util.py
2025-04-16 15:00:33 +02:00
Oscar Krause e00e7569eb removed todo 2025-04-16 12:01:19 +02:00
Oscar Krause 31957ec6d7 added '/-/config/root-ca' endpoint 2025-04-16 08:37:28 +02:00
Oscar Krause e23912c49a code refactorings - removed INSTANCE_KEY_RSA and INSTANCE_KEY_PUB from configuration and implemented CASetup instead 2025-04-16 07:54:23 +02:00
Oscar Krause 445a303955 added signature tests 2025-04-14 21:38:20 +02:00
Oscar Krause f9fccd5502 implemented product_mapping support 2025-04-14 20:29:50 +02:00
Oscar Krause 70cac5bbf3 test "X-NLS-Signature" upper/lowercase 2025-04-14 20:29:50 +02:00
Oscar Krause 54d38953bf x-nls-signature 2025-04-14 20:29:50 +02:00
Oscar Krause 3871dfe6a6 test "x-nls-signature" 2025-04-14 20:29:50 +02:00
Oscar Krause 685e1ce0bb implemented client_challenge on lease apis 2025-04-14 20:29:50 +02:00
Oscar Krause 7ce79ec95b added test and code for /leasing/v1/config-token
ref. https://git.collinwebdesigns.de/nvidia/nls/-/blob/main/src/test/test_config_token.py
2025-04-14 20:29:50 +02:00
Oscar Krause e438de6281 added logging 2025-04-14 20:29:50 +02:00
Oscar Krause a8c1cdf095 updated create_driver_matrix_json.py 2025-04-11 14:10:26 +02:00
Oscar Krause 26248a4ea5 fixed tests 2025-03-19 21:01:58 +01:00
Oscar Krause e6a2de40c9 fixed test deprecations 2025-03-18 10:33:52 +01:00
Oscar Krause fd46eecfb3 created PrivateKey / PublicKey wrapper classes 2025-03-18 09:43:44 +01:00
Oscar Krause 0bdd3a6ac2 migrated from "pycryptodome" to "cryptography" 2025-03-17 14:05:26 +01:00
Oscar Krause 4a501da27b code styling 2024-12-02 10:03:35 +01:00
Oscar Krause 025b88926b fixes 2024-12-02 10:02:54 +01:00
Oscar Krause f5943cd636 removed return statement on tests 2024-12-02 09:42:56 +01:00
Oscar Krause 03b9b4a598 moved from deprecated "datetime.utcnow()" to "datetime.now(UTC)" 2024-12-02 09:42:41 +01:00
Oscar Krause ea8a66d449 removed "PatchMalformedJsonMiddleware" because its not working on driver site
ref. oscar.krause/fastapi-dls#1
2024-12-02 08:37:01 +01:00
Oscar Krause 991a35ef1a implemented "fix_ip_address_list_length" 2024-11-29 13:04:10 +01:00
Oscar Krause 317699ff58 code styling 2024-11-21 08:51:39 +01:00
Oscar Krause 88c78efcd9 fixes 2024-11-21 08:51:39 +01:00
Oscar Krause fb3ac4291f code styling 2024-11-21 08:51:39 +01:00
Oscar Krause 15f14cac11 implemented "SUPPORT_MALFORMED_JSON" variable 2024-11-21 08:51:39 +01:00
Oscar Krause 018d7c34fc fixes 2024-11-21 08:51:39 +01:00
Oscar Krause 1aee423120 fixes 2024-11-21 08:51:39 +01:00
Oscar Krause a6b2f2a942 fixed json payload 2024-11-21 08:51:39 +01:00
Oscar Krause e33024db86 fixed variable names
ref. oscar.krause/fastapi-dls#1
2024-11-21 08:51:39 +01:00
Oscar Krause 4ad15f0849 fix malformed json on auth
ref. oscar.krause/fastapi-dls#1
2024-11-21 08:51:39 +01:00
Oscar Krause 4b0219b85a updated to new vgpu page
ref. https://docs.nvidia.com/vgpu/index.html
2024-07-11 05:49:00 +02:00
Oscar Krause 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
Oscar Krause 7e6e523799 improved test (checking uuid are 36 chars long) 2023-01-03 18:05:46 +01:00
Oscar Krause 5575fee382 fixed config test 2023-01-03 18:05:46 +01:00
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 8f9d95056f code styling - migrated direct dict access to '.get()' 2023-01-03 09:20:18 +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 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 9a5cf9ff81 code styling 2022-12-29 19:07:30 +01:00
Oscar Krause 17978c2e2e main.py - added endpoint to release single lease 2022-12-29 19:03:09 +01:00
Oscar Krause 1b2da802cb added tests for new endpoints 2022-12-29 10:37:47 +01:00
Oscar Krause 837721fd7b finished all remaining tests 2022-12-28 14:54:30 +01:00
Oscar Krause d4ca6ba1aa fixed imports 2022-12-28 14:39:04 +01:00