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

fix(security): address CVE-2019-5413 #1796

Merged
merged 1 commit into from
Feb 25, 2022

Conversation

charellesandig
Copy link
Contributor

fixes #1777

Copy link
Contributor

@petermetz petermetz left a comment

Choose a reason for hiding this comment

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

@charellesandig We do not use package-lock.json files since the migration to yarn from npm, it can (and need to) be deleted.

package.json Outdated Show resolved Hide resolved
Copy link
Contributor

@petermetz petermetz left a comment

Choose a reason for hiding this comment

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

@charellesandig Just a small nit, please lock down the version of the dependency to the exact one that you specified (without allowing a range) so that we have reproducible builds (or at least as close to it as we can get.

@petermetz petermetz requested review from izuru0 and takeutak and removed request for jonathan-m-hamilton February 1, 2022 07:56
@petermetz petermetz added dependencies Pull requests that update a dependency file Security Related to existing or potential security vulnerabilities labels Feb 1, 2022
Copy link
Contributor

@petermetz petermetz left a comment

Choose a reason for hiding this comment

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

@charellesandig The file you added in the diff that's called cactus: Is that needed for something specific or could it be removed as some leftover that's not meant to be there anymore?

package.json Outdated Show resolved Hide resolved
Copy link
Contributor

@petermetz petermetz left a comment

Choose a reason for hiding this comment

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

Hi @petermetz, I deleted the 2 files you mentioned and just keep the child package.json and yarn.lock files. And is now ready for review again, thank you.

@charellesandig For the package.json file I meant that the diff in it is not needed. We do need the file itself in the state it is in on the main as of now. Sorry for the confusion! :-)
Deleting the cactus file was the right move, that's what I meant, thank you for removing that one.

@charellesandig
Copy link
Contributor Author

Hi @petermetz , I added back the package.json file, this time I removed the changes I made from the previous commits and now back to how it is. Thank you so much.

Copy link
Contributor

@petermetz petermetz left a comment

Choose a reason for hiding this comment

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

@charellesandig The diff is LGTM. Please resolve the conflicts, squash the commits into a single one and then we should be good to go!

Copy link
Contributor

@petermetz petermetz left a comment

Choose a reason for hiding this comment

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

Copy link
Contributor

@petermetz petermetz left a comment

Choose a reason for hiding this comment

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

@charellesandig Sorry my bad, conflicts are still there, please fix those first because we cannot merge until then.

@charellesandig
Copy link
Contributor Author

@petermetz I am still working on this one. Thank you.

Copy link
Contributor

@petermetz petermetz left a comment

Choose a reason for hiding this comment

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

@charellesandig You need to update the yarn lock file because currently there are inconsistencies between what's in the package.json files and the lock file itself. (Did you manually edit the yarn.lock file by any chance?)
Most likely you can just do a yarn install and then commit the changes made by yarn itself to the yarn.lock file, but if the build still doesn't work after that just let me know and we can take a closer look together.

Copy link
Contributor

@petermetz petermetz left a comment

Choose a reason for hiding this comment

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

fixes: hyperledger-cacti#1777
Signed-off-by: charellesandig <charelle.wrk@gmail.com>
@charellesandig
Copy link
Contributor Author

Hi @petermetz, I had an issue with my main branch and after fixing it I think it resulted for conflicts to occur in this ticket so I fixed and pushed the updates again. Thank you so much!

Copy link
Contributor

@izuru0 izuru0 left a comment

Choose a reason for hiding this comment

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

LGTM thanks

@petermetz petermetz merged commit 212b770 into hyperledger-cacti:main Feb 25, 2022
@petermetz petermetz deleted the issue1777 branch February 25, 2022 06:24
@petermetz
Copy link
Contributor

Hi @petermetz, I had an issue with my main branch and after fixing it I think it resulted for conflicts to occur in this ticket so I fixed and pushed the updates again. Thank you so much!

@charellesandig My pleasure, thank you!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
dependencies Pull requests that update a dependency file Security Related to existing or potential security vulnerabilities
Projects
None yet
Development

Successfully merging this pull request may close these issues.

fix(security): address CVE-2019-5413
3 participants