tftsr-devops_investigation/src-tauri/src
Shaun Arman 1a9c3bd65a
All checks were successful
Test / rust-fmt-check (pull_request) Successful in 1m20s
Test / frontend-tests (pull_request) Successful in 1m41s
Test / frontend-typecheck (pull_request) Successful in 1m43s
Test / rust-clippy (pull_request) Successful in 3m7s
PR Review Automation / review (pull_request) Successful in 4m11s
Test / rust-tests (pull_request) Successful in 4m27s
fix(sudo): enforce username scope and singleton row in sudo_config
Fixes two bugs identified in the AI code review:

1. INSERT OR REPLACE with a freshly generated UUID never matches the
   existing primary key, so it appended rows instead of replacing.
   Switch to DELETE-then-INSERT to guarantee exactly one row.

2. Username defaulted to empty string. Resolve it to the current OS
   user (USER/LOGNAME env vars, fallback 'local') so credentials are
   always bound to a specific user identity.

   test_sudo_password now passes -u <username> to sudo so the test
   runs scoped to the stored user, not an arbitrary one.

UI: show the configured username prominently in status; relabel the
field and add a scope hint below it.

Tests: test_set_sudo_singleton_delete_then_insert, three username
resolution tests.
2026-05-31 15:46:29 -05:00
..
ai feat(mcp): add MCP Server Support with TDD implementation 2026-05-23 16:23:48 -05:00
audit fix(security): harden secret handling and audit integrity 2026-04-04 23:37:05 -05:00
commands fix(sudo): enforce username scope and singleton row in sudo_config 2026-05-31 15:46:29 -05:00
db chore: update Cargo.lock for lopdf, zip, quick-xml deps 2026-05-31 13:51:08 -05:00
docs feat: populate RCA and postmortem docs with real timeline data 2026-04-19 18:13:30 -05:00
integrations feat: add timeline_events table, model, and CRUD commands 2026-04-19 18:02:38 -05:00
mcp fix(mcp): add timeouts, delete audit log, OAuth state nonce; improve PR review prompt 2026-05-23 17:08:23 -05:00
ollama fix: provider routing uses provider_type, Active badge, fmt 2026-03-31 08:05:13 -05:00
pii fix(pii): remove lookahead from hostname regex, fix fmt in analysis test 2026-04-05 09:59:19 -05:00
lib.rs chore: update Cargo.lock for lopdf, zip, quick-xml deps 2026-05-31 13:51:08 -05:00
main.rs feat: initial implementation of TFTSR IT Triage & RCA application 2026-03-14 22:36:25 -05:00
state.rs style(mcp): apply rustfmt formatting 2026-05-23 16:48:26 -05:00