Policy Enforcement

  • Integrate API compliance validation with automation pipelines

    → Configure governance policies, establish the compliance level, and let Policy Enforcement prepare everything else so you can run the validation using the Sensedia CLI.

    → By enforcing policies, your organization can mitigate risks, enhance API performance, and maintain compliance with governance standards. Policy Enforcement acts as a safeguard, ensuring that interactions within the system are secure, controlled, and aligned with the company’s strategic objectives.

icon representing policy enforcement

Policy Enforcement for the Maturity Report

Follow the steps below to configure Policy Enforcement for the Maturity Report:

  1. On the Adaptive Governance home screen, click Policies.
    Adaptive Governance home screen with the Policies card highlighted

  2. Select the gateway where your APIs are located.
    policies screen with step 1 gateway selection

  3. Select Maturity and click GET AUTOMATION CODE.

  4. Select the APIs.

    If your connection is non-native, skip to step 5.

    You can search by API name, select from the list, or click Select All to select all APIs.
    Then, click Next.
    policies screen with the step for API selection

  5. Indicate the target maturity level and click NEXT.
    policies screen with the step for maturity level selection
    For example, if you enter "50" as the maturity level, Policy Enforcement will validate whether the selected APIs have a maturity score equal to or greater than 50%.
    If an API has a maturity score below 50%, when running the CLI command, Policy Enforcement will return an error, indicating that the API does not meet the established maturity level.
    If the APIs have maturity scores equal to or greater than 50%, a success message will be returned.

  6. Copy the command and click DOWNLOAD CODE.
    policies screen with the step to copy the command and download the .yaml file

  7. Unzip the downloaded .yaml file and save it in a directory of your preference.

    To make it easier, you can save it in the same folder where the contracts of the APIs you want to validate are located.
  8. Open the downloaded .yaml file in a text editor and, under spec > artifact, verify that the file path is correct.

  9. The rest of the process is done via Sensedia CLI:

    • In the CLI, execute the command ssd apply -f [file-name].yaml.
      Replace [file-name] with the name of the file you downloaded. Do not use the "[]".

    • If the API complies with the specified policy, the command will return a success message. Otherwise, the command will return an error message indicating what was not in compliance.
      Sensedia CLI terminal

Consult the Sensedia CLI documentation for more details on:

Thanks for your feedback!
EDIT

Share your suggestions with us!
Click here and then [+ Submit idea]