Skip to content

Instantly share code, notes, and snippets.

@orb orb/ats-source.org
Created Apr 15, 2019

Embed
What would you like to do?
the org mode source

cisco-ats npm repositories

The @cisco-ats NPM packages are distributed in the cisco-threat-response-npm repository at engci-maven-master.cisco.com, an internal Cisco artifactory instance. The repository is mirrored to at devhub.cisco.com for authenticated use outside of the Cisco network.

using engci-maven

Bind the @cisco-ats to the internal registry:

npm config set @cisco-ats:registry http://engci-maven-master.cisco.com/artifactory/api/npm/cisco-threat-response-npm --scope=@cisco-ats

You can then install any @cisco-ats package.

npm install @cisco-ats/integrations --save-exact

Or you can directly add the dependency to package.json.

"dependencies": {
  "@cisco-ats/integrations": "1.2.14"
}

using devhub

The devhub mirror allows authenticated use of the repository outside of the cisco network. This is particularly useful for off-network build machines. If you need access, you can ask any of @cisco-ats npm admins or directly request access at https://engit.cisco.com/ci/#/request/question. (Devhub, Additional Access, cisco-threat-response-npm). Any Cisco user (including bot accounts for build machines) can be granted access.

To use packages, you must authenticate using npm:

npm login --registry=https://devhub.cisco.com/artifactory/api/npm/cisco-threat-response-npm/ --scope=@cisco-ats

Your username is your cisco name and your password is your devhub API key. You can generate/retrieve your API key from your devhub profile. (login to debhub using SAML and click on your name to see your profile) If you have problems, try generating a new API key. As a sanity check your ~/.npmrc will look something like:

@cisco-ats:registry=https://devhub.cisco.com/artifactory/api/npm/cisco-threat-response-npm/
//devhub.cisco.com/artifactory/api/npm/cisco-threat-response-npm/:_authToken=XXXxSOMExBIGxJWTxXXX
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.