Why it matters
The application accepts plain HTTP and does not send HSTS or mark cookies secure.
How to fix it
Set config.force_ssl = true in production.
Example
The rule's own test fixtures, verbatim: the test suite requires the rule to report the first and not the second.
Rails.application.configure do
config.force_ssl = false
endRails.application.configure do
config.force_ssl = true
endWhat TrustIvan reads
Runs on repository scans of Ruby source once static analysis is turned on (SAST_RULES and the separately built analyzer image); it is off by default.
Weakness classes and references
Related checks
- HTML safe non literal (Ruby)
RubySeverity: Medium
trustivan-ruby-html-safe-non-literal - Cookie HttpOnly disabled (Ruby)
RubySeverity: Medium
trustivan-ruby-cookie-httponly-disabled - Kernel open (Ruby)
RubySeverity: High
trustivan-ruby-kernel-open - JWT hardcoded secret (Ruby)
RubySeverity: High
trustivan-ruby-jwt-hardcoded-secret - Marshal load (Ruby)
RubySeverity: Medium
trustivan-ruby-marshal-load - JWT verification disabled (Ruby)
RubySeverity: High
trustivan-ruby-jwt-verification-disabled
Terms: SAST (static application security testing), Taint analysis, CWE (Common Weakness Enumeration), OWASP Top 10
All static analysis (SAST) checks · The whole catalogue · How this works in TrustIvan · Documentation