Upgrade brakeman to v6
@jrafanie Please review.
Looks like a legit failure with newer brakeman
So, I think the problem is that the file path is part of the brakeman.ignore's fingerprint, and engines could live in different places 😭 - I think I have to open an issue with brakeman.
Message: `protect_from_forgery` should be configured with `with: :exception`
Code:
protect_from_forgery :secret => SecureRandom.hex(64),
:except => ([:authenticate, :external_authenticate, :kerberos_authenticate,
:saml_login, :initiate_saml_login, :oidc_login, :initiate_oidc_login, :csp_report]),
:with => :reset_session
@kbrock https://github.com/ManageIQ/manageiq/pull/23124/files#diff-62c4b53b7988735188b9b2ac5614a6f7a624451ebdd77f125d35dc6ee013b3d2R23
But also, the problem I'm having isn't that issue. The problem is that the issue exists in a plugin, and the file path is part of the false-positive fingerprint. So, locally that file path is different than when it's in CI, and I can't make it work in both environments. I'm really not sure how to fix it :(
@jrafanie This should be ready for review now. I'm also going to cross-repo with ui-class to show that it works properly when run from within the engines.
@miq-bot cross-repo-test manageiq-ui-classic
lib/extensions/brakeman_fingerprint_patch.rb
- [ ] :warning: - Line 56, Col 48 - Lint/UnusedBlockArgument - Unused block argument -
v. If it's necessary, use_or_vas an argument name to indicate that it won't be used. - [ ] :exclamation: - Line 42, Col 76 - Style/RedundantSelf - Redundant
selfdetected. - [ ] :exclamation: - Line 45, Col 25 - Style/RedundantSelf - Redundant
selfdetected. - [ ] :exclamation: - Line 48, Col 7 - Style/RedundantSelf - Redundant
selfdetected. - [ ] :exclamation: - Line 55, Col 11 - Style/RedundantSelf - Redundant
selfdetected. - [ ] :exclamation: - Line 57, Col 27 - Style/FormatString - Favor
String#%oversprintf. - [ ] :exclamation: - Line 60, Col 105 - Style/RedundantSelf - Redundant
selfdetected. - [ ] :exclamation: - Line 67, Col 36 - Style/RedundantSelf - Redundant
selfdetected.
@jrafanie All of the rubocops are tripping on original brakeman code, so I am not going to change those.
Yeah I'm going to let it bake a bit - maybe backport in a week or 2 to see how the automated runs go and PRs go.
Merging. Whitesource can't check it out so not really a PR error.
Backported to radjabov via merge of master into radjabov