-
Notifications
You must be signed in to change notification settings - Fork 43
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
Support allowlisting private packages by module #252
Comments
Hey @quinnturner, I'm interested on working on this if thats okay? 😄 |
Hey @andrewdetorres, yep, I would accept a PR that adds this functionality! If you have questions, feel free to drop them here 😄 |
Hey @quinnturner, After taking a look into this issue, the way that the code works with module name allowlist is that the package name with the vulnerability should be used. In the example above Having the root package in the allowlist would be a cool feature so you don't have to write out the full path. Is this something you would like to consider as a feature? 😄 |
Root module advisory allow listing is supported with I haven't reviewed how the package manager's audit responds to private dependencies. If they still handle the transitive dependencies, there may we a way to workaround it with a different allowlist without much or any code. |
It appears that the above syntax The root module advisory allow listing support seems slightly hidden in the docs. I'm happy to make a contribution to make this more clear if you're happy for me to go ahead with that? |
I am always interested in making the documentation better! Allowlisting all transitive dependencies of a package is not usually recommended workflow because legitimate advisories may slip through, so the wording would have to be considered. However, I am open to PRs! |
I am closing for now because of the improved documentation. While this is still technically an issue, it can be worked around and "fixing it" involves mutating the received audit. If "natively" solving this receives a lot of positive desire, I will consider reopening! |
From @gimyboya #170 (comment):
This behaviour is because
proxy-client-ts
andtenant-client-ts
are not on the registry. Accordingly, they are not present in the audit response(? TBD, I don't know). This makes allowlisting the modules more difficult as we have to use information outside the scope of just the audit response.The text was updated successfully, but these errors were encountered: