Skip to content

Fix/ai auto path hardening#1056

Merged
beneiltis merged 2 commits into
developfrom
fix/ai-auto-path-hardening
Jul 9, 2026
Merged

Fix/ai auto path hardening#1056
beneiltis merged 2 commits into
developfrom
fix/ai-auto-path-hardening

Conversation

@beneiltis

Copy link
Copy Markdown
Contributor

No description provided.

beneiltis added 2 commits July 9, 2026 10:08
The background insight path ran with a nil ToolContext, which passes
every role/namespace check, while offering the model the full tool set
including cluster mutations and external MCP tools. It now gets the
read-only viewer allowlist, tool execution is additionally gated at
dispatch time, and every executed tool call is written to the audit
log (attributed to "AI Insights"). Also guards the transient
error/warning status fields with a mutex; they were written by the
ticker goroutine and read by status requests concurrently.
InjectAiPromptConfig (ConfigMap watch) replaced the config pointer
while the queue ticker read it without synchronization. Reads now go
through a locked snapshot and tolerate a nil config.

getAiFilters additionally returns UserFilters: filters created via the
UI were stored and toggleable but never evaluated, so they silently
never produced a task. Existing dormant user filters will start
creating tasks (bounded by the daily token limit).
@beneiltis beneiltis merged commit 78548d3 into develop Jul 9, 2026
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant