generated from JupiterOne/integration-template
-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #2 from JupiterOne/feature/initial
Initial Signal Science integration
- Loading branch information
Showing
38 changed files
with
1,241 additions
and
852 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
name: gitleaks | ||
on: | ||
on: | ||
pull_request: | ||
push: | ||
branches: | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,28 +1,37 @@ | ||
# Development | ||
|
||
Add details here to give a brief overview of how to work with the provider APIs. | ||
Please reference any SDKs or API docs used to help build the integration here. | ||
The Signal Science API docs can be found | ||
[here](https://docs.fastly.com/signalsciences/api/). Additional developer guides | ||
can be found [here](https://docs.fastly.com/signalsciences/developer/). | ||
|
||
## Prerequisites | ||
|
||
Supply details about software or tooling (like maybe Docker or Terraform) that | ||
is needed for development here. | ||
## Provider account setup | ||
|
||
Please supply references to documentation that details how to install those | ||
dependencies here. | ||
In order to use the Signal Science API, you will need to have a user account. | ||
Once invited, click on `My Profile` at the top right of page. Click | ||
[API Access Tokens](https://dashboard.signalsciences.net/corps/jupiterone/user/apitokens) | ||
from the drop down. | ||
|
||
Tools like Node.js and NPM are already covered in the [README](../README.md) so | ||
don't bother documenting that here. | ||
Click | ||
[Add API access token](https://dashboard.signalsciences.net/corps/jupiterone/user/apitokens#add) | ||
to add a new token, provide a name to identify this access token. | ||
|
||
## Provider account setup | ||
**Note:** The role of the user will be applied to the access token. Any role is | ||
sufficient but **Observer** is recommended. | ||
|
||
Please provide information about the steps needed to create an account with a | ||
provider. Images and references to a provider's documentation is very helpful | ||
for new developers picking up your work. | ||
Copy the access token for use in the next step. | ||
|
||
## Authentication | ||
|
||
Supply details here for information on how to authenticate with a provider so | ||
that developers have an idea of what's needed to hit APIs. It may be useful to | ||
provide explanations for each value specified in the | ||
[`IntegrationInstanceConfigFieldMap`](../src/config.ts). | ||
Here are | ||
[details](https://docs.fastly.com/signalsciences/developer/using-our-api/) about | ||
how to authenticate. | ||
|
||
In essence, include these two headers in every request: | ||
|
||
``` | ||
x-api-user: email@email.com | ||
x-api-token: example-234d2-3ocke-vmeow-bcoiekw | ||
``` | ||
|
||
Replacing `email@email.com` with your Signal Science username/email and the | ||
example token with the value copied from the previous step. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,9 @@ | ||
import { IntegrationSpecConfig } from '@jupiterone/integration-sdk-core'; | ||
|
||
import { IntegrationConfig } from '../../../src/config'; | ||
import { accessSpec } from './access'; | ||
import { accountSpec } from './account'; | ||
import { userSpec } from './user'; | ||
import { organizationSpec } from './organization'; | ||
|
||
export const invocationConfig: IntegrationSpecConfig<IntegrationConfig> = { | ||
integrationSteps: [...accountSpec, ...accessSpec], | ||
integrationSteps: [...organizationSpec, ...userSpec], | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
import { StepSpec } from '@jupiterone/integration-sdk-core'; | ||
import { IntegrationConfig } from '../../../../src/config'; | ||
|
||
export const organizationSpec: StepSpec<IntegrationConfig>[] = [ | ||
{ | ||
/** | ||
* ENDPOINT: /corps | ||
*/ | ||
id: 'fetch-organizations', | ||
name: 'Fetch Corps', | ||
entities: [ | ||
{ | ||
resourceName: 'Organization', | ||
_type: 'sigsci_corp', | ||
_class: ['Organization'], | ||
}, | ||
], | ||
relationships: [], | ||
dependsOn: [], | ||
implemented: true, | ||
}, | ||
]; |
Oops, something went wrong.