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

Dependency ownership: Unused renovate rules #205966

Open
legrego opened this issue Jan 8, 2025 · 1 comment
Open

Dependency ownership: Unused renovate rules #205966

legrego opened this issue Jan 8, 2025 · 1 comment
Labels
Feature:Hardening Harding of Kibana from a security perspective Team:Security Team focused on: Auth, Users, Roles, Spaces, Audit Logging, and more!

Comments

@legrego
Copy link
Member

legrego commented Jan 8, 2025

Our dependency management CLI allows us to find dependencies without owners (#196767). In order to keep our renovate.json file as tidy as possible, we should also support looking in the other direction.

Note

Script names, flags, options, and syntaxes below are for illustrative purposes only. You are free to develop these as you see fit.

Script to identify unused renovate rules

A script should exist which generates a list of renovate rules which reference dependencies that do not exist in Kibana's package.json.

node scripts/dependency_ownership.js --find-unused-rules

The script should output its result in JSON format.

Script to remove unused renovate rules

A script should exist which removes renovate rules which reference dependencies that do not exist in Kibana's package.json.

node scripts/dependency_ownership.js --remove-unused-rules

The script should output a summary of the actions taken.

@legrego legrego added Feature:Hardening Harding of Kibana from a security perspective Team:Security Team focused on: Auth, Users, Roles, Spaces, Audit Logging, and more! labels Jan 8, 2025
@elasticmachine
Copy link
Contributor

Pinging @elastic/kibana-security (Team:Security)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Feature:Hardening Harding of Kibana from a security perspective Team:Security Team focused on: Auth, Users, Roles, Spaces, Audit Logging, and more!
Projects
None yet
Development

No branches or pull requests

2 participants