-
Notifications
You must be signed in to change notification settings - Fork 114
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update docs about the use labels with HTTP requests
- Loading branch information
Showing
3 changed files
with
106 additions
and
25 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
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,88 @@ | ||
{ | ||
"definitions": { | ||
"oak.label.Tag": { | ||
"title": "Tag", | ||
"description": "Tag represents a category of confidentiality or integrity that is associated with data within Oak, and refers to a Node or family of Nodes which are able to declassify data with that tag.", | ||
"type": "object", | ||
"properties": { | ||
"grpcTag": { | ||
"$ref": "#/definitions/oak.label.GrpcTag" | ||
}, | ||
"webAssemblyModuleTag": { | ||
"$ref": "#/definitions/oak.label.WebAssemblyModuleTag" | ||
}, | ||
"webAssemblyModuleSignatureTag": { | ||
"$ref": "#/definitions/oak.label.WebAssemblyModuleSignatureTag" | ||
}, | ||
"tlsEndpointTag": { | ||
"$ref": "#/definitions/oak.label.TlsEndpointTag" | ||
} | ||
} | ||
}, | ||
"oak.label.Label": { | ||
"title": "Label", | ||
"description": "Represents information flowing through a Node or channel.", | ||
"type": "object", | ||
"properties": { | ||
"confidentialityTags": { | ||
"type": "array", | ||
"description": "The confidentiality component of the label.", | ||
"items": { | ||
"$ref": "#/definitions/oak.label.Tag" | ||
} | ||
}, | ||
"integrityTags": { | ||
"type": "array", | ||
"description": "The integrity component of the label", | ||
"items": { | ||
"$ref": "#/definitions/oak.label.Tag" | ||
} | ||
} | ||
} | ||
}, | ||
"oak.label.GrpcTag": { | ||
"title": "GrpcTag", | ||
"description": "Policies related to gRPC communication, referring to the native gRPC node within the TCB.", | ||
"type": "object", | ||
"properties": { | ||
"authorizationBearerTokenHmac": { | ||
"description": "BearerToken encoded as a string using standard base64 encoding with paddings.,", | ||
"type": "string" | ||
} | ||
} | ||
}, | ||
"oak.label.WebAssemblyModuleTag": { | ||
"title": "WebAssemblyModuleTag", | ||
"description": "Policies related to modules, referring to the native WebAssembly node within the TCB.", | ||
"type": "object", | ||
"properties": { | ||
"webAssemblyModuleHashSha256": { | ||
"description": "The attestation for a single WebAssembly module, a SHA256 digest of the module in binary format.", | ||
"type": "string" | ||
} | ||
} | ||
}, | ||
"oak.label.WebAssemblyModuleSignatureTag": { | ||
"title": "WebAssemblyModuleSignatureTag", | ||
"description": "Policies related to modules, referring to the signature of the native WebAssembly node.", | ||
"type": "object", | ||
"properties": { | ||
"publicKey": { | ||
"description": "Public key counterpart of the private key used to sign WebAssembly module. The key is encoded as a string using standard base64 encoding with paddings.", | ||
"type": "string" | ||
} | ||
} | ||
}, | ||
"oak.label.TlsEndpointTag": { | ||
"title": "TlsEndpointTag", | ||
"description": "Policies related to HTTPS communication.", | ||
"type": "object", | ||
"properties": { | ||
"authority": { | ||
"description": "The TLS authority (host:port) of the remote endpoint, which is validated by the Oak Runtime using the set of Certificate Authorities (CA) that are available to it.", | ||
"type": "string" | ||
} | ||
} | ||
} | ||
} | ||
} |
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