Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.
RHEL Engineering is moving the tracking of its product development work on RHEL 6 through RHEL 9 to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "RHEL project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs in the statuses "NEW", "ASSIGNED", and "POST" are being migrated throughout September 2023. Bugs of Red Hat partners with an assigned Engineering Partner Manager (EPM) are migrated in late September as per pre-agreed dates. Bugs against components "kernel", "kernel-rt", and "kpatch" are only migrated if still in "NEW" or "ASSIGNED". If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "RHEL project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/RHEL-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.

Bug 1791262

Summary: Backport SameSite=None cookie from upstream to support latest browsers
Product: Red Hat Enterprise Linux 8 Reporter: Jakub Hrozek <jhrozek>
Component: mod_auth_mellonAssignee: Jakub Hrozek <jhrozek>
Status: CLOSED ERRATA QA Contact: Scott Poore <spoore>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 8.1CC: asah, hokuda, kkufova, lakagwu, sssd-qe
Target Milestone: rcKeywords: Triaged
Target Release: 8.0Flags: pm-rhel: mirror+
Hardware: Unspecified   
OS: Unspecified   
Whiteboard: sync-to-jira
Fixed In Version: mod_auth_mellon-0.14.0-12.el8 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of:
: 1791264 (view as bug list) Environment:
Last Closed: 2021-05-18 16:13:59 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On:    
Bug Blocks: 1791264    

Description Jakub Hrozek 2020-01-15 11:20:12 UTC
Description of problem:
With Chrome 80 in February, Chrome will treat cookies that have no declared SameSite value as SameSite=Lax cookies. Only cookies with the SameSite=None; Secure setting will be available for external access, provided they are being accessed from secure connections.

In mellon, this could prevent 3rd party IDPs from being accessed, see the upstream commit: https://github.com/latchset/mod_auth_mellon/pull/8

The upstream commit also links to an excellent Chromium blog post.

Version-Release number of selected component (if applicable):
whatever we ship in RHEL now

How reproducible:
unknown

Steps to Reproduce:
1. inspect the mellon cookie
2.
3.

Actual results:
SameSite=Lax

Expected results:
SameSite=None

Additional info:

Comment 2 Jakub Hrozek 2020-12-08 14:40:48 UTC
*** Bug 1821989 has been marked as a duplicate of this bug. ***

Comment 8 Scott Poore 2021-02-02 17:18:33 UTC
Verified.

Version ::

mod_auth_mellon-0.14.0-12.el8.x86_64

Results ::

Firefox:

HTTP/1.1 303 See Other
Date: Tue, 02 Feb 2021 17:05:55 GMT 
Server: Apache/2.4.37 (Red Hat Enterprise Linux) OpenSSL/1.1.1g
Cache-Control: private, max-age=0, must-revalidate
Set-Cookie: mellon-cookie=feccc176b413a86895a49e2797d11787; Version=1; Path=/; Domain=mellon_server.example.test; HttpOnly; secure; SameSite=None;
Location: https://mellon_server.example.test:60443/private/
Content-Length: 279 
Keep-Alive: timeout=5, max=100
Connection: Keep-Alive
Content-Type: text/html; charset=iso-8859-1
Accept text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,*/*;q=0.8
Accept-Encoding gzip, deflate, br
Accept-Language en-US,en;q=0.5
Cache-Control no-cache
Connection keep-alive
Content-Length 16077
Content-Type application/x-www-form-urlencoded
Cookie experimentation_subject_id=ImI0MTViYzJjLTIxYzMtNDc3My1iODQ4...
DNT 1
Host mellon_server.example.test:60443
Origin https://mellon_server.example.test:8443
Pragma no-cache
Referer https://mellon_server.example.test:8443/auth/realms/master/login-actions/authenticate?client_id=https%3A%2F%2Fmellon_server.example.test%3A60443%2Fmellon%2Fmetadata&tab_id=hTrf_5_VhXU
Upgrade-Insecure-Requests 1
User-Agent Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Firefox/78.0

Chrome does show mellon-cookie secure box checked and samesite box shows none.

Comment 12 errata-xmlrpc 2021-05-18 16:13:59 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory (mod_auth_mellon bug fix and enhancement update), and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

https://access.redhat.com/errata/RHBA-2021:1934