From a90ae8c299439ae0d10da6280e9092dfc5794313 Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" Date: Thu, 19 Nov 2026 20:31:04 +0000 Subject: [PATCH] Delete faraday (ct) after migration to ProxmoxVE --- ct/faraday.sh | 66 ----------------------- install/faraday-install.sh | 104 ------------------------------------- json/faraday.json | 56 -------------------- 3 files changed, 226 deletions(-) delete mode 100644 ct/faraday.sh delete mode 100644 install/faraday-install.sh delete mode 100644 json/faraday.json diff --git a/ct/faraday.sh b/ct/faraday.sh deleted file mode 100644 index 3379870737..0000000000 --- a/ct/faraday.sh +++ /dev/null @@ -1,66 +0,0 @@ -#!/usr/bin/env bash -_CS_DEFAULT_URL="https://raw.githubusercontent.com/community-scripts/DevScripts/main" -_cs_boot="${COMMUNITY_SCRIPTS_CORE_DIR:-$(dirname "${BASH_SOURCE[0]}")/../../core}/core/build.func" -source "$_cs_boot" 2>/dev/null || source <(curl -fsSL "${COMMUNITY_SCRIPTS_CORE_URL:-https://raw.githubusercontent.com/community-scripts/core/main}/core/build.func") -# Copyright (c) 2021-2026 community-scripts ORG -# Author: MickLesk (CanbiZ) -# License: MIT | https://github.com/community-scripts/DevScripts/raw/main/LICENSE -# Source: https://github.com/infobyte/faraday - -APP="Faraday" -var_tags="${var_tags:-security;vulnerability}" -var_cpu="${var_cpu:-2}" -var_ram="${var_ram:-2048}" -var_disk="${var_disk:-8}" -var_os="${var_os:-debian}" -var_version="${var_version:-13}" -var_arm64="${var_arm64:-yes}" -var_unprivileged="${var_unprivileged:-1}" - -export var_faraday_password="${var_faraday_password:-}" - -header_info "$APP" -variables -color -catch_errors - -function update_script() { - header_info - check_container_storage - check_container_resources - - if [[ ! -d /opt/faraday ]]; then - msg_error "No ${APP} Installation Found!" - exit - fi - - if check_for_gh_release "faraday" "infobyte/faraday"; then - msg_info "Stopping Faraday" - systemctl stop faraday-beat faraday-worker faraday-server - msg_ok "Stopped Faraday" - - PYTHON_VERSION="3.11" setup_uv - CLEAN_INSTALL=1 fetch_and_deploy_gh_release "faraday" "infobyte/faraday" "tarball" - - msg_info "Updating Faraday" - cd /opt/faraday - UV_PROJECT_ENVIRONMENT=/opt/faraday/venv $STD uv sync --frozen --no-dev --no-editable - FARADAY_HOME=/opt/faraday_data $STD venv/bin/faraday-manage migrate - msg_ok "Updated Faraday" - - msg_info "Starting Faraday" - systemctl start faraday-server faraday-worker faraday-beat - msg_ok "Started Faraday" - msg_ok "Updated successfully!" - fi - exit -} - -start -build_container -description - -msg_ok "Completed Successfully!\n" -echo -e "${CREATING}${GN}${APP} setup has been successfully initialized!${CL}" -echo -e "${INFO}${YW}Access it using the following URL:${CL}" -echo -e "${GATEWAY}${BGN}http://${IP}:5985${CL}" diff --git a/install/faraday-install.sh b/install/faraday-install.sh deleted file mode 100644 index 8d94637a9b..0000000000 --- a/install/faraday-install.sh +++ /dev/null @@ -1,104 +0,0 @@ -#!/usr/bin/env bash - -# Copyright (c) 2021-2026 community-scripts ORG -# Author: MickLesk (CanbiZ) -# License: MIT | https://github.com/community-scripts/DevScripts/raw/main/LICENSE -# Source: https://github.com/infobyte/faraday - -source /dev/stdin <<<"$FUNCTIONS_FILE_PATH" -color -verb_ip6 -catch_errors -setting_up_container -network_check -update_os - -msg_info "Installing Dependencies" -$STD apt install -y \ - build-essential \ - libpq-dev \ - libmagic1 \ - redis-server -msg_ok "Installed Dependencies" - -PG_VERSION="17" setup_postgresql -PG_DB_NAME="faraday" PG_DB_USER="faraday" PG_DB_CREDS_FILE="/dev/null" setup_postgresql_db -PYTHON_VERSION="3.11" setup_uv -fetch_and_deploy_gh_release "faraday" "infobyte/faraday" "tarball" - -msg_info "Installing Faraday" -cd /opt/faraday -UV_PROJECT_ENVIRONMENT=/opt/faraday/venv $STD uv sync --frozen --no-dev --no-editable -msg_ok "Installed Faraday" - -msg_info "Configuring Faraday" -FARADAY_PASSWORD="${var_faraday_password:-$(random_password)}" -mkdir -p /opt/faraday_data/.faraday/config -cat </opt/faraday_data/.faraday/config/server.ini -[faraday_server] -port = 5985 -bind_address = 0.0.0.0 -secret_key = $(random_password 32) - -[database] -connection_string = postgresql+psycopg2://${PG_DB_USER}:${PG_DB_PASS}@localhost/${PG_DB_NAME} -EOF -cat </opt/faraday_data/.env -FARADAY_HOME=/opt/faraday_data -FARADAY_USER=faraday -FARADAY_PASSWORD=${FARADAY_PASSWORD} -EOF -chmod 600 /opt/faraday_data/.env /opt/faraday_data/.faraday/config/server.ini -FARADAY_HOME=/opt/faraday_data $STD venv/bin/faraday-manage create-tables -FARADAY_HOME=/opt/faraday_data $STD venv/bin/faraday-manage create-superuser --username faraday --email faraday@example.com --password "$FARADAY_PASSWORD" -msg_ok "Configured Faraday" - -msg_info "Creating Services" -cat </etc/systemd/system/faraday-server.service -[Unit] -Description=Faraday Server -After=network.target postgresql.service redis-server.service - -[Service] -Type=exec -Environment=FARADAY_HOME=/opt/faraday_data -ExecStart=/opt/faraday/venv/bin/faraday-server -Restart=always - -[Install] -WantedBy=multi-user.target -EOF -cat </etc/systemd/system/faraday-worker.service -[Unit] -Description=Faraday Worker -After=network.target postgresql.service redis-server.service - -[Service] -Type=exec -Environment=FARADAY_HOME=/opt/faraday_data -ExecStart=/opt/faraday/venv/bin/faraday-worker -Restart=always - -[Install] -WantedBy=multi-user.target -EOF -cat </etc/systemd/system/faraday-beat.service -[Unit] -Description=Faraday Beat -After=network.target postgresql.service redis-server.service - -[Service] -Type=exec -Environment=FARADAY_HOME=/opt/faraday_data -ExecStart=/opt/faraday/venv/bin/faraday-beat -Restart=always - -[Install] -WantedBy=multi-user.target -EOF -systemctl enable -q --now faraday-server faraday-worker faraday-beat -msg_ok "Created Services" - -motd_ssh -customize -cleanup_lxc diff --git a/json/faraday.json b/json/faraday.json deleted file mode 100644 index 4c54d8f76e..0000000000 --- a/json/faraday.json +++ /dev/null @@ -1,56 +0,0 @@ -{ - "name": "Faraday", - "slug": "faraday", - "categories": [ - 6 - ], - "date_created": "2026-11-13", - "type": "ct", - "updateable": true, - "privileged": false, - "interface_port": 5985, - "documentation": "https://docs.faradaysec.com/", - "website": "https://faradaysec.com/", - "repository": "https://github.com/infobyte/faraday", - "architectures": ["amd64", "arm64"], - "platforms": ["pve"], - "logo": "https://cdn.jsdelivr.net/gh/infobyte/faraday@master/docs/images/faraday_logo.svg", - "description": "Faraday is a vulnerability management platform that collects the output of more than 80 security tools such as Nmap, Nessus, Burp and OpenVAS into shared workspaces. It deduplicates findings, normalizes them across tools and tracks their remediation status through a web UI and a REST API.", - "install_methods": [ - { - "type": "default", - "script": "ct/faraday.sh", - "config_path": "/opt/faraday_data/.faraday/config/server.ini", - "resources": { - "cpu": 2, - "ram": 2048, - "hdd": 8, - "os": "Debian", - "version": "13" - } - } - ], - "default_credentials": { - "username": "faraday", - "password": null - }, - "notes": [ - { - "text": "Sign in as faraday with FARADAY_PASSWORD from /opt/faraday_data/.env.", - "type": "info" - }, - { - "text": "Run faraday-manage as `FARADAY_HOME=/opt/faraday_data /opt/faraday/venv/bin/faraday-manage `, otherwise it does not find the configuration.", - "type": "info" - } - ], - "app_vars": [ - { - "name": "var_faraday_password", - "label": "Admin Password", - "type": "password", - "secret": true, - "help": "Password for the faraday user. Generated when left empty" - } - ] -}