feat(casan): establish assurance kernel and harden control plane
This commit is contained in:
@@ -17,6 +17,14 @@ if [[ ! -f "$TLS_DIR/tls.crt" || ! -f "$TLS_DIR/tls.key" ]]; then
|
||||
-subj "/CN=localhost" \
|
||||
-days 1 >/dev/null 2>&1
|
||||
fi
|
||||
IDP_PRIVATE="$ROOT/tmp/control-panel-local/idp-private.pem"
|
||||
IDP_PUBLIC="$ROOT/tmp/control-panel-local/idp-public.pem"
|
||||
if [[ ! -f "$IDP_PRIVATE" || ! -f "$IDP_PUBLIC" ]]; then
|
||||
openssl genrsa -out "$IDP_PRIVATE" 2048 >/dev/null 2>&1
|
||||
openssl rsa -in "$IDP_PRIVATE" -pubout -out "$IDP_PUBLIC" >/dev/null 2>&1
|
||||
chmod 0600 "$IDP_PRIVATE"
|
||||
chmod 0644 "$IDP_PUBLIC"
|
||||
fi
|
||||
|
||||
cleanup() {
|
||||
docker compose -f "$COMPOSE" down --remove-orphans >/dev/null 2>&1 || true
|
||||
|
||||
Reference in New Issue
Block a user