Skip to content

Dodaios is an open-source agent OS for your desktop: it runs your coding agents, browser and apps by voice or chat, on your own machine. Formerly Personal Jarvis.

fix(deps): let Dependabot's uv updates reach the native-crypto index (#953)

Ruben Lütke3c8c36e02e05
diff --git a/.github/dependabot.yml b/.github/dependabot.yml
index 71c42d4367..7f7a7e9a6d 100644
--- a/.github/dependabot.yml
+++ b/.github/dependabot.yml
@@ -29,6 +29,15 @@ registries:
type: python-index
url: https://pypi.org/simple
replaces-base: true
+ # The project's explicit uv index for the cryptography wheels PyPI lacks
+ # (pyproject.toml [[tool.uv.index]] native-crypto). Dependabot's proxy only
+ # lets a job reach hosts declared here: without it every uv security update
+ # died on "egress not allowlisted dodaios.github.io" -> 403 while locking
+ # cryptography (#832). Public, no credentials. Must equal the index URL in
+ # packaging/native-crypto-uv.toml (tests/unit/packaging/test_native_crypto_index.py).
+ native-crypto:
+ type: python-index
+ url: https://dodaios.github.io/Dodaios/native-crypto/50.0.2-1/simple/
updates:
# Build tooling is a separate small lock surface; do not recompile the
@@ -130,6 +139,7 @@ updates:
directory: /
registries:
- pypi
+ - native-crypto
schedule:
interval: weekly
day: monday
diff --git a/tests/unit/packaging/test_native_crypto_index.py b/tests/unit/packaging/test_native_crypto_index.py
index a213a310f1..ef36694f49 100644
--- a/tests/unit/packaging/test_native_crypto_index.py
+++ b/tests/unit/packaging/test_native_crypto_index.py
@@ -87,6 +87,20 @@ def test_uv_source_is_explicit_and_matches_the_reviewed_publication():
assert project["tool"]["uv"]["index"] == config["index"]
+def test_dependabot_may_reach_the_native_crypto_index():
+ """Dependabot's proxy blocks undeclared hosts (#832): the uv updates must
+ carry a registry for exactly the index uv.lock resolves cryptography from."""
+ import yaml
+
+ config = yaml.safe_load((index.ROOT / ".github/dependabot.yml").read_text(encoding="utf-8"))
+ registry = config["registries"]["native-crypto"]
+ assert registry == {"type": "python-index", "url": index.index_url()}
+ uv_updates = [u for u in config["updates"] if u["package-ecosystem"] == "uv"]
+ assert uv_updates
+ for update in uv_updates:
+ assert "native-crypto" in update["registries"]
+
+
def test_browser_dependency_mirror_rejects_losing_a_platform_marker(tmp_path, monkeypatch):
from scripts.ci import check_requirements_sync as sync