Mend.io
Port's Mend.io integration brings Mend projects and SCA security findings into your context lake so people and agents can query them.
Prerequisites
- A Mend.io account with the Organization Administrator role in the organization you want to sync.
- A Port organization with admin permissions.
- A Mend.io activation key from the Port integration card in Mend.
Obtain the Mend activation key
-
Log in to your Mend Platform tenant as an organization administrator, using your organization's Mend sign-in URL or SSO flow.
-
Click the cog icon to open Settings.
-
Select Integrations.
-
Under Third-Party Platforms, click the Port.io card.
-
Copy the activation key.
The activation key includes the integrator user, user key, Mend environment URL, and organization UUID. The integration derives the rest of the required Mend connection details from it.
For more information, see the Mend documentation.
Setup
Choose your preferred installation method below. Not sure which to pick? See the installation methods overview.
The prerequisites required for installation are listed below.
-
Go to the Mend.io Connectors page in Port.
-
Under
Select your installation method, chooseHosted by Port. -
Configure the
Installation parametersandAdvanced configurationas you wish (see below for details).
Installation parameters
Each integration requires specific parameters (such as an API token, a URL, etc.), as seen in Port's UI when installing it. Hover over the ⓘ icon next to each parameter to see more details about it.
Advanced configuration
- During the installation process each integration may have additional settings under the
Advanced configurationsection in Port's UI. Additionally, each integration has one or more settings that can be configured after installation. To do so, click on the integration's name in the Connectors page and navigate to theSettingtab. Hover over the ⓘ icon next to each setting to see more details about it.
Port secrets
Some integration settings require sensitive pieces of data, such as tokens. For these settings, Port secrets will be used, ensuring that your sensitive data is encrypted and secure.
When filling in such a setting, its value will be obscured (shown as ••••••••).
For each such setting, Port will automatically create a secret in your organization.
To see all secrets in your organization, follow these steps.
Port source IP addresses
When using this installation method, Port will make outbound calls to your 3rd-party applications from static IP addresses. You may need to add these addresses to your allowlist, in order to allow Port to interact with the integrated service:
- Europe (EU):
54.73.167.226,63.33.143.237,54.76.185.219 - United States (US):
3.234.37.33,54.225.172.136,3.225.234.99
-
Go to the Mend.io Connectors page in the Port app.
-
Select the
Self-hostedmethod. -
A
helmcommand will be displayed, with default values already filled out (e.g. your Port client ID, client secret, etc). Copy the command, replace the placeholders with your values, then run it in your terminal to install the integration.
Helm command
If you install the integration directly from your terminal, use the command below. Replace the placeholders with your Port credentials and Mend activation key.
helm repo add --force-update port-labs https://port-labs.github.io/helm-charts
helm upgrade --install mend port-labs/port-ocean \
--set port.clientId="<PORT_CLIENT_ID>" \
--set port.clientSecret="<PORT_CLIENT_SECRET>" \
--set port.baseUrl="https://api.port.io" \
--set initializePortResources=true \
--set scheduledResyncInterval=60 \
--set integration.identifier="mend" \
--set integration.type="mend" \
--set integration.eventListener.type="POLLING" \
--set integration.secrets.mendActivationKey="<MEND_ACTIVATION_KEY>" \
--set integration.config.fullSyncIntervalMinutes=720
Configuration parameters
Required parameters:
port.clientId- Your Port client ID (How to get the credentials).port.clientSecret- Your Port client secret (How to get the credentials).port.baseUrl- Your Port API URL (https://api.port.iofor EU,https://api.us.port.iofor US).integration.identifier- A unique identifier for your integration.integration.type- The integration type. Usemend.integration.eventListener.type- The event listener type. UsePOLLING.integration.secrets.mendActivationKey- The Mend.io activation key for the Port integration.
Optional parameters (click to expand)
integration.config.fullSyncIntervalMinutes- The interval in minutes between forced full resyncs. The default is720. Set0to make every resync a full resync.scheduledResyncInterval- The number of minutes between each polling resync.initializePortResources- Defaulttrue. When set totrue, the integration creates the default blueprints and Port app config mapping.
A malformed or truncated activation key causes the integration to fail with Provide a valid Mend Activation key. If you see this error, copy the full activation key from Mend again and update the integration credentials.
Configuration
Port integrations use a YAML mapping block to ingest data from the third-party API into Port.
The mapping uses the JQ JSON processor to select, modify, concatenate, transform, and perform other operations on existing fields and values from the integration API.
Default mapping configuration
This is the default mapping configuration for this integration:
Default mapping configuration (click to expand)
createMissingRelatedEntities: true
deleteDependentEntities: true
entityDeletionThreshold: 0
resources:
- kind: mend-project
selector:
query: 'true'
port:
entity:
mappings:
identifier: .uuid
title: .name
blueprint: '"mendProject"'
properties:
applicationName: .path
applicationUuid: .applicationUuid
createdAt: .creationDate
languages: '(.statistics.LIBRARY_TYPE_HISTOGRAM // {} | keys)'
lastScanned: 'if (.statistics.LAST_SCAN.lastScanTime // 0) > 0 then (.statistics.LAST_SCAN.lastScanTime / 1000 | todate) else null end'
totalCritical: '((.statistics.ALERTS.criticalSeverityVulnerabilities // 0) + (.statistics.IMG_SECURITY.imgCriticalVulnerabilities // 0))'
totalHigh: '((.statistics.ALERTS.highSeverityVulnerabilities // 0) + (.statistics.IMG_SECURITY.imgHighVulnerabilities // 0) + (.statistics.SAST_VULNERABILITIES_BY_SEVERITY.sastHighVulnerabilities // 0))'
totalMedium: '((.statistics.ALERTS.mediumSeverityVulnerabilities // 0) + (.statistics.IMG_SECURITY.imgMediumVulnerabilities // 0) + (.statistics.SAST_VULNERABILITIES_BY_SEVERITY.sastMediumVulnerabilities // 0))'
totalLow: '((.statistics.ALERTS.lowSeverityVulnerabilities // 0) + (.statistics.IMG_SECURITY.imgLowVulnerabilities // 0) + (.statistics.SAST_VULNERABILITIES_BY_SEVERITY.sastLowVulnerabilities // 0))'
dependencyFindingStats: .statistics.ALERTS
codeFindingStats: .statistics.SAST_VULNERABILITIES_BY_SEVERITY
containerFindingStats: .statistics.IMG_SECURITY
- kind: sca-finding
selector:
query: 'true'
port:
entity:
mappings:
identifier: .uuid
title: .name
blueprint: '"mendSCA"'
properties:
status: .findingInfo.findingStatus
severity: .vulnerability.severity
violations: if (.violations // 0) > 0 then true else false end
reachability: .reachability
malicious: if has("malicious") then .malicious else false end
description: .vulnerability.description
componentType: .component.componentType
componentName: .component.name
publishDate: .vulnerability.publishDate
detectedAt: .findingInfo.detectedAt
modifiedAt: .findingInfo.modifiedAt
cvssType: .vulnerability.type
cvssScore: .vulnerability.score
exploitMaturity: .threatAssessment.exploitCodeMaturity
epssScore: .threatAssessment.epssPercentage
cveLink: 'if .name then "https://cve.mitre.org/cgi-bin/cvename.cgi?name=" + .name else null end'
mendLink: 'if .name then "https://www.mend.io/vulnerability-database/" + .name else null end'
topFix: .topFix
type: .component.dependencyType
suppressionReason: 'if .findingInfo.findingStatus == "SUPPRESSED" then .findingInfo.comment.comment else "" end'
suppressionDate: 'if .findingInfo.findingStatus == "SUPPRESSED" then .findingInfo.comment.date else null end'
relations:
project: .project.uuid
Monitoring and sync status
To learn more about how to monitor and check the sync status of your integration, see the relevant documentation.
Mapping & selectors per resource
Use the explorer below to view the default mapping and blueprint for each resource type.
{
"identifier": "mendProject",
"title": "Mend Project",
"icon": "Mend",
"schema": {
"properties": {
"applicationName": {
"type": "string",
"title": "Application Name"
},
"applicationUuid": {
"type": "string",
"title": "Application UUID"
},
"totalCritical": {
"type": "number",
"title": "Critical Findings"
},
"totalHigh": {
"type": "number",
"title": "High Findings"
},
"totalMedium": {
"type": "number",
"title": "Medium Findings"
},
"totalLow": {
"type": "number",
"title": "Low Findings"
},
"languages": {
"type": "array",
"items": {
"type": "string"
},
"title": "Languages"
},
"createdAt": {
"type": "string",
"format": "date-time",
"title": "Creation Date"
},
"lastScanned": {
"type": "string",
"format": "date-time",
"title": "Last Scanned"
},
"dependencyFindingStats": {
"type": "object",
"title": "Dependency Finding Stats"
},
"codeFindingStats": {
"type": "object",
"title": "Code Finding Stats"
},
"containerFindingStats": {
"type": "object",
"title": "Container Finding Stats"
}
},
"required": []
},
"relations": {}
}
- kind: mend-project
selector:
query: 'true'
port:
entity:
mappings:
identifier: .uuid
title: .name
blueprint: '"mendProject"'
properties:
applicationName: .path
applicationUuid: .applicationUuid
createdAt: .creationDate
languages: '(.statistics.LIBRARY_TYPE_HISTOGRAM // {} | keys)'
lastScanned: 'if (.statistics.LAST_SCAN.lastScanTime // 0) > 0 then (.statistics.LAST_SCAN.lastScanTime / 1000 | todate) else null end'
totalCritical: '((.statistics.ALERTS.criticalSeverityVulnerabilities // 0) + (.statistics.IMG_SECURITY.imgCriticalVulnerabilities // 0))'
totalHigh: '((.statistics.ALERTS.highSeverityVulnerabilities // 0) + (.statistics.IMG_SECURITY.imgHighVulnerabilities // 0) + (.statistics.SAST_VULNERABILITIES_BY_SEVERITY.sastHighVulnerabilities // 0))'
totalMedium: '((.statistics.ALERTS.mediumSeverityVulnerabilities // 0) + (.statistics.IMG_SECURITY.imgMediumVulnerabilities // 0) + (.statistics.SAST_VULNERABILITIES_BY_SEVERITY.sastMediumVulnerabilities // 0))'
totalLow: '((.statistics.ALERTS.lowSeverityVulnerabilities // 0) + (.statistics.IMG_SECURITY.imgLowVulnerabilities // 0) + (.statistics.SAST_VULNERABILITIES_BY_SEVERITY.sastLowVulnerabilities // 0))'
dependencyFindingStats: .statistics.ALERTS
codeFindingStats: .statistics.SAST_VULNERABILITIES_BY_SEVERITY
containerFindingStats: .statistics.IMG_SECURITY
Below are the supported selectors for this resource. Use them under the selector key in your integration mapping configuration to control which resources are returned from the API.
| Selector | Type | Description |
|---|---|---|
exportEnvVariables | array | Environment variable names whose values should be included in lakehouse ingest payloads for DSP processing. |
Configure sync behavior
Mend currently has no first-class webhook support, so this integration relies on scheduled polling resyncs.
Each ordinary poll performs a delta sync. It fetches findings only for projects whose last scan time or creation date changed since the last successful sync.
The fullSyncIntervalMinutes parameter controls periodic forced full resyncs. The default is 720 minutes, or 12 hours.
A forced full resync bypasses the delta filter and picks up finding-only changes such as status transitions, suppressions, and edited fixes.
Set fullSyncIntervalMinutes to 0 if every poll should perform a full sync.
Limitations
- Mend changes appear in Port only after the next scheduled resync.
- Finding-only changes are picked up by the next forced full resync, which runs every 12 hours by default.
- The default mapping uses
entityDeletionThreshold: 0because delta syncs intentionally skip unchanged projects. Raise this value only if your full sync interval enumerates all findings often enough for stale entity cleanup. - Each installation syncs one Mend organization. To sync multiple organizations, install one integration instance per organization.
Troubleshooting
Use Interactive mode to be guided through diagnostic checks, or Quick reference to scan the full list of issues and fixes.
What are you experiencing?
Select the issue that best matches your situation. We'll guide you through diagnosing and fixing it step by step.
Activation key validation fails
- Symptom: Startup fails with
Provide a valid Mend Activation key. - Likely cause: The activation key is malformed, truncated, or not the Port integration key.
- Fix: Copy the full activation key from the Mend Port.io card again and update the integration credentials.
Persistent 401 authentication errors
- Symptom: Mend API requests return
401errors. - Likely cause: The integrator user embedded in the activation key was deactivated, or its permissions were revoked.
- Fix: Regenerate the activation key in Mend and update the integration credentials.
No Mend entities appear in Port
- Symptom: Projects or SCA findings do not appear after a successful resync.
- Likely cause: The mapping
queryevaluates tofalse, or theseverityselector filters the findings out. - Fix: Review your JQ selector logic, adjust the
severitylist, and click Save & Resync from the Connectors page.
Status or suppression changes are delayed
- Symptom: A status change or suppression made in Mend is not reflected in Port.
- Likely cause: The change did not rescan the project, so the delta sync skipped it.
- Fix: Wait for the next forced full resync, or lower
fullSyncIntervalMinutes.
Deleted findings remain in Port
- Symptom: Findings removed from Mend still appear in Port.
- Likely cause:
entityDeletionThreshold: 0disables stale entity deletion. - Fix: Raise the threshold only if your full sync interval enumerates every finding often enough.
Findings are missing project relations
- Symptom: SCA finding entities have no
projectrelation. - Likely cause: The
mendProjectblueprint does not exist, or project entities were filtered out. - Fix: Create the project blueprint first, keep
createMissingRelatedEntities: true, and confirm project entities are in scope.
Resyncs are slow
- Symptom: Resyncs take longer than expected.
- Likely cause: A large organization is doing a full sync on every poll.
- Fix: Use a non-zero
fullSyncIntervalMinutesvalue and use theseverityselector to limit ingested findings.
For more help, visit the Port community or open a support ticket.