From 01f863004449fa78cc0cf6fb39deb912f12eea3c Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" Date: Wed, 25 Nov 2026 12:00:23 +0000 Subject: [PATCH] Delete rauthy (ct) after migration to ProxmoxVE --- ct/rauthy.sh | 77 ------------------------- install/rauthy-install.sh | 118 -------------------------------------- json/rauthy.json | 54 ----------------- 3 files changed, 249 deletions(-) delete mode 100644 ct/rauthy.sh delete mode 100644 install/rauthy-install.sh delete mode 100644 json/rauthy.json diff --git a/ct/rauthy.sh b/ct/rauthy.sh deleted file mode 100644 index 8f56e179ab..0000000000 --- a/ct/rauthy.sh +++ /dev/null @@ -1,77 +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/sebadob/rauthy - -APP="Rauthy" -var_tags="${var_tags:-auth;sso;oidc}" -var_cpu="${var_cpu:-4}" -var_ram="${var_ram:-4096}" -var_disk="${var_disk:-12}" -var_os="${var_os:-debian}" -var_version="${var_version:-13}" -var_arm64="${var_arm64:-yes}" -var_unprivileged="${var_unprivileged:-1}" -var_testurl="${var_testurl:-https://github.com/community-scripts/DevScripts/issues/2405}" - -header_info "$APP" -variables -color -catch_errors - -function update_script() { - header_info - check_container_storage - check_container_resources - - if [[ ! -f /opt/rauthy/rauthy ]]; then - msg_error "No ${APP} Installation Found!" - exit - fi - - if check_for_gh_release "rauthy" "sebadob/rauthy"; then - setup_rust - fetch_and_deploy_gh_release "rauthy" "sebadob/rauthy" "tarball" "latest" "/opt/rauthy-build" - - msg_info "Building Rauthy (Patience)" - cd /opt/rauthy-build - tar -xf assets/static_html/static_v1.tar.gz - tar -xf assets/static_html/templates_html.tar.gz - if ! CURL_RETRIES=8 curl_with_retry "https://mds.fidoalliance.org/" "/opt/rauthy-build/mds.jwt"; then - rm -rf /opt/rauthy-build - msg_error "The FIDO MDS download was rate-limited (HTTP 429); Rauthy was not changed, try the update again later" - exit 7 - fi - CARGO_PROFILE_DEV_DEBUG=0 $STD cargo run --bin fido-mds-prep -- --source mds.jwt - CARGO_PROFILE_RELEASE_LTO=thin CARGO_PROFILE_RELEASE_CODEGEN_UNITS=16 \ - $STD cargo build --release --bin rauthy - msg_ok "Built Rauthy" - - msg_info "Stopping Rauthy" - systemctl stop rauthy - msg_ok "Stopped Rauthy" - - mv /opt/rauthy-build/target/release/rauthy /opt/rauthy/rauthy - cd /opt - rm -rf /opt/rauthy-build ~/.cargo/registry - - msg_info "Starting Rauthy" - systemctl start rauthy - msg_ok "Started Rauthy" - 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}https://${IP}:8443/auth/v1/${CL}" diff --git a/install/rauthy-install.sh b/install/rauthy-install.sh deleted file mode 100644 index 92772e54c8..0000000000 --- a/install/rauthy-install.sh +++ /dev/null @@ -1,118 +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/sebadob/rauthy - -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 \ - pkg-config -msg_ok "Installed Dependencies" - -setup_rust -fetch_and_deploy_gh_release "rauthy" "sebadob/rauthy" "tarball" "latest" "/opt/rauthy-build" - -msg_info "Building Rauthy (Patience)" -cd /opt/rauthy-build -# The prebuilt UI ships in every release, so Node.js and wasm-pack are not needed -tar -xf assets/static_html/static_v1.tar.gz -tar -xf assets/static_html/templates_html.tar.gz -# Release builds refuse to compile without the FIDO MDS dataset (since 0.37.2); the alliance answers 429 to busy IPs -if ! CURL_RETRIES=8 curl_with_retry "https://mds.fidoalliance.org/" "/opt/rauthy-build/mds.jwt"; then - msg_error "The FIDO MDS download was rate-limited (HTTP 429); run the script again in a few minutes" - exit 7 -fi -CARGO_PROFILE_DEV_DEBUG=0 $STD cargo run --bin fido-mds-prep -- --source mds.jwt -# Upstream's fat LTO with a single codegen unit takes over an hour and close to 4 GB of RAM on 4 cores -CARGO_PROFILE_RELEASE_LTO=thin CARGO_PROFILE_RELEASE_CODEGEN_UNITS=16 \ - $STD cargo build --release --bin rauthy -mkdir -p /opt/rauthy -mv target/release/rauthy /opt/rauthy/rauthy -cd /opt -rm -rf /opt/rauthy-build ~/.cargo/registry -msg_ok "Built Rauthy" - -create_self_signed_cert "rauthy" - -msg_info "Configuring Rauthy" -mkdir -p /opt/rauthy_data -ENC_KEY_ID=$(openssl rand -hex 4) -cat </opt/rauthy_data/config.toml -## Reference: https://sebadob.github.io/rauthy/config/config.html - -[bootstrap] -# Password for admin@localhost, only read when the database is created on the first start -password_plain = '$(random_password)' - -[cluster] -node_id = 1 -nodes = ['1 localhost:8100 localhost:8200'] -data_dir = '/opt/rauthy_data/hiqlite' -secret_raft = '$(random_password 48)' -secret_api = '$(random_password 48)' - -[email] -#smtp_url = 'smtp.example.com' -#smtp_username = 'rauthy@example.com' -#smtp_password = '' -#smtp_from = 'Rauthy ' - -[encryption] -keys = ['${ENC_KEY_ID}/$(openssl rand -base64 32)'] -key_active = '${ENC_KEY_ID}' - -[mfa] -# Passkeys need a DNS name, so admin MFA cannot be set up while Rauthy is reached by IP -admin_force_mfa = false - -[server] -scheme = 'https' -pub_url = '${LOCAL_IP}:8443' - -[tls] -cert_path = '/etc/ssl/rauthy/rauthy.crt' -key_path = '/etc/ssl/rauthy/rauthy.key' - -[webauthn] -# Must be a domain, an IP is rejected; set both to the public DNS name before registering passkeys -rp_id = 'localhost' -rp_origin = 'https://localhost:8443' -EOF -chmod 600 /opt/rauthy_data/config.toml -msg_ok "Configured Rauthy" - -msg_info "Creating Service" -cat </etc/systemd/system/rauthy.service -[Unit] -Description=Rauthy -After=network-online.target -Wants=network-online.target - -[Service] -Type=simple -User=root -WorkingDirectory=/opt/rauthy_data -Environment=MALLOC_CONF=abort_conf:true,narenas:8,tcache_max:4096,dirty_decay_ms:5000,muzzy_decay_ms:5000 -ExecStart=/opt/rauthy/rauthy serve -c /opt/rauthy_data/config.toml -Restart=on-failure -RestartSec=5 - -[Install] -WantedBy=multi-user.target -EOF -systemctl enable -q --now rauthy -msg_ok "Created Service" - -motd_ssh -customize -cleanup_lxc diff --git a/json/rauthy.json b/json/rauthy.json deleted file mode 100644 index d60c218e46..0000000000 --- a/json/rauthy.json +++ /dev/null @@ -1,54 +0,0 @@ -{ - "name": "Rauthy", - "slug": "rauthy", - "categories": [ - 6 - ], - "date_created": "2026-10-07", - "type": "ct", - "platforms": ["pve"], - "updateable": true, - "privileged": false, - "interface_port": 8443, - "documentation": "https://sebadob.github.io/rauthy/", - "website": "https://github.com/sebadob/rauthy", - "repository": "https://github.com/sebadob/rauthy", - "architectures": [ - "amd64", - "arm64" - ], - "logo": "https://cdn.jsdelivr.net/gh/selfhst/icons@main/webp/rauthy.webp", - "description": "Rauthy is a single sign-on identity and access management server. It is an OpenID Connect and OAuth 2 provider with an admin UI, passkey (FIDO2/WebAuthn) and OTP multi-factor login, upstream login providers, SCIM, forward auth and PAM/SSH login.", - "install_methods": [ - { - "type": "default", - "script": "ct/rauthy.sh", - "config_path": "/opt/rauthy_data/config.toml", - "resources": { - "cpu": 4, - "ram": 4096, - "hdd": 12, - "os": "Debian", - "version": "13" - } - } - ], - "default_credentials": { - "username": "admin@localhost", - "password": null - }, - "notes": [ - { - "text": "Accept the self-signed certificate and sign in as admin@localhost with the password_plain value under [bootstrap] in /opt/rauthy_data/config.toml. Change it right away.", - "type": "info" - }, - { - "text": "Passkeys need a domain, so admin MFA is off. For production, set pub_url, rp_id and rp_origin to your domain before anyone registers a passkey, then add the admin's passkey and set admin_force_mfa = true.", - "type": "warning" - }, - { - "text": "Back up /opt/rauthy_data/config.toml together with the database in /opt/rauthy_data/hiqlite. Without its encryption keys the database is unusable.", - "type": "warning" - } - ] -}