drop force flag #2287
No reviewers
Labels
No labels
1week
2weeks
Failed compliance check
IP cameras
NATS
Possible security concern
Review effort 1/5
Review effort 2/5
Review effort 3/5
Review effort 4/5
Review effort 5/5
UI
aardvark
accessibility
amd64
api
arm64
auth
back-end
bgp
blog
bug
build
checkers
ci-cd
cleanup
cnpg
codex
core
dependencies
device-management
documentation
duplicate
dusk
ebpf
enhancement
eta 1d
eta 1hr
eta 3d
eta 3hr
feature
fieldsurvey
github_actions
go
good first issue
help wanted
invalid
javascript
k8s
log-collector
mapper
mtr
needs-triage
netflow
network-sweep
observability
oracle
otel
plug-in
proton
python
question
reddit
redhat
research
rperf
rperf-checker
rust
sdk
security
serviceradar-agent
serviceradar-agent-gateway
serviceradar-web
serviceradar-web-ng
siem
snmp
sysmon
topology
ubiquiti
wasm
wontfix
zen-engine
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
carverauto/serviceradar!2287
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "refs/pull/2287/head"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Imported from GitHub pull request.
Original GitHub pull request: #1715
Original author: @mfreeman451
Original URL: https://github.com/carverauto/serviceradar/pull/1715
Original created: 2025-10-06T00:30:32Z
Original updated: 2025-10-06T00:36:13Z
Original head: carverauto/serviceradar:core/auth_issue
Original base: main
Original merged: 2025-10-06T00:36:10Z by @mfreeman451
PR Type
Enhancement
Description
--forceflag from JWT key generation commandDiagram Walkthrough
File Walkthrough
serviceradar-core.yaml
Remove force flag from JWT generationk8s/demo/base/serviceradar-core.yaml
--forceflag fromserviceradar-cli generate-jwt-keyscommandin init container
Imported GitHub PR comment.
Original author: @qodo-code-review[bot]
Original URL: https://github.com/carverauto/serviceradar/pull/1715#issuecomment-3369566824
Original created: 2025-10-06T00:30:47Z
PR Compliance Guide 🔍
Below is a summary of compliance checks for this PR:
Sensitive key storage
Description: Generating and storing JWT keys at /var/lib/serviceradar within an init container may
persist sensitive key material to a writable path whose security and lifecycle are
unclear, risking exposure if the volume is not adequately protected or rotated.
serviceradar-core.yaml [31-31]
Referred Code
🎫 No ticket provided
Codebase context is not defined
Follow the guide to enable codebase context checks.
No custom compliance provided
Follow the guide to enable custom compliance check.
Compliance status legend
🟢 - Fully Compliant🟡 - Partial Compliant
🔴 - Not Compliant
⚪ - Requires Further Human Verification
🏷️ - Compliance label
Imported GitHub PR comment.
Original author: @qodo-code-review[bot]
Original URL: https://github.com/carverauto/serviceradar/pull/1715#issuecomment-3369567907
Original created: 2025-10-06T00:31:35Z
PR Code Suggestions ✨
Explore these optional code suggestions:
Prevent JWT key regeneration on restarts
Make the JWT key generation process idempotent by checking for the existence of
the configuration file before initializing it. This will prevent key
regeneration on every pod restart, which currently invalidates all existing
tokens.
k8s/demo/base/serviceradar-core.yaml [28-31]
Suggestion importance[1-10]: 10
__
Why: The suggestion correctly identifies a critical flaw in the init container's logic where JWT keys are regenerated on every pod restart, which would invalidate all user sessions and API tokens. The proposed fix to make the initialization idempotent is the correct approach to ensure key stability.