Skip to content

Commit

Permalink
Add new and cleanup example data in elk dir, cleanup layout
Browse files Browse the repository at this point in the history
  • Loading branch information
marshyski committed Apr 15, 2024
1 parent 9ddf624 commit c936566
Show file tree
Hide file tree
Showing 85 changed files with 478 additions and 78 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/paradrop.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ jobs:
- name: Provision Paradrop Stack with Seed Data
run: |
make docker
make local
- name: Test with Python unittest
run: |
Expand Down
4 changes: 2 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ UI_NAME := paradrop_ui

.PHONY: api elk superlinter develop docs

default: docker
default: local

mkcert:
openssl req -x509 -newkey rsa:4096 -nodes -keyout ui/localhost.key -out ui/localhost.pem -days 365 -sha256 -subj '/CN=127.0.0.1' -addext 'subjectAltName=IP:127.0.0.1'
Expand All @@ -15,7 +15,7 @@ npm:
docs:
cd docs && npm install

docker: npm mkcert docs
local: npm mkcert docs
sudo docker compose down --remove-orphans
sudo URL='https:\/\/localhost:8443' docker compose up --build -d
sleep 60
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
2 changes: 1 addition & 1 deletion paradrop-agent/README.md → agent/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -421,7 +421,7 @@ make build
To build the binary with Docker run the following command:

```sh
make docker
make local
```

To build the RPM and Deb packages with Docker run the following command:
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
12 changes: 6 additions & 6 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ services:
- paradrop
ports:
- 127.0.0.1:9200:9200
restart: always
restart: unless-stopped
volumes:
- ./elk/internal_users.yml:/usr/share/opensearch/config/opensearch-security/internal_users.yml:rw

Expand All @@ -29,9 +29,9 @@ services:
- paradrop
ports:
- 127.0.0.1:5601:5601
restart: always
restart: unless-stopped
volumes:
- ./elk/opensearch_dashboards.yml:/usr/share/opensearch-dashboards/config/opensearch_dashboards.yml:ro
- ./elk/opensearch_dashboards.yml:/usr/share/opensearch-dashboards/config/opensearch_dashboards.yml:ro

api:
build:
Expand All @@ -44,7 +44,7 @@ services:
- paradrop
ports:
- 127.0.0.1:5000:5000
restart: always
restart: unless-stopped

ui:
build:
Expand All @@ -61,7 +61,7 @@ services:
- paradrop
ports:
- 8443:8443
restart: always
restart: unless-stopped

docs:
build:
Expand All @@ -74,7 +74,7 @@ services:
- paradrop
ports:
- 127.0.0.1:3008:3008
restart: always
restart: unless-stopped

networks:
paradrop:
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
528 changes: 464 additions & 64 deletions elk/seed.sh

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion elk/seed_test_data.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
# autopep8: off
import json, time, sys, os.path
from string import ascii_letters
from random import randint
from random import randint, choices
from datetime import datetime, timezone

# Changing path from paradrop/elk to paradrop/api to be able to import things from that folder
Expand Down
6 changes: 3 additions & 3 deletions ui/event-triggers/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -201,10 +201,10 @@ <h4 class="modal-title" id="modalTitle">Add Event Trigger</h4>
<option value="memoryused_pct">memoryused_pct</option>
<option value="memoryfree_gb">memoryfree_gb</option>
<option value="ntp_running-bool">ntp_running</option>
<option value="openscap['error_total]">openscap['error_total]</option>
<option value="openscap['fail_total]">openscap['fail_total]</option>
<option value="openscap['error_total']">openscap['error_total']</option>
<option value="openscap['fail_total']">openscap['fail_total']</option>
<option value="openscap['informational_total']">openscap['informational_total']</option>
<option value="openscap['unknown_total]">openscap['unknown_total]</option>
<option value="openscap['unknown_total']">openscap['unknown_total']</option>
<option value="sysctl">sysctl</option>
<option value="systemctl_failed">systemctl_failed</option>
<option value="trivy['vulnerabilities_critical']">trivy['vulnerabilities_critical']</option>
Expand Down

0 comments on commit c936566

Please sign in to comment.