Skip to content

Commit 7d6f006

Browse files
authored
Merge pull request #1558 from netbox-community/develop
Version 3.4.2
2 parents ae5f7d2 + 4965e7e commit 7d6f006

File tree

9 files changed

+20
-12
lines changed

9 files changed

+20
-12
lines changed

.github/workflows/push.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,12 +36,13 @@ jobs:
3636
SUPPRESS_POSSUM: true
3737
LINTER_RULES_PATH: /
3838
VALIDATE_ALL_CODEBASE: false
39+
VALIDATE_BIOME_FORMAT: false
3940
VALIDATE_CHECKOV: false
4041
VALIDATE_DOCKERFILE: false
42+
VALIDATE_GITHUB_ACTIONS_ZIZMOR: false
4143
VALIDATE_GITLEAKS: false
4244
VALIDATE_JSCPD: false
4345
VALIDATE_TRIVY: false
44-
VALIDATE_GITHUB_ACTIONS_ZIZMOR: false
4546
FILTER_REGEX_EXCLUDE: (.*/)?(LICENSE|configuration/.*)
4647
EDITORCONFIG_FILE_NAME: .editorconfig-checker.json
4748
DOCKERFILE_HADOLINT_FILE_NAME: .hadolint.yaml

Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
ARG FROM
22
FROM ${FROM} AS builder
33

4-
COPY --from=ghcr.io/astral-sh/uv:0.8 /uv /usr/local/bin/
4+
COPY --from=ghcr.io/astral-sh/uv:0.9 /uv /usr/local/bin/
55
RUN export DEBIAN_FRONTEND=noninteractive \
66
&& apt-get update -qq \
77
&& apt-get upgrade \

README.md

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -39,12 +39,9 @@ There is a more complete [_Getting Started_ guide on our wiki][wiki-getting-star
3939
```bash
4040
git clone -b release https://github.com/netbox-community/netbox-docker.git
4141
cd netbox-docker
42-
tee docker-compose.override.yml <<EOF
43-
services:
44-
netbox:
45-
ports:
46-
- 8000:8080
47-
EOF
42+
# Copy the example override file
43+
cp docker-compose.override.yml.example docker-compose.override.yml
44+
# Read and edit the file to your liking
4845
docker compose pull
4946
docker compose up
5047
```

VERSION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
3.4.1
1+
3.4.2

configuration/configuration.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -116,6 +116,11 @@ def _environ_get_and_map(variable_name: str, default: str | None = None, map_fn:
116116
# https://docs.djangoproject.com/en/stable/ref/settings/#std:setting-SECRET_KEY
117117
SECRET_KEY = _read_secret('secret_key', environ.get('SECRET_KEY', ''))
118118

119+
API_TOKEN_PEPPERS = {}
120+
if api_token_pepper := _read_secret('api_token_pepper_1', environ.get('API_TOKEN_PEPPER_1', '')):
121+
API_TOKEN_PEPPERS.update({1: api_token_pepper})
122+
123+
119124

120125
#########################
121126
# #

docker/launch-netbox.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ load_configuration() {
3636
http://localhost/config
3737
)
3838
if [ "$RESP_CODE" != "200" ]; then
39-
echo "⚠️ Could no load Unit configuration"
39+
echo "⚠️ Could not load Unit configuration"
4040
kill "$(cat /opt/unit/unit.pid)"
4141
return 1
4242
fi

env/netbox.env

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
API_TOKEN_PEPPER_1=Qy+F=OTeGskWQ(wTMgjc+NPPlz6YwFXY=KHIIg=wpYXT&e(6u8
12
CORS_ORIGIN_ALLOW_ALL=True
23
DB_HOST=postgres
34
DB_NAME=netbox

requirements-container.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
django-auth-ldap==5.2.0
2-
dulwich==0.24.1
2+
dulwich==0.24.8
33
python3-saml==1.16.0
44
--no-binary lxml
55
--no-binary xmlsec
6-
sentry-sdk[django]==2.39.0
6+
sentry-sdk[django]==2.43.0

test-configuration/test_config.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,3 +10,7 @@
1010
ALLOW_TOKEN_RETRIEVAL = True
1111

1212
DEFAULT_PERMISSIONS = {}
13+
14+
API_TOKEN_PEPPERS = {
15+
1: 'TEST-VALUE-DO-NOT-USE-TEST-VALUE-DO-NOT-USE-TEST-VALUE-DO-NOT-USE',
16+
}

0 commit comments

Comments
 (0)