-
Notifications
You must be signed in to change notification settings - Fork 173
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
Set getCertFromKeyInfo
to noop
#445
Conversation
`getKeyInfoContent` was incorectly set to `noop` instead of `getCertFromKeyInfo`
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## master #445 +/- ##
==========================================
- Coverage 73.17% 73.05% -0.12%
==========================================
Files 9 9
Lines 902 902
Branches 239 239
==========================================
- Hits 660 659 -1
Misses 143 143
- Partials 99 100 +1 ☔ View full report in Codecov by Sentry. |
This PR addresses the concerns correctly pointed out by @srd90 here. Since it is fixing a mistake, and it seems few, if any are using it, should this be a semver-minor change or a semver-major change @LoneRifle ? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lgtm, thanks for the catch @srd90 !
@LoneRifle , do you think I should release this as a semver-minor or semver-major release? |
Inclination is towards a major release, given that it's likely a breaking change. At the same time, you could consider deprecating v5 so that users are encouraged to skip it |
Shouldn't you consider deprecating also v4 due to the fact that it has same default functionality that was now replaced with noop. Thing that was about to happen at node-saml/node-saml#341 is a proof that people are quite likely going to disable signature verification accidentally during migration from earlier versions to v4 or v5 (more info from #399 for those who land this PR later) and its going to be undetected if they don't have tests to cover e.g. the case at PR mentioned earlier. |
Honestly, I think we de-facto deprecate anything other than the current semver-major release. I suppose I can actively deprecate these on NPM though. I have no interest in trying to support anything other the HEAD or the latest release. If someone wants something on an older version, they can make the correct PR, but that is on them. @LoneRifle what has been your tradition here? |
Just one more comment: Maybe CVE for v4 and v5 so that those who have already migrated to those versions would possible become more aware of unsecure default implementation which overrides explicitly set certificate. |
@cjbarth - I've usually just left versions alone, but only because I previously saw no significant security issues. I'm happy to defer to you to set the norm going forward |
Changes in node-saml#445 was not reflected in the documentation. This PR fixes it.
getKeyInfoContent
was incorrectly set tonoop
instead ofgetCertFromKeyInfo