Loading .gitlab-ci.yml +3 −0 Original line number Diff line number Diff line Loading @@ -18,4 +18,7 @@ include: - local: '/src/service/.gitlab-ci.yml' - local: '/src/tester_integration/.gitlab-ci.yml' - local: '/src/tester_functional/.gitlab-ci.yml' - local: '/src/l3_distributedattackdetector/.gitlab-ci.yml' - local: '/src/l3_centralizedattackdetector/.gitlab-ci.yml' - local: '/src/l3_attackmitigator/.gitlab-ci.yml' manifests/l3_attackmitigatorservice.yaml 0 → 100644 +70 −0 Original line number Diff line number Diff line apiVersion: apps/v1 kind: Deployment metadata: name: attackmitigatorservice spec: selector: matchLabels: app: attackmitigatorservice template: metadata: labels: app: attackmitigatorservice spec: terminationGracePeriodSeconds: 5 containers: - name: server image: registry.gitlab.com/teraflow-h2020/controller/attackmitigator:latest imagePullPolicy: Always ports: - containerPort: 10002 env: - name: DB_ENGINE value: "redis" - name: REDIS_DATABASE_ID value: "0" - name: LOG_LEVEL value: "DEBUG" readinessProbe: exec: command: ["/bin/grpc_health_probe", "-addr=:10002"] livenessProbe: exec: command: ["/bin/grpc_health_probe", "-addr=:10002"] resources: requests: cpu: 250m memory: 512Mi limits: cpu: 700m memory: 1024Mi --- apiVersion: v1 kind: Service metadata: name: attackmitigatorservice spec: type: ClusterIP selector: app: attackmitigatorservice ports: - name: grpc port: 10002 targetPort: 10002 --- apiVersion: v1 kind: Service metadata: name: attackmitigatorservice-public labels: app: attackmitigatorservice spec: type: NodePort selector: app: attackmitigatorservice ports: - name: grpc protocol: TCP port: 10002 targetPort: 10002 --- manifests/l3_centralizedattackdetectorservice.yaml 0 → 100644 +70 −0 Original line number Diff line number Diff line apiVersion: apps/v1 kind: Deployment metadata: name: centralizedattackdetectorservice spec: selector: matchLabels: app: centralizedattackdetectorservice template: metadata: labels: app: centralizedattackdetectorservice spec: terminationGracePeriodSeconds: 5 containers: - name: server image: registry.gitlab.com/teraflow-h2020/controller/centralizedattackdetector:latest imagePullPolicy: Always ports: - containerPort: 10001 env: - name: DB_ENGINE value: "redis" - name: REDIS_DATABASE_ID value: "0" - name: LOG_LEVEL value: "DEBUG" readinessProbe: exec: command: ["/bin/grpc_health_probe", "-addr=:10001"] livenessProbe: exec: command: ["/bin/grpc_health_probe", "-addr=:10001"] resources: requests: cpu: 250m memory: 512Mi limits: cpu: 700m memory: 1024Mi --- apiVersion: v1 kind: Service metadata: name: centralizedattackdetectorservice spec: type: ClusterIP selector: app: centralizedattackdetectorservice ports: - name: grpc port: 10001 targetPort: 10001 --- apiVersion: v1 kind: Service metadata: name: centralizedattackdetectorservice-public labels: app: centralizedattackdetectorservice spec: type: NodePort selector: app: centralizedattackdetectorservice ports: - name: grpc protocol: TCP port: 10001 targetPort: 10001 --- manifests/l3_distributedattackdetectorservice.yaml 0 → 100644 +70 −0 Original line number Diff line number Diff line apiVersion: apps/v1 kind: Deployment metadata: name: distributedattackdetectorservice spec: selector: matchLabels: app: distributedattackdetectorservice template: metadata: labels: app: distributedattackdetectorservice spec: terminationGracePeriodSeconds: 5 containers: - name: server image: registry.gitlab.com/teraflow-h2020/controller/distributedattackdetector:latest imagePullPolicy: Always ports: - containerPort: 10000 env: - name: DB_ENGINE value: "redis" - name: REDIS_DATABASE_ID value: "0" - name: LOG_LEVEL value: "DEBUG" readinessProbe: exec: command: ["/bin/grpc_health_probe", "-addr=:10000"] livenessProbe: exec: command: ["/bin/grpc_health_probe", "-addr=:10000"] resources: requests: cpu: 250m memory: 512Mi limits: cpu: 700m memory: 1024Mi --- apiVersion: v1 kind: Service metadata: name: distributedattackdetectorservice spec: type: ClusterIP selector: app: distributedattackdetectorservice ports: - name: grpc port: 10000 targetPort: 10000 --- apiVersion: v1 kind: Service metadata: name: distributedattackdetectorservice-public labels: app: distributedattackdetectorservice spec: type: NodePort selector: app: distributedattackdetectorservice ports: - name: grpc protocol: TCP port: 10000 targetPort: 10000 --- proto/l3_attackmitigator.proto 0 → 100644 +28 −0 Original line number Diff line number Diff line syntax = "proto2"; service l3_attackmitigator{ // Sends a greeting rpc send_output (output) returns (empty_mitigator) {} // Sends another greeting rpc get_mitigation (empty_mitigator) returns (empty_mitigator) {} } message empty_mitigator { optional string message = 1; } message output { required float confidence = 1; required string timestamp = 2; required string ip_o = 3; required string tag_name = 4; required int32 tag = 5; required string flow_id = 6; required string protocol = 7; required string port_d = 8; optional string ml_id = 9; optional float time_start = 10; optional float time_end = 11; } Loading
.gitlab-ci.yml +3 −0 Original line number Diff line number Diff line Loading @@ -18,4 +18,7 @@ include: - local: '/src/service/.gitlab-ci.yml' - local: '/src/tester_integration/.gitlab-ci.yml' - local: '/src/tester_functional/.gitlab-ci.yml' - local: '/src/l3_distributedattackdetector/.gitlab-ci.yml' - local: '/src/l3_centralizedattackdetector/.gitlab-ci.yml' - local: '/src/l3_attackmitigator/.gitlab-ci.yml'
manifests/l3_attackmitigatorservice.yaml 0 → 100644 +70 −0 Original line number Diff line number Diff line apiVersion: apps/v1 kind: Deployment metadata: name: attackmitigatorservice spec: selector: matchLabels: app: attackmitigatorservice template: metadata: labels: app: attackmitigatorservice spec: terminationGracePeriodSeconds: 5 containers: - name: server image: registry.gitlab.com/teraflow-h2020/controller/attackmitigator:latest imagePullPolicy: Always ports: - containerPort: 10002 env: - name: DB_ENGINE value: "redis" - name: REDIS_DATABASE_ID value: "0" - name: LOG_LEVEL value: "DEBUG" readinessProbe: exec: command: ["/bin/grpc_health_probe", "-addr=:10002"] livenessProbe: exec: command: ["/bin/grpc_health_probe", "-addr=:10002"] resources: requests: cpu: 250m memory: 512Mi limits: cpu: 700m memory: 1024Mi --- apiVersion: v1 kind: Service metadata: name: attackmitigatorservice spec: type: ClusterIP selector: app: attackmitigatorservice ports: - name: grpc port: 10002 targetPort: 10002 --- apiVersion: v1 kind: Service metadata: name: attackmitigatorservice-public labels: app: attackmitigatorservice spec: type: NodePort selector: app: attackmitigatorservice ports: - name: grpc protocol: TCP port: 10002 targetPort: 10002 ---
manifests/l3_centralizedattackdetectorservice.yaml 0 → 100644 +70 −0 Original line number Diff line number Diff line apiVersion: apps/v1 kind: Deployment metadata: name: centralizedattackdetectorservice spec: selector: matchLabels: app: centralizedattackdetectorservice template: metadata: labels: app: centralizedattackdetectorservice spec: terminationGracePeriodSeconds: 5 containers: - name: server image: registry.gitlab.com/teraflow-h2020/controller/centralizedattackdetector:latest imagePullPolicy: Always ports: - containerPort: 10001 env: - name: DB_ENGINE value: "redis" - name: REDIS_DATABASE_ID value: "0" - name: LOG_LEVEL value: "DEBUG" readinessProbe: exec: command: ["/bin/grpc_health_probe", "-addr=:10001"] livenessProbe: exec: command: ["/bin/grpc_health_probe", "-addr=:10001"] resources: requests: cpu: 250m memory: 512Mi limits: cpu: 700m memory: 1024Mi --- apiVersion: v1 kind: Service metadata: name: centralizedattackdetectorservice spec: type: ClusterIP selector: app: centralizedattackdetectorservice ports: - name: grpc port: 10001 targetPort: 10001 --- apiVersion: v1 kind: Service metadata: name: centralizedattackdetectorservice-public labels: app: centralizedattackdetectorservice spec: type: NodePort selector: app: centralizedattackdetectorservice ports: - name: grpc protocol: TCP port: 10001 targetPort: 10001 ---
manifests/l3_distributedattackdetectorservice.yaml 0 → 100644 +70 −0 Original line number Diff line number Diff line apiVersion: apps/v1 kind: Deployment metadata: name: distributedattackdetectorservice spec: selector: matchLabels: app: distributedattackdetectorservice template: metadata: labels: app: distributedattackdetectorservice spec: terminationGracePeriodSeconds: 5 containers: - name: server image: registry.gitlab.com/teraflow-h2020/controller/distributedattackdetector:latest imagePullPolicy: Always ports: - containerPort: 10000 env: - name: DB_ENGINE value: "redis" - name: REDIS_DATABASE_ID value: "0" - name: LOG_LEVEL value: "DEBUG" readinessProbe: exec: command: ["/bin/grpc_health_probe", "-addr=:10000"] livenessProbe: exec: command: ["/bin/grpc_health_probe", "-addr=:10000"] resources: requests: cpu: 250m memory: 512Mi limits: cpu: 700m memory: 1024Mi --- apiVersion: v1 kind: Service metadata: name: distributedattackdetectorservice spec: type: ClusterIP selector: app: distributedattackdetectorservice ports: - name: grpc port: 10000 targetPort: 10000 --- apiVersion: v1 kind: Service metadata: name: distributedattackdetectorservice-public labels: app: distributedattackdetectorservice spec: type: NodePort selector: app: distributedattackdetectorservice ports: - name: grpc protocol: TCP port: 10000 targetPort: 10000 ---
proto/l3_attackmitigator.proto 0 → 100644 +28 −0 Original line number Diff line number Diff line syntax = "proto2"; service l3_attackmitigator{ // Sends a greeting rpc send_output (output) returns (empty_mitigator) {} // Sends another greeting rpc get_mitigation (empty_mitigator) returns (empty_mitigator) {} } message empty_mitigator { optional string message = 1; } message output { required float confidence = 1; required string timestamp = 2; required string ip_o = 3; required string tag_name = 4; required int32 tag = 5; required string flow_id = 6; required string protocol = 7; required string port_d = 8; optional string ml_id = 9; optional float time_start = 10; optional float time_end = 11; }