mirror of
https://github.com/Security-Onion-Solutions/securityonion.git
synced 2025-12-06 17:22:49 +01:00
Fix for Upload Import
Needed to mount /nsm/soc/uploads into soc container. Made the upload route configurable. Added gpg logging to salt-relay.
This commit is contained in:
@@ -1006,6 +1006,7 @@ soc:
|
|||||||
baseUrl: /
|
baseUrl: /
|
||||||
maxPacketCount: 5000
|
maxPacketCount: 5000
|
||||||
htmlDir: html
|
htmlDir: html
|
||||||
|
importUploadDir: /opt/sensoroni/uploads
|
||||||
airgapEnabled: false
|
airgapEnabled: false
|
||||||
modules:
|
modules:
|
||||||
cases: soc
|
cases: soc
|
||||||
|
|||||||
@@ -23,6 +23,7 @@ so-soc:
|
|||||||
- ipv4_address: {{ DOCKER.containers['so-soc'].ip }}
|
- ipv4_address: {{ DOCKER.containers['so-soc'].ip }}
|
||||||
- binds:
|
- binds:
|
||||||
- /nsm/soc/jobs:/opt/sensoroni/jobs:rw
|
- /nsm/soc/jobs:/opt/sensoroni/jobs:rw
|
||||||
|
- /nsm/soc/uploads:/opt/sensoroni/uploads:rw
|
||||||
- /opt/so/log/soc/:/opt/sensoroni/logs/:rw
|
- /opt/so/log/soc/:/opt/sensoroni/logs/:rw
|
||||||
- /opt/so/conf/soc/soc.json:/opt/sensoroni/sensoroni.json:ro
|
- /opt/so/conf/soc/soc.json:/opt/sensoroni/sensoroni.json:ro
|
||||||
- /opt/so/conf/soc/motd.md:/opt/sensoroni/html/motd.md:ro
|
- /opt/so/conf/soc/motd.md:/opt/sensoroni/html/motd.md:ro
|
||||||
|
|||||||
@@ -185,7 +185,8 @@ function send_file() {
|
|||||||
log "Cleanup: $cleanup"
|
log "Cleanup: $cleanup"
|
||||||
|
|
||||||
log "encrypting..."
|
log "encrypting..."
|
||||||
gpg --passphrase "infected" --batch --symmetric --cipher-algo AES256 "$from"
|
response=$(gpg --passphrase "infected" --batch --symmetric --cipher-algo AES256 "$from")
|
||||||
|
log Response:$'\n'"$response"
|
||||||
|
|
||||||
fromgpg="$from.gpg"
|
fromgpg="$from.gpg"
|
||||||
filename=$(basename "$fromgpg")
|
filename=$(basename "$fromgpg")
|
||||||
|
|||||||
Reference in New Issue
Block a user