set authorized_keys file mode automatically from api process
All checks were successful
Build Container / Build Container (push) Successful in 1m33s
All checks were successful
Build Container / Build Container (push) Successful in 1m33s
This commit is contained in:
parent
504d64ea57
commit
f5c69ae5e9
1 changed files with 3 additions and 0 deletions
|
|
@ -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)
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue