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( 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)