Skip to content
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

Fixes #114 - Downgrading JWT Libraries as short-term fix for Public Key Size limit #115

Merged
merged 1 commit into from
Apr 20, 2024

Conversation

akhilkh2000
Copy link
Contributor

Date: 20/04/2024

Developer Name: Akhil Khubchandani


Issue Ticket Number

#114

Description

Downgrading JWT Libraries and required transitive dependancies as short-term fix for #114

Documentation Updated?

  • Yes
  • No

Under Feature Flag

  • Yes
  • No

Database Changes

  • Yes
  • No

Breaking Changes

  • Yes
  • No

Development Tested?

  • Yes
  • No

Tested all the GET API's in the project, they are successfully working with the token generated using the 1024 bit public key used on website backend

Screenshots of example API's tested locally

GET endorsements/

image

GET endorsements/:id

image

GET skills/

image

GET skills/:id

image

GET skills/name/:name

image

Test Coverage

NA - Not relevant for this PR

Additional Notes

This will need to be upgraded back to the latest package when Real-Dev-Squad/website-backend#2014 is resolved with the long term plan.

@akhilkh2000 akhilkh2000 force-pushed the downgrade-jwt-library branch from 8a55f94 to aa906fe Compare April 20, 2024 05:13
@iamitprakash iamitprakash merged commit 51ba2c6 into develop Apr 20, 2024
1 check passed
@iamitprakash iamitprakash deleted the downgrade-jwt-library branch April 20, 2024 12:40
MehulKChaudhari pushed a commit to MehulKChaudhari/skill-tree-backend that referenced this pull request May 9, 2024
prakashchoudhary07 added a commit that referenced this pull request May 22, 2024
* added workflow to deploy to ecs

* add aws region

* add env

* fix secret variable name

* fix dockerfile path

* make mvn executable

* fix path dockerfile

* fix target path

* fix: cluster same

* login docker seprately

* update aws region

* add new cluster

* fix cluster name

* change cluster name

* fix secrets

* add workflow file

* add env while building

* fix image name

* add image repo URI in secrets

* fix dockerfile path

* add workflow file

* fix CI to run push

* temp: fix to check if deployment works

* add deploy to ec2 back

* fix ECR public login

* fix ECR public URI

* fix ecr login command

* fix login command

* fix dockerfile

* fix docker push command

* fix tag and push

* fix ecr login

* fix aws login

* fix aws region

* fix ecr-public login region

* deploy to ec2

* Update deploy-to-ec2.yml

* check UI is working or not

* fix: broken change

* change the action runner

* change branch for testing.

* instead of script add steps

* update readme and tokens for integration test (#104)

* update readme

* Update README.md

Co-authored-by: Satyam Bajpai <[email protected]>

* Update README.md

Co-authored-by: Satyam Bajpai <[email protected]>

* Update README.md

Co-authored-by: Satyam Bajpai <[email protected]>

* update auth link

* update tokens

* format code

* update public key

* update public key

* update tokens

* fix readme

* Update README.md

Co-authored-by: Akhil Khubchandani <[email protected]>

* address review comments

---------

Co-authored-by: Satyam Bajpai <[email protected]>
Co-authored-by: Akhil Khubchandani <[email protected]>

* (#114)-Downgrading JWT Libraries as short-term fix for Public Key Size limitation issue (#115)

* Adding integration tests for endorsement service (#107)

* Added integration tests for endorsement service

* Added test suite for integration tests

* testing separation of unit and integration ci and pomxml

* Addressed review comments and added build step in CI

* Fix API contract and added pagination assertions to integration tests

* Fixing typos and addressing review comments

* Addressed review comments

* Addressed review comments

* Addressed review comments

---------

Co-authored-by: akhil <[email protected]>

* added implementation for V1 search endorsements based on dummy data

* Enabled Unit and Integration tests, Auth whitelist for /v1/endorsements

* Formatting fixed

* Put dummyData implementation behind dummyData=true feature flag, old flow kept intact, tests updated

* formatting fixed

* pass public key as env variable

* fix: remove extra space

* add api v1 prefix and data source version

* fix: command format

* fix: remove extra env

* fix: change branch name

---------

Co-authored-by: Achintya Chatterjee <[email protected]>
Co-authored-by: Prakash Choudhary <[email protected]>
Co-authored-by: Amit Prakash <[email protected]>
Co-authored-by: Bhavika Tibrewal <[email protected]>
Co-authored-by: Satyam Bajpai <[email protected]>
Co-authored-by: Akhil Khubchandani <[email protected]>
Co-authored-by: Chethan <[email protected]>
Co-authored-by: akhil <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants