Skip to content

Commit

Permalink
Merge pull request #21 from iriusrisk/feature/OPT-952
Browse files Browse the repository at this point in the history
[feature/OPT-952] to main
  • Loading branch information
dantolin-iriusrisk authored Aug 30, 2023
2 parents 5861353 + 355287f commit 6bcb2ab
Show file tree
Hide file tree
Showing 5 changed files with 129 additions and 8 deletions.
122 changes: 122 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,122 @@
# Workspace
*.code-workspace

# Byte-compiled / optimized / DLL files
__pycache__/
*.py[cod]
*$py.class

# C extensions
*.so

# Distribution / packaging
.Python
build/
develop-eggs/
dist/
downloads/
eggs/
.eggs/
lib/
lib64/
parts/
sdist/
var/
wheels/
*.egg-info/
.installed.cfg
*.egg
MANIFEST

# PyInstaller
# Usually these files are written by a python script from a template
# before PyInstaller builds the exe, so as to inject date/other infos into it.
*.manifest
*.spec

# Installer logs
pip-log.txt
pip-delete-this-directory.txt

# Unit test / coverage reports
htmlcov/
.tox/
.coverage
.coverage.*
.cache
nosetests.xml
coverage.xml
*.cover
.hypothesis/
.pytest_cache/
test-reports/
/coveragereport/

# SonarLint plugin
.scannerwork

# Translations
*.mo
*.pot

# Django stuff:
*.log
local_settings.py
db.sqlite3

# Flask stuff:
instance/
.webassets-cache

# Scrapy stuff:
.scrapy

# Sphinx documentation
docs/_build/

# PyBuilder
target/

# Jupyter Notebook
.ipynb_checkpoints

# pyenv
.python-version

# celery beat schedule file
celerybeat-schedule

# SageMath parsed files
*.sage.py

# Environments
.env
.venv
env/
venv/
ENV/
env.bak/
venv.bak/

# Spyder project settings
.spyderproject
.spyproject

# Rope project settings
.ropeproject

# mkdocs documentation
/site

# mypy
.mypy_cache/

# caret editor
caret

# IntelliJ/Pycharm folder
/.idea

# Intermediate files
**/diagram.xml
**/product.xml
2 changes: 1 addition & 1 deletion EXAMPLE.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"otmVersion": "0.1.0",
"otmVersion": "0.2.0",
"project": {
"name": "Test project",
"id": "test-project",
Expand Down
2 changes: 1 addition & 1 deletion EXAMPLE.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
otmVersion: 0.1.0
otmVersion: 0.2.0
project:
name: Test project
id: test-project
Expand Down
9 changes: 4 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ For a complete example see [EXAMPLE.yaml](EXAMPLE.yaml) or [EXAMPLE.json](EXAMPL
The Open Threat Model specification is versioned using [Semantic Versioning 2.0.0](https://semver.org/spec/v2.0.0.html) (semver) and follows the semver specification.

```
Current schema version: 0.1.0
Current schema version: 0.2.0
```

# Format
Expand Down Expand Up @@ -755,7 +755,7 @@ Assets are the different kinds of sensible information that take part in our thr

```yaml
assets:
- name: Credit Card Data
- name: Credit Card Data
id: cc-data
description: Credit card numbers used for payments in the platform
risk:
Expand Down Expand Up @@ -1136,7 +1136,7 @@ Trust zones are the different areas within which components are located. They de
<tr>
<td>type</td>
<td>string</td>
<td><b>REQUIRED</b> Type for the trust zone</td>
<td><b>RECOMMENDED (required in the next major version)</b> Type for the trust zone</td>
<td>

type: internet
Expand Down Expand Up @@ -1211,7 +1211,6 @@ A trust zone can have <b>zero or one parent</b>: another component or a trust zo
trustzones:
- name: Internet
id: 730df42e-69a4-11ed-bd69-9b318e4f98c5
type: internet
description: This is the internet trust zone
risk:
trustRating: 20
Expand Down Expand Up @@ -1864,7 +1863,7 @@ mitigations:
- name: Mitigation 2
id: 3b837730-e300-11eb-ba80-0242ac130004
description: Description for mitigation 2
riskReduction 100
riskReduction: 100
```

## Mitigation instance object
Expand Down
2 changes: 1 addition & 1 deletion otm_schema.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"$schema": "http://json-schema.org/draft-07/schema#",
"$id": "https://iriusrisk.com/schema/otm-0.1.0.schema.json",
"$id": "https://iriusrisk.com/schema/otm-0.2.0.schema.json",
"title": "Open Threat Model Specification",
"$comment" : "Open Threat Model JSON schema is published under the terms of the Apache License 2.0.",
"type": "object",
Expand Down

0 comments on commit 6bcb2ab

Please sign in to comment.