Skip to content

Commit 2fc624b

Browse files
authored
Bump misp, disable redis persistence, and add control variable to disable ca refresh (#220)
1 parent 7120aef commit 2fc624b

File tree

4 files changed

+14
-5
lines changed

4 files changed

+14
-5
lines changed

core/files/configure_misp.sh

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -423,9 +423,13 @@ update_components() {
423423
update_ca_certificates() {
424424
# Upgrade host os certificates
425425
update-ca-certificates
426-
# Upgrade cake cacert.pem file from Mozilla project
427-
echo "Updating /var/www/MISP/app/Lib/cakephp/lib/Cake/Config/cacert.pem..."
428-
sudo -E -u www-data curl -s --etag-compare /var/www/MISP/app/Lib/cakephp/lib/Cake/Config/etag.txt --etag-save /var/www/MISP/app/Lib/cakephp/lib/Cake/Config/etag.txt https://curl.se/ca/cacert.pem -o /var/www/MISP/app/Lib/cakephp/lib/Cake/Config/cacert.pem
426+
if [[ "$DISABLE_CA_REFRESH" = "true" ]]; then
427+
echo "Updating /var/www/MISP/app/Lib/cakephp/lib/Cake/Config/cacert.pem using local data..."
428+
sudo cp /etc/ssl/certs/ca-certificates.crt /var/www/MISP/app/Lib/cakephp/lib/Cake/Config/cacert.pem
429+
else
430+
echo "Updating /var/www/MISP/app/Lib/cakephp/lib/Cake/Config/cacert.pem using curl data..."
431+
sudo -E -u www-data curl -s --etag-compare /var/www/MISP/app/Lib/cakephp/lib/Cake/Config/etag.txt --etag-save /var/www/MISP/app/Lib/cakephp/lib/Cake/Config/etag.txt https://curl.se/ca/cacert.pem -o /var/www/MISP/app/Lib/cakephp/lib/Cake/Config/cacert.pem
432+
fi
429433
}
430434

431435
create_sync_servers() {

core/files/entrypoint.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@ export CRON_USER_ID=${CRON_USER_ID:-1}
2020
export BASE_URL=${BASE_URL:-https://localhost}
2121
export DISABLE_IPV6=${DISABLE_IPV6:-false}
2222
export DISABLE_SSL_REDIRECT=${DISABLE_SSL_REDIRECT:-false}
23+
export DISABLE_CA_REFRESH=${DISABLE_CA_REFRESH:-false}
2324
export SMTP_FQDN=${SMTP_FQDN:-mail}
2425

2526
export ADMIN_EMAIL=${ADMIN_EMAIL:-admin@admin.test}

docker-compose.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ services:
1313

1414
redis:
1515
image: valkey/valkey:7.2
16-
command: "--requirepass '${REDIS_PASSWORD:-redispassword}'"
16+
command: "--save '' --requirepass '${REDIS_PASSWORD:-redispassword}'"
1717
healthcheck:
1818
test: "valkey-cli -a '${REDIS_PASSWORD:-redispassword}' -p ${REDIS_PORT:-6379} ping | grep -q PONG || exit 1"
1919
interval: 2s
@@ -107,6 +107,7 @@ services:
107107
- "ENABLE_DB_SETTINGS=${ENABLE_DB_SETTINGS}"
108108
- "ENABLE_BACKGROUND_UPDATES=${ENABLE_BACKGROUND_UPDATES}"
109109
- "ENCRYPTION_KEY=${ENCRYPTION_KEY}"
110+
- "DISABLE_CA_REFRESH=${DISABLE_CA_REFRESH}"
110111
# standard settings
111112
- "ADMIN_EMAIL=${ADMIN_EMAIL}"
112113
- "ADMIN_PASSWORD=${ADMIN_PASSWORD}"

template.env

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
# Build-time variables
33
##
44

5-
CORE_TAG=v2.5.6
5+
CORE_TAG=v2.5.7
66
MODULES_TAG=v2.4.199
77
PHP_VER=20220829
88
LIBFAUP_COMMIT=3a26d0a
@@ -118,6 +118,9 @@ SYNCSERVERS_1_PULL_RULES=
118118
# Disable SSL redirect
119119
# DISABLE_SSL_REDIRECT=true
120120

121+
# Disable CA refresh
122+
# DISABLE_CA_REFRESH=true
123+
121124
# Enable OIDC authentication, according to https://github.com/MISP/MISP/blob/2.4/app/Plugin/OidcAuth/README.md
122125
# OIDC_ENABLE=true
123126
# OIDC_PROVIDER_URL=

0 commit comments

Comments
 (0)