Skip to content

Commit 2880d67

Browse files
authored
Merge pull request #236 from Tamronimus/master
Added schemas for validation of DSOMM yamls
2 parents 66aaf0c + 6eb15a1 commit 2880d67

26 files changed

+914
-17
lines changed

Development.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,5 +22,5 @@ Run `ng test` to execute the unit tests via [Karma](https://karma-runner.github.
2222

2323
- We follow the coding style defined by [ESLint](https://eslint.org/).
2424
- We also use [Prettier](https://prettier.io/docs/en/index.html) as our opinionated code formatter.
25-
25+
- To validate the schemas of the DSOMM yaml files in the IDE, it is recommended to use the VS Code extension [redhat.vscode-yaml](https://marketplace.visualstudio.com/items?itemName=redhat.vscode-yaml). The schemas are stored in /src/assets/YAML/schemas
2626

src/assets/YAML/default/BuildAndDeployment/Build.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
# yaml-language-server: $schema=../../schemas/dsomm-schema-build-and-deployment.json
12
---
23
Build and Deployment:
34
Build:

src/assets/YAML/default/BuildAndDeployment/Deployment.yaml

Lines changed: 7 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
# yaml-language-server: $schema=../../schemas/dsomm-schema-build-and-deployment.json
12
---
23
Build and Deployment:
34
Deployment:
@@ -172,13 +173,12 @@ Build and Deployment:
172173
exists.
173174
dependsOn:
174175
- Defined deployment process
176+
- SBOM of components
175177
difficultyOfImplementation:
176178
knowledge: 2
177179
time: 2
178180
resources: 3
179181
usefulness: 3
180-
dependsOn:
181-
- SBOM of components
182182
level: 3
183183
implementation:
184184
- $ref: src/assets/YAML/default/implementations.yaml#/implementations/dependencyTrack
@@ -311,13 +311,12 @@ Build and Deployment:
311311
evidence: ""
312312
comments: ""
313313
Evaluation of the trust of used components:
314-
risk:
315-
- Application and system components like Open Source libraies or images can have implementation flaws or deployment flaws.
316-
- Developers or operations might start random images in the production cluster
317-
which have malicious code or known vulnerabilities.
314+
risk:
315+
Application and system components like Open Source libraies or images can have implementation flaws or deployment flaws.
316+
Developers or operations might start random images in the production cluster which have malicious code or known vulnerabilities.
318317
measure:
319-
- Each components source is evaluated to be trusted. For example the source, number of developers included, email configuration used by maintainers to prevent maintainer account theft, typo-squatting, ...
320-
- Create image assessment criteria, perform an evaluation of images and create a whitelist of artifacts/container images/virtual machine images.
318+
Each components source is evaluated to be trusted. For example the source, number of developers included, email configuration used by maintainers to prevent maintainer account theft, typo-squatting, ...
319+
Create image assessment criteria, perform an evaluation of images and create a whitelist of artifacts/container images/virtual machine images.
321320
difficultyOfImplementation:
322321
knowledge: 3
323322
time: 3

src/assets/YAML/default/BuildAndDeployment/PatchManagement.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
# yaml-language-server: $schema=../../schemas/dsomm-schema-build-and-deployment.json
12
---
23
Build and Deployment:
34
Patch Management:

src/assets/YAML/default/CultureAndOrganization/Design.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
# yaml-language-server: $schema=../../schemas/dsomm-schema-culture-and-organization.json
12
---
23
Culture and Organization:
34
Design:

src/assets/YAML/default/CultureAndOrganization/EducationAndGuidance.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
# yaml-language-server: $schema=../../schemas/dsomm-schema-culture-and-organization.json
12
---
23
Culture and Organization:
34
Education and Guidance:

src/assets/YAML/default/CultureAndOrganization/Process.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
# yaml-language-server: $schema=../../schemas/dsomm-schema-culture-and-organization.json
12
---
23
Culture and Organization:
34
Process:

src/assets/YAML/default/Implementation/ApplicationHardening.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
# yaml-language-server: $schema=../../schemas/dsomm-schema-implementation.json
12
---
23
Implementation:
34
Application Hardening:

src/assets/YAML/default/Implementation/DevelopmentAndSourceControl.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
# yaml-language-server: $schema=../../schemas/dsomm-schema-implementation.json
12
---
23
Implementation:
34
Development and Source Control:

src/assets/YAML/default/Implementation/InfrastructureHardening.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
# yaml-language-server: $schema=../../schemas/dsomm-schema-implementation.json
12
---
23
Implementation:
34
Infrastructure Hardening:

0 commit comments

Comments
 (0)