mirror of
https://github.com/TecharoHQ/anubis.git
synced 2025-12-30 16:29:37 -06:00
* test(nginx-external-auth): bring up to code standards Signed-off-by: Xe Iaso <me@xeiaso.net> * fix(lib): close open redirect when in subrequest mode Closes GHSA-cf57-c578-7jvv Previously Anubis had an open redirect in subrequest auth mode due to an insufficent fix in GHSA-jhjj-2g64-px7c. This patch adds additional validation at several steps of the flow to prevent open redirects in subrequest auth mode as well as implements automated testing to prevent this from occuring in the future. * docs: update CHANGELOG Signed-off-by: Xe Iaso <me@xeiaso.net> --------- Signed-off-by: Xe Iaso <me@xeiaso.net>
24 lines
380 B
Bash
Executable File
24 lines
380 B
Bash
Executable File
#!/usr/bin/env bash
|
|
|
|
set -euo pipefail
|
|
|
|
# Build container image
|
|
(
|
|
cd ../.. &&
|
|
npm ci &&
|
|
npm run container -- \
|
|
--docker-repo ttl.sh/techaro/anubis \
|
|
--docker-tags ttl.sh/techaro/anubis:latest
|
|
)
|
|
|
|
kubectl apply -k .
|
|
echo "open https://nginx.local.cetacean.club, press control c when done"
|
|
|
|
control_c() {
|
|
kubectl delete -k .
|
|
exit
|
|
}
|
|
trap control_c SIGINT
|
|
|
|
sleep infinity
|