-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #29 from ietf-rats-wg/cddl
Add CDDL
- Loading branch information
Showing
20 changed files
with
265 additions
and
56 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
# Automatically generated CODEOWNERS | ||
# Regenerate with `make update-codeowners` | ||
draft-ietf-rats-ar4si.md [email protected] [email protected] [email protected] Thomas.Fossati@arm.com [email protected] | ||
draft-ietf-rats-ar4si.md [email protected] [email protected] [email protected] Thomas.Fossati@linaro.org [email protected] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,16 +1,23 @@ | ||
*~ | ||
/*-[0-9][0-9].xml | ||
archive.json | ||
draft-ietf-rats-ar4si.xml | ||
*.html | ||
lib | ||
*.redxml | ||
.refcache | ||
report.xml | ||
*.swp | ||
.tags | ||
.targets.mk | ||
*.txt | ||
*.upload | ||
venv/ | ||
*~ | ||
.tags | ||
/*-[0-9][0-9].xml | ||
/.*.mk | ||
/.gems/ | ||
/.refcache | ||
/.venv/ | ||
/.vscode/ | ||
/lib | ||
/node_modules/ | ||
/versioned/ | ||
Gemfile.lock | ||
archive.json | ||
draft-ietf-rats-ar4si.xml | ||
package-lock.json | ||
report.xml | ||
!requirements.txt |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -15,3 +15,19 @@ repository constitutes Contributions to the IETF Standards Process | |
You agree to comply with all applicable IETF policies and procedures, including, | ||
BCP 78, 79, the TLP, and the TLP rules regarding code components (e.g. being | ||
subject to a Simplified BSD License) in Contributions. | ||
|
||
|
||
## Working Group Information | ||
|
||
Discussion of this work occurs on the [Remote ATtestation ProcedureS | ||
Working Group mailing list](mailto:[email protected]) | ||
([archive](https://mailarchive.ietf.org/arch/browse/rats/), | ||
[subscribe](https://www.ietf.org/mailman/listinfo/rats)). | ||
In addition to contributions in GitHub, you are encouraged to participate in | ||
discussions there. | ||
|
||
**Note**: Some working groups adopt a policy whereby substantive discussion of | ||
technical issues needs to occur on the mailing list. | ||
|
||
You might also like to familiarize yourself with other | ||
[Working Group documents](https://datatracker.ietf.org/wg/rats/documents/). |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
source 'https://rubygems.org' | ||
|
||
gem 'json_pure' | ||
gem 'cddl', ['>=0.9.1', '!=0.10.5' ] | ||
gem 'cbor-diag', '=0.8.1' | ||
gem 'cddlc' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
SHELL := /bin/bash | ||
|
||
.DEFAULT_GOAL := check | ||
|
||
FRAGMENTS += start.cddl | ||
FRAGMENTS += trustworthiness-vector.cddl | ||
FRAGMENTS += trustworthiness-claim.cddl | ||
FRAGMENTS += trust-tier.cddl | ||
FRAGMENTS += verifier-id.cddl | ||
FRAGMENTS += non-empty.cddl | ||
FRAGMENTS += jc.cddl | ||
|
||
CDDLC_FLAGS := -u -2t cddl | ||
|
||
ar4si-autogen.cddl: ; $(cddlc) $(CDDLC_FLAGS) $(FRAGMENTS) > $@ | ||
|
||
CLEANFILES += ar4si-autogen.cddl | ||
|
||
.PHONY: clean | ||
clean: ; rm -f $(CLEANFILES) | ||
|
||
.PHONY: check-c | ||
check-c: ar4si-autogen.cddl; $(cddl) $< generate 10 | ||
|
||
.PHONY: check-j | ||
check-j: ar4si-autogen.cddl; $(cddl) $< json-generate 10 | ||
|
||
.PHONY: check | ||
check: check-c check-j | ||
|
||
include tools.mk |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
JSON-ONLY<J> = J .feature "json" | ||
CBOR-ONLY<C> = C .feature "cbor" | ||
JC<J,C> = JSON-ONLY<J> / CBOR-ONLY<C> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
non-empty<M> = (M) .within ({ + any => any }) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
$.start.$ = trustworthiness-vector / trust-tier / verifier-id |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
cddl ?= $(shell command -v cddl) | ||
ifeq ($(strip $(cddl)),) | ||
$(error cddl not found. To install cddl: 'gem install cddl') | ||
endif | ||
|
||
cddlc ?= $(shell command -v cddlc) | ||
ifeq ($(strip $(cddlc)),) | ||
$(error cddlc not found. To install cddlc: 'gem install cddlc') | ||
endif | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
trust-tier-none-label = JC<"none", 0> | ||
trust-tier-affirming-label = JC<"affirming", 2> | ||
trust-tier-warning-label = JC<"warning", 32> | ||
trust-tier-contraindicated-label = JC<"contraindicated", 96> | ||
|
||
trust-tier /= trust-tier-none-label | ||
trust-tier /= trust-tier-affirming-label | ||
trust-tier /= trust-tier-warning-label | ||
trust-tier /= trust-tier-contraindicated-label |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
trustworthiness-claim = -128..127 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
trustworthiness-vector = non-empty<{ | ||
? instance-identity-label => trustworthiness-claim | ||
? configuration-label => trustworthiness-claim | ||
? executables-label => trustworthiness-claim | ||
? file-system-label => trustworthiness-claim | ||
? hardware-label => trustworthiness-claim | ||
? runtime-opaque-label => trustworthiness-claim | ||
? storage-opaque-label => trustworthiness-claim | ||
? sourced-data-label => trustworthiness-claim | ||
}> | ||
|
||
instance-identity-label = JC<"instance-identity", 0> | ||
configuration-label = JC<"configuration", 1> | ||
executables-label = JC<"executables", 2> | ||
file-system-label = JC<"file-system", 3> | ||
hardware-label = JC<"hardware", 4> | ||
runtime-opaque-label = JC<"runtime-opaque", 5> | ||
storage-opaque-label = JC<"storage-opaque", 6> | ||
sourced-data-label = JC<"sourced-data", 7> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
verifier-id = { | ||
developer-label => text | ||
build-label => text | ||
} | ||
|
||
developer-label = JC<"developer", 0> | ||
build-label = JC<"build", 1> |
Oops, something went wrong.