Before you start
You need to be an admin of the Aikido workspace that scans your code repositories. Only a workspace admin can create the REST API credential Arch signs in with.Setup steps
- Sign in to Aikido and open Settings, then Integrations, then REST API. See Authorization.
- Create a client ID and client secret on that page. See Authorization.
- Give the credential the scopes basics:read, repositories:read and issues:read. Aikido’s API reference describes each scope: see Get workspace info.
- Copy the client ID and the client secret. You cannot see the client secret again after you leave the page.
- Note the address you sign in to Aikido at. It tells you your workspace’s region, which you choose under Fields.
Fields
You do not enter an address. Arch sends the credential only to the Aikido host of the region you choose.
Permissions
Arch only reads with these scopes. You choose the scopes when you create the credential. If a credential lacks
one, create a new credential with all three scopes and enter its client ID and secret in Arch. See
Authorization.
Sign-in
Arch signs in by exchanging the client ID and the client secret for an Aikido token at your region’s host. On Detect automatically, Arch asks Europe, the US, Australia and the Middle East in turn, and takes the first region that issues a token. When the sign-in works, the connection test goes on to read the workspace, which needs basics:read. The test does not list repositories, so a missing repositories:read or issues:read shows at the first run. If the sign-in fails, check that you copied the client ID and the client secret of the same credential, and that the region matches the address you sign in to Aikido at. If the credential was deleted or its secret was replaced, create a new one under Settings, then Integrations, then REST API, in Aikido.Test answers
A passing test shows “Connected to” with your workspace’s name, the code organization it links when Aikido names one, and the region.
When Arch knows the region, a refused credential’s message names it. The message for a region that did not
answer the workspace read starts with that region’s name. The message for no region names each region and
whether it refused or did not answer.
Limits
- Arch brings in every code repository the workspace lists, with its name and default branch. It also brings in, as findings, the leaked secrets Aikido found (the rule that matched and where, never the secret’s value), the code flaws that name a weakness class (CWE) and the vulnerable dependencies that name a CVE.
- Code flaws with no CWE, dependency issues with no CVE, issues on a repository the workspace does not list, and every other kind of Aikido issue, such as cloud, container or domain issues, are not brought in.
- Arch reads the data once a day by default. You can choose every 6 or 12 hours, or once a day.
- Each run reads the whole repository list and every issue, because Aikido cannot list only what changed.
- One connection reads one workspace, and one Aikido workspace connects to Arch once. A second connection to the same workspace is refused. Aikido allows 20 calls a minute for each workspace, which Arch shares with any other tool that calls the Aikido REST API.