Skip to content

enforce cscli list limits and add metrics UI#48

Merged
hhftechnology merged 1 commit intodevfrom
pangolin
Mar 1, 2026
Merged

enforce cscli list limits and add metrics UI#48
hhftechnology merged 1 commit intodevfrom
pangolin

Conversation

@hhftechnology
Copy link
Owner

add a hard safety cap for cscli list commands (constants.MaxListLimit) and an ExecCommandTimeout. Introduce DecisionListLimit and AlertListLimit config options (env vars DECISION_LIST_LIMIT, ALERT_LIST_LIMIT) and an EffectiveLimit helper to compute the applied limit. Update dashboard handlers to pass a --limit argument to cscli (use strconv) to prevent huge result sets and potential memory exhaustion. Enhance the Metrics page (web/src/pages/Metrics.tsx) to render structured metrics as tabbed tables with flattening logic and improved UI/ordering.

add a hard safety cap for cscli list commands (constants.MaxListLimit) and an ExecCommandTimeout. Introduce DecisionListLimit and AlertListLimit config options (env vars DECISION_LIST_LIMIT, ALERT_LIST_LIMIT) and an EffectiveLimit helper to compute the applied limit. Update dashboard handlers to pass a --limit argument to cscli (use strconv) to prevent huge result sets and potential memory exhaustion. Enhance the Metrics page (web/src/pages/Metrics.tsx) to render structured metrics as tabbed tables with flattening logic and improved UI/ordering.
@chatgpt-codex-connector
Copy link

You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard.

@vercel
Copy link

vercel bot commented Mar 1, 2026

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
crowdsec-manager-docs Ready Ready Preview, Comment Mar 1, 2026 1:58pm

@hhftechnology hhftechnology merged commit c09b1b1 into dev Mar 1, 2026
3 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