Skip to content

Commit 431bc25

Browse files
authored
release(v3.9.1): post-rotation bootstrap fix and startup script cleanup
- admin(startup): tolerate transient adminConfig decrypt fallback during persistent-token key rotation bootstrap - docker(startup): split persistent-token key file export assignment to satisfy shellcheck
1 parent f2b749c commit 431bc25

2 files changed

Lines changed: 28 additions & 1 deletion

File tree

CHANGELOG.md

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,31 @@
11
# Changelog
22

3+
## Changes 03/15/2026 (v3.9.1)
4+
5+
`release(v3.9.1): post-rotation bootstrap fix and startup script cleanup`
6+
7+
**Commit message**
8+
9+
```text
10+
release(v3.9.1): post-rotation bootstrap fix and startup script cleanup
11+
12+
- admin(startup): tolerate transient adminConfig decrypt fallback during persistent-token key rotation bootstrap
13+
- docker(startup): split persistent-token key file export assignment to satisfy shellcheck
14+
```
15+
16+
**Fixed**
17+
18+
- **Post-rotation bootstrap stability**
19+
- Fixed a bootstrap path that could white-page the app if `adminConfig.json` was re-read during a persistent-token key rotation transition and decryption temporarily returned a non-string value.
20+
- The startup config path now falls back safely instead of fataling during `json_decode(...)`.
21+
22+
**Changed**
23+
24+
- **Startup script shell hygiene**
25+
- Adjusted the persistent-token key file load/export sequence in `start.sh` so CI shell linting passes without changing runtime behavior.
26+
27+
---
28+
329
## Changes 03/14/2026 (v3.9.0)
430

531
`release(v3.9.0): persistent-token key lifecycle updates and admin rotation workflow`

start.sh

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,8 @@ mkdir -p /var/www/users /var/www/metadata
8383
if [ -n "${PERSISTENT_TOKENS_KEY:-}" ]; then
8484
export PERSISTENT_TOKENS_KEY_SOURCE="${PERSISTENT_TOKENS_KEY_SOURCE:-env}"
8585
elif [ -s "${PERSISTENT_TOKENS_KEY_FILE}" ]; then
86-
export PERSISTENT_TOKENS_KEY="$(tr -d '\r\n' < "${PERSISTENT_TOKENS_KEY_FILE}")"
86+
PERSISTENT_TOKENS_KEY="$(tr -d '\r\n' < "${PERSISTENT_TOKENS_KEY_FILE}")"
87+
export PERSISTENT_TOKENS_KEY
8788
export PERSISTENT_TOKENS_KEY_SOURCE="file"
8889
echo "[startup] Loaded persistent tokens key from metadata/persistent_tokens.key."
8990
elif has_existing_persistent_key_state; then

0 commit comments

Comments
 (0)