Skip to content
This repository has been archived by the owner on Aug 1, 2024. It is now read-only.

INT-6423 Asset tags support #215

Open
wants to merge 3 commits into
base: main
Choose a base branch
from

Conversation

eXtremeX
Copy link
Contributor

This feature is supported internally by JupiterOne, however the current implementation is not fully compatible with tenable tag properties specifically the support of multiple tags and accepting them in the form of tag.:[] as payload.

Any tag data automatically gets converted into tag.: via assignTags. This can't be overridden as any attempt to fill tags property or create tag. automatically gets replaced with tags generated by this function.

Currently, assignTags and assignTagMap only supports one tag at a time. If support for multiple tags are needed, this can be included by adding support for multiple tags in JupiterOne sdk or using a different property like tags.:.

This 'solution' will add multiple tags on a different property via tags.<key> although a more appropriate solution might be to add multiple tags support in the sdk by updating assignTags and assignTagMap.

@eXtremeX eXtremeX requested a review from a team as a code owner February 14, 2023 11:57
let tagKey;
return data.reduce((obj, curTag) => {
tagKey = `tags.${curTag.key}`;
if (Object.keys(obj).indexOf(tagKey) != -1) {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why not tagKey in obj?

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants