-
Notifications
You must be signed in to change notification settings - Fork 31
SONARKT-569 Modify rule S4830: add support for WebViews #4673
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
SONARKT-569 Modify rule S4830: add support for WebViews #4673
Conversation
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.
Needs a few structural changes to be fully "LaYC up-to-date", which we apparently forgot to do for S4830 in Java/Kotlin.
As suggested, I have adapted the "How to fix section" to have both compliant and non-compliant code examples, to have a coherent experience with other languages such as docker. In order to match that, I have moved the Let me know if that looks better for you. Regarding LaYC: the migration of this rule for Kotlin was done in #2176
The optionality also applies to "How does this work", and any other level 3 section. Given the above, I think that the way Java was done looks good to me: the non-compliant code example doesn't have a corresponding compliant, since all the proposed solutions for Java are ways to not use a custom trust manager at all, so I don't think we should bend the structure to meet a LaYC layout which is defined as optional, and proposed as an example of how things should look. If anything I would remove the |
d604804
to
b11fd7a
Compare
You're right, my previous comment was wrong. As the recommended fix is omitting a trust manager, it makes sense for there only to be one code sample instead of two in the JCE case. For Android, this is different, so I think your fix makes sense here as well. |
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, I suggested two changes for consistency with other security rules.
Co-authored-by: Egon Okerman <egon.okerman@sonarsource.com>
Co-authored-by: Egon Okerman <egon.okerman@sonarsource.com>
|
|
SONARKT-569
Review
A dedicated reviewer checked the rule description successfully for: