update agent

This commit is contained in:
2026-07-17 15:41:05 +07:00
parent 13bea66473
commit 476c41cf08
15 changed files with 467 additions and 20 deletions

View File

@@ -38,6 +38,7 @@ class Settings:
robot_package_base_url: str
allowed_origins: list[str]
allowed_download_hosts: list[str]
allowed_apt_packages: list[str]
allowed_docker_registries: list[str]
cache_dir: Path
app_dir: Path
@@ -83,6 +84,10 @@ def get_settings() -> Settings:
os.getenv("ALLOWED_DOWNLOAD_HOSTS"),
_default_allowed_download_hosts(robot_package_base_url),
),
allowed_apt_packages=_csv(
os.getenv("ALLOWED_APT_PACKAGES"),
["postgresql"],
),
allowed_docker_registries=_csv_with_defaults(
os.getenv("ALLOWED_DOCKER_REGISTRIES"),
["registry.robot.package", "docker.io"],