-
Notifications
You must be signed in to change notification settings - Fork 113
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add license interceptor in automate gateway (#8439) #8452
Merged
Merged
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
👷 Deploy Preview for chef-automate processing.
|
YashviJain01
force-pushed
the
feature/CHEF-11824
branch
from
May 20, 2024 06:23
93c7936
to
31d1da9
Compare
YashviJain01
force-pushed
the
feature/CHEF-11824
branch
from
June 5, 2024 06:38
ec698b0
to
28bee42
Compare
daveaugustus
force-pushed
the
feature/CHEF-11824
branch
2 times, most recently
from
July 17, 2024 11:51
9f69330
to
7a57dfd
Compare
* Adding the intercerptors with error only for license Signed-off-by: Yashvi Jain <yashvi.jain@progress.com> * Removing the function, will create another PR for this Signed-off-by: Yashvi Jain <yashvi.jain@progress.com> * Removing interface, will create another PR for this Signed-off-by: Yashvi Jain <yashvi.jain@progress.com> * Adding the function for interceptor Signed-off-by: Yashvi Jain <yashvi.jain@progress.com> * Adding interceptor layer for license Signed-off-by: Yashvi Jain <yashvi.jain@progress.com> * Adding allow api list if the license needs to be applied from backend Signed-off-by: Yashvi Jain <yashvi.jain@progress.com> * Adding license apply Signed-off-by: Yashvi Jain <yashvi.jain@progress.com> * Adding license function in default deploy Signed-off-by: Yashvi Jain <yashvi.jain@progress.com> * Removing unwanted loggers Signed-off-by: Yashvi Jain <yashvi.jain@progress.com> * Adding license apply command in pipelines, and adding create token api in api allow list Signed-off-by: Yashvi Jain <yashvi.jain@progress.com> * Applying license at various location to unblock the pipeline Signed-off-by: Yashvi Jain <yashvi.jain@progress.com> * Adding changes Signed-off-by: Yashvi Jain <yashvi.jain@progress.com> * Adding Applying license in do_dploy for chef server Signed-off-by: Yashvi Jain <yashvi.jain@progress.com> * updating the temp license Signed-off-by: Durga Sarat Chandra Maddu <dmaddu@progress.com> * Adding A2_license as a variable from vault Signed-off-by: Yashvi Jain <yashvi.jain@progress.com> * Adding A2_license as a environment variable Signed-off-by: Yashvi Jain <yashvi.jain@progress.com> * Adding A2 license in the pipeline Signed-off-by: Yashvi Jain <yashvi.jain@progress.com> * Adding license in studio pipelines Signed-off-by: Yashvi Jain <yashvi.jain@progress.com> * Adding license data Signed-off-by: Yashvi Jain <yashvi.jain@progress.com> * Adding license data Signed-off-by: Yashvi Jain <yashvi.jain@progress.com> * Adding license data Signed-off-by: Yashvi Jain <yashvi.jain@progress.com> * Adding license Signed-off-by: Yashvi Jain <yashvi.jain@progress.com> * Adding licrnse in dev from command Signed-off-by: Yashvi Jain <yashvi.jain@progress.com> * Adding license from vault and applying it Signed-off-by: Yashvi Jain <yashvi.jain@progress.com> * Adding license in gateway intergation Signed-off-by: Yashvi Jain <yashvi.jain@progress.com> * Adding license in gateway intergation Signed-off-by: Yashvi Jain <yashvi.jain@progress.com> * Adding license key in the pipeline Signed-off-by: Yashvi Jain <yashvi.jain@progress.com> * Adding license after upgrade Signed-off-by: Yashvi Jain <yashvi.jain@progress.com> * commenting jq line for print Signed-off-by: Yashvi Jain <yashvi.jain@progress.com> --------- Signed-off-by: Yashvi Jain <yashvi.jain@progress.com> Signed-off-by: Durga Sarat Chandra Maddu <dmaddu@progress.com> Co-authored-by: Yashvi Jain <yashvi.jain@progress.com> Co-authored-by: dmaddu <dmaddu@progress.com>
* Infrastructure node cli license changes Signed-off-by: Yashvi Jain <yashvi.jain@progress.com> * Adding test cases for pre functions Signed-off-by: Yashvi Jain <yashvi.jain@progress.com> * Adding correct message in case of failure Signed-off-by: Yashvi Jain <yashvi.jain@progress.com> --------- Signed-off-by: Yashvi Jain <yashvi.jain@progress.com> Co-authored-by: Yashvi Jain <yashvi.jain@progress.com>
* adding grace period to the license status1 Signed-off-by: swatign <SwatiGanesh.Naik@Progress.com> * checking for grace period value in status responce Signed-off-by: swatign <SwatiGanesh.Naik@Progress.com> * adding grace period in gateway file Signed-off-by: swatign <SwatiGanesh.Naik@Progress.com> * added grace period in gateway Signed-off-by: swatign <SwatiGanesh.Naik@Progress.com> * Adding correct pb.go files Signed-off-by: Yashvi Jain <yashvi.jain@progress.com> * removed log statements Signed-off-by: swatign <SwatiGanesh.Naik@Progress.com> * Helper.go file for warning message (#8464) * Helper.go function added Signed-off-by: karan parmar <kparmar@progress.com> * hook added for airgap file Signed-off-by: karan parmar <kparmar@progress.com> * seperate function added Signed-off-by: karan parmar <kparmar@progress.com> * Adding helper functions correctly Signed-off-by: Yashvi Jain <yashvi.jain@progress.com> * cli changes Signed-off-by: Aishwarya Aishwarya <aaishwar@progress.com> * cli changes 2 Signed-off-by: swatign <SwatiGanesh.Naik@Progress.com> * Prefetch commands added Signed-off-by: karan parmar <kparmar@progress.com> * Adding new statements for cli Signed-off-by: Yashvi Jain <yashvi.jain@progress.com> * Adding the license itercepter valid grace period of 60 Signed-off-by: Yashvi Jain <yashvi.jain@progress.com> * latest changes done Signed-off-by: karan parmar <kparmar@progress.com> * final changes 1 Signed-off-by: karan parmar <kparmar@progress.com> * final changes 2 Signed-off-by: karan parmar <kparmar@progress.com> * final changes 3 Signed-off-by: karan parmar <kparmar@progress.com> * final changes 4 Signed-off-by: karan parmar <kparmar@progress.com> --------- Signed-off-by: karan parmar <kparmar@progress.com> Signed-off-by: Yashvi Jain <yashvi.jain@progress.com> Signed-off-by: Aishwarya Aishwarya <aaishwar@progress.com> Signed-off-by: swatign <SwatiGanesh.Naik@Progress.com> Co-authored-by: Yashvi Jain <yashvi.jain@progress.com> Co-authored-by: Aishwarya Aishwarya <aaishwar@progress.com> Co-authored-by: swatign <SwatiGanesh.Naik@Progress.com> * added license type in api responce and corrected license control service file Signed-off-by: swatign <SwatiGanesh.Naik@Progress.com> --------- Signed-off-by: swatign <SwatiGanesh.Naik@Progress.com> Signed-off-by: Yashvi Jain <yashvi.jain@progress.com> Signed-off-by: karan parmar <kparmar@progress.com> Signed-off-by: Aishwarya Aishwarya <aaishwar@progress.com> Co-authored-by: Yashvi Jain <yashvi.jain@progress.com> Co-authored-by: kparmar2000 <145539208+kparmar2000@users.noreply.github.com> Co-authored-by: Aishwarya Aishwarya <aaishwar@progress.com>
Signed-off-by: swatign <SwatiGanesh.Naik@Progress.com>
* Chaged the func to tempfile Signed-off-by: daveaugustus <pappu.kumar@progress.com> * Adding check for automate node for HA Signed-off-by: daveaugustus <pappu.kumar@progress.com> * Adding check for automate node for HA Signed-off-by: daveaugustus <pappu.kumar@progress.com> * added remote command * cat file Signed-off-by: daveaugustus <pappu.kumar@progress.com> * Added license status for HA Signed-off-by: daveaugustus <pappu.kumar@progress.com> * Added license status for HA Signed-off-by: daveaugustus <pappu.kumar@progress.com> * Added license status for HA Signed-off-by: daveaugustus <pappu.kumar@progress.com> * Added license status for HA Signed-off-by: daveaugustus <pappu.kumar@progress.com> * Added license status for HA Signed-off-by: daveaugustus <pappu.kumar@progress.com> * Removed json output Signed-off-by: daveaugustus <pappu.kumar@progress.com> * changed pipeline commands Signed-off-by: daveaugustus <pappu.kumar@progress.com> * removed func call for deploy cmds Signed-off-by: Aishwarya Aishwarya <aaishwar@progress.com> * new code changes Signed-off-by: Aishwarya Aishwarya <aaishwar@progress.com> * Added warning case function Signed-off-by: daveaugustus <pappu.kumar@progress.com> * refactored Signed-off-by: daveaugustus <pappu.kumar@progress.com> * reverted Signed-off-by: daveaugustus <pappu.kumar@progress.com> * error corretcions Signed-off-by: daveaugustus <pappu.kumar@progress.com> --------- Signed-off-by: daveaugustus <pappu.kumar@progress.com> Signed-off-by: Aishwarya Aishwarya <aaishwar@progress.com> Co-authored-by: daveaugustus <pappu.kumar@progress.com> Co-authored-by: Aishwarya Aishwarya <aaishwar@progress.com>
Signed-off-by: daveaugustus <pappu.kumar@progress.com>
Signed-off-by: “SanjuPal01” <sanju.sanju@progress.com>
Signed-off-by: Yashvi Jain <yashvi.jain@progress.com>
Signed-off-by: daveaugustus <pappu.kumar@progress.com>
Signed-off-by: daveaugustus <pappu.kumar@progress.com>
Signed-off-by: daveaugustus <pappu.kumar@progress.com>
Signed-off-by: daveaugustus <pappu.kumar@progress.com>
Signed-off-by: daveaugustus <pappu.kumar@progress.com>
Signed-off-by: daveaugustus <pappu.kumar@progress.com>
Signed-off-by: daveaugustus <pappu.kumar@progress.com>
Signed-off-by: daveaugustus <pappu.kumar@progress.com>
Signed-off-by: Yashvi Jain <yashvi.jain@progress.com>
Signed-off-by: Yashvi Jain <yashvi.jain@progress.com>
YashviJain01
force-pushed
the
feature/CHEF-11824
branch
from
July 18, 2024 11:10
d247f97
to
826c2e2
Compare
Signed-off-by: Yashvi Jain <yashvi.jain@progress.com>
kalroy
requested changes
Jul 19, 2024
Signed-off-by: daveaugustus <pappu.kumar@progress.com>
Dmaddu
requested changes
Jul 19, 2024
Signed-off-by: daveaugustus <pappu.kumar@progress.com>
Signed-off-by: Yashvi Jain <yashvi.jain@progress.com>
Signed-off-by: Yashvi Jain <yashvi.jain@progress.com>
Signed-off-by: daveaugustus <pappu.kumar@progress.com>
anees-progress
force-pushed
the
feature/CHEF-11824
branch
from
July 19, 2024 09:06
c9d9cd5
to
28bee42
Compare
daveaugustus
force-pushed
the
feature/CHEF-11824
branch
from
July 19, 2024 09:24
28bee42
to
c9d9cd5
Compare
Signed-off-by: Durga Sarat Chandra Maddu <dmaddu@progress.com>
Signed-off-by: daveaugustus <pappu.kumar@progress.com>
Signed-off-by: daveaugustus <pappu.kumar@progress.com>
Quality Gate failedFailed conditions See analysis details on SonarQube Catch issues before they fail your Quality Gate with our IDE extension SonarLint |
Dmaddu
approved these changes
Jul 19, 2024
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Adding the intercerptors with error only for license
Removing the function, will create another PR for this
Removing interface, will create another PR for this
Adding the function for interceptor
Adding interceptor layer for license
Adding allow api list if the license needs to be applied from backend
Adding license apply
Adding license function in default deploy
Removing unwanted loggers
Adding license apply command in pipelines, and adding create token api in api allow list
Applying license at various location to unblock the pipeline
Adding changes
Adding Applying license in do_dploy for chef server
updating the temp license
Adding A2_license as a variable from vault
Adding A2_license as a environment variable
Adding A2 license in the pipeline
Adding license in studio pipelines
Adding license data
Adding license data
Adding license data
Adding license
Adding licrnse in dev from command
Adding license from vault and applying it
Adding license in gateway intergation
Adding license in gateway intergation
Adding license key in the pipeline
Adding license after upgrade
commenting jq line for print
🔩 Description: What code changed, and why?
⛓️ Related Resources
👍 Definition of Done
👟 How to Build and Test the Change
✅ Checklist
All PRs must tick these:
With occasional exceptions, all PRs from Progress employees must tick these:
make spell
in any component directory)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.
📷 Screenshots, if applicable