-
Notifications
You must be signed in to change notification settings - Fork 24
[INJIVER-1369] - Add verification and validation for cwt formet VC #215
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
Closed
Closed
Changes from all commits
Commits
Show all changes
7 commits
Select commit
Hold shift + click to select a range
657b4f4
[INJIVER-1369] - add verification and validation for cwt formet
jaswanthkumartw cfaba1c
[INJIMOB-3591] refactor revokechecker to statuschecker (#202)
abhip2565 91563e5
[INJIMOB-3581] add e2e test for status check (#204)
abhip2565 925a520
Injiver 1400 Add revocation support in verifiable presentation flow (…
sarupmoni f584d99
[INJIMOB-3647] refactor: enhance response structure of credential sta…
KiruthikaJeyashankar 0fab654
[INJIVER-1369] - add test and clear the issues regarding the build
jaswanthkumartw 812bf0d
[INJIVER-1369] - update the cwt verifer with new library
jaswanthkumartw File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Some comments aren't visible on the classic Files Changed page.
There are no files selected for viewing
This file contains hidden or 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
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains hidden or 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
This file contains hidden or 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
This file contains hidden or 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
This file contains hidden or 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
This file contains hidden or 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
This file contains hidden or 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
This file contains hidden or 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
1 change: 1 addition & 0 deletions
1
...kotlin/vcverifier/src/main/java/io/mosip/vercred/vcverifier/constants/CredentialFormat.kt
This file contains hidden or 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
This file contains hidden or 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
This file contains hidden or 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
13 changes: 13 additions & 0 deletions
13
.../vcverifier/src/main/java/io/mosip/vercred/vcverifier/constants/StatusCheckerConstants.kt
This file contains hidden or 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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,13 @@ | ||
| package io.mosip.vercred.vcverifier.constants | ||
|
|
||
|
|
||
| object StatusCheckerConstants { | ||
| const val STATUS_LIST_CREDENTIAL = "statusListCredential" | ||
| const val BITSTRING_STATUS_LIST_ENTRY = "BitstringStatusListEntry" | ||
| const val BITSTRING_STATUS_LIST = "BitstringStatusList" | ||
| const val STATUS_PURPOSE = "statusPurpose" | ||
| const val ENCODED_LIST = "encodedList" | ||
| const val STATUS_SIZE = "statusSize" | ||
| const val STATUS_MESSAGE = "statusMessage" | ||
| const val STATUS_LIST_INDEX = "statusListIndex" | ||
| } |
This file contains hidden or 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
5 changes: 4 additions & 1 deletion
5
...fier/src/main/java/io/mosip/vercred/vcverifier/credentialverifier/VerifiableCredential.kt
This file contains hidden or 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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,9 +1,12 @@ | ||
| package io.mosip.vercred.vcverifier.credentialverifier | ||
|
|
||
| import io.mosip.vercred.vcverifier.data.CredentialStatusResult | ||
| import io.mosip.vercred.vcverifier.data.ValidationStatus | ||
|
|
||
| interface VerifiableCredential { | ||
| fun validate(credential: String): ValidationStatus | ||
| fun verify(credential: String): Boolean | ||
| fun isRevoked(credential: String): Boolean | ||
| fun checkStatus(credential: String, statusPurposes: List<String>?): Map<String, CredentialStatusResult> { | ||
| throw UnsupportedOperationException("Credential status checking not supported for this credential format") | ||
| } | ||
| } |
Oops, something went wrong.
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.
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.
🧩 Analysis chain
🌐 Web query:
Jackson 2.14.0 CVE vulnerabilities security issues💡 Result:
Short answer: Jackson (jackson-databind) 2.14.0 mainly contains fixes for many prior "unsafe deserialization" CVEs, but the jackson-databind family has a long history of deserialization and resource‑exhaustion vulnerabilities. Distributors/security trackers mark several high‑severity deserialization CVEs as fixed by the 2.14.x fixes; additional denial‑of‑service / resource exhaustion issues have also been addressed in later 2.11–2.14 series releases. Upgrade to a patched release (or the latest 2.15+/maintenance release) and avoid enabling DefaultTyping / untrusted polymorphic deserialization. Sources: Snyk vulnerability list, Debian security tracker, CVE summary. [1][2][3]
References
If you want, I can run a live check of the very latest jackson-databind release and list specific CVE numbers and which are fixed in 2.14.0 vs later releases.
🌐 Web query:
Jackson breaking changes 2.14.0 to 2.17.2 upgrade guide💡 Result:
Below is a concise upgrade checklist noting the important breaking/behavior changes and recommended actions when moving from Jackson 2.14.0 → 2.17.2.
High-impact changes to review and adapt for
Recommended upgrade steps
Primary sources / release notes (read before upgrading)
If you want, I can:
References
[1] Jackson Release 2.14 — FasterXML (release notes).
[2] Jackson Release 2.15 — FasterXML (release notes).
[3] Jackson 2.16 overview (cowtowncoder blog / rc notes).
[4] Jackson Release 2.17.2 — FasterXML (release notes).
[5] Jackson 2.16.1 / 2.16.x summary (package/announcements).
Test Jackson upgrade to 2.17.2 for breaking changes before merging.
The upgrade spans multiple minor versions with several breaking changes requiring verification:
StreamReadConstraintsif needed.Additionally, 2.17.2 includes security patches and BigDecimal/Reactor fixes beyond what 2.14.0 had. Run full test suite, especially for JSON parsing of large/nested data, enum handling, and polymorphic deserialization.
🤖 Prompt for AI Agents