-
Notifications
You must be signed in to change notification settings - Fork 3
Closed
Description
A few minor issues
This works, although I have no idea of what the contents of attester-selection should be, empty object works though.
curl -X POST -H 'Content-Type: application/vnd.veraison.chares+json' http://127.0.0.1:8895/ratsd/chares -d '{"nonce":"MTIzNDU2Nzg5MDEyMzQ1Njc4OTAxMjM0NTY3ODkwMTIzNDU2Nzg5MDEyMzQ1Njc4OTAxMjM0NTY3ODkwMTIzNA","attester-selection":{}}'With additional debug information:
ian@Debian:~/ratsd$ ./ratsd
INFO Initializing ratsd core
DEBUG plugin discovering plugins {"location": "attesters/bin"}
DEBUG plugin starting plugin {"path": "/home/ian/ratsd/attesters/bin/mocktsm.plugin", "args": ["/home/ian/ratsd/attesters/bin/mocktsm.plugin"]}
DEBUG plugin plugin started {"path": "/home/ian/ratsd/attesters/bin/mocktsm.plugin", "pid": 80164}
DEBUG plugin waiting for RPC address {"path": "/home/ian/ratsd/attesters/bin/mocktsm.plugin"}
DEBUG plugin using plugin {"version": 1}
DEBUG plugin.mocktsm.plugin plugin address {"address": "/tmp/plugin359262222", "network": "unix", "timestamp": "2025-04-25T11:51:45.785+0300"}
DEBUG plugin.stdio waiting for stdio data
DEBUG plugin starting plugin {"path": "/home/ian/ratsd/attesters/bin/tsm.plugin", "args": ["/home/ian/ratsd/attesters/bin/tsm.plugin"]}
DEBUG plugin plugin started {"path": "/home/ian/ratsd/attesters/bin/tsm.plugin", "pid": 80176}
DEBUG plugin waiting for RPC address {"path": "/home/ian/ratsd/attesters/bin/tsm.plugin"}
DEBUG plugin using plugin {"version": 1}
DEBUG plugin.tsm.plugin plugin address {"address": "/tmp/plugin1165160305", "network": "unix", "timestamp": "2025-04-25T11:51:45.795+0300"}
DEBUG plugin.stdio waiting for stdio data
INFO Loaded sub-attesters:[mock-tsm tsm-report]
INFO initializing ratsd HTTP service {"address": "0.0.0.0:8895"}
DEBUG auth passthrough {"path": "/ratsd/chares"}
INFO api request media type: */*
INFO api request nonce: MTIzNDU2Nzg5MDEyMzQ1Njc4OTAxMjM0NTY3ODkwMTIzNDU2Nzg5MDEyMzQ1Njc4OTAxMjM0NTY3ODkwMTIzNA
INFO api request media type: */*
DEBUG api attester selection: [123 125]
DEBUG api available attesters (pl): [mock-tsm tsm-report]
DEBUG api attester: mock-tsm&{0xc000034480} <nil>
DEBUG api attester supported formats: status:{result:true} formats:{contentType:"application/vnd.veraison.configfs-tsm+json" nonceSize:64}
INFO api output content type: application/vnd.veraison.configfs-tsm+json
DEBUG api attester: tsm-report&{0xc000533c80} <nil>
DEBUG api attester supported formats: status:{error:"TSM is not available: stat /sys/kernel/config/tsm/report: no such file or directory"}
ERROR api no supported formats from attester tsm-report: TSM is not available: stat /sys/kernel/config/tsm/report: no such file or directorymock-tsm seems to be loaded, but seems not to be available to use. Ratsd defaults to TSM at least. Approx line 150 in server.go
Metadata
Metadata
Assignees
Labels
No labels