fix(ui): correct font contrast and background colors in dark mode #84
No reviewers
Labels
No Label
Compat/Breaking
Kind/Bug
Kind/Documentation
Kind/Enhancement
Kind/Feature
Kind/Security
Kind/Testing
Priority
Critical
Priority
High
Priority
Low
Priority
Medium
Reviewed
Confirmed
Reviewed
Duplicate
Reviewed
Invalid
Reviewed
Won't Fix
Status
Abandoned
Status
Blocked
Status
Need More Info
No Milestone
No project
No Assignees
1 Participants
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: sarman/tftsr-devops_investigation#84
Loading…
Reference in New Issue
Block a user
No description provided.
Delete Branch "fix/dark-mode-font-contrast"
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?
Summary
bg-white(invisible againstbg-mutedin dark mode); changed tobg-backgrounddark:variants added throughoutTIER_CONFIGusedbg-*-50(near-white) backgrounds with dark text; replaced withdark:bg-*-950/30and light text colors for all three tiersbg-yellow-50; dark variants addedbg-amber-50/text-amber-800became unreadable on dark background; addeddark:bg-amber-900/20with lighter textFiles changed
src/components/PiiDiffViewer.tsxsrc/pages/Settings/Security.tsxsrc/components/ImageGallery.tsxsrc/pages/Settings/ShellExecution.tsxsrc/components/ShellApprovalModal.tsxsrc/pages/LogUpload/index.tsxTest plan
npm run test:run→ 268 pass,npx eslint . --max-warnings 0→ clean,npx tsc --noEmit→ cleanAutomated PR Review (qwen36-35b-a3b-nvfp4 via liteLLM):\n\nSummary
The PR removes a critical security function (
write_secure_temp_file) that enforced restrictive file permissions (0600) on kubeconfig files, replacing it withstd::fs::writewhich creates files with default (world-readable) permissions. This exposes sensitive cluster credentials in the temporary directory to other users on the system, constituting a significant security vulnerability.Findings
Evidence: The diff shows
write_secure_temp_file(which usedstd::os::unix::fs::OpenOptionsExtwithmode(0o600)on Unix) being replaced bystd::fs::writein multiple commands includingtest_kubectl_connection,discover_pods,list_namespaces,list_pods, etc. The function definition and its usage were removed entirely.Fix: Restore the
write_secure_temp_filefunction or ensure all kubeconfig writes enforce restrictive permissions (0600) to prevent credential leakage to other local users.Verdict: REQUEST CHANGES