@jupiterone/integration-sdk-http-client
Advanced tools
Changelog
9.1.0 - 2023-05-03
disabledSources
field to the IntegrationInstance
type from the
@jupiterone/integration-sdk-core
package.Changelog
9.0.0
BREAKING - Bump version of Node.js to v18 and require version >=18.16.0 <19.x.
BREAKING - Remove asynchronous jobState.hasKey()
The hasKey
function has no asynchronous implementation, and awaiting
jobState.hasKey
can unexpectedly cause duplicate key errors in some specific
edge cases (see https://github.com/JupiterOne/sdk/pull/694/files).
Remove the following Node.js event listeners due to Node.js core deprecation:
unhandledRejection
multipleResolves
Changelog
8.38.0 - 2023-04-28
childIngestionSources
Changelog
8.37.0 - 2023-04-28
Changelog
8.36.0 - 2023-04-21
Changelog
8.35.0 - 2023-04-12
ingestionConfig
to the invocationConfig
in
@jupiterone/integration-sdk-core
. This is used to store information about
data ingestion sources that can be enabled or disabled.generate-ingestion-sources-config
in
@jupiterone/integration-sdk cli
. This is used to create e new file
ingestionSourcesConfig.json
and store it in a s3 bucket.Changelog
8.34.0 - 2023-04-11
json
environment variables. Example:.env
file:
// .env
SEVERITIES=["HIGH", "CRITICAL"]
Code:
import { Client } from './client';
import { createVulnEntity } from './converter';
type IntegrationConfig = { apiKey: string; severities: string[] };
const invocationConfig: IntegrationInvocationConfig = {
instanceConfigFields: [
{
apiKey: { type: 'string', mask: true },
severities: { type: 'json' },
},
],
integrationSteps: [
{
id: 'fetch-vulnerabilities',
name: 'Fetch Vulnerabilities',
entities: [{ resourceName: 'Vuln', _type: 'vuln', _class: 'Finding' }],
relationships: [],
executionHandler: ({ instance }) => {
const { apiKey, severities } = instance.config;
const client = new Client({ apiKey });
await iterateVulnerabilitiesForSeverity(
{ severities },
async (vuln) => {
await jobState.addEntity(createVulnEntity(vuln));
},
);
},
},
],
};
Changelog
8.33.1 - 2023-04-03
Value
property rather
than value
.Changelog
8.33.0 - 2023-04-03