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

remove bouncycastle direct dependency #576

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

dineshc4
Copy link

@dineshc4 dineshc4 commented Mar 5, 2024

Changes here are very same to skuber
Removes direct dependency on bc package and allows user to define the provider of their choice

Copy link

gitguardian bot commented Mar 5, 2024

️✅ There are no secrets present in this pull request anymore.

If these secrets were true positive and are still valid, we highly recommend you to revoke them.
Once a secret has been leaked into a git repository, you should consider it compromised, even if it was deleted immediately.
Find here more information about risks.


🦉 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!

}

pemData <- ZIO.scoped(loadKeyStream(key) flatMap { stream =>
ZIO.attempt(scala.io.Source.fromInputStream(stream).mkString)
Copy link
Collaborator

Choose a reason for hiding this comment

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

isn't this leaking resources? usually when i'm using Source i use it with ZIO.acquireRelease to close it

Copy link
Collaborator

@m-kalai m-kalai left a comment

Choose a reason for hiding this comment

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

looks good to me but i wonder if there's any test which would recognise any issues with loading a key?

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