From 9924d87dade78d14959d5814d7e4cb20cea2addb Mon Sep 17 00:00:00 2001 From: TechnoSavage Date: Wed, 14 Jan 2026 11:54:55 -0500 Subject: [PATCH 1/5] added centra label to asset tags mapping in centrav4. Corrected typo in centrav3. --- .../custom-integration-centra-v3-api.star | 2 +- .../custom-integration-centra-v4-api.star | 10 +++++++++- 2 files changed, 10 insertions(+), 2 deletions(-) diff --git a/akamai-guardicore-centra/custom-integration-centra-v3-api.star b/akamai-guardicore-centra/custom-integration-centra-v3-api.star index 97720a2..656957a 100644 --- a/akamai-guardicore-centra/custom-integration-centra-v3-api.star +++ b/akamai-guardicore-centra/custom-integration-centra-v3-api.star @@ -82,7 +82,7 @@ def build_assets(assets): agent_labels = agent_info.get('labels', []) for label in agent_labels: custom_attributes['agent.labels.' + str(agent_labels.index(label))] = label - labels = asset.get('lables', []) + labels = asset.get('labels', []) for label in labels: for k, v in label.items(): custom_attributes['labels.' + str(labels.index(label)) + '.' + k ] = v diff --git a/akamai-guardicore-centra/custom-integration-centra-v4-api.star b/akamai-guardicore-centra/custom-integration-centra-v4-api.star index b39a41c..3746f3d 100644 --- a/akamai-guardicore-centra/custom-integration-centra-v4-api.star +++ b/akamai-guardicore-centra/custom-integration-centra-v4-api.star @@ -73,6 +73,13 @@ def build_assets(assets, token): label_mapping[k] = v name = label_mapping.get(guid, '') label_names.append(name) + + tags = [] + for label in label_names: + split_tag = label.split(':').strip() + reformat = split_tag[0] + '=' + split_tag[1] + tag_string = tag_string + ' ' + reformat + tags.append(tag_string) custom_attributes = { @@ -113,7 +120,8 @@ def build_assets(assets, token): os=os, first_seen_ts=first_seen, networkInterfaces=interfaces, - customAttributes=custom_attributes + customAttributes=custom_attributes, + tags=tags ) ) return assets_import From 37bdb770ee1eff98e642a18bbe528e16366c6c2b Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" Date: Wed, 14 Jan 2026 17:06:56 +0000 Subject: [PATCH 2/5] Auto: update integrations JSON and README --- docs/integrations.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/integrations.json b/docs/integrations.json index abab71b..1e0f19b 100644 --- a/docs/integrations.json +++ b/docs/integrations.json @@ -1,5 +1,5 @@ { - "lastUpdated": "2025-12-15T22:06:49.938502Z", + "lastUpdated": "2026-01-14T17:06:56.123071Z", "totalIntegrations": 30, "integrationDetails": [ { From 4e0c51f544e88482e953672f418d30efa990103e Mon Sep 17 00:00:00 2001 From: TechnoSavage Date: Wed, 14 Jan 2026 16:06:00 -0500 Subject: [PATCH 3/5] map centra labels to asset tags. --- .../custom-integration-centra-v4-api.star | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/akamai-guardicore-centra/custom-integration-centra-v4-api.star b/akamai-guardicore-centra/custom-integration-centra-v4-api.star index 3746f3d..801cb1f 100644 --- a/akamai-guardicore-centra/custom-integration-centra-v4-api.star +++ b/akamai-guardicore-centra/custom-integration-centra-v4-api.star @@ -76,10 +76,9 @@ def build_assets(assets, token): tags = [] for label in label_names: - split_tag = label.split(':').strip() - reformat = split_tag[0] + '=' + split_tag[1] - tag_string = tag_string + ' ' + reformat - tags.append(tag_string) + split_label = label.split(':') + tag = split_label[0] + '=' + split_label[1] + tags.append(tag) custom_attributes = { From 2bd1dca7b4fa5f3af6c596174d9affaeadb3a35f Mon Sep 17 00:00:00 2001 From: TechnoSavage Date: Thu, 15 Jan 2026 09:37:52 -0500 Subject: [PATCH 4/5] map centra labels to asset tags. --- .../custom-integration-centra-v4-api.star | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/akamai-guardicore-centra/custom-integration-centra-v4-api.star b/akamai-guardicore-centra/custom-integration-centra-v4-api.star index 801cb1f..896df31 100644 --- a/akamai-guardicore-centra/custom-integration-centra-v4-api.star +++ b/akamai-guardicore-centra/custom-integration-centra-v4-api.star @@ -76,9 +76,10 @@ def build_assets(assets, token): tags = [] for label in label_names: - split_label = label.split(':') - tag = split_label[0] + '=' + split_label[1] - tags.append(tag) + split_tag = label.split(':') + reformat = split_tag[0].strip() + '=' + split_tag[1].strip() + tag_string = tag_string + ' ' + reformat + tags.append(tag_string) custom_attributes = { From 8495dcc7b83631270f51178c864d5956467c5609 Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" Date: Thu, 15 Jan 2026 14:39:53 +0000 Subject: [PATCH 5/5] Auto: update integrations JSON and README --- docs/integrations.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/integrations.json b/docs/integrations.json index 1e0f19b..ba07448 100644 --- a/docs/integrations.json +++ b/docs/integrations.json @@ -1,5 +1,5 @@ { - "lastUpdated": "2026-01-14T17:06:56.123071Z", + "lastUpdated": "2026-01-15T14:39:53.188734Z", "totalIntegrations": 30, "integrationDetails": [ {