Skip to content

rules/sdk: allow packages with */crypto/* to import unsafe#64

Merged
odeke-em merged 1 commit intomasterfrom
allow-crypto-modules-to-import-unsafe
Oct 22, 2022
Merged

rules/sdk: allow packages with */crypto/* to import unsafe#64
odeke-em merged 1 commit intomasterfrom
allow-crypto-modules-to-import-unsafe

Conversation

@odeke-em
Copy link
Contributor

Cryptographic packages require crypto/rand and other seemingly unsafe packages. This change removes those false positives by checking that segments of the package's path contain "crypto" and if so allow these "unsafe" packages.

Fixes #63

Cryptographic packages require crypto/rand and other seemingly
unsafe packages. This change removes those false positives by
checking that segments of the package's path contain "crypto" and if
so allow these "unsafe" packages.

Fixes #63
@odeke-em odeke-em merged commit 05a47ad into master Oct 22, 2022
@odeke-em odeke-em deleted the allow-crypto-modules-to-import-unsafe branch October 22, 2022 05:44
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.

rules/sdk: G702: Blocklisted import crypto/rand should not flag for crypto related code

1 participant