Skip to content

Auto conversion of detections #421

Open

Description

@geowalrus4gh

feature

Is it possible to replace the scan findings with the target version's declarations?

Describe the solution you'd like

Something like "pluto detect-files --target-versions k8s=v1.24.0 --replace"

This will replace the version definition with the target definition and ensure the yaml is compatible with target spec. Throw error if not backward compatible.

Activity

  1. added
    enhancementAdding additional functionality or improvements
    triageThis bug needs triage
    on Dec 6, 2022
  2. sudermanjr commented on Dec 6, 2022

    @sudermanjr
    Member

    This is an interesting idea. We've talked about it in the past I believe, but never made any serious effort. This would be a fairly large change, as we would have to modify the versions spec to include an indicator of backward compatibility

  3. changed the title [-]Auto convertion of detections[/-] [+]Auto conversion of detections[/+] on Dec 6, 2022
  4. added
    priority: couldFuture work depending on bandwidth and availability
    pinnedPrevents stalebot from removing
    and removed
    triageThis bug needs triage
    on Dec 6, 2022
  5. hmitsis-dev commented on Apr 18, 2024

    @hmitsis-dev

    Isnt it already working kinda working?
    Tried to replicate it:
    pluto detect-files -f api-dreprecated.yaml
    image
    You see the replacement column, in my case i had the yaml files with deprecations in the directory i launched the command.
    To fix the "issues" you can just change the apiVersion to the one indicated to the column of the replacement.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementAdding additional functionality or improvementspinnedPrevents stalebot from removingpriority: couldFuture work depending on bandwidth and availability

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions