A bug around suit-text while creating depending manifests
I'm Ken Takayama, one of a SUIT and TEEP implementer.
Thanks to your suit-tool, I could create appropriate manifests for TEEP usage.
This is a quick bug report of suit-tool, but there is no rush because I found a workaround.
If you have plenty of time, please fix it.
Title:
A garbage key-value in suit-text while creating depending manifests
Environment:
Ubuntu/Linux, Python 3.6.9
Steps to reproduce:
$ ../bin/suit-tool create -i personalisation.json -o personalisation.suit
Expected Result:
/ text / 13:<<{
[h'4f502d544545', h'44f301', h'636f6e6669672e6a736f6e']:{
/ model-name / 2:'Personalised OP-TEE on TF-A
on TrustZone',
/ vendor-domain / 3:'tam.teep.example',
}
}>>,
Actual Result:
Same as https://gitlab.arm.com/research/ietf-suit/suit-tool/-/tree/master/teep-example
/ text / 13:<<{
[h'4f502d544545', h'44f301', h'636f6e6669672e6a736f6e']:{
/ model-name / 2:'Personalised OP-TEE on TF-A
on TrustZone',
/ vendor-domain / 3:'tam.teep.example',
}
[h'4f502d544545', h'44f301', h'edd94cd89d9c4cc89216b3ad5a2d5b8a', h'7461']:{
/ model-name / 2:'OP-TEE on TF-A on
TrustZone',
/ vendor-domain / 3:'teep.example',
}
}>>,
Workaround:
- delete
"src-file": "ta.json"
line from personalisation.json. - execute commands separately like below.
$ ../bin/suit-tool create -i ta.json -o ta.suit
$ ../bin/suit-tool create -i personalisation.json -o personalisation.suit
Severity/Priority:
Low
Note:
I estimate that there is a side-effect around create.py L.218.
There might be a static value in suit_tool.create and it remains while creating depending manifests.
I'm sorry but I could not found the actual cause.