mirror of
https://github.com/Katakate/k7.git
synced 2026-09-21 17:43:20 +00:00
a939e693d0
Security release for the k7-api control plane. Fixes a server-side request forgery reachable through a sandbox's image registry host: registry hosts are now resolved and checked against public/allowlisted ranges before any OCI fetch, the localhost-to-plain-HTTP downgrade is gone, and redirects are disabled so an allowlisted host cannot bounce the request inward. Adds optional per-key namespace authorization, so an API key can be confined to the namespaces it owns and cannot perform all-namespaces operations. Keys without a scope keep their previous unrestricted behaviour, so upgrading changes nothing until you scope your keys. Both issues were reported privately by Jirayu Thongchotchaung, who held disclosure until this release was available. See CHANGELOG.md and the published advisories for detail.
28 lines
791 B
Python
28 lines
791 B
Python
from pathlib import Path
|
|
|
|
from setuptools import find_packages, setup
|
|
|
|
setup(
|
|
name="k7-sdk",
|
|
version="0.2.1",
|
|
description="K7 sandbox management Python SDK (HTTP client for the k7 API)",
|
|
long_description=Path(__file__).with_name("README.md").read_text(),
|
|
long_description_content_type="text/markdown",
|
|
url="https://github.com/Katakate/k7",
|
|
license="Apache-2.0",
|
|
packages=find_packages(
|
|
where="src",
|
|
include=["k7_sdk", "k7_sdk.*", "katakate", "katakate.*"],
|
|
),
|
|
package_dir={"": "src"},
|
|
include_package_data=True,
|
|
install_requires=[
|
|
"requests>=2.31.0",
|
|
],
|
|
extras_require={
|
|
"async": ["httpx>=0.27.0"],
|
|
"sdk-async": ["httpx>=0.27.0"], # back-compat extra name
|
|
},
|
|
python_requires=">=3.8",
|
|
)
|