Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 0 additions & 7 deletions tee_launcher/launcher.py
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand Down
14 changes: 0 additions & 14 deletions tee_launcher/test_launcher_config.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)

Expand Down
Loading