Skip to content

Commit

Permalink
[OPT-952] Removed type from version 0.1.0
Browse files Browse the repository at this point in the history
  • Loading branch information
dantolin-iriusrisk committed Aug 29, 2023
1 parent 5861353 commit 4147643
Show file tree
Hide file tree
Showing 5 changed files with 124 additions and 20 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: 0 additions & 2 deletions EXAMPLE.json
Original file line number Diff line number Diff line change
Expand Up @@ -229,7 +229,6 @@
{
"name": "Internet",
"id": "f0ba7722-39b6-4c81-8290-a30a248bb8d9",
"type": "internet",
"description": "This is the internet trust zone",
"risk": {
"trustRating": 20
Expand All @@ -253,7 +252,6 @@
{
"name": "Private",
"id": "2ab4effa-40b7-4cd2-ba81-8247d29a6f2d",
"type": "private",
"description": "Private trustzone for protected components",
"risk": {
"trustRating": 100
Expand Down
2 changes: 0 additions & 2 deletions EXAMPLE.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -167,7 +167,6 @@ dataflows:
trustZones:
- name: Internet
id: f0ba7722-39b6-4c81-8290-a30a248bb8d9
type: internet
description: This is the internet trust zone
risk:
trustRating: 20
Expand All @@ -183,7 +182,6 @@ trustZones:
attributes:
- name: Private
id: 2ab4effa-40b7-4cd2-ba81-8247d29a6f2d
type: private
description: Private trustzone for protected components
risk:
trustRating: 100
Expand Down
17 changes: 2 additions & 15 deletions README.md
Original file line number Diff line number Diff line change
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 @@ -1132,18 +1132,6 @@ Trust zones are the different areas within which components are located. They de
</td>
</tr>

<tr></tr>
<tr>
<td>type</td>
<td>string</td>
<td><b>REQUIRED</b> Type for the trust zone</td>
<td>

type: internet

</td>
</tr>

<tr></tr>
<tr>
<td>description</td>
Expand Down Expand Up @@ -1211,7 +1199,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 +1851,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
1 change: 0 additions & 1 deletion otm_schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,6 @@
"properties": {
"id": {"type": "string"},
"name": {"type": "string"},
"type": {"type": "string"},
"description": {"type": ["string", "null"]},
"risk": {
"type": "object",
Expand Down

0 comments on commit 4147643

Please sign in to comment.