Commit Graph

41 Commits

Author SHA1 Message Date
florian 52390e3c45 Added git to the docker image
Build & Publish to GHCR / build (push) Successful in 1m56s
2025-11-03 19:20:38 +01:00
florian 334461466b Moved logging setupt to seperate module
Build & Publish to GHCR / build (push) Failing after 18s
2025-11-03 19:06:32 +01:00
florian 4a5ab492e2 Added json logger
Build & Publish to GHCR / build (push) Successful in 1m1s
2025-10-21 19:59:30 +02:00
florian 378f8cf06f Typo
Build & Publish to GHCR / build (push) Successful in 30s
2025-10-20 12:55:40 +02:00
florian a55d1b324c Updated readme
Build & Publish to GHCR / build (push) Successful in 30s
2025-10-18 19:58:25 +02:00
florian cbf3c662a1 Fixed missing special characters that can occur in an ExponentToken
Build & Publish to GHCR / build (push) Successful in 45s
2025-10-17 09:25:37 +02:00
florian 559a9c913f Fixed logger not setting log level correctly
Build & Publish to GHCR / build (push) Successful in 33s
2025-10-17 09:15:02 +02:00
florian 101e208a8f Unified logging behaviour
Build & Publish to GHCR / build (push) Successful in 43s
- Logger doesn't start with log level DEBUG by default, instead reads a environment variable
- Secret handler raises exceptions instead of using the module os to exit
- Added extensive debug logging
2025-10-17 08:59:27 +02:00
florian 4590386b3e Typo
Build & Publish to GHCR / build (push) Successful in 39s
2025-10-16 15:36:22 +02:00
florian ead13eba51 Removed user_id from incoming request since I never trusted it anyway
Build & Publish to GHCR / build (push) Successful in 36s
2025-10-15 09:08:33 +02:00
florian 91d86edc3c Removed health check invocation message
Build & Publish to GHCR / build (push) Successful in 25s
2025-10-13 08:15:24 +02:00
florian e4ddac872b Actually start the background thread to check db health
Build & Publish to GHCR / build (push) Successful in 28s
2025-10-12 15:34:04 +02:00
florian 85a58adc98 Merge pull request 'Improved database connection and logging' (#3) from feature/improved-db-handling into main
Build & Publish to GHCR / build (push) Successful in 35s
Reviewed-on: #3
2025-10-12 15:25:08 +02:00
florian 8a656fd734 Improved database connection and logging 2025-10-12 15:24:04 +02:00
florian 68d62e1f1f Removed pull request feature because I couldn't get it to work, shame! Now I yolo push to main
Build & Publish to GHCR / build (push) Successful in 21s
2025-10-11 13:58:05 +02:00
florian dc0a1fb923 Merge pull request 'Added automatically creating a pull request for ops-deployment with an update image number' (#2) from feature/create-deployment-merge-request into main
Build & Publish to GHCR / build (push) Successful in 21s
Reviewed-on: #2
2025-10-11 10:18:25 +02:00
florian dc04f2bbec Added automatically creating a pull request for ops-deployment with an update image number 2025-10-11 10:15:56 +02:00
florian 8d2020818d Forgot properly invoking the exception
Build & Publish to GHCR / build (push) Successful in 38s
2025-10-10 12:00:48 +02:00
florian 51771fb378 Invalid import removed
Build & Publish to GHCR / build (push) Successful in 16s
2025-10-10 11:45:47 +02:00
florian 4d586f4371 Added /health check for Prometheus and added failure capturing incase something went wrong, previous approach would not increase the counter
Build & Publish to GHCR / build (push) Successful in 14s
2025-10-10 11:41:36 +02:00
florian e944acaedd ...and numbers
Build & Publish to GHCR / build (push) Successful in 23s
2025-10-10 11:18:50 +02:00
florian f0792a3d21 Checking what kind of token you receive probably helps before writing a validator
Build & Publish to GHCR / build (push) Successful in 21s
2025-10-10 11:03:44 +02:00
florian 09ec45d6ef Merge branch 'feature/github-publish-docker-images'
Build & Publish to GHCR / build (push) Successful in 10s
2025-10-09 16:41:04 +02:00
florian 582cc0d9b9 Checking if a valid token has been supplied from the app, only works with Android tokens
Build & Publish to GHCR / build (push) Successful in 21s
2025-10-09 16:31:37 +02:00
florian 191044a2a6 Gitea Actions: Automatically increase image tag by one 2025-10-09 15:22:42 +02:00
florian e3bd837192 Gitea Actions: Publish to GHCR
Build & Publish to GHCR / build (push) Successful in 54s
2025-10-09 14:26:41 +02:00
florian ed0dcfeadb Gracefully opening encryption key and secrets with exit on failure 2025-10-09 08:05:40 +02:00
florian 7fb139b362 Added Prometheus metric endpoint on port 9000 2025-10-08 18:51:28 +02:00
florian 799ecdda67 DB and FastAPI: Reconnect if DB goes down, switch to lifespan events in FastAPI, ensure safe startup/shutdown. 2025-10-08 18:42:59 +02:00
florian 2a8d06a373 Fixed decoding files to return strings instead of bytes and properly called the function 2025-10-08 11:19:53 +02:00
florian fc878e9d8f Removed HVAC handler and changed deployment to Kubernetes 2025-10-07 21:17:36 +02:00
florian ea1615995d Deployment configuration 2025-10-06 16:00:03 +02:00
florian f8c9820e2c Switched to HVAC Agent instead of connecting to the vault directly 2025-10-04 22:18:51 +02:00
florian b2af6fe289 Moved interal part of API to differen repository 2025-10-03 19:46:03 +02:00
florian 0e7d235a6d Added hashed tokens 2025-10-03 19:00:28 +02:00
florian 51404f73e4 Unnecessary 2025-10-03 19:00:01 +02:00
florian 3e3bd243bd Look up by user and not the ever changing encrypted token, whoops! 2025-10-03 18:55:33 +02:00
florian 54d47e7e46 Correct port 2025-10-03 18:23:41 +02:00
florian 00bacba60f Added timestamp logging
Changed database lookup to look for a hashed token (that stays the same) and not a encrypted token by the vault which changes
2025-10-03 18:20:15 +02:00
florian 4ee4e6117f requirements 2025-09-30 17:25:36 +02:00
florian defbd86671 First draft with no security xd 2025-09-30 15:37:53 +02:00