chef / automate

Chef Automate provides a full suite of enterprise capabilities for maintaining continuous visibility into application, infrastructure, and security automation.
https://automate.chef.io/
Apache License 2.0
224 stars 111 forks source link

Add license interceptor in automate gateway #8439

Closed YashviJain01 closed 1 month ago

YashviJain01 commented 2 months ago

:nut_and_bolt: Description: What code changed, and why?

If the license is not applied or expired, a error will be sent via tha api or cli which are passed throguh gateway.

A exceptions list is also added for the allowed apis, which helps in deployment via airgap or cli.

:chains: Related Resources

https://chefio.atlassian.net/browse/CHEF-11671 https://chefio.atlassian.net/browse/CHEF-11670

:+1: Definition of Done

A license interceptor has been added in automate gateway which will block the requests if the license is invalid.

:athletic_shoe: How to Build and Test the Change

rebuild components/automate-gateway

:white_check_mark: Checklist

All PRs must tick these:

With occasional exceptions, all PRs from Progress employees must tick these:

All PRs from Progress employees should tick these if appropriate:

Please add a note next to any checkbox above if you are NOT ticking it.

:camera: Screenshots, if applicable

APi Demo video:-

https://progresssoftware.sharepoint.com/:v:/s/ChefCoreC/EY6Pbs1E2PlBgfKjwPjbA_sBi6KTnX8HIRPZnudCi8clVg?e=VUvhAF

If the license is expired (UI):-

image
netlify[bot] commented 2 months ago

Deploy Preview for chef-automate processing.

Name Link
Latest commit 69c32f51346a6bfda7c6d4e1895f565d2b0c0325
Latest deploy log https://app.netlify.com/sites/chef-automate/deploys/6642eaf3dd1a9d000818724e
sonarqube-for-infrastructure-prod[bot] commented 1 month ago

SonarQube Quality Gate

Quality Gate failed

Failed condition 34.9% 34.9% Coverage on New Code (is less than 80%)

See analysis details on SonarQube