From 065dd5df26e04800557577f5c6704db4aaa3135f Mon Sep 17 00:00:00 2001 From: Sumner Robinson Date: Fri, 20 Feb 2026 18:20:08 +0000 Subject: [PATCH 1/2] remove dashboards from release logic --- README.md | 24 ++++++++++++++++++++++++ nfpm.yaml | 3 --- 2 files changed, 24 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 5fdd657..4c2473f 100644 --- a/README.md +++ b/README.md @@ -43,10 +43,34 @@ pip install -e . | OS | NetSapiens Version | Status | |----|-------------------|--------| +| Ubuntu 24.04 LTS | v44.x | Tested | | Ubuntu 22.04 LTS | v44.x | Tested | +| Ubuntu 20.04 LTS | v44.x | Workaround required | Other Debian-based distributions may work but are untested. Contributions and test reports for additional platforms are welcome. +### Ubuntu 20.04 Workaround + +Ubuntu 20.04 ships with Python 3.8, but nssec requires Python 3.10+. Install Python 3.10 from the deadsnakes PPA: + +```bash +sudo apt install software-properties-common -y +sudo add-apt-repository ppa:deadsnakes/ppa -y +sudo apt update +sudo apt install python3.10 python3.10-venv -y +``` + +Then use `python3.10` instead of `python3` when setting up: + +```bash +git clone https://github.com/jsrobinson3/ns-security.git +cd ns-security +python3.10 -m venv .venv +source .venv/bin/activate +pip install --upgrade pip +pip install -e . +``` + ### Requirements - Root access required for WAF installation and hardening commands diff --git a/nfpm.yaml b/nfpm.yaml index 78b9bbe..e5755aa 100644 --- a/nfpm.yaml +++ b/nfpm.yaml @@ -19,9 +19,6 @@ contents: - src: rules/ dst: /usr/share/nssec/rules/ - - src: dashboards/ - dst: /usr/share/nssec/dashboards/ - - src: insight/ dst: /usr/share/nssec/insight/ From e25d7383771831033baec1ecd2f739056a943df1 Mon Sep 17 00:00:00 2001 From: Sumner Robinson Date: Fri, 20 Feb 2026 18:37:58 +0000 Subject: [PATCH 2/2] Update build to allow U20 --- .github/workflows/release.yml | 4 ++-- README.md | 26 +++----------------------- 2 files changed, 5 insertions(+), 25 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index ad63731..64e35dc 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -15,7 +15,7 @@ permissions: jobs: test: - runs-on: ubuntu-22.04 + runs-on: ubuntu-20.04 steps: - uses: actions/checkout@v4 - uses: actions/setup-python@v5 @@ -28,7 +28,7 @@ jobs: build: needs: test - runs-on: ubuntu-22.04 + runs-on: ubuntu-20.04 steps: - uses: actions/checkout@v4 diff --git a/README.md b/README.md index 4c2473f..4639acf 100644 --- a/README.md +++ b/README.md @@ -27,7 +27,7 @@ sudo apt install ./nssec_0.1.0_amd64.deb The `.deb` installs the binary to `/usr/local/bin/nssec` and reference files (rules, dashboards, insight templates) to `/usr/share/nssec/`. -### From source +### From source (requires Python 3.10+) ```bash git clone https://github.com/jsrobinson3/ns-security.git @@ -45,31 +45,11 @@ pip install -e . |----|-------------------|--------| | Ubuntu 24.04 LTS | v44.x | Tested | | Ubuntu 22.04 LTS | v44.x | Tested | -| Ubuntu 20.04 LTS | v44.x | Workaround required | +| Ubuntu 20.04 LTS | v44.x | Binary/.deb only | Other Debian-based distributions may work but are untested. Contributions and test reports for additional platforms are welcome. -### Ubuntu 20.04 Workaround - -Ubuntu 20.04 ships with Python 3.8, but nssec requires Python 3.10+. Install Python 3.10 from the deadsnakes PPA: - -```bash -sudo apt install software-properties-common -y -sudo add-apt-repository ppa:deadsnakes/ppa -y -sudo apt update -sudo apt install python3.10 python3.10-venv -y -``` - -Then use `python3.10` instead of `python3` when setting up: - -```bash -git clone https://github.com/jsrobinson3/ns-security.git -cd ns-security -python3.10 -m venv .venv -source .venv/bin/activate -pip install --upgrade pip -pip install -e . -``` +> **Ubuntu 20.04 note:** U20 ships with Python 3.8 but nssec requires 3.10+. Install from source is not supported on U20 — use the standalone binary or .deb package instead. ### Requirements