Skip to content
This repository has been archived by the owner on Oct 8, 2024. It is now read-only.

Commit

Permalink
Add sslscan to workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
Michael-Kruggel committed Nov 28, 2023
1 parent ee09643 commit 65e0583
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 9 deletions.
4 changes: 4 additions & 0 deletions .github/workflows/test-command.yml
Original file line number Diff line number Diff line change
Expand Up @@ -103,6 +103,10 @@ jobs:
brew tap defenseunicorns/tap
brew install uds
- name: Install sslscan via homebrew
run: |
apt install sslscan -y
- name: Build gitlab and all dependencies
run: |
uds run ci-build-all
Expand Down
18 changes: 9 additions & 9 deletions utils/metallb/dns.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,11 @@ HOST_LIST=$(kubectl get vs -A -o=jsonpath='{range .items[*]}{.spec.gateways[*]}{

TENANT_HOSTS=$(echo "${HOST_LIST}" | grep tenant | cut -d ' ' -f2)
ADMIN_HOSTS=$(echo "${HOST_LIST}" | grep admin | cut -d ' ' -f2)
PASSTHROUGH_HOSTS=$(echo "${HOST_LIST}" | grep passthrough | cut -d ' ' -f2)
# PASSTHROUGH_HOSTS=$(echo "${HOST_LIST}" | grep passthrough | cut -d ' ' -f2)

TENANT_LB_IP=$(kubectl get svc -n istio-system tenant-ingressgateway -o=jsonpath="{.status.loadBalancer.ingress[*]['hostname', 'ip']}")
ADMIN_LB_IP=$(kubectl get svc -n istio-system admin-ingressgateway -o=jsonpath="{.status.loadBalancer.ingress[*]['hostname', 'ip']}")
PASSTHROUGH_LB_IP=$(kubectl get svc -n istio-system keycloak-ingressgateway -o=jsonpath="{.status.loadBalancer.ingress[*]['hostname', 'ip']}")
# PASSTHROUGH_LB_IP=$(kubectl get svc -n istio-system keycloak-ingressgateway -o=jsonpath="{.status.loadBalancer.ingress[*]['hostname', 'ip']}")

if [[ "${TENANT_LB_IP}" =~ [a-zA-Z] ]] ; then
TENANT_LB_IP=$(dig +short "${TENANT_LB_IP}")
Expand All @@ -18,9 +18,9 @@ if [[ "${ADMIN_LB_IP}" =~ [a-zA-Z] ]] ; then
ADMIN_LB_IP=$(dig +short "${ADMIN_LB_IP}")
fi

if [[ "${PASSTHROUGH_LB_IP}" =~ [a-zA-Z] ]] ; then
PASSTHROUGH_LB_IP=$(dig +short "${PASSTHROUGH_LB_IP}")
fi
# if [[ "${PASSTHROUGH_LB_IP}" =~ [a-zA-Z] ]] ; then
# PASSTHROUGH_LB_IP=$(dig +short "${PASSTHROUGH_LB_IP}")
# fi

echo "# Following entries are from metallb dns.sh" >> hosts.patch

Expand All @@ -36,10 +36,10 @@ for host in $ADMIN_HOSTS; do
echo "${ADMIN_LB_IP} ${host}" >> hosts.patch
done

echo "# Passthrough hostnames" >> hosts.patch
# echo "# Passthrough hostnames" >> hosts.patch

for host in $PASSTHROUGH_HOSTS; do
echo "${PASSTHROUGH_LB_IP} ${host}" >> hosts.patch
done
# for host in $PASSTHROUGH_HOSTS; do
# echo "${PASSTHROUGH_LB_IP} ${host}" >> hosts.patch
# done

echo "# End of metallb dns.sh" >> hosts.patch

0 comments on commit 65e0583

Please sign in to comment.