Blame SPECS/mod_auth_mellon.spec

63fd3d
Summary: A SAML 2.0 authentication module for the Apache Httpd Server
63fd3d
Name: mod_auth_mellon
63fd3d
Version: 0.14.0
cecfde
Release: 12%{?dist}.1
63fd3d
Group: System Environment/Daemons
63fd3d
Source0: https://github.com/UNINETT/mod_auth_mellon/releases/download/v%{version}/%{name}-%{version}.tar.gz
63fd3d
Source1: auth_mellon.conf
63fd3d
Source2: 10-auth_mellon.conf
63fd3d
Source3: mod_auth_mellon.conf
63fd3d
Source4: mellon_create_metadata.sh
63fd3d
Source5: README.redhat.rst
63fd3d
Source6: mellon_user_guide.html
63fd3d
License: GPLv2+
63fd3d
BuildRequires:  gcc
63fd3d
BuildRequires: curl-devel
63fd3d
BuildRequires: glib2-devel
63fd3d
BuildRequires: httpd-devel
63fd3d
BuildRequires: lasso-devel >= 2.5.1
63fd3d
BuildRequires: openssl-devel
63fd3d
BuildRequires: xmlsec1-devel
63fd3d
Requires: httpd-mmn = %{_httpd_mmn}
63fd3d
Requires: lasso >= 2.5.1
63fd3d
Url: https://github.com/UNINETT/mod_auth_mellon
63fd3d
3e4216
Patch0001: 0001-Modify-am_handler-setup-to-run-before-mod_proxy.patch
0868b8
Patch0002: 0002-Fix-redirect-URL-validation-bypass.patch
0868b8
Patch0003: 0003-backport-Make-the-environment-variable-prefix-configurable.patch
765550
Patch0004: 0004-Fix-incorrect-header-used-for-detecting-AJAX-request.patch
765550
Patch0005: 0005-CVE_2019_13038.patch
7dc08b
Patch0006: 0006-Add-none-option-for-samesite.patch
7dc08b
Patch0007: 0007-avoid-always-set-SameSite-cookie.patch
7dc08b
Patch0008: 0008-Set-SameSite-to-None-on-test-cookie.patch
cecfde
Patch0009: 0009-Prevent-redirect-to-URLs-that-begin-with.patch
3e4216
63fd3d
# FIXME: RHEL-7 does not have rubygem-asciidoctor, only asciidoc. However,
63fd3d
# I could not get asciidoc to render properly so instead I generated
63fd3d
# mellon_user_guide.html on Fedora using asciidoctor and included
63fd3d
# mellon_user_guide.html as a SOURCE. If the user guide source is updated
63fd3d
# the mellon_user_guide.html will need to be regenerated. 
63fd3d
63fd3d
%description
63fd3d
The mod_auth_mellon module is an authentication service that implements the
63fd3d
SAML 2.0 federation protocol. It grants access based on the attributes
63fd3d
received in assertions generated by a IdP server.
63fd3d
63fd3d
%prep
63fd3d
%setup -q -n %{name}-%{version}
3e4216
%patch1 -p1
0868b8
%patch2 -p1
0868b8
%patch3 -p1
765550
%patch4 -p1
765550
%patch5 -p1
7dc08b
%patch6 -p1
7dc08b
%patch7 -p1
7dc08b
%patch8 -p1
cecfde
%patch9 -p1
63fd3d
63fd3d
%build
63fd3d
export APXS=%{_httpd_apxs}
63fd3d
%configure --enable-diagnostics
63fd3d
make clean
63fd3d
make %{?_smp_mflags}
63fd3d
cp .libs/%{name}.so %{name}-diagnostics.so
63fd3d
63fd3d
%configure
63fd3d
make clean
63fd3d
make %{?_smp_mflags}
63fd3d
63fd3d
%install
63fd3d
# install module
63fd3d
mkdir -p %{buildroot}%{_httpd_moddir}
63fd3d
install -m 755 .libs/%{name}.so %{buildroot}%{_httpd_moddir}
63fd3d
install -m 755 %{name}-diagnostics.so %{buildroot}%{_httpd_moddir}
63fd3d
63fd3d
# install module configuration
63fd3d
mkdir -p %{buildroot}%{_httpd_confdir}
63fd3d
install -m 644 %{SOURCE1} %{buildroot}%{_httpd_confdir}
63fd3d
mkdir -p %{buildroot}%{_httpd_modconfdir}
63fd3d
install -m 644 %{SOURCE2} %{buildroot}%{_httpd_modconfdir}
63fd3d
63fd3d
mkdir -p %{buildroot}%{_tmpfilesdir}
63fd3d
install -m 644 %{SOURCE3} %{buildroot}%{_tmpfilesdir}
63fd3d
mkdir -p %{buildroot}/run/%{name}
63fd3d
63fd3d
# install script to generate metadata
63fd3d
mkdir -p %{buildroot}/%{_libexecdir}/%{name}
63fd3d
install -m 755 %{SOURCE4} %{buildroot}/%{_libexecdir}/%{name}
63fd3d
63fd3d
#install documentation
63fd3d
mkdir -p %{buildroot}/%{_pkgdocdir}
63fd3d
63fd3d
# install Red Hat README
63fd3d
install -m 644 %{SOURCE5} %{buildroot}/%{_pkgdocdir}
63fd3d
63fd3d
# install user guide
63fd3d
cp -r doc/user_guide %{buildroot}/%{_pkgdocdir}
63fd3d
install -m 644 %{SOURCE6} %{buildroot}/%{_pkgdocdir}/user_guide
63fd3d
63fd3d
%package diagnostics
63fd3d
Summary: Build of mod_auth_mellon with diagnostic logging
63fd3d
Requires: %{name} = %{version}-%{release}
63fd3d
63fd3d
%description diagnostics
63fd3d
Build of mod_auth_mellon with diagnostic logging. See README.redhat.rst
63fd3d
in the doc directory for instructions on using the diagnostics build.
63fd3d
63fd3d
%files diagnostics
63fd3d
%{_httpd_moddir}/%{name}-diagnostics.so
63fd3d
63fd3d
%files
63fd3d
%if 0%{?rhel} && 0%{?rhel} < 7
63fd3d
%doc COPYING
63fd3d
%else
63fd3d
%license COPYING
63fd3d
%endif
63fd3d
%doc README.md NEWS ECP.rst
63fd3d
%doc %{_pkgdocdir}/README.redhat.rst
63fd3d
%doc %{_pkgdocdir}/user_guide
63fd3d
%config(noreplace) %{_httpd_modconfdir}/10-auth_mellon.conf
63fd3d
%config(noreplace) %{_httpd_confdir}/auth_mellon.conf
63fd3d
%{_httpd_moddir}/mod_auth_mellon.so
63fd3d
%{_tmpfilesdir}/mod_auth_mellon.conf
63fd3d
%{_libexecdir}/%{name}
0868b8
%attr(0755,apache,apache) %dir /run/%{name}/
63fd3d
63fd3d
%changelog
cecfde
* Wed Dec 15 2021 Jakub Hrozek <jhrozek@redhat.com> - 0.14.0-12.1
cecfde
- Resolves: rhbz#1986805 - CVE-2021-3639 mod_auth_mellon: Open Redirect
cecfde
                           vulnerability in logout URLs [rhel-8]
cecfde
7dc08b
* Mon Jan 25 2021 Jakub Hrozek <jhrozek@redhat.com> - 0.14.0-12
7dc08b
- Resolves: rhbz#1791262 - Backport SameSite=None cookie from upstream to
7dc08b
                           support latest browsers
7dc08b
765550
* Fri Oct 18 2019 Jakub Hrozek <jhrozek@redhat.com> - 0.14.0-11
765550
- Resolves: rhbz#1731053 - CVE-2019-13038 mod_auth_mellon: an Open Redirect
765550
                           via the login?ReturnTo= substring which could
765550
                           facilitate information theft [rhel-8]
765550
765550
* Fri Oct 18 2019 Jakub Hrozek <jhrozek@redhat.com> - 0.14.0-10
765550
- Resolves: rhbz#1761774 - mod_auth_mellon fix for AJAX header name
765550
                           X-Requested-With
765550
0868b8
* Thu Jun 13 2019 Jakub Hrozek <jhrozek@redhat.com> - 0.14.0-9
0868b8
- Just bump the release number
0868b8
- Related: rhbz#1718238 - mod_auth_mellon-diagnostics RPM not in product
0868b8
                          listings
0868b8
0868b8
* Fri Jun  7 2019 Jakub Hrozek <jhrozek@redhat.com> - 0.14.0-8
0868b8
- Resolves: rhbz#1691894 - [RFE] Config option to change mod_auth_mellon prefix
0868b8
0868b8
* Fri Jun  7 2019 Jakub Hrozek <jhrozek@redhat.com> - 0.14.0-7
0868b8
- Apply the patch from the previous commit
0868b8
- Resolves: rhbz#1692471 - CVE-2019-3877 appstream/mod_auth_mellon: open
0868b8
                           redirect in logout url when using URLs with
0868b8
                           backslashes [rhel-8]
0868b8
0868b8
* Fri Jun  7 2019 Jakub Hrozek <jhrozek@redhat.com> - 0.14.0-6
0868b8
- Resolves: rhbz#1692471 - CVE-2019-3877 appstream/mod_auth_mellon: open
0868b8
                           redirect in logout url when using URLs with
0868b8
                           backslashes [rhel-8]
0868b8
0868b8
* Fri Jun  7 2019 Jakub Hrozek <jhrozek@redhat.com> - 0.14.0-5
0868b8
- Resolves: rhbz#1692457 - CVE-2019-3878 mod_auth_mellon: authentication
0868b8
                           bypass in ECP flow [rhel-8.1.0]
0868b8
0868b8
* Wed Apr 24 2019 Jakub Hrozek <jhrozek@redhat.com> - 0.14.0-4
0868b8
- Resolves: rhbz#1702695 - fresh install of mod_auth_mellon shows rpm
0868b8
                           verification warnings
3e4216
63fd3d
* Mon Jul 30 2018 Florian Weimer <fweimer@redhat.com> - 0.14.0-3
63fd3d
- Rebuild with fixed binutils
63fd3d
63fd3d
* Fri Jun  1 2018  <jdennis@redhat.com> - 0.14.0-2
63fd3d
- Resolves: rhbz#1553885
63fd3d
- fix file permissions on doc files
63fd3d
63fd3d
* Fri Jun  1 2018  <jdennis@redhat.com> - 0.14.0-1
63fd3d
- Resolves: rhbz#1553885
63fd3d
- Rebase to current upstream release
63fd3d
63fd3d
* Thu Mar 29 2018 John Dennis <jdennis@redhat.com> - 0.13.1-2
63fd3d
- Resolves: rhbz#1481330 Add diagnostic logging
63fd3d
- Resolves: rhbz#1295472 Add MellonSignatureMethod config option to set
63fd3d
  signature method used to sign SAML messages sent by Mellon.
63fd3d
  Defaults to original sha1.
63fd3d
63fd3d
* Sun Oct  1 2017 John Dennis <jdennis@redhat.com> - 0.13.1-1
63fd3d
- upgrade to new upstream release
63fd3d
63fd3d
* Thu Aug 03 2017 Fedora Release Engineering <releng@fedoraproject.org> - 0.12.0-7
63fd3d
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Binutils_Mass_Rebuild
63fd3d
63fd3d
* Wed Jul 26 2017 Fedora Release Engineering <releng@fedoraproject.org> - 0.12.0-6
63fd3d
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
63fd3d
63fd3d
* Fri Feb 10 2017 Fedora Release Engineering <releng@fedoraproject.org> - 0.12.0-5
63fd3d
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
63fd3d
63fd3d
* Tue Jan 17 2017 John Dennis <jdennis@redhat.com> - 0.12.0-4
63fd3d
- Resolves: bug #1414019 Incorrect PAOS Content-Type header
63fd3d
63fd3d
* Mon Jan  9 2017 John Dennis <jdennis@redhat.com> - 0.12.0-3
63fd3d
- bump release for rebuild
63fd3d
63fd3d
* Tue May  3 2016 John Dennis <jdennis@redhat.com> - 0.12.0-2
63fd3d
- Resolves: bug #1332729, mellon conflicts with mod_auth_openidc
63fd3d
- am_check_uid() should be no-op if mellon not enabled
63fd3d
63fd3d
* Wed Mar  9 2016 John Dennis <jdennis@redhat.com> - 0.12.0-1
63fd3d
- Update to new upstream 0.12.0
63fd3d
- [CVE-2016-2145] Fix DOS attack (Apache worker process crash) due to
63fd3d
  incorrect error handling when reading POST data from client.
63fd3d
63fd3d
- [CVE-2016-2146] Fix DOS attack (Apache worker process crash /
63fd3d
  resource exhaustion) due to missing size checks when reading
63fd3d
  POST data.
63fd3d
63fd3d
In addition this release contains the following new features and fixes:
63fd3d
63fd3d
- Add MellonRedirectDomains option to limit the sites that
63fd3d
  mod_auth_mellon can redirect to. This option is enabled by default.
63fd3d
63fd3d
- Add support for ECP service options in PAOS requests.
63fd3d
63fd3d
- Fix AssertionConsumerService lookup for PAOS requests.
63fd3d
63fd3d
* Thu Feb 04 2016 Fedora Release Engineering <releng@fedoraproject.org> - 0.11.0-4
63fd3d
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
63fd3d
63fd3d
* Wed Dec 23 2015 John Dennis <jdennis@redhat.com> - 0.11.0-3
63fd3d
- Fix the following warning that appears in the Apache log
63fd3d
  lasso-CRITICAL **: lasso_provider_get_metadata_list_for_role: assertion '_lasso_provider_get_role_index(role)' failed
63fd3d
63fd3d
* Fri Sep 18 2015 John Dennis <jdennis@redhat.com> - 0.11.0-2
63fd3d
- Add lasso 2.5.0 version dependency
63fd3d
63fd3d
* Fri Sep 18 2015 John Dennis <jdennis@redhat.com> - 0.11.0-1
63fd3d
- Upgrade to upstream 0.11.0 release.
63fd3d
- Includes ECP support, see NEWS for all changes.
63fd3d
- Update mellon_create_metadata.sh to match internally generated metadata,
63fd3d
  includes AssertionConsumerService for postResponse, artifactResponse &
63fd3d
  paosResponse.
63fd3d
63fd3d
* Wed Jun 17 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.10.0-2
63fd3d
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
63fd3d
63fd3d
* Wed Jan  7 2015 Simo Sorce <simo@redhat.com> 0.10.0-1
63fd3d
- New upstream release
63fd3d
63fd3d
* Tue Sep  2 2014 Simo Sorce <simo@redhat.com> 0.9.1-1
63fd3d
- New upstream release
63fd3d
63fd3d
* Sun Aug 17 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.8.0-2
63fd3d
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild
63fd3d
63fd3d
* Tue Jun 24 2014 Simo Sorce <simo@redhat.com> 0.8.0-1
63fd3d
- New upstream realease version 0.8.0
63fd3d
- Upstream moved to github
63fd3d
- Drops patches as they have been all included upstream
63fd3d
63fd3d
* Fri Jun 20 2014 Simo Sorce <simo@redhat.com> 0.7.0-3
63fd3d
- Backport of useful patches from upstream
63fd3d
  - Better handling of IDP reported errors
63fd3d
  - Better handling of session data storage size
63fd3d
63fd3d
* Sat Jun 07 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.7.0-2
63fd3d
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
63fd3d
63fd3d
* Tue Dec 10 2013 Simo Sorce <simo@redhat.com> 0.7.0-1
63fd3d
- Fix ownership of /run files
63fd3d
63fd3d
* Wed Nov 27 2013 Simo Sorce <simo@redhat.com> 0.7.0-0
63fd3d
- Initial Fedora release based on version 0.7.0
63fd3d
- Based on an old spec file by Jean-Marc Liger <jmliger@siris.sorbonne.fr>