removing local auth requirement, didnt take in k8s though #2335
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!2335
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "refs/pull/2335/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: #1797
Original author: @mfreeman451
Original URL: https://github.com/carverauto/serviceradar/pull/1797
Original created: 2025-10-18T02:15:31Z
Original updated: 2025-10-21T21:56:53Z
Original head: carverauto/serviceradar:update/open_demo_site
Original base: main
Original merged: 2025-10-21T21:56:12Z by @mfreeman451
PR Type
Enhancement, Configuration changes
Description
Disable authentication in Kubernetes demo deployment
Set
AUTH_ENABLEDtofalsein both SRQL and Web servicesFix YAML indentation formatting for consistency
Diagram Walkthrough
File Walkthrough
serviceradar-srql.yaml
Disable auth and fix YAML formatting in SRQLk8s/demo/base/serviceradar-srql.yaml
AUTH_ENABLEDenvironment variable from"true"to"false"volumeMounts, and volumes sections
manifest
serviceradar-web.yaml
Disable auth and fix YAML formatting in Webk8s/demo/base/serviceradar-web.yaml
AUTH_ENABLEDenvironment variable from"true"to"false"and service sections
manifest
Imported GitHub PR comment.
Original author: @qodo-code-review[bot]
Original URL: https://github.com/carverauto/serviceradar/pull/1797#issuecomment-3417712401
Original created: 2025-10-18T02:15:53Z
You are nearing your monthly Qodo Merge usage quota. For more information, please visit here.
PR Compliance Guide 🔍
Below is a summary of compliance checks for this PR:
Authentication disabled
Description: Disabling web authentication via AUTH_ENABLED="false" exposes the demo web service without
auth, potentially allowing unauthenticated access to sensitive endpoints.
serviceradar-web.yaml [39-60]
Referred Code
Authentication disabled
Description: Disabling SRQL authentication via AUTH_ENABLED="false" while keeping
SRQL_REQUIRE_BEARER="true" may create inconsistent or misleading security posture and
allow unauthenticated access if bearer checks are bypassed.
serviceradar-srql.yaml [33-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/1797#issuecomment-3417713150
Original created: 2025-10-18T02:17:01Z
PR Code Suggestions ✨
Latest suggestions up to
4518b37Disable SRQL auth in demo
In
serviceradar-srql.yaml, set theAUTH_ENABLEDandSRQL_REQUIRE_BEARERenvironment variables to
"false"to align with the PR's goal of disablingauthentication.
k8s/demo/base/serviceradar-srql.yaml [33-36]
Suggestion importance[1-10]: 7
__
Why: The suggestion correctly identifies an inconsistency where
AUTH_ENABLEDwas set tofalseinserviceradar-web.yamlbut not inserviceradar-srql.yaml, which would likely cause authentication issues against the PR's intent.Preserve client source IP for gRPC
Add
externalTrafficPolicy: Localto theserviceradar-core-grpc-externalservicespecification to preserve the client's source IP address.
k8s/demo/prod/serviceradar-core-grpc-external.yaml [7-21]
Suggestion importance[1-10]: 6
__
Why: The suggestion provides a valid and beneficial improvement by recommending
externalTrafficPolicy: Localto preserve the client source IP, which is good practice forLoadBalancerservices, especially whenloadBalancerSourceRangesis used.Use a stable health endpoint
Change the liveness and readiness probes for
serviceradar-webto use a stable,unauthenticated endpoint like
/healthinstead of/login, sinceAUTH_ENABLEDisnow
false.k8s/demo/base/serviceradar-web.yaml [45-82]
[To ensure code accuracy, apply this suggestion manually]Suggestion importance[1-10]: 7
__
Why: This is a valid suggestion that improves the robustness of the health checks, as disabling authentication might change the behavior of the
/loginendpoint, potentially causing false negatives.Use explicit gRPC targetPort
In the
serviceradar-core-grpc-externalservice, changetargetPortfrom the namegrpcto the explicit port number50052to ensure correct traffic routing.k8s/demo/prod/serviceradar-core-grpc-external.yaml [4-21]
Suggestion importance[1-10]: 6
__
Why: The suggestion correctly identifies a potential misconfiguration where using a named
targetPortrelies on the Pod definition. Using an explicit port number makes the Service definition more robust and self-contained.Previous suggestions
Suggestions up to commit
3a8d4e2Update probes for disabled authentication
Update the
livenessProbeandreadinessProbeto use a dedicated health endpoint(e.g.,
/healthz) instead of/login, as the login page may be unavailable whenauthentication is disabled.
k8s/demo/base/serviceradar-web.yaml [67-82]
Suggestion importance[1-10]: 10
__
Why: This suggestion correctly identifies a critical issue where disabling authentication would likely cause the health probes to fail, preventing the service from becoming ready and leading to deployment failure.
Align bearer token requirement with authentication
Set the
SRQL_REQUIRE_BEARERenvironment variable to"false"to align withAUTH_ENABLEDbeing disabled, preventing a configuration conflict.k8s/demo/base/serviceradar-srql.yaml [33-36]
Suggestion importance[1-10]: 9
__
Why: The suggestion correctly identifies a logical configuration conflict between
AUTH_ENABLEDandSRQL_REQUIRE_BEARERthat would likely cause runtime errors, making this a critical fix.