ci/cd - fix missing string in /ready endpoint and add /ready endpoint to linux tests

This commit is contained in:
fl0ppy-d1sk 2023-10-26 15:04:23 +02:00
parent 274a8cdfb9
commit 9775cd5bbd
No known key found for this signature in database
GPG Key ID: 93EE47CC3D061500
81 changed files with 300 additions and 28 deletions

View File

@ -23,8 +23,9 @@ services:
location /ready {
default_type 'text/plain';
rewrite_by_lua_block {
ngx.say('ready')
ngx.exit(ngx.OK)
ngx.print('ready')
ngx.flush(true)
ngx.exit(ngx.HTTP_OK)
}
}
networks:

View File

@ -0,0 +1,8 @@
location /ready {
default_type 'text/plain';
rewrite_by_lua_block {
ngx.print('ready')
ngx.flush(true)
ngx.exit(ngx.HTTP_OK)
}
}

View File

@ -31,6 +31,7 @@ else
echo "USE_ANTIBOT=no" | sudo tee -a /etc/bunkerweb/variables.env
echo "ANTIBOT_URI=/challenge" | sudo tee -a /etc/bunkerweb/variables.env
sudo touch /var/www/html/index.html
sudo cp ready.conf /etc/bunkerweb/server-http
fi
manual=0

View File

@ -25,7 +25,8 @@ services:
location /ready {
default_type 'text/plain';
rewrite_by_lua_block {
ngx.say('ready')
ngx.print('ready')
ngx.flush(true)
ngx.exit(ngx.HTTP_OK)
}
}

View File

@ -0,0 +1,8 @@
location /ready {
default_type 'text/plain';
rewrite_by_lua_block {
ngx.print('ready')
ngx.flush(true)
ngx.exit(ngx.HTTP_OK)
}
}

View File

@ -33,6 +33,7 @@ else
echo "AUTH_BASIC_USER=bunkerity" | sudo tee -a /etc/bunkerweb/variables.env
echo "AUTH_BASIC_PASSWORD=Secr3tP@ssw0rd" | sudo tee -a /etc/bunkerweb/variables.env
sudo wget -O /var/www/html/index.html https://github.com/nginxinc/NGINX-Demos/raw/master/nginx-hello-nonroot/html-version/index.html
sudo cp ready.conf /etc/bunkerweb/server-http
fi
manual=0

View File

@ -25,7 +25,8 @@ services:
location /ready {
default_type 'text/plain';
rewrite_by_lua_block {
ngx.say('ready')
ngx.print('ready')
ngx.flush(true)
ngx.exit(ngx.HTTP_OK)
}
}

View File

@ -0,0 +1,8 @@
location /ready {
default_type 'text/plain';
rewrite_by_lua_block {
ngx.print('ready')
ngx.flush(true)
ngx.exit(ngx.HTTP_OK)
}
}

View File

@ -36,6 +36,7 @@ else
echo "BAD_BEHAVIOR_COUNT_TIME=60" | sudo tee -a /etc/bunkerweb/variables.env
sudo touch /var/www/html/index.html
export TEST_TYPE="linux"
sudo cp ready.conf /etc/bunkerweb/server-http
fi
manual=0

View File

@ -41,7 +41,8 @@ services:
location /ready {
default_type 'text/plain';
rewrite_by_lua_block {
ngx.say('ready')
ngx.print('ready')
ngx.flush(true)
ngx.exit(ngx.HTTP_OK)
}
}

View File

@ -0,0 +1,8 @@
location /ready {
default_type 'text/plain';
rewrite_by_lua_block {
ngx.print('ready')
ngx.flush(true)
ngx.exit(ngx.HTTP_OK)
}
}

View File

@ -65,6 +65,7 @@ else
echo "BLACKLIST_IGNORE_URI_URLS=" | sudo tee -a /etc/bunkerweb/variables.env
sudo touch /var/www/html/index.html
export TEST_TYPE="linux"
sudo cp ready.conf /etc/bunkerweb/server-http
fi
manual=0

View File

@ -22,7 +22,8 @@ services:
location /ready {
default_type 'text/plain';
rewrite_by_lua_block {
ngx.say('ready')
ngx.print('ready')
ngx.flush(true)
ngx.exit(ngx.HTTP_OK)
}
}

View File

@ -0,0 +1,8 @@
location /ready {
default_type 'text/plain';
rewrite_by_lua_block {
ngx.print('ready')
ngx.flush(true)
ngx.exit(ngx.HTTP_OK)
}
}

View File

@ -30,6 +30,7 @@ else
sudo systemctl stop bunkerweb
echo "USE_BROTLI=no" | sudo tee -a /etc/bunkerweb/variables.env
sudo touch /var/www/html/index.html
sudo cp ready.conf /etc/bunkerweb/server-http
fi
manual=0

View File

@ -21,7 +21,8 @@ services:
location /ready {
default_type 'text/plain';
rewrite_by_lua_block {
ngx.say('ready')
ngx.print('ready')
ngx.flush(true)
ngx.exit(ngx.HTTP_OK)
}
}

View File

@ -0,0 +1,8 @@
location /ready {
default_type 'text/plain';
rewrite_by_lua_block {
ngx.print('ready')
ngx.flush(true)
ngx.exit(ngx.HTTP_OK)
}
}

View File

@ -46,6 +46,7 @@ else
export BUNKERNET_SERVER="http://127.0.0.1:8080"
sudo touch /var/www/html/index.html
python3 api/main.py &
sudo cp ready.conf /etc/bunkerweb/server-http
fi
manual=0

View File

@ -19,7 +19,8 @@ services:
location /ready {
default_type 'text/plain';
rewrite_by_lua_block {
ngx.say('ready')
ngx.print('ready')
ngx.flush(true)
ngx.exit(ngx.HTTP_OK)
}
}

View File

@ -0,0 +1,8 @@
location /ready {
default_type 'text/plain';
rewrite_by_lua_block {
ngx.print('ready')
ngx.flush(true)
ngx.exit(ngx.HTTP_OK)
}
}

View File

@ -45,6 +45,7 @@ else
export USE_REDIS="yes"
export REDIS_HOST="127.0.0.1"
sudo touch /var/www/html/index.html
sudo cp ready.conf /etc/bunkerweb/server-http
fi
cleanup_stack () {

View File

@ -24,7 +24,8 @@ services:
location /ready {
default_type 'text/plain';
rewrite_by_lua_block {
ngx.say('ready')
ngx.print('ready')
ngx.flush(true)
ngx.exit(ngx.HTTP_OK)
}
}

View File

@ -0,0 +1,8 @@
location /ready {
default_type 'text/plain';
rewrite_by_lua_block {
ngx.print('ready')
ngx.flush(true)
ngx.exit(ngx.HTTP_OK)
}
}

View File

@ -34,6 +34,7 @@ else
echo "CLIENT_CACHE_CONTROL=public, max-age=15552000" | sudo tee -a /etc/bunkerweb/variables.env
sudo touch /var/www/html/index.html
sudo cp image.png /var/www/html/image.png
sudo cp ready.conf /etc/bunkerweb/server-http
fi
manual=0

View File

@ -34,7 +34,8 @@ services:
location /ready {
default_type 'text/plain';
rewrite_by_lua_block {
ngx.say('ready')
ngx.print('ready')
ngx.flush(true)
ngx.exit(ngx.HTTP_OK)
}
}

View File

@ -0,0 +1,8 @@
location /ready {
default_type 'text/plain';
rewrite_by_lua_block {
ngx.print('ready')
ngx.flush(true)
ngx.exit(ngx.HTTP_OK)
}
}

View File

@ -43,6 +43,7 @@ else
echo "CORS_ALLOW_CREDENTIALS=no" | sudo tee -a /etc/bunkerweb/variables.env
echo "CORS_ALLOW_METHODS=GET, POST, OPTIONS" | sudo tee -a /etc/bunkerweb/variables.env
echo "CORS_ALLOW_HEADERS=DNT,User-Agent,X-Requested-With,If-Modified-Since,Cache-Control,Content-Type,Range" | sudo tee -a /etc/bunkerweb/variables.env
sudo cp ready.conf /etc/bunkerweb/server-http
fi
manual=0

View File

@ -22,7 +22,8 @@ services:
location /ready {
default_type 'text/plain';
rewrite_by_lua_block {
ngx.say('ready')
ngx.print('ready')
ngx.flush(true)
ngx.exit(ngx.HTTP_OK)
}
}

View File

@ -0,0 +1,8 @@
location /ready {
default_type 'text/plain';
rewrite_by_lua_block {
ngx.print('ready')
ngx.flush(true)
ngx.exit(ngx.HTTP_OK)
}
}

View File

@ -36,6 +36,7 @@ else
sudo touch /var/www/html/index.html
export COUNTRY=""
export TEST_TYPE="linux"
sudo cp ready.conf /etc/bunkerweb/server-http
fi
manual=0

View File

@ -24,7 +24,8 @@ services:
location /ready {
default_type 'text/plain';
rewrite_by_lua_block {
ngx.say('ready')
ngx.print('ready')
ngx.flush(true)
ngx.exit(ngx.HTTP_OK)
}
}

View File

@ -0,0 +1,8 @@
location /ready {
default_type 'text/plain';
rewrite_by_lua_block {
ngx.print('ready')
ngx.flush(true)
ngx.exit(ngx.HTTP_OK)
}
}

View File

@ -32,6 +32,7 @@ else
echo "CUSTOM_SSL_CERT=/tmp/certificate.pem" | sudo tee -a /etc/bunkerweb/variables.env
echo "CUSTOM_SSL_KEY=/tmp/privatekey.key" | sudo tee -a /etc/bunkerweb/variables.env
sudo touch /var/www/html/index.html
sudo cp ready.conf /etc/bunkerweb/server-http
fi
manual=0

View File

@ -22,7 +22,8 @@ services:
location /ready {
default_type 'text/plain';
rewrite_by_lua_block {
ngx.say('ready')
ngx.print('ready')
ngx.flush(true)
ngx.exit(ngx.HTTP_OK)
}
}

8
tests/core/db/ready.conf Normal file
View File

@ -0,0 +1,8 @@
location /ready {
default_type 'text/plain';
rewrite_by_lua_block {
ngx.print('ready')
ngx.flush(true)
ngx.exit(ngx.HTTP_OK)
}
}

View File

@ -64,6 +64,7 @@ else
export GLOBAL_REVERSE_PROXY_HOST="http://app1:8080"
export GLOBAL_REVERSE_PROXY_URL="/"
export CUSTOM_CONF_MODSEC_test_custom_conf='SecRule REQUEST_FILENAME "@rx ^/db" "id:10000,ctl:ruleRemoveByTag=attack-generic,ctl:ruleRemoveByTag=attack-protocol,nolog"'
sudo cp ready.conf /etc/bunkerweb/server-http
fi
manual=0

View File

@ -22,7 +22,8 @@ services:
location /ready {
default_type 'text/plain';
rewrite_by_lua_block {
ngx.say('ready')
ngx.print('ready')
ngx.flush(true)
ngx.exit(ngx.HTTP_OK)
}
}

View File

@ -0,0 +1,8 @@
location /ready {
default_type 'text/plain';
rewrite_by_lua_block {
ngx.print('ready')
ngx.flush(true)
ngx.exit(ngx.HTTP_OK)
}
}

View File

@ -36,6 +36,7 @@ else
echo "DNSBL_LIST=" | sudo tee -a /etc/bunkerweb/variables.env
sudo touch /var/www/html/index.html
export TEST_TYPE="linux"
sudo cp ready.conf /etc/bunkerweb/server-http
fi
manual=0

View File

@ -23,7 +23,8 @@ services:
location /ready {
default_type 'text/plain';
rewrite_by_lua_block {
ngx.say('ready')
ngx.print('ready')
ngx.flush(true)
ngx.exit(ngx.HTTP_OK)
}
}

View File

@ -0,0 +1,8 @@
location /ready {
default_type 'text/plain';
rewrite_by_lua_block {
ngx.print('ready')
ngx.flush(true)
ngx.exit(ngx.HTTP_OK)
}
}

View File

@ -33,6 +33,7 @@ else
sudo touch /var/www/html/index.html
sudo mkdir -p /var/www/html/errors
sudo cp "403.html" "/var/www/html/errors/403.html"
sudo cp ready.conf /etc/bunkerweb/server-http
fi
manual=0

View File

@ -31,7 +31,8 @@ services:
location /ready {
default_type 'text/plain';
rewrite_by_lua_block {
ngx.say('ready')
ngx.print('ready')
ngx.flush(true)
ngx.exit(ngx.HTTP_OK)
}
}

View File

@ -0,0 +1,8 @@
location /ready {
default_type 'text/plain';
rewrite_by_lua_block {
ngx.print('ready')
ngx.flush(true)
ngx.exit(ngx.HTTP_OK)
}
}

View File

@ -55,6 +55,7 @@ else
echo "GREYLIST_URI_URLS=" | sudo tee -a /etc/bunkerweb/variables.env
sudo touch /var/www/html/index.html
export TEST_TYPE="linux"
sudo cp ready.conf /etc/bunkerweb/server-http
fi
manual=0

View File

@ -4,6 +4,8 @@ services:
bw:
image: bunkerity/bunkerweb:1.5.3
pull_policy: never
ports:
- 80:8080
labels:
- "bunkerweb.INSTANCE=yes"
environment:
@ -22,7 +24,8 @@ services:
location /ready {
default_type 'text/plain';
rewrite_by_lua_block {
ngx.say('ready')
ngx.print('ready')
ngx.flush(true)
ngx.exit(ngx.HTTP_OK)
}
}

View File

@ -0,0 +1,8 @@
location /ready {
default_type 'text/plain';
rewrite_by_lua_block {
ngx.print('ready')
ngx.flush(true)
ngx.exit(ngx.HTTP_OK)
}
}

View File

@ -30,6 +30,7 @@ else
sudo systemctl stop bunkerweb
echo "USE_GZIP=no" | sudo tee -a /etc/bunkerweb/variables.env
sudo touch /var/www/html/index.html
sudo cp ready.conf /etc/bunkerweb/server-http
fi
manual=0

View File

@ -36,7 +36,8 @@ services:
location /ready {
default_type 'text/plain';
rewrite_by_lua_block {
ngx.say('ready')
ngx.print('ready')
ngx.flush(true)
ngx.exit(ngx.HTTP_OK)
}
}

View File

@ -0,0 +1,8 @@
location /ready {
default_type 'text/plain';
rewrite_by_lua_block {
ngx.print('ready')
ngx.flush(true)
ngx.exit(ngx.HTTP_OK)
}
}

View File

@ -48,6 +48,7 @@ else
echo "X_FRAME_OPTIONS=SAMEORIGIN" | sudo tee -a /etc/bunkerweb/variables.env
echo "X_CONTENT_TYPE_OPTIONS=nosniff" | sudo tee -a /etc/bunkerweb/variables.env
echo "X_XSS_PROTECTION=1; mode=block" | sudo tee -a /etc/bunkerweb/variables.env
sudo cp ready.conf /etc/bunkerweb/server-http
fi
manual=0

View File

@ -21,7 +21,8 @@ services:
location /ready {
default_type 'text/plain';
rewrite_by_lua_block {
ngx.say('ready')
ngx.print('ready')
ngx.flush(true)
ngx.exit(ngx.HTTP_OK)
}
}

View File

@ -0,0 +1,8 @@
location /ready {
default_type 'text/plain';
rewrite_by_lua_block {
ngx.print('ready')
ngx.flush(true)
ngx.exit(ngx.HTTP_OK)
}
}

View File

@ -30,6 +30,7 @@ else
sudo systemctl stop bunkerweb
echo "INJECT_BODY=TEST" | sudo tee -a /etc/bunkerweb/variables.env
sudo cp index.html /var/www/html/index.html
sudo cp ready.conf /etc/bunkerweb/server-http
fi
cleanup_stack () {

View File

@ -26,7 +26,8 @@ services:
location /ready {
default_type 'text/plain';
rewrite_by_lua_block {
ngx.say('ready')
ngx.print('ready')
ngx.flush(true)
ngx.exit(ngx.HTTP_OK)
}
}

View File

@ -0,0 +1,8 @@
location /ready {
default_type 'text/plain';
rewrite_by_lua_block {
ngx.print('ready')
ngx.flush(true)
ngx.exit(ngx.HTTP_OK)
}
}

View File

@ -35,6 +35,7 @@ else
echo "USE_LIMIT_CONN=yes" | sudo tee -a /etc/bunkerweb/variables.env
echo "LIMIT_CONN_MAX_HTTP1=1" | sudo tee -a /etc/bunkerweb/variables.env
sudo touch /var/www/html/index.html
sudo cp ready.conf /etc/bunkerweb/server-http
fi
manual=0

View File

@ -33,7 +33,8 @@ services:
location /ready {
default_type 'text/plain';
rewrite_by_lua_block {
ngx.say('ready')
ngx.print('ready')
ngx.flush(true)
ngx.exit(ngx.HTTP_OK)
}
}

View File

@ -0,0 +1,8 @@
location /ready {
default_type 'text/plain';
rewrite_by_lua_block {
ngx.print('ready')
ngx.flush(true)
ngx.exit(ngx.HTTP_OK)
}
}

View File

@ -43,6 +43,7 @@ else
echo "DENY_HTTP_STATUS=403" | sudo tee -a /etc/bunkerweb/variables.env
sudo touch /var/www/html/index.html
export TEST_TYPE="linux"
sudo cp ready.conf /etc/bunkerweb/server-http
fi
manual=0

View File

@ -25,7 +25,8 @@ services:
location /ready {
default_type 'text/plain';
rewrite_by_lua_block {
ngx.say('ready')
ngx.print('ready')
ngx.flush(true)
ngx.exit(ngx.HTTP_OK)
}
}

View File

@ -0,0 +1,8 @@
location /ready {
default_type 'text/plain';
rewrite_by_lua_block {
ngx.print('ready')
ngx.flush(true)
ngx.exit(ngx.HTTP_OK)
}
}

View File

@ -34,6 +34,7 @@ else
echo "MODSECURITY_SEC_RULE_ENGINE=On" | sudo tee -a /etc/bunkerweb/variables.env
echo "MODSECURITY_SEC_AUDIT_LOG_PARTS=ABCFHZ" | sudo tee -a /etc/bunkerweb/variables.env
sudo touch /var/www/html/index.html
sudo cp ready.conf /etc/bunkerweb/server-http
fi
manual=0

View File

@ -22,7 +22,8 @@ services:
location /ready {
default_type 'text/plain';
rewrite_by_lua_block {
ngx.say('ready')
ngx.print('ready')
ngx.flush(true)
ngx.exit(ngx.HTTP_OK)
}
}

View File

@ -0,0 +1,8 @@
location /ready {
default_type 'text/plain';
rewrite_by_lua_block {
ngx.print('ready')
ngx.flush(true)
ngx.exit(ngx.HTTP_OK)
}
}

View File

@ -31,6 +31,7 @@ else
echo "REDIRECT_TO=" | sudo tee -a /etc/bunkerweb/variables.env
echo "REDIRECT_TO_REQUEST_URI=no" | sudo tee -a /etc/bunkerweb/variables.env
sudo touch /var/www/html/index.html
sudo cp ready.conf /etc/bunkerweb/server-http
fi
manual=0

View File

@ -33,7 +33,8 @@ services:
location /ready {
default_type 'text/plain';
rewrite_by_lua_block {
ngx.say('ready')
ngx.print('ready')
ngx.flush(true)
ngx.exit(ngx.HTTP_OK)
}
}

View File

@ -0,0 +1,8 @@
location /ready {
default_type 'text/plain';
rewrite_by_lua_block {
ngx.print('ready')
ngx.flush(true)
ngx.exit(ngx.HTTP_OK)
}
}

View File

@ -83,6 +83,7 @@ else
echo "REDIS_SSL=no" | sudo tee -a /etc/bunkerweb/variables.env
sudo touch /var/www/html/index.html
export TEST_TYPE="linux"
sudo cp ready.conf /etc/bunkerweb/server-http
fi
manual=0

View File

@ -23,7 +23,8 @@ services:
location /ready {
default_type 'text/plain';
rewrite_by_lua_block {
ngx.say('ready')
ngx.print('ready')
ngx.flush(true)
ngx.exit(ngx.HTTP_OK)
}
}

View File

@ -0,0 +1,8 @@
location /ready {
default_type 'text/plain';
rewrite_by_lua_block {
ngx.print('ready')
ngx.flush(true)
ngx.exit(ngx.HTTP_OK)
}
}

View File

@ -33,6 +33,7 @@ else
echo "REVERSE_SCAN_TIMEOUT=500" | sudo tee -a /etc/bunkerweb/variables.env
sudo touch /var/www/html/index.html
export TEST_TYPE="linux"
sudo cp ready.conf /etc/bunkerweb/server-http
fi
manual=0

View File

@ -24,7 +24,8 @@ services:
location /ready {
default_type 'text/plain';
rewrite_by_lua_block {
ngx.say('ready')
ngx.print('ready')
ngx.flush(true)
ngx.exit(ngx.HTTP_OK)
}
}

View File

@ -0,0 +1,8 @@
location /ready {
default_type 'text/plain';
rewrite_by_lua_block {
ngx.print('ready')
ngx.flush(true)
ngx.exit(ngx.HTTP_OK)
}
}

View File

@ -32,6 +32,7 @@ else
echo "SELF_SIGNED_SSL_EXPIRY=365" | sudo tee -a /etc/bunkerweb/variables.env
echo "SELF_SIGNED_SSL_SUBJ=/CN=www.example.com/" | sudo tee -a /etc/bunkerweb/variables.env
sudo touch /var/www/html/index.html
sudo cp ready.conf /etc/bunkerweb/server-http
fi
manual=0

View File

@ -23,7 +23,8 @@ services:
location /ready {
default_type 'text/plain';
rewrite_by_lua_block {
ngx.say('ready')
ngx.print('ready')
ngx.flush(true)
ngx.exit(ngx.HTTP_OK)
}
}

View File

@ -0,0 +1,8 @@
location /ready {
default_type 'text/plain';
rewrite_by_lua_block {
ngx.print('ready')
ngx.flush(true)
ngx.exit(ngx.HTTP_OK)
}
}

View File

@ -33,6 +33,7 @@ else
echo "SESSIONS_NAME=random" | sudo tee -a /etc/bunkerweb/variables.env
sudo touch /var/www/html/index.html
export TEST_TYPE="linux"
sudo cp ready.conf /etc/bunkerweb/server-http
fi
manual=0

View File

@ -34,7 +34,8 @@ services:
location /ready {
default_type 'text/plain';
rewrite_by_lua_block {
ngx.say('ready')
ngx.print('ready')
ngx.flush(true)
ngx.exit(ngx.HTTP_OK)
}
}

View File

@ -0,0 +1,8 @@
location /ready {
default_type 'text/plain';
rewrite_by_lua_block {
ngx.print('ready')
ngx.flush(true)
ngx.exit(ngx.HTTP_OK)
}
}

View File

@ -58,6 +58,7 @@ else
echo "WHITELIST_URI_URLS=" | sudo tee -a /etc/bunkerweb/variables.env
sudo touch /var/www/html/index.html
export TEST_TYPE="linux"
sudo cp ready.conf /etc/bunkerweb/server-http
fi
manual=0