63 Commits

Author SHA1 Message Date
dhruvjoshi
e2cc24a208 INFRA-2701 | Dhruv | use github client sdk 2024-05-30 09:39:01 +05:30
dhruvjoshi
416570e826 INFRA-2701 | Dhruv | Fix pom and checkstyle 2024-05-24 15:50:53 +05:30
dhruvjoshi
0795d7474c INFRA-2701 | Dhruv | Add gocd validation client & github client 2024-05-24 01:36:59 +05:30
Abhishek Katiyar
78e8b3c3d2 Merge branch 'master' into INFRA-2230-1 2024-05-06 12:58:15 +05:30
Abhishek Katiyar
1fc5825de5 INFRA-2230 | Abhishek | Fix tests 2024-05-06 12:42:31 +05:30
Harinder Singh
bc06096129 Merge branch 'master' of ssh://github.com/navi-infra/deployment-portal-backend into INFRA-2219 2024-04-05 15:50:44 +05:30
Ashvin S
935d9d1012 INFRA-809 | Ashvin | Move jsonnet to kutegen (#864)
* INFRA-809 | Ashvin | Replace jsonnet with kutegen

* INFRA-809 | Ashvin | Install kutegen on build and test

* INFRA-809 | Ashvin | Fix 'static' modifier out of order with the JLS suggestions in KutegenClient.java

* INFRA-809 | Ashvin | Remove all templates files

* INFRA-809 | Ashvin | Add kutegen submodule

* INFRA-809 | Ashvin | Use go run kutegen instead of build

This will save dev an extra step of building kutegen each time they make a change in the templates files and thus save time and effort. go.work file lets us run go build and run in the parent directory.

* INFRA-809 | Ashvin | Remove redundant dirs from Dockerfile

* INFRA-809 | Ashvin | Remove go build in maven file.

This was causing various dependency issue in the build process. I will add a Makefile if there is a need in the future for now. For now all local development will be done using go run command so this will not be necessary.

* INFRA-809 | Ashvin | Update kutegen version

* INFRA-809 | Ashvin | Revert YAML support from kutegen

* INFRA-809 | Ashvin | Rebase the commit to kutegen

* INFRA-809 | Ashvin | Fix test

Using changes in the kutegen

* INFRA-809 | Ashvin | Remove the templates dir

* INFRA-809 | Ashvin | Clean generated dirs with mvn clean
2024-04-05 12:28:32 +05:30
Harinder Singh
a055dd1889 INFRA-2219 | Harinder | Modularizing code, updating repository code, airflowclient after testing, slackbotclient 2024-03-22 17:05:58 +05:30
Saurabh Bhagwan Sathe
5661c2d9a4 INFRA-1943 | Saurabh | Grafana Dashboard Integration (#824)
* INFRA-1943 | Saurabh | API for get dashboard added

* INFRA-1943 | Saurabh | added jsonPath library

* INFRA-1943 | Saurabh | removed sout statements and unused imports

* INFRA-1943 | Saurabh | added sql migration script

* INFRA-1943 | Saurabh | added test case for service

* INFRA-1943 | Saurabh | CheckStyle error resolved

* INFRA-1943 | Saurabh | CheckStyle error resolved

* INFRA-1943 | Saurabh | comments resolved

* INFRA-1943 | Saurabh | docker file previous change

* INFRA-1943 | Saurabh | No args

* INFRA-1943 | Saurabh | build

* INFRA-1943 | Saurabh | build

* INFRA-1943 | Saurabh | refactored code in v2

* INFRA-1943 | Saurabh | refactored lambda expression

* INFRA-1943 | Saurabh | Test case added for service

* INFRA-1943 | Saurabh | migration file version

* INFRA-1943 | Saurabh | checkstyles fixed

* INFRA-1943 | Saurabh | resolved + post api

* INFRA-1943 | Saurabh | checkstyles

* INFRA-1943 | Saurabh | checkstyles corrected

* INFRA-1943 | Saurabh | removed postScript file

* INFRA-1943 | Saurabh | return null

* INFRA-1943 | Saurabh | checkstyle formatted for test file
2024-03-06 12:38:43 +05:30
Ashvin S
4b0a81df8c INFRA-2466 | Ashvin | Create dump feature (#738)
* INFRA-2466 | Ashvin | Fetch pod by manifest id

* INFRA-2466 | Ashvin | Create presigned link for s3 bucket

* INFRA-2466 | Ashvin | Create dump class and table

* INFRA-2466 | Ashvin | Create dump utility class

* INFRA-2466 | Ashvin | Create DAG remotely

* INFRA-2466 | Ashvin | Add env var for airflow and dump service

* INFRA-2466 | Ashvin | Remove test main functions

* INFRA-2466 | Ashvin | Add default values in app.props for test

* INFRA-2493 | Ashvin | Take DAG conf in a java map

instead of a json string

* INFRA-2493 | Ashvin | Pass dump name in DAG

* INFRA-2493 | Ashvin | Cleanup code

* INFRA-2493 | Ashvin | Whitelist /api/dump from xsrf check

* INFRA-2493 | Ashvin | Handle 404 for dump status

* INFRA-2493 | Ashvin | Remove callback url from dump trigger request

Callback url will jsut a static endpoint with a post body which DAG can generate on its own.

* INFRA-2493 | Ashvin | Move null check in the client method

* INFRA-2493 | Ashvin | Add manifest id in dump table

* INFRA-2493 | Ashvin | Remove redundant variable

* INFRA-2493 | Ashvin | Create endpoint to fetch dump list

Dumps will be queried on the basis of teams of the user.

* INFRA-2493 | Ashvin | Enable download for user

* INFRA-2493 | Ashvin | Add dump list view limit to 100

* INFRA-2229 | Brijesh | Change latest tag to commit hash

* INFRA-2502 | Abhishek | Increase duration for ReplicaUnavailable alert for DataScience team

* INFRA-2502 | Abhishek | Fix sharedalb name while deletion and improve logs

* INFRA-2526 | Saqib | Remove regex check for tcp type

* INFRA-2493 | Ashvin | Add dump list view limit to 100

* INFRA-2351 | Saqib | Remove method from ignore csrf function

* INFRA-2351 | Saqib | Rename function

* INFRA-2351 | Saqib | Rename function

---------

Co-authored-by: Brijesh Peshvani <brijesh.peshvani@navi.com>
Co-authored-by: Abhishek Katiyar <abhishek.k@navi.com>
Co-authored-by: saqib-perwaiz_navi <saqib.perwaiz@navi.com>
2023-12-04 17:24:43 +05:30
Ashvin S
3da1f78f68 INFRA-2084 Update pom.xml 2023-09-26 09:49:34 +05:30
Ashvin Sharma
6d5b535340 INFRA-2084 | Ashvin | Adds customization feature to sandbox
Consider this JSON

{
  "sandbox": {
    "description": "sandboxtesting",
    "forkOf": [
      {
        "name": "auth",
        "image": "image",
        "customization": {
          "environmentVariables": [
            {
              "name": "SOME_BOOLEAN_VALUE",
              "value": true
            },
            {
              "name": "NEW_THRESHOLD_VALUE",
              "value": 1000
            },
            {
              "name": "UNSET_ENVAR",
              "value": ""
            }
          ],
          "patch": [
            {
              "op": "remove",
              "path": "/age/invalid"
            },
            {
              "op": "replace",
              "path": "/deployment/healthChecks/readinessCheck/path",
              "value": "new_api/ping"
            }
          ]
        }
      }
    ],
    "name": "test",
    "ttl": "1d"
  }
}

This json will replace the health check path with the new_api/ping and override the environment variables
2023-09-25 19:21:14 +05:30
Ankit Bhardwaj
3c527f019c INFRA-2108 | Ankit Bhardwaj | Add jacoco plugin for test coverage 2023-09-13 15:47:16 +05:30
Ankit Bhardwaj
ef99229b22 INFRA-2108 | Ankit Bhardwaj | Changed java version of sonarplugin in pom.xml 2023-09-11 14:19:35 +05:30
Ankit Bhardwaj
f5dcf47e38 INFRA-2108 | Ankit Bhardwaj | Add workflows for checkstyle and sonarqube 2023-09-11 13:09:59 +05:30
Ashvin S
99402bf460 INFRA-2035 | Ashvin | Changed retry to compatible version 2023-08-17 20:33:00 +05:30
Ashvin Sharma
c93837e02c INFRA-2035 | Ashvin | Add logs and Add retry to fetch sg id from kubernetes 2023-08-17 19:25:28 +05:30
deepak jain
e6488ce910 INFRA-1975 | Deepak Jain | adding tests 2023-08-03 13:30:10 +05:30
deepak jain
7760b0ff28 INFRA-1975 | Deepak Jain | adding ability to apply sandbox on k8s cluster 2023-08-03 13:30:09 +05:30
deepak jain
aff11b5ff4 INFRA-1975 | Deepak Jain | adding sandbox manifest service 2023-08-03 13:30:09 +05:30
Abhishek Katiyar
b94d31b1bd INFRA-1803 | Abhishek | Add dependencies for jwt 2023-06-02 10:15:46 +05:30
Abhishek Katiyar
245ab98e8a INFRA-1803 | Abhishek | Fix formatting and ugrade dependency 2023-06-01 15:20:19 +05:30
Abhishek Katiyar
3e78422bba INFRA-1803 | Abhishek | Add changes to return all token for a user 2023-06-01 11:35:07 +05:30
Deepak Jain
05bd9a5e7f INFRA-1693 | Deepak | ability to add multiple url for single ALB (#417)
* INFRA-1693 | Deepak | ability to add multiple url in single ALB

* INFRA-1693 | Deepak | upgrading testcontainer for bug https://github.com/testcontainers/testcontainers-java/issues/2431
2023-03-20 08:53:17 +05:30
Ashvin Sharma
885241f3ff INFRA-1685 | Ashvin | Add threshold values for critical components
As part of request approval story
2023-02-27 16:33:04 +05:30
Ashvin S
4c9402915d Merge branch 'master' into dependabot/maven/org.apache.httpcomponents-httpclient-4.5.13 2022-10-27 13:19:49 +05:30
dependabot[bot]
61b08ca939 Bump httpclient from 4.5.6 to 4.5.13
Bumps httpclient from 4.5.6 to 4.5.13.

---
updated-dependencies:
- dependency-name: org.apache.httpcomponents:httpclient
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-10-26 12:09:40 +00:00
dependabot[bot]
f74d6bb384 Bump commons-io from 2.6 to 2.7
Bumps commons-io from 2.6 to 2.7.

---
updated-dependencies:
- dependency-name: commons-io:commons-io
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-10-26 12:09:36 +00:00
dependabot[bot]
6e21a685bb Bump commons-text from 1.8 to 1.10.0 (#349)
Bumps commons-text from 1.8 to 1.10.0.

---
updated-dependencies:
- dependency-name: org.apache.commons:commons-text
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <376+dependabot[bot]@users.noreply.github.cmd.navi-tech.in>
2022-10-26 17:35:42 +05:30
sandeepsogani
42926096c3 INFRA-1181 | Sandeep Sogani | Fixing Testcontainers images path to ECR 2022-07-07 14:33:30 +05:30
Sadeep S
516b1f5500 INFRA-1157 | Sandeep Sogani | adding clone form 2022-06-30 14:35:38 +05:30
Sadeep S
58d514b5ed INFRA-1157 | Sandeep Sogani | adding clone form 2022-06-29 19:56:51 +05:30
Sadeep S
00bdcf423f INFRA-789 | Sandeep Sogani | adding unit tests for portal (#287)
INFRA-789 | Sandeep Sogani | adding unit tests for portal and Bugfix in path generation for test cases
2022-06-10 11:54:44 +05:30
Sadeep S
a11bd34b5a INFRA-950 | Sandeep Sogani | Adding proactive alerts for database and… (#257)
* INFRA-950 | Sandeep Sogani | Adding proactive alerts for database and k8s utilisation
2022-04-01 14:31:15 +05:30
deepak jain
b4aa3b6e74 INFRA-896 | Deepak Jain| upgrading log4j to latest version 2021-12-26 12:31:30 +05:30
deepak jain
f64adf2a54 INFRA-896 | Deepak Jain| upgrading log4j2 2021-12-13 12:37:01 +05:30
Abhishek Katiyar
f2cdf87775 INFRA-581 | Abhishek | Add feature to create ECR repository (#125)
* INFRA-581 | Abhishek | Add AmazonClient and dependency for amazon ecr apis

* INFRA-581 | Abhishek | Add Controller and service class for AWS

* INFRA-581 | Abhishek | Add changes to create ECR repository based on portalVertical
2020-11-06 08:29:41 +05:30
Deepak Jain
6eb0d3379b INFRA-588 | Deepak Jain| removing duplicate dependency 2020-10-29 15:10:42 +05:30
Deepak Jain
83fe04cb55 INFRA-586 | Deepak Jain| adding log4j2 with ecs layout 2020-10-27 12:05:51 +05:30
Deepak Jain
58c612f50c INFRA-566 | Deepak Jain| refectoring manifest service 2020-10-20 23:45:26 +05:30
Deepak Jain
2524357c81 INFRA-566 | Deepak Jain| adding manifest service test 2020-10-20 10:49:01 +05:30
anoop narang
99453f91b4 INFRA-559 | Anoop | Add test for kube objects api 2020-10-15 09:14:59 +05:30
Abhishek Katiyar
52caa0331d INFRA-534 | Abhishek | Add feature to send updates to slack (#82)
* INFRA-534 | Abhishek | Add slack client

* INFRA-534 | Abhishek | Add a rest service to call http endpoints

* INFRA-534 | Abhishek | Send a harcoded message to slack channel

* INFRA-534 | Abhishek | Addd changes to send json in message

* INFRA-534 | Abhishek | Add changes to send deployment portal updates to slack

* INFRA-534 | Abhishek | Make slack webhook url configurable
2020-09-27 20:00:17 +05:30
Piyush Sinha
3cb1b60eed INFRA-458 | Piyush | Support for creating multiple SGs for LBs (#47) 2020-08-21 17:59:16 +05:30
Deepak Jain
a04c94bd9c INFRA-428| Deepak Jain| adding feature to add security group in loadbalancer 2020-07-23 21:28:24 +05:30
Piyush Sinha
51aeed0aa6 [INFRA-19] | Support for generating and applying kubernetes deployment manifests (#19) 2020-07-21 16:21:44 +05:30
anoop narang
379ad31964 [INFRA-389] | Anoop | Remove redundant dependency 2020-07-09 19:14:10 +05:30
anoop narang
112b34c0a5 [INFRA-389] | Anoop | Add migrations 2020-07-09 15:21:07 +05:30
anoop narang
db7d64dab1 [INFRA-392] | Anoop | Add clause to show super secrets & make environment substitution if its a system user 2020-07-03 13:40:10 +05:30
anoop narang
1fa14233ae [INFRA-392] | Anoop | Integrate with vault 2020-07-01 11:41:02 +05:30