JupiterOne-Archives / integrations-2021-07-16

JupiterOne integration development documentation and issue tracking
0 stars 2 forks source link

Configuration validation fails when pipelines is not an enabled service #43

Open aiwilliams opened 3 years ago

aiwilliams commented 3 years ago

When pipelines are not being used, they should not prevent the use of the integration. The configuration UI should not require the pipeline access token.

Screenshot 2021-07-01 at 18 19 06
(4:22:42 PM) - [job_start] - Job for integration Artifactory has started.
(4:22:43 PM) - [validation_failure] - Error occurred while validating integration configuration. Failed to access provider resource. This integration is likely misconfigured or has insufficient permissions required to access the resource. Please ensure your integration's configuration settings are set up correctly. (errorCode="PROVIDER_AUTHENTICATION_ERROR", errorId="22257427-8cb3-4c74-abe5-351cafda1467", reason="Provider authentication failed at https://redacted.jfrog.io/pipelines/api/v1/pipelinesources?limit=1: -1 ")
(4:22:44 PM) - [job_abort] - Aborting integration job. (reason=Provider authentication failed at https://redacted.jfrog.io/pipelines/api/v1/pipelinesources?limit=1: -1 )
(4:22:44 PM) - [job_end] - Job for integration Artifactory has ended.
Caused by: Error: Provider authentication failed at https://redacted.jfrog.io/pipelines/api/v1/pipelinesources?limit=1: 401 Unauthorized
at APIClient.verifyPipelineAuthentication (/var/task/dist/node_modules/@jupiterone/graph-artifactory/dist/client.js:67:23)
at processTicksAndRejections (internal/process/task_queues.js:97:5)
at async Object.validateInvocation (/var/task/dist/node_modules/@jupiterone/graph-artifactory/dist/validateInvocation.js:15:5)
at async executeWithContext (/var/task/dist/node_modules/@jupiterone/integration-sdk-runtime/dist/src/execution/executeIntegration.js:48:9)
at async Object.timeOperation (/var/task/dist/node_modules/@jupiterone/integration-sdk-runtime/dist/src/metrics/index.js:6:12)