Skip to content
This repository was archived by the owner on Dec 4, 2023. It is now read-only.

Authenticate CrowdStrike client #1

Merged
merged 2 commits into from
Dec 3, 2019
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion .eslintrc
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
"prettier/@typescript-eslint"
],
"rules": {
"@typescript-eslint/no-use-before-define": "off"
"@typescript-eslint/no-use-before-define": "off",
"@typescript-eslint/no-unused-vars": ["error", { "argsIgnorePattern": "^_" }]
}
}
34 changes: 20 additions & 14 deletions docs/jupiterone-io/index.md
Original file line number Diff line number Diff line change
@@ -1,32 +1,38 @@
# {{providerTitle}}
# CrowdStrike Falcon

## Overview

The integration connects directly to {{providerTitle}} APIs to obtain account
The integration connects directly to CrowdStrike Falcon APIs to obtain account
metadata and analyze resource relationships. Customers authorize access by
creating API credentials in their {{providerTitle}} account and providing those
credentials when setting up an instance of the integration in JupiterOne.
creating Client API credentials in their CrowdStrike Falcon account and
providing those credentials when setting up an instance of the integration in
JupiterOne.

## API Authentication

{{providerTitle}} provides [detailed instructions on creating an API
CrowdStrike Falcon provides [detailed instructions on creating an API
credentials][1].

## Entities

These entities are ingested when the integration runs:

| Example Entity Resource | \_type : \_class of the Entity |
| ----------------------- | ------------------------------------- |
| Account | `example_account` : `Account` |
| Application | `example_application` : `Application` |
| Example Entity Resource | \_type : \_class of the Entity |
| ----------------------- | --------------------------------------------- |
| Account | `crowdstrike_account` : `Account` |
| Service | `crowdstrike_endpoint_protection` : `Service` |
| Device Sensor Agent | `crowdstrike_sensor` : `HostAgent` |
| Sensor Policy | `crowdstrike_sensor_policy` : `ControlPolicy` |

## Relationships

These relationships are created/mapped:
The following relationships are created/mapped:

| From | Type | To |
| ----------------- | ------- | --------------------- |
| `example_account` | **HAS** | `example_application` |
| Relationships |
| --------------------------------------------------------------------------- |
| `crowdstrike_account` **HAS** `crowdstrike_sensor` |
| `crowdstrike_account` **HAS** `crowdstrike_endpoint_protection` |
| `crowdstrike_prevent_policy` **ENFORCES** `crowdstrike_endpoint_protection` |
| `crowdstrike_sensor` **ASSIGNED** `crowdstrike_prevent_policy` |

[1]: {{providerUrl}}
[1]: https://www.crowdstrike.com/blog/tech-center/get-access-falcon-apis/
7 changes: 2 additions & 5 deletions jest.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,8 @@ module.exports = {
"^.+\\.ts$": "ts-jest",
},
testMatch: ["<rootDir>/src/**/*.test.{js,ts}"],
collectCoverageFrom: [
"src/**/*.ts",
"!src/index.ts",
"!src/ProviderClient.ts",
],
setupFiles: ["dotenv/config"],
collectCoverageFrom: ["src/**/*.ts", "!src/index.ts"],
moduleFileExtensions: [...defaults.moduleFileExtensions, "ts"],
testEnvironment: "node",
clearMocks: true,
Expand Down
11 changes: 10 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,8 @@
"test": "jest"
},
"dependencies": {
"@jupiterone/jupiter-managed-integration-sdk": "^28.3.0"
"@jupiterone/jupiter-managed-integration-sdk": "^28.3.0",
"node-fetch": "^2.6.0"
},
"devDependencies": {
"@babel/cli": "^7.7.4",
Expand All @@ -38,11 +39,19 @@
"@babel/plugin-proposal-object-rest-spread": "^7.7.4",
"@babel/preset-env": "^7.7.4",
"@babel/preset-typescript": "^7.7.4",
"@pollyjs/adapter-node-http": "^2.7.0",
"@pollyjs/core": "^2.6.3",
"@pollyjs/persister-fs": "^2.6.3",
"@types/bunyan": "^1.8.5",
"@types/fs-extra": "^8.0.1",
"@types/gremlin": "^3.4.2",
"@types/har-format": "^1.2.4",
"@types/jest": "^24.0.23",
"@types/node": "~12.12.13",
"@types/node-fetch": "^2.5.4",
"@types/pollyjs__adapter-node-http": "^2.0.0",
"@types/pollyjs__core": "^2.6.1",
"@types/pollyjs__persister-fs": "^2.0.0",
"@typescript-eslint/eslint-plugin": "^2.9.0",
"@typescript-eslint/parser": "^2.9.0",
"bunyan": "^1.8.12",
Expand Down
55 changes: 0 additions & 55 deletions src/ProviderClient.ts

This file was deleted.

98 changes: 0 additions & 98 deletions src/converters.test.ts

This file was deleted.

107 changes: 0 additions & 107 deletions src/converters.ts

This file was deleted.

Loading