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

Snj 34 person binding #39

Merged
merged 20 commits into from
Apr 25, 2024
Merged

Snj 34 person binding #39

merged 20 commits into from
Apr 25, 2024

Conversation

anilasimbilen
Copy link
Contributor

No description provided.

Copy link

gitguardian bot commented Feb 28, 2024

⚠️ GitGuardian has uncovered 4 secrets following the scan of your pull request.

Please consider investigating the findings and remediating the incidents. Failure to do so may lead to compromising the associated services or software components.

🔎 Detected hardcoded secrets in your pull request
GitGuardian id GitGuardian status Secret Commit Filename
8171466 Triggered Generic High Entropy Secret 9d876b1 packages/sdk/test/infrastructure/resources/valid/PresentationSubmissionMocks.ts View secret
8171466 Triggered Generic High Entropy Secret 819893e packages/sdk/test/infrastructure/resources/valid/PresentationSubmissionMocks.ts View secret
8171466 Triggered Generic High Entropy Secret 454f48c packages/sdk/test/infrastructure/resources/valid/PresentationSubmissionMocks.ts View secret
5533133 Triggered Generic High Entropy Secret 2edc5ce packages/sdk/test/infrastructure/resources/valid/DeepLinkMocks.ts View secret
🛠 Guidelines to remediate hardcoded secrets
  1. Understand the implications of revoking this secret by investigating where it is used in your code.
  2. Replace and store your secrets safely. Learn here the best practices.
  3. Revoke and rotate these secrets.
  4. If possible, rewrite git history. Rewriting git history is not a trivial act. You might completely break other contributing developers' workflow and you risk accidentally deleting legitimate data.

To avoid such incidents in the future consider


🦉 GitGuardian detects secrets in your source code to help developers and security teams secure the modern development process. You are seeing this because you or someone else with access to this repository has authorized GitGuardian to scan your pull request.

Our GitHub checks need improvements? Share your feedbacks!

Copy link
Contributor

@michaelavoyan michaelavoyan left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

packages/sdk/src/api/VCLCryptoServiceType.ts Outdated Show resolved Hide resolved
let result: JSONObject = {
[VCLSubmission.KeyJti]: this.jti,
[VCLSubmission.KeyIss]: this.iss,
[VCLSubmission.KeyIss]: iss ? iss : this.iss,
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The method in Android project have iss property in it, should I remove it anyway?

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should be implemented as an injected service
https://velocitycareerlabs.atlassian.net/browse/SNJ-36

packages/sdk/src/impl/keys/VCLKeyServiceLocalImpl.ts Outdated Show resolved Hide resolved
Copy link
Contributor

@michaelavoyan michaelavoyan left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Recently we decided that the SDK will provide only injected implementation of crypto services. So VCLCryptoServicesDescriptor will contain only VCLInjectedCryptoServicesDescriptor, which must be mandatory.
See the decription in https://velocitycareerlabs.atlassian.net/browse/SNJ-36

Copy link
Contributor

@michaelavoyan michaelavoyan left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@anilasimbilen Please resolve all comments

constructor(
public readonly keyService: VCLKeyService,
public readonly jwtSignService: VCLJwtSignService,
public readonly jwtVerifyService: Nullish<VCLJwtVerifyService>
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

jwtVerifyService should not be nullable, because there is alternative option for verification.

packages/sdk/src/api/keys/VCLKeyService.ts Outdated Show resolved Hide resolved
packages/sdk/src/impl/VCLImpl.ts Show resolved Hide resolved
@@ -206,11 +260,13 @@ export class VCLImpl implements VCL {
};

submitPresentation = async (
presentationSubmission: VCLPresentationSubmission
presentationSubmission: VCLPresentationSubmission,
didJwk: Nullish<VCLDidJwk>
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

didJwk should be non-nullable

packages/sdk/src/impl/VCLImpl.ts Outdated Show resolved Hide resolved
packages/sdk/src/impl/VCLImpl.ts Outdated Show resolved Hide resolved
@michaelavoyan michaelavoyan self-requested a review April 25, 2024 09:54
@michaelavoyan michaelavoyan merged commit b0a298d into main Apr 25, 2024
2 checks passed
@michaelavoyan michaelavoyan deleted the SNJ-34-person-binding branch April 25, 2024 09:55
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.

2 participants