From c46887c842999d11f55c36a1522abf0454c00041 Mon Sep 17 00:00:00 2001 From: Daniel Sharifi Date: Tue, 3 Mar 2026 16:33:32 +0100 Subject: [PATCH 1/2] chore: remove get quote request in launcher --- tee_launcher/launcher.py | 7 ------- 1 file changed, 7 deletions(-) diff --git a/tee_launcher/launcher.py b/tee_launcher/launcher.py index a0dd34958..a1b7be26f 100644 --- a/tee_launcher/launcher.py +++ b/tee_launcher/launcher.py @@ -533,13 +533,6 @@ def extend_rtmr3(platform: Platform, valid_hash: str) -> None: bare = get_bare_digest(valid_hash) logging.info(f"Extending RTMR3 with validated hash: {bare}") - # GetQuote first - proc = curl_unix_socket_post( - endpoint="GetQuote", payload='{"report_data": ""}', capture_output=True - ) - if proc.returncode: - raise RuntimeError("GetQuote failed before extending RTMR3") - payload_json = json.dumps({"event": "mpc-image-digest", "payload": bare}) proc = curl_unix_socket_post( From 1bc52dfbda24c222cc5534c734227bd792759ae1 Mon Sep 17 00:00:00 2001 From: Daniel Sharifi Date: Tue, 3 Mar 2026 19:58:44 +0100 Subject: [PATCH 2/2] remove integration test for get quote failing --- tee_launcher/test_launcher_config.py | 14 -------------- 1 file changed, 14 deletions(-) diff --git a/tee_launcher/test_launcher_config.py b/tee_launcher/test_launcher_config.py index 281993e8d..22acd00b0 100644 --- a/tee_launcher/test_launcher_config.py +++ b/tee_launcher/test_launcher_config.py @@ -567,20 +567,6 @@ def test_extend_rtmr3_tee_requires_socket(monkeypatch, base_env): launcher.extend_rtmr3(launcher.Platform.TEE, "sha256:" + "b" * 64) -def test_extend_rtmr3_tee_getquote_fail(monkeypatch, base_env): - monkeypatch.setattr(launcher, "is_unix_socket", lambda p: True) - - def fake_curl(endpoint, payload, capture_output=False): - # Fail only GetQuote - if endpoint == "GetQuote": - return DummyProc(returncode=7) - return DummyProc(returncode=0) - - monkeypatch.setattr(launcher, "curl_unix_socket_post", fake_curl) - with pytest.raises(RuntimeError, match="GetQuote failed"): - launcher.extend_rtmr3(launcher.Platform.TEE, "sha256:" + "b" * 64) - - def test_extend_rtmr3_tee_emitevent_fail(monkeypatch, base_env): monkeypatch.setattr(launcher, "is_unix_socket", lambda p: True)