diff --git a/.github/workflows/docker-hub-publish.yml b/.github/workflows/docker-hub-publish.yml index 1dcab04..20302aa 100644 --- a/.github/workflows/docker-hub-publish.yml +++ b/.github/workflows/docker-hub-publish.yml @@ -34,7 +34,7 @@ jobs: - name: Build the Docker image - run: docker build . --file Dockerfile -t mobilesecurity/mdast_cli:2026.7 -t mobilesecurity/mdast_cli:latest + run: docker build . --file Dockerfile -t mobilesecurity/mdast_cli:2026.7.1 -t mobilesecurity/mdast_cli:latest - name: Docker Hub push latest image @@ -42,7 +42,7 @@ jobs: - name: Docker Hub push tagged image - run: docker push mobilesecurity/mdast_cli:2026.7 + run: docker push mobilesecurity/mdast_cli:2026.7.1 diff --git a/mdast_cli/__init__.py b/mdast_cli/__init__.py index 31cb2e1..05c207a 100644 --- a/mdast_cli/__init__.py +++ b/mdast_cli/__init__.py @@ -1 +1 @@ -__version__ = '2026.7' +__version__ = '2026.7.1' diff --git a/mdast_cli/distribution_systems/rustore.py b/mdast_cli/distribution_systems/rustore.py index c80d384..968659b 100644 --- a/mdast_cli/distribution_systems/rustore.py +++ b/mdast_cli/distribution_systems/rustore.py @@ -9,6 +9,14 @@ logger = logging.getLogger(__name__) +# Since July 2026 RuStore backapi rejects requests without a client version header: +# a missing/non-numeric value returns an empty HTTP 400 from the "kittenx" edge, +# and a numeric value below the minimum returns HTTP 417. The server only enforces +# a lower bound (currently 247) and accepts any larger integer, so we send a value +# far above it that never needs bumping as the real RuStore client version changes. +# Override via the MDAST_RUSTORE_VER_CODE env var if the minimum is ever raised. +RUSTORE_VER_CODE = os.environ.get('MDAST_RUSTORE_VER_CODE', '2000000000') + def get_app_info(package_name): """ @@ -21,7 +29,8 @@ def get_app_info(package_name): """ common_headers = { 'User-Agent': 'mdast-cli/1.0 (+https://stingray-tech.ru)', - 'Accept': 'application/json' + 'Accept': 'application/json', + 'ruStoreVerCode': RUSTORE_VER_CODE } req = requests.get( diff --git a/setup.py b/setup.py index 6bce290..861ce6d 100644 --- a/setup.py +++ b/setup.py @@ -6,7 +6,7 @@ setup( name="mdast_cli", - version='2026.7', + version='2026.7.1', python_requires='>=3.12',