-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
85 changed files
with
1,605 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
name: build | ||
|
||
on: | ||
push: | ||
branches: [ main ] | ||
pull_request: | ||
branches: [ main ] | ||
workflow_dispatch: | ||
|
||
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- uses: actions/checkout@v2 | ||
- name: Setup Java JDK | ||
uses: actions/[email protected] | ||
with: | ||
java-version: 11 | ||
distribution: zulu | ||
- name: Build | ||
run: ./gradlew build |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
package io.clouditor.graph; | ||
|
||
import de.fraunhofer.aisec.cpg.graph.Node; | ||
|
||
public class ABAC extends Authorization { | ||
|
||
public ABAC() { | ||
super(); | ||
} | ||
} |
31 changes: 31 additions & 0 deletions
31
generated/main/java/io/clouditor/graph/AccessRestriction.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
package io.clouditor.graph; | ||
|
||
import de.fraunhofer.aisec.cpg.graph.Node; | ||
|
||
public class AccessRestriction extends Authorization { | ||
|
||
protected boolean inbound; | ||
protected String restrictedPorts; | ||
|
||
public AccessRestriction(boolean inbound, String restrictedPorts) { | ||
super(); | ||
setInbound(inbound); | ||
setRestrictedPorts(restrictedPorts); | ||
} | ||
|
||
public boolean isInbound() { | ||
return inbound; | ||
} | ||
|
||
public void setInbound(boolean inbound) { | ||
this.inbound = inbound; | ||
} | ||
|
||
public String getRestrictedPorts() { | ||
return restrictedPorts; | ||
} | ||
|
||
public void setRestrictedPorts(String restrictedPorts) { | ||
this.restrictedPorts = restrictedPorts; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
package io.clouditor.graph; | ||
|
||
import de.fraunhofer.aisec.cpg.graph.Node; | ||
import java.util.Map; | ||
import org.neo4j.ogm.annotation.Transient; | ||
|
||
public class Account extends CloudResource { | ||
|
||
public Account(GeoLocation geoLocation, Map<String, String> labels) { | ||
super(geoLocation, labels); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,53 @@ | ||
package io.clouditor.graph; | ||
|
||
import de.fraunhofer.aisec.cpg.graph.Node; | ||
import java.util.List; | ||
import de.fraunhofer.aisec.cpg.graph.declarations.TranslationUnitDeclaration; | ||
|
||
public class Application extends Node { | ||
|
||
protected List<Functionality> functionalitys; | ||
protected List<Compute> runsOn; | ||
protected List<TranslationUnitDeclaration> translationUnits; | ||
protected String programmingLanguage; | ||
|
||
public Application(List<Functionality> functionalitys, List<Compute> runsOn, | ||
List<TranslationUnitDeclaration> translationUnits, String programmingLanguage) { | ||
setFunctionalitys(functionalitys); | ||
setRunsOn(runsOn); | ||
setTranslationUnits(translationUnits); | ||
setProgrammingLanguage(programmingLanguage); | ||
} | ||
|
||
public List<Functionality> getFunctionalitys() { | ||
return functionalitys; | ||
} | ||
|
||
public void setFunctionalitys(List<Functionality> functionalitys) { | ||
this.functionalitys = functionalitys; | ||
} | ||
|
||
public List<Compute> getRunsOn() { | ||
return runsOn; | ||
} | ||
|
||
public void setRunsOn(List<Compute> runsOn) { | ||
this.runsOn = runsOn; | ||
} | ||
|
||
public List<TranslationUnitDeclaration> getTranslationUnits() { | ||
return translationUnits; | ||
} | ||
|
||
public void setTranslationUnits(List<TranslationUnitDeclaration> translationUnits) { | ||
this.translationUnits = translationUnits; | ||
} | ||
|
||
public String getProgrammingLanguage() { | ||
return programmingLanguage; | ||
} | ||
|
||
public void setProgrammingLanguage(String programmingLanguage) { | ||
this.programmingLanguage = programmingLanguage; | ||
} | ||
} |
31 changes: 31 additions & 0 deletions
31
generated/main/java/io/clouditor/graph/AtRestEncryption.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
package io.clouditor.graph; | ||
|
||
import de.fraunhofer.aisec.cpg.graph.Node; | ||
|
||
public class AtRestEncryption extends Confidentiality { | ||
|
||
protected String algorithm; | ||
protected String keymanager; | ||
|
||
public AtRestEncryption(String algorithm, String keymanager) { | ||
super(); | ||
setAlgorithm(algorithm); | ||
setKeymanager(keymanager); | ||
} | ||
|
||
public String getAlgorithm() { | ||
return algorithm; | ||
} | ||
|
||
public void setAlgorithm(String algorithm) { | ||
this.algorithm = algorithm; | ||
} | ||
|
||
public String getKeymanager() { | ||
return keymanager; | ||
} | ||
|
||
public void setKeymanager(String keymanager) { | ||
this.keymanager = keymanager; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
package io.clouditor.graph; | ||
|
||
import de.fraunhofer.aisec.cpg.graph.Node; | ||
|
||
public class Auditing extends SecurityFeature { | ||
|
||
public Auditing() { | ||
super(); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
package io.clouditor.graph; | ||
|
||
import de.fraunhofer.aisec.cpg.graph.Node; | ||
|
||
public class Authenticity extends SecurityFeature { | ||
|
||
public Authenticity() { | ||
super(); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
package io.clouditor.graph; | ||
|
||
import de.fraunhofer.aisec.cpg.graph.Node; | ||
|
||
public class Authorization extends SecurityFeature { | ||
|
||
public Authorization() { | ||
super(); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
package io.clouditor.graph; | ||
|
||
import de.fraunhofer.aisec.cpg.graph.Node; | ||
|
||
public class Availability extends SecurityFeature { | ||
|
||
public Availability() { | ||
super(); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
package io.clouditor.graph; | ||
|
||
import de.fraunhofer.aisec.cpg.graph.Node; | ||
|
||
public class Backup extends Availability { | ||
|
||
protected String policy; | ||
protected boolean activated; | ||
|
||
public Backup(String policy, boolean activated) { | ||
super(); | ||
setPolicy(policy); | ||
setActivated(activated); | ||
} | ||
|
||
public String getPolicy() { | ||
return policy; | ||
} | ||
|
||
public void setPolicy(String policy) { | ||
this.policy = policy; | ||
} | ||
|
||
public boolean isActivated() { | ||
return activated; | ||
} | ||
|
||
public void setActivated(boolean activated) { | ||
this.activated = activated; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
package io.clouditor.graph; | ||
|
||
import de.fraunhofer.aisec.cpg.graph.Node; | ||
import java.util.Map; | ||
import org.neo4j.ogm.annotation.Transient; | ||
|
||
public class BlockStorage extends Storage { | ||
|
||
public BlockStorage(AtRestEncryption atRestEncryption, GeoLocation geoLocation, Map<String, String> labels) { | ||
super(atRestEncryption, geoLocation, labels); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
package io.clouditor.graph; | ||
|
||
import de.fraunhofer.aisec.cpg.graph.Node; | ||
import java.util.Map; | ||
import org.neo4j.ogm.annotation.Transient; | ||
|
||
public class CICDService extends CloudResource { | ||
|
||
public CICDService(GeoLocation geoLocation, Map<String, String> labels) { | ||
super(geoLocation, labels); | ||
} | ||
} |
10 changes: 10 additions & 0 deletions
10
generated/main/java/io/clouditor/graph/CertificateBasedAuthentication.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
package io.clouditor.graph; | ||
|
||
import de.fraunhofer.aisec.cpg.graph.Node; | ||
|
||
public class CertificateBasedAuthentication extends Authenticity { | ||
|
||
public CertificateBasedAuthentication() { | ||
super(); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
package io.clouditor.graph; | ||
|
||
import de.fraunhofer.aisec.cpg.graph.Node; | ||
import java.util.Map; | ||
import org.neo4j.ogm.annotation.Transient; | ||
|
||
public class CloudResource extends Node { | ||
|
||
protected GeoLocation geoLocation; | ||
@Transient | ||
protected Map<String, String> labels; | ||
|
||
public CloudResource(GeoLocation geoLocation, Map<String, String> labels) { | ||
setGeoLocation(geoLocation); | ||
setLabels(labels); | ||
} | ||
|
||
public GeoLocation getGeoLocation() { | ||
return geoLocation; | ||
} | ||
|
||
public void setGeoLocation(GeoLocation geoLocation) { | ||
this.geoLocation = geoLocation; | ||
} | ||
|
||
public Map<String, String> getLabels() { | ||
return labels; | ||
} | ||
|
||
public void setLabels(Map<String, String> labels) { | ||
this.labels = labels; | ||
} | ||
} |
21 changes: 21 additions & 0 deletions
21
generated/main/java/io/clouditor/graph/CloudResourceGroup.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
package io.clouditor.graph; | ||
|
||
import de.fraunhofer.aisec.cpg.graph.Node; | ||
import java.util.List; | ||
|
||
public class CloudResourceGroup extends Node { | ||
|
||
protected List<CloudResource> collectionOf; | ||
|
||
public CloudResourceGroup(List<CloudResource> collectionOf) { | ||
setCollectionOf(collectionOf); | ||
} | ||
|
||
public List<CloudResource> getCollectionOf() { | ||
return collectionOf; | ||
} | ||
|
||
public void setCollectionOf(List<CloudResource> collectionOf) { | ||
this.collectionOf = collectionOf; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
package io.clouditor.graph; | ||
|
||
import de.fraunhofer.aisec.cpg.graph.Node; | ||
|
||
public class CloudSDK extends Framework { | ||
|
||
public CloudSDK() { | ||
super(); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
package io.clouditor.graph; | ||
|
||
import de.fraunhofer.aisec.cpg.graph.Node; | ||
import java.util.Map; | ||
import org.neo4j.ogm.annotation.Transient; | ||
|
||
public class Compute extends CloudResource { | ||
|
||
public Compute(GeoLocation geoLocation, Map<String, String> labels) { | ||
super(geoLocation, labels); | ||
} | ||
} |
10 changes: 10 additions & 0 deletions
10
generated/main/java/io/clouditor/graph/Confidentiality.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
package io.clouditor.graph; | ||
|
||
import de.fraunhofer.aisec.cpg.graph.Node; | ||
|
||
public class Confidentiality extends SecurityFeature { | ||
|
||
public Confidentiality() { | ||
super(); | ||
} | ||
} |
Oops, something went wrong.