Skip to content

Commit

Permalink
Allow cose_signatures in config schema
Browse files Browse the repository at this point in the history
  • Loading branch information
achamayou committed Dec 18, 2024
1 parent 81abbc4 commit e6c15cf
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 1 deletion.
13 changes: 13 additions & 0 deletions doc/host_config_schema/cchost_config.json
Original file line number Diff line number Diff line change
Expand Up @@ -427,6 +427,19 @@
"previous_service_identity_file": {
"type": "string",
"description": "Path to the previous service certificate (PEM) file"
},
"cose_signatures": {
"type": "object",
"properties": {
"issuer": {
"type": "string",
"description": "Issuer, set in CWT_Claims of COSE ledger signatures. Can only be set once on service start."
},
"subject": {
"type": "string",
"description": "Subject, set in CWT_Claims of COSE ledger signatures. Can only be set once on service start."
}
}
}
},
"required": ["previous_service_identity_file"],
Expand Down
7 changes: 6 additions & 1 deletion tests/config.jinja
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,12 @@
},
"recover": {
"initial_service_certificate_validity_days": {{ initial_service_cert_validity_days }},
"previous_service_identity_file": "{{ previous_service_identity_file }}"
"previous_service_identity_file": "{{ previous_service_identity_file }}",
"cose_signatures":
{
"issuer": {{ cose_signatures_issuer|tojson }},
"subject": {{ cose_signatures_subject|tojson }}
}
}
},
"ledger":
Expand Down

0 comments on commit e6c15cf

Please sign in to comment.