fixing jwks issues #2279
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!2279
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "refs/pull/2279/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: #1707
Original author: @mfreeman451
Original URL: https://github.com/carverauto/serviceradar/pull/1707
Original created: 2025-10-05T18:23:16Z
Original updated: 2025-10-05T18:24:33Z
Original head: carverauto/serviceradar:k8s/kong_config_jwks
Original base: main
Original merged: 2025-10-05T18:24:05Z by @mfreeman451
PR Type
Bug fix, Enhancement
Description
Fix JWKS key generation using dedicated init container
Separate template and runtime configuration paths
Improve configuration file handling and error reporting
Remove CLI dependency from main init script
Diagram Walkthrough
File Walkthrough
configmap.yaml
Refactor configuration handling and remove CLI dependencyk8s/demo/base/configmap.yaml
serviceradar-core.yaml
Add init container for JWKS key generationk8s/demo/base/serviceradar-core.yaml
Imported GitHub PR comment.
Original author: @qodo-code-review[bot]
Original URL: https://github.com/carverauto/serviceradar/pull/1707#issuecomment-3369235648
Original created: 2025-10-05T18:23:37Z
PR Compliance Guide 🔍
Below is a summary of compliance checks for this PR:
Key rotation risk
Description: The init container runs 'serviceradar-cli generate-jwt-keys --force' which may overwrite
existing key material each deployment, potentially invalidating existing RS256 tokens and
causing service disruption.
serviceradar-core.yaml [21-37]
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/1707#issuecomment-3369236148
Original created: 2025-10-05T18:24:33Z
PR Code Suggestions ✨
Explore these optional code suggestions:
Prevent overwriting existing configuration files
In the
init-core-jwksinit container, modify the script to check if theconfiguration file exists before copying the template to prevent overwriting
generated JWT keys on pod restarts.
k8s/demo/base/serviceradar-core.yaml [21-31]
Suggestion importance[1-10]: 9
__
Why: The suggestion correctly identifies a critical flaw where the init container would overwrite JWT keys on every pod restart, defeating the purpose of the persistent volume and potentially causing authentication issues for clients.