From e971857d9ba82644b8bd10ba0329ece1774f4de2 Mon Sep 17 00:00:00 2001 From: xprilion Date: Mon, 27 Apr 2026 12:47:31 +0530 Subject: [PATCH 1/2] Remove LFS tracking for PNG files The PNG files were committed as regular blobs, not LFS pointers, causing 'should have been pointers' warnings on clone. Since these are small files, removing LFS tracking is the simplest fix. Fixes #18 --- .gitattributes | 1 - 1 file changed, 1 deletion(-) delete mode 100644 .gitattributes diff --git a/.gitattributes b/.gitattributes deleted file mode 100644 index 24a8e87..0000000 --- a/.gitattributes +++ /dev/null @@ -1 +0,0 @@ -*.png filter=lfs diff=lfs merge=lfs -text From 4281cafc3f588f242f57b5c7bf1b16c633d92ff2 Mon Sep 17 00:00:00 2001 From: xprilion Date: Mon, 27 Apr 2026 12:49:42 +0530 Subject: [PATCH 2/2] Fix KeyManager path to use /app/.keys instead of /.keys The path calculation had one extra .parent call, resolving to the filesystem root instead of /app. This caused PermissionError in Docker where the container runs as non-root user. Fixes #19 --- backend/openmlr/keys/manager.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/backend/openmlr/keys/manager.py b/backend/openmlr/keys/manager.py index a7798d4..d0ca741 100644 --- a/backend/openmlr/keys/manager.py +++ b/backend/openmlr/keys/manager.py @@ -12,7 +12,7 @@ class KeyManager: """Manages SSH private keys stored in a dedicated directory.""" def __init__(self, keys_dir: str | Path = None): - self.keys_dir = Path(keys_dir) if keys_dir else Path(__file__).parent.parent.parent.parent.parent / ".keys" + self.keys_dir = Path(keys_dir) if keys_dir else Path(__file__).parent.parent.parent.parent / ".keys" self._ensure_dir() def _ensure_dir(self) -> None: