Skip to content

Commit

Permalink
Merge pull request #10 from devsecopsmaturitymodel/feat/setup
Browse files Browse the repository at this point in the history
Feat/setup
  • Loading branch information
wurstbrot authored Dec 1, 2023
2 parents f0b8c31 + f7adeda commit 1951e20
Show file tree
Hide file tree
Showing 39 changed files with 1,300 additions and 171 deletions.
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
target
.idea
Binary file added .mvn/wrapper/maven-wrapper.jar
Binary file not shown.
2 changes: 2 additions & 0 deletions .mvn/wrapper/maven-wrapper.properties
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
distributionUrl=https://repo.maven.apache.org/maven2/org/apache/maven/apache-maven/3.9.5/apache-maven-3.9.5-bin.zip
wrapperUrl=https://repo.maven.apache.org/maven2/org/apache/maven/wrapper/maven-wrapper/3.2.0/maven-wrapper-3.2.0.jar
14 changes: 13 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,15 @@
# Metric Analyzer

tbd
## Local Installation and Deployment

### Build and execute with Maven

```bash
mvn spring-boot:run -Dspring-boot.run.arguments="--metricCA.configuration.yaml-path=/home/XXX/git/metricAnalyzer/definitions/configuration.yaml,metricCA.application.yaml-path=/home/XXX/git/metricAnalyzer/definitions/App1.yaml"
```

### Add to Docker
```bash
docker build -t <registry-name>/<docker-name>:<tag> .
docker push <registry-name>/<docker-name>:<tag>
```
12 changes: 12 additions & 0 deletions analyzer.iml
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
<?xml version="1.0" encoding="UTF-8"?>
<module version="4">
<component name="FacetManager">
<facet type="hibernate" name="Hibernate">
<configuration>
<datasource-map />
<naming-strategy-map />
<deploymentDescriptor name="hibernate.cfg.xml" url="file://$MODULE_DIR$/src/main/resources/hibernate.cfg.xml" />
</configuration>
</facet>
</component>
</module>
25 changes: 25 additions & 0 deletions definitions/App1.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
applicationId: 5
team: superhero

activities:
# Plan
conduction of simple threat modeling on a technical level:
- title: Feature Y
conduction date: 2023-10-01
link: # Maybe some teams would like the option for multiple links, e.g. to a used threat library
- title: Documentation of new Feature Y
url: https://link-for-example-in-confluencex
- title: Feature X
conduction date: 2023-11-01
link: # Maybe some teams would like the option for multiple links, e.g. to a used threat library
- title: Documentation of new Feature X
url: https://link-for-example-in-confluence
# finding handling: do we want finding handling confirmation?
# security_team_confirmation:
# - confirmed by: Max Mustermann
# confirmed date: 2023-10-09

data privacy requirements:
- read date: 2023-10-01
- read date: 2023-11-01
- read date: 2023-12-01
23 changes: 23 additions & 0 deletions definitions/configuration.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
conduction of simple threat modeling on a technical level:
components:
- title: string
conduction date: date
link:
- title: string
url: string
level: Level 2
# treshold:
# target: "[].conduction date"
# timeframe: "year"
# count: 1
# TODO: threshold

data privacy requirements:
components:
- read date: date
level: Level 1
# treshold:
# target: "[].date"
# timeframe: "year"
# count: 1
# TODO: threshold
15 changes: 15 additions & 0 deletions docker-compose.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
version: '3.8'
services:
grafana:
container_name: grafana
image: grafana/grafana:latest
user: "0:0"
# environment:
restart: unless-stopped
ports:
- 3111:3000
volumes:
- grafana:/var/lib/grafana
volumes:
grafana:
driver: local
Loading

0 comments on commit 1951e20

Please sign in to comment.