1.1: исправления по аудиту безопасности

- hysteria2.sh: строгая проверка --email/--host/--sni, install.env через printf %q,
  SHA256 бинарника в самом скрипте, hy2 update из тега релиза
- 3x-ui.sh: SHA256 установщика 3X-UI, проверка --sni/--host, kit и kit-sub из тега,
  kit-sub без root (DynamicUser + LoadCredential), без cron для меню x-ui
- VERSION, CHANGELOG, SECURITY.md, CI (ShellCheck, Python, тесты генераторов),
  установка с проверкой в README

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Q7GrBSRPVXhrz3RAprWDnt
This commit is contained in:
itsnotkubrick
2026-09-30 18:11:43 +00:00
co-authored by Claude Opus 5.5
parent 4f1e5d98cc
commit fdae4588ea
8 changed files with 213 additions and 45 deletions
+25
View File
@@ -0,0 +1,25 @@
name: CI
on:
push:
pull_request:
permissions:
contents: read
jobs:
check:
runs-on: ubuntu-24.04
steps:
- uses: actions/checkout@v4
- name: ShellCheck
run: shellcheck -S warning -e SC1090,SC2034,SC2211 scripts/*.sh
- name: Python
run: python3 -m py_compile scripts/kit-sub.py
- name: Генераторы
run: node --test tools/test/*.test.js
- name: Версия в скриптах совпадает с VERSION
run: |
v=$(cat VERSION)
grep -q "^KIT_VERSION=\"$v\"" scripts/3x-ui.sh
grep -q "^KIT_VERSION=\"$v\"" scripts/hysteria2.sh