-
Notifications
You must be signed in to change notification settings - Fork 31
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
Critical code review PR - Last sprint handover checklist of 0.10.0 release #147
base: master
Are you sure you want to change the base?
Conversation
Earlier `/issuance/.well-known/openid-credential-issuer?version=v123` would return the latest versioned issuer metadata earlier if it was not valid, now returns an error. Signed-off-by: Harsh Vardhan <[email protected]>
Signed-off-by: Harsh Vardhan <[email protected]>
Signed-off-by: Challa Rao <[email protected]>
[DSD-5526] Update init_db.sh namespace and chart version
Signed-off-by: Harsh Vardhan <[email protected]>
[INJICERT-236] throw error when unsupported wellknown version requested
Signed-off-by: Challarao <[email protected]>
[INJICERT-37] rename certify database name
Signed-off-by: VSIVAKALYAN <[email protected]>
[DSD-5618] Update init_values.yaml
* [INJICERT-248] use well known config from spring from separate JSON file Signed-off-by: Harsh Vardhan <[email protected]> * [INJICERT-248] fixup JSON formatting of well-known config Signed-off-by: Harsh Vardhan <[email protected]> * [INJICERT-248] Fixup formatting & resource URL Signed-off-by: Harsh Vardhan <[email protected]> * [INJICERT-248] add missing config for mock-identity Signed-off-by: Harsh Vardhan <[email protected]> * [INJICERT-248] parse metadata when mediatype is text/plain Signed-off-by: Harsh Vardhan <[email protected]> * [INJICERT-248] rename openid4vci well known file Signed-off-by: Harsh Vardhan <[email protected]> --------- Signed-off-by: Harsh Vardhan <[email protected]>
Signed-off-by: ckm007 <[email protected]>
[MOSIP-34749] removed platform related DB's reference
Signed-off-by: Praful Rakhade <[email protected]>
[DSD-5853] updated Dockerfile
Signed-off-by: Nandhukumar <[email protected]>
#49)" (#59) This reverts commit c1c4e43. Signed-off-by: Harsh Vardhan <[email protected]>
Signed-off-by: Rakshitha650 <[email protected]>
Signed-off-by: Rakshitha650 <[email protected]>
[MOSIP-34818]Updated values.yaml
Signed-off-by: Nandhukumar <[email protected]>
Signed-off-by: Nandhukumar <[email protected]>
Signed-off-by: Nandhukumar <[email protected]>
Signed-off-by: Nandhukumar <[email protected]>
Signed-off-by: Nandhukumar <[email protected]>
Signed-off-by: Nandhukumar <[email protected]>
Signed-off-by: Nandhukumar <[email protected]>
MOSIP-33742 | Created component based API test rig for Inji-certify
…ch (#148) * [INJICERT-499] added config docs for postgres dp plugin Signed-off-by: Piyush7034 <[email protected]> * Added upgrade sql scripts Signed-off-by: Piyush7034 <[email protected]> * Fixed template name Signed-off-by: Piyush7034 <[email protected]> * Fixed template name Signed-off-by: Piyush7034 <[email protected]> * Change in some configs w.r.t. data provider plugin Signed-off-by: Piyush7034 <[email protected]> --------- Signed-off-by: Piyush7034 <[email protected]> Signed-off-by: Vishwa <[email protected]>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@vharsh @Piyush7034 Part 2 review done, reviewed till service layer of certify-service
certify-integration-api/src/main/java/io/mosip/certify/api/spi/DataProviderPlugin.java
Outdated
Show resolved
Hide resolved
certify-integration-api/src/main/java/io/mosip/certify/api/spi/VCFormatter.java
Outdated
Show resolved
Hide resolved
certify-integration-api/src/main/java/io/mosip/certify/api/spi/VCFormatter.java
Outdated
Show resolved
Hide resolved
/** | ||
* VCSigner can sign any VC provided a vcHash & Signer inputs | ||
*/ | ||
public interface VCSigner { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Any special reason for this to be part of certify-integration-api and not certify-service ?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There is spi folder in both certify-core and certify-integration-api. All the interfaces are placed in these folders. So, it was placed in certify-integration-api. This can be moved to service folder of the certify-service
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
VCSigner and impl file to be moved to io.mosip.certify.vcsigners
certify-service/src/main/java/io/mosip/certify/CertifyServiceApplication.java
Outdated
Show resolved
Hide resolved
certify-service/src/main/java/io/mosip/certify/services/KeymanagerLibSigner.java
Outdated
Show resolved
Hide resolved
certify-service/src/main/java/io/mosip/certify/services/KeymanagerLibSigner.java
Outdated
Show resolved
Hide resolved
certify-service/src/main/java/io/mosip/certify/services/SVGRenderUtils.java
Outdated
Show resolved
Hide resolved
certify-service/src/main/java/io/mosip/certify/services/SvgTemplateServiceImpl.java
Outdated
Show resolved
Hide resolved
certify-service/src/main/java/io/mosip/certify/services/VCIssuanceServiceImpl.java
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@vharsh @Piyush7034 Last set review done,
api test, test file and deployment script are not reviewed.
certify-service/src/main/java/io/mosip/certify/services/ldsigner/Ed25519ProofSignature2018.java
Outdated
Show resolved
Hide resolved
certify-service/src/main/java/io/mosip/certify/services/ldsigner/Ed25519ProofSignature2018.java
Outdated
Show resolved
Hide resolved
certify-service/src/main/java/io/mosip/certify/services/SvgTemplateServiceImpl.java
Outdated
Show resolved
Hide resolved
...-service/src/main/java/io/mosip/certify/services/templating/VelocityTemplatingConstants.java
Outdated
Show resolved
Hide resolved
@Autowired | ||
SvgTemplateService svgTemplateService; | ||
@Value("${mosip.certify.vcformat.vc.expiry:true}") | ||
boolean shouldHaveDates; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
variable name and config name does not match
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Would it be a good time to consider this feature enhancement here? It wasn't discussed but implemented directly.
ref: #132
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Might need some changes in the config name, but largely ok.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Lets rename to mosip.certify.data-provider-plugin.vc-expiry-duration and use the java standard library for parsing.
Add the comments in the properties with the format and point to the ISO 8601
- SPRING_CONFIG_NAME=certify | ||
- SPRING_CONFIG_LOCATION=/home/mosip/config/ | ||
- enable_certify_artifactory=false | ||
- download_hsm_client=false |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We can add a small note to readme file to add the below environment variable to configure ngrok
mosipbox_public_url=https://nearly-notable-longhorn.ngrok-free.app
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
docs to be updated later
listen 80; | ||
|
||
location / { | ||
root /config/server; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
why we have this config/server ?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@Piyush7034 to remove this and find out if that will work for him
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@Piyush7034 Any update on this ?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There were issues while running docker on my machine. Thats why I couldn't remove
Signed-off-by: Nandhukumar <[email protected]>
Signed-off-by: Nandhukumar <[email protected]>
MOSIP-38340 | Sync injicertify develop and release-0.10x branch
* [INJICERT-657] rename Svg -> SVG and other minor changes Signed-off-by: Harsh Vardhan <[email protected]> * [INJICERT-657] make mass renames, update DB Changes: * svg_template DB becomes template_registry & it's ID column becomes a String from UUID type Signed-off-by: Harsh Vardhan <[email protected]> * [INJICERT-657] move proofgenerator package Signed-off-by: Harsh Vardhan <[email protected]> * Docker and script code changes Signed-off-by: Piyush7034 <[email protected]> * [INJICERT-657] rename Certify keys in KeyManager Signed-off-by: Harsh Vardhan <[email protected]> * [INJICERT-657] rename Certify keys in KeyManager Signed-off-by: Harsh Vardhan <[email protected]> * [INJICERT-657] move VCFormatter & VCSigner to certify-service Signed-off-by: Harsh Vardhan <[email protected]> * [INJICERT-657] make Velocity template cacheable Signed-off-by: Harsh Vardhan <[email protected]> --------- Signed-off-by: Harsh Vardhan <[email protected]> Signed-off-by: Piyush7034 <[email protected]> Co-authored-by: Piyush7034 <[email protected]> Signed-off-by: Vishwa <[email protected]>
Signed-off-by: Piyush7034 <[email protected]> Signed-off-by: Vishwa <[email protected]>
…es and docker Signed-off-by: Piyush7034 <[email protected]>
[INJICERT-657] Added review changed related to rendering template names and docker
* [INJICERT-657] pass keyID from CertifyIssuanceImpl Other changes: * more renames, changes to scripts & SQL files Signed-off-by: Harsh Vardhan <[email protected]> * [INJICERT-657] use local CSV file for docker compose demo Signed-off-by: Harsh <[email protected]> * [INJICERT-657] remove & rename files Signed-off-by: Harsh Vardhan <[email protected]> * [INJICERT-657] add optional expiry of VC in template Signed-off-by: Harsh Vardhan <[email protected]> * [INJICERT-657] move packages around Signed-off-by: Harsh Vardhan <[email protected]> --------- Signed-off-by: Harsh Vardhan <[email protected]> Signed-off-by: Harsh <[email protected]> Signed-off-by: Vishwa <[email protected]>
Signed-off-by: Piyush7034 <[email protected]> Signed-off-by: Vishwa <[email protected]>
* [INJICERT-695] add mock mdoc VCI postman collection Signed-off-by: KiruthikaJeyashankar <[email protected]> * [INJICERT-695] modify property name of mdoc issuer key certificate mosip.certify.mock.vciplugin.issuer.key-cert changed to mosip.certify.mock.vciplugin.mdoc.issuer-key-cert Signed-off-by: KiruthikaJeyashankar <[email protected]> --------- Signed-off-by: KiruthikaJeyashankar <[email protected]> Signed-off-by: Vishwa <[email protected]>
* [INJICERT-657] Added some deployment changes Signed-off-by: Piyush7034 <[email protected]> * [INJICERT-657] Change in extraEnvVars yaml value Signed-off-by: Piyush7034 <[email protected]> --------- Signed-off-by: Piyush7034 <[email protected]> Signed-off-by: Vishwa <[email protected]>
Signed-off-by: Piyush7034 <[email protected]> Signed-off-by: Vishwa <[email protected]>
This reverts commit 443262e. Signed-off-by: Vishwa <[email protected]>
Signed-off-by: Harsh <[email protected]> Signed-off-by: Vishwa <[email protected]>
Signed-off-by: KiruthikaJeyashankar <[email protected]> Signed-off-by: Vishwa <[email protected]>
Signed-off-by: Harsh Vardhan <[email protected]> Signed-off-by: Vishwa <[email protected]>
…ified the docker compose file (#166) Signed-off-by: Vishwa <[email protected]>
Signed-off-by: Harsh <[email protected]>
…plate and docker compose pointed to collab (#168) Signed-off-by: Vishwa <[email protected]> Signed-off-by: Hitesh Jain <[email protected]> Co-authored-by: Hitesh Jain <[email protected]>
* [INJICERT-642] add dev & integrator docs Topics: * add plugin docs * add local development & setup guide * add docs for hosting a DID document Signed-off-by: Harsh Vardhan <[email protected]> * [INJICERT-642] reorganize docs Signed-off-by: Harsh Vardhan <[email protected]> * [INJICERT-642] update UINs to match collab setup data Signed-off-by: Harsh <[email protected]> * [INJICERT-642] update farmer logo and readme Signed-off-by: Harsh <[email protected]> * [INJICERT-642] remove redundant docs Signed-off-by: Harsh Vardhan <[email protected]> * [INJICERT-642] update mDoc docs Signed-off-by: Harsh Vardhan <[email protected]> * [INJICERT-642] remove mDoc secret generation script Signed-off-by: Harsh Vardhan <[email protected]> --------- Signed-off-by: Harsh Vardhan <[email protected]> Signed-off-by: Harsh <[email protected]> Signed-off-by: Vishwa <[email protected]>
Signed-off-by: Piyush7034 <[email protected]>
…ervice (#165) * [INJICERT-331] Added unit tests for validators and certify issuance service Signed-off-by: Piyush7034 <[email protected]> * Added proof generator and issuance services test cases Signed-off-by: Piyush7034 <[email protected]> * Added few more test for filter and services Signed-off-by: Piyush7034 <[email protected]> --------- Signed-off-by: Piyush7034 <[email protected]>
Signed-off-by: Harsh Vardhan <[email protected]>
* [INJICERT-657] update docs and issuer name Signed-off-by: Harsh Vardhan <[email protected]> * [INJICERT-657] update mock mdl configurations Signed-off-by: Harsh Vardhan <[email protected]> --------- Signed-off-by: Harsh Vardhan <[email protected]>
Signed-off-by: Harsh <[email protected]>
This PR is created just to add the review comments as part of the critical code review task of last sprint handover checklist for release of 0.10.0 version.
** THIS PR SHOULD NOT BE MERGED **