set authorized_keys file mode automatically from api process
All checks were successful
Build Container / Build Container (push) Successful in 1m33s

This commit is contained in:
lilly 2026-07-18 21:10:32 +02:00
commit f5c69ae5e9
Signed by: lilly
SSH key fingerprint: SHA256:y9T5GFw2A20WVklhetIxG1+kcg/Ce0shnQmbu1LQ37g

View file

@ -2,6 +2,7 @@ from typing import List
from aiohttp import ClientSession, ClientRequest, ClientHandlerType, ClientResponse
import asyncio
import logging
import stat
from pathlib import Path
from simple_openid_connect.client import OpenidClient
from simple_openid_connect.data import TokenErrorResponse
@ -81,4 +82,6 @@ class KeycloakClient:
with self.authorized_keys_file.open(mode="wt", encoding="UTF-8") as f:
f.writelines(self.ssh_keys)
self.authorized_keys_file.chmod(stat.S_IWUSR | stat.S_IRUSR)