Skip to content

Commit

Permalink
Fix revocation script so it won't import keylime config
Browse files Browse the repository at this point in the history
  • Loading branch information
kkaarreell committed Jul 31, 2023
1 parent 389cd7d commit a66bbcf
Showing 1 changed file with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
import os
import sys
import json
from keylime import config
import toml

json_file = sys.argv[1]
with open(json_file, 'r') as f:
Expand All @@ -14,7 +14,8 @@

event_uuid = input_json.get("agent_id", "event_uuid")
event_ip = input_json.get("ip", "event_ip")
my_uuid = config.get('agent', 'uuid').strip('\"')
with open("/etc/keylime/agent.conf", "r") as f:
my_uuid = toml.load(f)["agent"]["uuid"].strip('\"')

print("A node in the network has been compromised:", event_ip)
print("my UUID: %s, event UUID: %s" % (my_uuid, event_uuid))
Expand Down

0 comments on commit a66bbcf

Please sign in to comment.