Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Create a TUI Experience for Central Monitoring of Policy Violation using SafeDep Cloud API #348

Open
abhisek opened this issue Feb 11, 2025 · 1 comment
Assignees

Comments

@abhisek
Copy link
Member

abhisek commented Feb 11, 2025

SafeDep Cloud integration allows vet to sync its finding with SafeDep Cloud. The newly introduced ListPolicyViolation API can be used to provide a TUI in vet to continuously monitor for policy violations across all repositories and take action based on the policy violation. For example, notify a slack channel when a specific policy violation occurs.

Example usage:

vet cloud policy-violations monitor

This should start the TUI and interactively show all violations as and when they occur. The violations will be sorted by time and the most recent violation will be shown on top.

Optionally invoke an action when a new violation is found since a time

vet cloud policy-violations monitor --since now --exec 'python /path/to/script.py'

/path/to/script.py will be invoked with 1 arg containing file path to the JSON contents of the policy violation message.

@abhisek abhisek self-assigned this Feb 11, 2025
@insaaniManav
Copy link
Contributor

@abhisek I would like to work on this

@abhisek abhisek assigned insaaniManav and unassigned abhisek Feb 22, 2025
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

No branches or pull requests

2 participants