Azure DevOps

Akto's integration with Azure DevOps allows you to maintain API security through Azure Pipelines. With this integration, you'll be able to:

  • Check status of Akto CICD tests directly from Azure DevOps through quality gates

  • Generate tests from live functional traffic for targeted security testing

  • Insert security seamlessly into existing functional tests with complete automation

Prerequisites

Steps to Configure Azure DevOps Pipeline

1. Create Pipeline Configuration

Create a new file named azure-pipelines.yml in your repository root:

2. Configure Pipeline Variables

  1. Go to Pipelines > Edit > Variables

  1. Add the following required variables:

  • AKTO_DASHBOARD_URL: Your Akto dashboard URL

  • AKTO_API_KEY: Your Akto API key (mark as secret)

  • AKTO_TEST_ID: Your Akto test ID

  • WAIT_TIME_FOR_RESULT: Time to wait for test results

Save it and then hit the run button

3. Set Up Branch Policies [OPTIONAL - to configure pipeline for all builds]

  1. Navigate to Project Settings > Repositories

  2. Select your repository branch

  3. Add build policy:

    • Add build pipeline

    • Make it required

4. Verify Integration [OPTIONAL]

  1. Create a new pull request

  2. Verify that Akto security checks appear in the pipeline

  3. Check test results in the Azure DevOps pipeline interface

Viewing Results

  1. Navigate to your pipeline run

  2. Check the 'Test Stage' logs

  3. Review security test results

  4. Access detailed reports in Akto dashboard

Last updated

Was this helpful?