Skip to content

Instantly share code, notes, and snippets.

View aj-stein-nist's full-sized avatar
👋
After 23 August 2024, I leave NIST and I will disable this account.

A.J. Stein aj-stein-nist

👋
After 23 August 2024, I leave NIST and I will disable this account.
View GitHub Profile
@aj-stein-nist
aj-stein-nist / ietf_document_shepherd_template.txt
Created July 22, 2024 14:08
IETF document shepherd review template
# Document Shepherd Write-Up for Group Documents
*This version is dated 4 July 2022.*
Thank you for your service as a document shepherd. Among the responsibilities is
answering the questions in this write-up to give helpful context to Last Call
and Internet Engineering Steering Group ([IESG][1]) reviewers, and your
diligence in completing it is appreciated. The full role of the shepherd is
further described in [RFC 4858][2]. You will need the cooperation of the authors
and editors to complete these checks.
<?xml version="1.0" encoding="UTF-8"?>
<foo xmlns="https://github.com/usnistgov/metaschema/issues/559">
<bar grouping="three-only-group">a</bar>
<bar grouping="three-only-group">b</bar>
<bar grouping="three-only-group">c</bar>
</foo>
@aj-stein-nist
aj-stein-nist / let_example-0.xml
Created February 23, 2024 22:58
Basic sample model in module without external constraints
<?xml version="1.0" encoding="UTF-8"?>
<?xml-model href="https://raw.githubusercontent.com/usnistgov/metaschema/develop/schema/xml/metaschema.xsd" type="application/xml" schematypens="http://www.w3.org/2001/XMLSchema"?>
<METASCHEMA xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns="http://csrc.nist.gov/ns/oscal/metaschema/1.0">
<schema-name>Let Experiment Model</schema-name>
<schema-version>0.1.0</schema-version>
<short-name>experiment</short-name>
<namespace>https://github.com/usnistgov/metaschema/issues/548</namespace>
<json-base-uri>https://github.com/usnistgov/metaschema/issues/548</json-base-uri>
<define-assembly name="package">
@aj-stein-nist
aj-stein-nist / let_example-0.xml
Last active February 23, 2024 22:59
Example model modules and document instances for PR usnistgov/metaschema#552 and issue #548
<?xml version="1.0" encoding="UTF-8"?>
<?xml-model href="https://raw.githubusercontent.com/usnistgov/metaschema/develop/schema/xml/metaschema.xsd" type="application/xml" schematypens="http://www.w3.org/2001/XMLSchema"?>
<METASCHEMA xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns="http://csrc.nist.gov/ns/oscal/metaschema/1.0">
<schema-name>Let Experiment Model</schema-name>
<schema-version>0.1.0</schema-version>
<short-name>experiment</short-name>
<namespace>https://github.com/usnistgov/metaschema/issues/548</namespace>
<json-base-uri>https://github.com/usnistgov/metaschema/issues/548</json-base-uri>
<define-assembly name="package">
@aj-stein-nist
aj-stein-nist / let_example-1.xml
Created February 23, 2024 21:07
Example model module and document instances for usnistgov/metaschema#328
<?xml version="1.0" encoding="UTF-8"?>
<?xml-model href="https://raw.githubusercontent.com/usnistgov/metaschema/develop/schema/xml/metaschema.xsd" type="application/xml" schematypens="http://www.w3.org/2001/XMLSchema"?>
<METASCHEMA xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns="http://csrc.nist.gov/ns/oscal/metaschema/1.0">
<schema-name>Let Experiment Model</schema-name>
<schema-version>0.2.0</schema-version>
<short-name>experiment</short-name>
<namespace>https://github.com/usnistgov/metaschema/issues/548</namespace>
<json-base-uri>https://github.com/usnistgov/metaschema/issues/548</json-base-uri>
<define-assembly name="package">
@aj-stein-nist
aj-stein-nist / metaschema.xsd
Created February 22, 2024 13:31
Generated metaschema.xsd from metaschema-cli 1.0.0-M2-SNAPSHOT (09e0d21)
<?xml version="1.0" encoding="utf-8"?>
<xs:schema xmlns="http://csrc.nist.gov/ns/oscal/metaschema/1.0"
xmlns:vs="http://www.w3.org/2007/XMLSchema-versioning"
xmlns:xs="http://www.w3.org/2001/XMLSchema"
targetNamespace="http://csrc.nist.gov/ns/oscal/metaschema/1.0"
elementFormDefault="qualified"
vs:minVersion="1.0"
vs:maxVersion="1.1"
version="1.0.0-M2">
<xs:annotation>
@aj-stein-nist
aj-stein-nist / commands.md
Last active February 16, 2024 23:21
Command script for metaschema-cli demo video
mkdir -p /tmp/metaschema-experiments/

pushd /tmp/metaschema-experiments/

export ZIP_DOWNLOAD_URL="https://oss.sonatype.org/content/repositories/snapshots/gov/nist/secauto/metaschema/metaschema-cli/1.0.0-M2-SNAPSHOT/metaschema-cli-1.0.0-M2-20240214.163112-57-metaschema-cli.zip"

export SIG_DOWNLOAD_URL="https://oss.sonatype.org/content/repositories/snapshots/gov/nist/secauto/metaschema/metaschema-cli/1.0.0-M2-SNAPSHOT/metaschema-cli-1.0.0-M2-20240214.163112-57-metaschema-cli.zip.asc"

echo $ZIP_DOWNLOAD_URL | qrencode -t utf8
@aj-stein-nist
aj-stein-nist / wrapper.md
Created February 14, 2024 18:57
SCITT Sequence Diagram
sequenceDiagram
    Issuer->>+Issuer: Make an artifact
    Issuer->>+Issuer: Generate artifact statement
    Issuer->>+Issuer: Generate identifiers and envelope
    Issuer->>+Issuer: COSE Sign enveloped statement
    Issuer->>+TS: Submit signed statement for registration
    TS->>+TS: Analyze signed statement with registration policy
    TS->>+TS: Generate and sign transparent statement    
 TS-&gt;&gt;+TS: If valid, append transparent statement to append-only log
@aj-stein-nist
aj-stein-nist / tutorial3-example_instance.json
Last active February 8, 2024 02:12
Metaschema Tutorial 3 Model and Examples
{
"computer": {
"id": "awesomepc1",
"motherboard": {
"vendor": {
"id": "vendor2",
"name": "ISA Corp",
"address": "2000 K Street NW Washington, DC 20002",
"website": "https://example.com/isacorp/"
},
@aj-stein-nist
aj-stein-nist / simple-example_catalog.xml
Last active January 21, 2024 22:09
Simple Catalog for Debugging
<?xml version="1.0" encoding="UTF-8"?>
<?xml-model schematypens="http://www.w3.org/2001/XMLSchema" type="application/xml" href="https://github.com/usnistgov/OSCAL/releases/download/v1.1.1/oscal_complete_schema.xsd"?>
<catalog xmlns="http://csrc.nist.gov/ns/oscal/1.0"
uuid="74c8ba1e-5cd4-4ad1-bbfd-d888e2f6c724">
<metadata>
<title>Sample Security Catalog <em>for Demonstration</em> and Testing</title>
<published>2023-10-12T00:00:00.000000-04:00</published>
<last-modified>2023-10-12T00:00:00.000000-04:00</last-modified>
<version>1.1</version>
<oscal-version>1.1.1</oscal-version>