Loading .gitlab-ci.yml +1 −1 Original line number Diff line number Diff line Loading @@ -12,7 +12,7 @@ stages: include: - local: '/manifests/.gitlab-ci.yml' #- local: '/src/monitoring/.gitlab-ci.yml' - local: '/src/centralizedcybersecurity/.gitlab-ci.yml' - local: '/src/centralizedattackdetector/.gitlab-ci.yml' - local: '/src/context/.gitlab-ci.yml' - local: '/src/device/.gitlab-ci.yml' - local: '/src/service/.gitlab-ci.yml' Loading install_development_dependencies.sh +1 −1 Original line number Diff line number Diff line Loading @@ -7,7 +7,7 @@ pip install --upgrade pip setuptools wheel pip-tools pylint pytest pytest-benchm echo "" > requirements.in #TODO: include here your component COMPONENTS="compute context device monitoring" COMPONENTS="compute context device monitoring centralizedattackdetector" # compiling dependencies from all components for component in $COMPONENTS Loading manifests/centralizedcybersecurityservice.yaml→manifests/centralizedattackdetectorservice.yaml +8 −8 Original line number Diff line number Diff line apiVersion: apps/v1 kind: Deployment metadata: name: centralizedcybersecurityservice name: centralizedattackdetectorervice spec: selector: matchLabels: app: centralizedcybersecurityservice app: centralizedattackdetectorervice template: metadata: labels: app: centralizedcybersecurityservice app: centralizedattackdetectorervice spec: terminationGracePeriodSeconds: 5 containers: Loading Loading @@ -42,11 +42,11 @@ spec: apiVersion: v1 kind: Service metadata: name: centralizedcybersecurityservice name: centralizedattackdetectorervice spec: type: ClusterIP selector: app: centralizedcybersecurityservice app: centralizedattackdetectorervice ports: - name: grpc port: 10000 Loading @@ -55,13 +55,13 @@ spec: apiVersion: v1 kind: Service metadata: name: centralizedcybersecurityservice-public name: centralizedattackdetectorervice-public labels: app: centralizedcybersecurityservice app: centralizedattackdetectorervice spec: type: NodePort selector: app: centralizedcybersecurityservice app: centralizedattackdetectorervice ports: - name: grpc protocol: TCP Loading proto/centralized_cybersecurity.proto→proto/centralized_attack_detector.proto +2 −2 Original line number Diff line number Diff line // protocol buffers documentation: https://developers.google.com/protocol-buffers/docs/proto3 syntax = "proto3"; package centralized_cybersecurity; package centralized_attack_detector; import "context.proto"; import "service.proto"; import "monitoring.proto"; service CentralizedCyberSecurityService { service CentralizedAttackDetectorService { rpc NotifyServiceUpdate (service.Service) returns (context.Empty) {} Loading report_coverage_centralized_attack_detector.sh 0 → 100755 +3 −0 Original line number Diff line number Diff line #!/bin/bash ./report_coverage_all.sh | grep --color -E -i "^centralizedattackdetector/.*$|$" Loading
.gitlab-ci.yml +1 −1 Original line number Diff line number Diff line Loading @@ -12,7 +12,7 @@ stages: include: - local: '/manifests/.gitlab-ci.yml' #- local: '/src/monitoring/.gitlab-ci.yml' - local: '/src/centralizedcybersecurity/.gitlab-ci.yml' - local: '/src/centralizedattackdetector/.gitlab-ci.yml' - local: '/src/context/.gitlab-ci.yml' - local: '/src/device/.gitlab-ci.yml' - local: '/src/service/.gitlab-ci.yml' Loading
install_development_dependencies.sh +1 −1 Original line number Diff line number Diff line Loading @@ -7,7 +7,7 @@ pip install --upgrade pip setuptools wheel pip-tools pylint pytest pytest-benchm echo "" > requirements.in #TODO: include here your component COMPONENTS="compute context device monitoring" COMPONENTS="compute context device monitoring centralizedattackdetector" # compiling dependencies from all components for component in $COMPONENTS Loading
manifests/centralizedcybersecurityservice.yaml→manifests/centralizedattackdetectorservice.yaml +8 −8 Original line number Diff line number Diff line apiVersion: apps/v1 kind: Deployment metadata: name: centralizedcybersecurityservice name: centralizedattackdetectorervice spec: selector: matchLabels: app: centralizedcybersecurityservice app: centralizedattackdetectorervice template: metadata: labels: app: centralizedcybersecurityservice app: centralizedattackdetectorervice spec: terminationGracePeriodSeconds: 5 containers: Loading Loading @@ -42,11 +42,11 @@ spec: apiVersion: v1 kind: Service metadata: name: centralizedcybersecurityservice name: centralizedattackdetectorervice spec: type: ClusterIP selector: app: centralizedcybersecurityservice app: centralizedattackdetectorervice ports: - name: grpc port: 10000 Loading @@ -55,13 +55,13 @@ spec: apiVersion: v1 kind: Service metadata: name: centralizedcybersecurityservice-public name: centralizedattackdetectorervice-public labels: app: centralizedcybersecurityservice app: centralizedattackdetectorervice spec: type: NodePort selector: app: centralizedcybersecurityservice app: centralizedattackdetectorervice ports: - name: grpc protocol: TCP Loading
proto/centralized_cybersecurity.proto→proto/centralized_attack_detector.proto +2 −2 Original line number Diff line number Diff line // protocol buffers documentation: https://developers.google.com/protocol-buffers/docs/proto3 syntax = "proto3"; package centralized_cybersecurity; package centralized_attack_detector; import "context.proto"; import "service.proto"; import "monitoring.proto"; service CentralizedCyberSecurityService { service CentralizedAttackDetectorService { rpc NotifyServiceUpdate (service.Service) returns (context.Empty) {} Loading
report_coverage_centralized_attack_detector.sh 0 → 100755 +3 −0 Original line number Diff line number Diff line #!/bin/bash ./report_coverage_all.sh | grep --color -E -i "^centralizedattackdetector/.*$|$"