Skip to content

Commit 92dcd10

Browse files
feat: Adding support of python v3.13 and migrating from pysnmplib to lextudio's pysnmp v7.1.0
- Replaced pysnmplib with lextudio's pysmp v7.1.0 - Moved from pysnmp-pyasn1 to lextudio's pyasn1 - Moved from pysnmp-pysmi to lextudio's pysmi - Included pysnmpcrypto (maintained by lextudio's) for stronger crypto algorithms to used with pysnmp v6+ - Updated SNMP walk implementation from bulkCmd to bulkWalkCmd - Added concurrency support for bulkWalkCmd-based SNMP requests - Made SC4SNMP compatible with Python 3.13 - Updated SNMP walk implementation from bulkCmd to bulkWalkCmd - Added concurrency support for bulkWalkCmd-based SNMP requests - Introduced deploymentUser in values.yaml - Added DEPLOYMENT_USER env variable for Docker Compose deployment
1 parent da13ecd commit 92dcd10

File tree

97 files changed

+1621
-552
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

97 files changed

+1621
-552
lines changed

.github/workflows/ci-docker-deployment.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ jobs:
1414
strategy:
1515
matrix:
1616
python-version:
17-
- 3.10
17+
- 3.13
1818
steps:
1919
- name: Check out code
2020
uses: actions/checkout@v4

.github/workflows/ci-main.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ jobs:
7070
- uses: actions/checkout@v4
7171
- uses: actions/setup-python@v5
7272
with:
73-
python-version: "3.10"
73+
python-version: "3.13"
7474
- uses: pre-commit/[email protected]
7575

7676
trivy-scan:
@@ -102,7 +102,7 @@ jobs:
102102
strategy:
103103
matrix:
104104
python-version:
105-
- "3.10"
105+
- "3.13"
106106
steps:
107107
- uses: actions/checkout@v4
108108
- name: Setup python
@@ -197,7 +197,7 @@ jobs:
197197
- name: Setup python
198198
uses: actions/setup-python@v5
199199
with:
200-
python-version: "3.10"
200+
python-version: "3.13"
201201
- name: Install docker compose
202202
run: |
203203
# Add Docker's official GPG key:

.github/workflows/ci-ui-tests.yaml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ jobs:
5454
- name: Set up Python
5555
uses: actions/setup-python@v5
5656
with:
57-
python-version: "3.10"
57+
python-version: "3.13"
5858

5959
- name: remove not used docker images
6060
run: |
@@ -75,6 +75,7 @@ jobs:
7575
sudo snap install microk8s --classic --channel=1.33/stable
7676
sudo apt-get install snmp -y
7777
sudo apt-get install python3-dev -y
78+
sudo apt-get install snmp-mibs-downloader -y
7879
7980
- name: run automatic_setup_microk8s.sh
8081
run: integration_tests/automatic_setup_microk8s.sh

.github/workflows/mike.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ jobs:
4040
token: "${{ secrets.PAT_CLATOOL }}"
4141
- uses: actions/setup-python@v5
4242
with:
43-
python-version: "3.10"
43+
python-version: "3.13"
4444
- name: Upload Docs
4545
run: |
4646
sudo apt update

.github/workflows/offline-installation.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ jobs:
1414
strategy:
1515
matrix:
1616
python-version:
17-
- "3.10"
17+
- "3.13"
1818
steps:
1919
- name: Check out code
2020
uses: actions/checkout@v4

Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
FROM python:3.10-alpine AS base
1+
FROM python:3.13-alpine AS base
22

33
ENV PYTHONFAULTHANDLER=1 \
44
PYTHONHASHSEED=random \

charts/splunk-connect-for-snmp/Chart.lock

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,6 @@ dependencies:
77
version: 20.2.2
88
- name: mibserver
99
repository: https://pysnmp.github.io/mibs/charts/
10-
version: 1.15.25
11-
digest: sha256:b7c83eee7395cbc67d21833ab21da52d1d43481c798e52d0a9a7f0a7c3fe05b4
12-
generated: "2025-08-13T13:56:57.099109+02:00"
10+
version: 1.15.26
11+
digest: sha256:ee63b56baa2c866fdcb149f6d64356b756d93ec36b2446f83a33b7eac46c854a
12+
generated: "2025-10-24T07:43:59.633899993Z"

charts/splunk-connect-for-snmp/templates/scheduler/deployment.yaml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,14 @@ spec:
4343
"celery", "beat",
4444
]
4545
env:
46+
- name: USER
47+
value: {{ .Values.deploymentUser | default "sc4snmp" | quote }}
48+
- name: LOGNAME
49+
value: {{ .Values.deploymentUser | default "sc4snmp" | quote }}
50+
- name: LNAME
51+
value: {{ .Values.deploymentUser | default "sc4snmp" | quote }}
52+
- name: USERNAME
53+
value: {{ .Values.deploymentUser | default "sc4snmp" | quote }}
4654
- name: CONFIG_PATH
4755
value: /app/config/config.yaml
4856
- name: REDIS_URL

charts/splunk-connect-for-snmp/templates/sim/deployment.yaml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,14 @@ spec:
4444
imagePullPolicy: {{ .Values.sim.pullPolicy | default "IfNotPresent" }}
4545
args: ["--config=/config/otel-collector-config.yaml"]
4646
env:
47+
- name: USER
48+
value: {{ .Values.deploymentUser | default "sc4snmp" | quote }}
49+
- name: LOGNAME
50+
value: {{ .Values.deploymentUser | default "sc4snmp" | quote }}
51+
- name: LNAME
52+
value: {{ .Values.deploymentUser | default "sc4snmp" | quote }}
53+
- name: USERNAME
54+
value: {{ .Values.deploymentUser | default "sc4snmp" | quote }}
4755
- name: signalfxToken
4856
valueFrom:
4957
secretKeyRef:

charts/splunk-connect-for-snmp/templates/tests/test-connection.yaml

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,5 +27,15 @@ spec:
2727
memory: 128Mi
2828
requests:
2929
cpu: 100m
30-
memory: 128Mi
30+
memory: 128Mi
31+
env:
32+
- name: USER
33+
value: {{ .Values.deploymentUser | default "sc4snmp" | quote }}
34+
- name: LOGNAME
35+
value: {{ .Values.deploymentUser | default "sc4snmp" | quote }}
36+
- name: LNAME
37+
value: {{ .Values.deploymentUser | default "sc4snmp" | quote }}
38+
- name: USERNAME
39+
value: {{ .Values.deploymentUser | default "sc4snmp" | quote }}
40+
3141
restartPolicy: Never

0 commit comments

Comments
 (0)