packetchaos / navi

A Command-line tool which leverages the Tenable.io API to reduce the time it takes to get information that is common during remediation or a troubleshooting event
GNU General Public License v3.0
72 stars 26 forks source link

Apply an existing tag #31

Closed gu4xin1m closed 1 year ago

gu4xin1m commented 1 year ago

Hi.

It is possible to have the tag feature allow applying an existing tag ?

root@3a529608fa78:/usr/src/app# navi tag --c Randori --v high --file ips.csv

The object you tried to create may already exist

In this case both tag category and value already exist , I just need to apply it to a list of ips.

packetchaos commented 1 year ago

Yes. I will add it to the backlog.

On Thu, Jul 13, 2023 at 6:15 AM Everton Vieira @.***> wrote:

Hi.

It is possible to have the tag feature allow applying an existing tag ?

@.***:/usr/src/app# navi tag --c Randori --v high --file ips.csv

The object you tried to create may already exist

In this case both tag category and value already exist , I just need to apply it to a list of ips.

— Reply to this email directly, view it on GitHub https://github.com/packetchaos/navi/issues/31, or unsubscribe https://github.com/notifications/unsubscribe-auth/AHWPVTPR4JMFDHDFUT6PIILXP7YFTANCNFSM6AAAAAA2I5ZUKE . You are receiving this because you are subscribed to this thread.Message ID: @.***>

packetchaos commented 1 year ago

I updated the code to allow for updates. However, know that tag rules are not updated by navi. There are too many nuances to updating a tag rule.

Instead the tag --file functionality looks for IPs in the navi.db and looks up the UUID to tag by UUID. This will apply the tag to all of the IPs found in the navi.db.

The current functionality was moved to tagrule --file to align with the future of tagrule methods

Any updates on Tags that are dynamic will fail.

packetchaos commented 1 year ago

The next release to pip will be Monday or earlier.