Simo Sorce 5f23c37
Summary: A SAML 2.0 authentication module for the Apache Httpd Server
Simo Sorce 5f23c37
Name: mod_auth_mellon
20eb69e
Version: 0.14.0
Jakub Hrozek 7abeede
Release: 4%{?dist}
Simo Sorce 5f23c37
Group: System Environment/Daemons
Simo Sorce 4af43b7
Source0: https://github.com/UNINETT/mod_auth_mellon/releases/download/v%{version}/%{name}-%{version}.tar.gz
Simo Sorce 5f23c37
Source1: auth_mellon.conf
Simo Sorce 5f23c37
Source2: 10-auth_mellon.conf
Simo Sorce 5f23c37
Source3: mod_auth_mellon.conf
Simo Sorce 5f23c37
Source4: mellon_create_metadata.sh
20eb69e
Source5: README.redhat.rst
Simo Sorce 5f23c37
License: GPLv2+
d6a8eab
BuildRequires: curl-devel
d6a8eab
BuildRequires: glib2-devel
d6a8eab
BuildRequires: httpd-devel
a65824a
BuildRequires: lasso-devel >= 2.5.1-13
d6a8eab
BuildRequires: openssl-devel
d6a8eab
BuildRequires: xmlsec1-devel
20eb69e
BuildRequires: rubygem-asciidoctor
Simo Sorce 5f23c37
Requires: httpd-mmn = %{_httpd_mmn}
a65824a
Requires: lasso >= 2.5.1-13
Simo Sorce eb3a0b5
Url: https://github.com/UNINETT/mod_auth_mellon
Simo Sorce 3d3db5d
Jakub Hrozek 7abeede
Patch0001: 0001-Modify-am_handler-setup-to-run-before-mod_proxy.patch
Jakub Hrozek 7abeede
Patch0002: 0002-Fix-redirect-URL-validation-bypass.patch
Jakub Hrozek 7abeede
12b3161
Simo Sorce 5f23c37
%description
Simo Sorce 5f23c37
The mod_auth_mellon module is an authentication service that implements the
Simo Sorce 5f23c37
SAML 2.0 federation protocol. It grants access based on the attributes
Simo Sorce 5f23c37
received in assertions generated by a IdP server.
Simo Sorce 5f23c37
Simo Sorce 5f23c37
%prep
Simo Sorce 5f23c37
%setup -q -n %{name}-%{version}
Jakub Hrozek 7abeede
%patch0001 -p1
Jakub Hrozek 7abeede
%patch0002 -p1
Simo Sorce 5f23c37
Simo Sorce 5f23c37
%build
Simo Sorce 5f23c37
export APXS=%{_httpd_apxs}
20eb69e
%configure --enable-diagnostics
20eb69e
make clean
20eb69e
make %{?_smp_mflags}
20eb69e
cp .libs/%{name}.so %{name}-diagnostics.so
20eb69e
Simo Sorce 5f23c37
%configure
ec006d9
make clean
Simo Sorce 5f23c37
make %{?_smp_mflags}
20eb69e
pushd doc/user_guide
20eb69e
asciidoctor -a data-uri mellon_user_guide.adoc
20eb69e
popd
Simo Sorce 5f23c37
Simo Sorce 5f23c37
%install
Simo Sorce 5f23c37
# install module
Simo Sorce 5f23c37
mkdir -p %{buildroot}%{_httpd_moddir}
Simo Sorce 5f23c37
install -m 755 .libs/%{name}.so %{buildroot}%{_httpd_moddir}
20eb69e
install -m 755 %{name}-diagnostics.so %{buildroot}%{_httpd_moddir}
Simo Sorce 5f23c37
Simo Sorce 5f23c37
# install module configuration
Simo Sorce 5f23c37
mkdir -p %{buildroot}%{_httpd_confdir}
Simo Sorce 5f23c37
install -m 644 %{SOURCE1} %{buildroot}%{_httpd_confdir}
Simo Sorce 5f23c37
mkdir -p %{buildroot}%{_httpd_modconfdir}
Simo Sorce 5f23c37
install -m 644 %{SOURCE2} %{buildroot}%{_httpd_modconfdir}
Simo Sorce 5f23c37
Simo Sorce 5f23c37
mkdir -p %{buildroot}%{_tmpfilesdir}
Simo Sorce 5f23c37
install -m 644 %{SOURCE3} %{buildroot}%{_tmpfilesdir}
Simo Sorce 5f23c37
mkdir -p %{buildroot}/run/%{name}
Simo Sorce 5f23c37
Simo Sorce 5f23c37
# install script to generate metadata
Simo Sorce 5f23c37
mkdir -p %{buildroot}/%{_libexecdir}/%{name}
Simo Sorce 5f23c37
install -m 755 %{SOURCE4} %{buildroot}/%{_libexecdir}/%{name}
Simo Sorce 5f23c37
20eb69e
#install documentation
20eb69e
mkdir -p %{buildroot}/%{_pkgdocdir}
20eb69e
20eb69e
# install Red Hat README
20eb69e
install %{SOURCE5} %{buildroot}/%{_pkgdocdir}
20eb69e
20eb69e
# install user guide
20eb69e
cp -r doc/user_guide %{buildroot}/%{_pkgdocdir}
20eb69e
20eb69e
%package diagnostics
20eb69e
Summary: Build of mod_auth_mellon with diagnostic logging
20eb69e
Requires: %{name} = %{version}-%{release}
20eb69e
20eb69e
%description diagnostics
20eb69e
Build of mod_auth_mellon with diagnostic logging. See README.redhat.rst
20eb69e
in the doc directory for instructions on using the diagnostics build.
20eb69e
20eb69e
%files diagnostics
20eb69e
%{_httpd_moddir}/%{name}-diagnostics.so
20eb69e
Simo Sorce 5f23c37
%files
Simo Sorce 5f23c37
%defattr(-,root,root)
e63b5be
%if 0%{?rhel} && 0%{?rhel} < 7
e63b5be
%doc COPYING
e63b5be
%else
e63b5be
%license COPYING
e63b5be
%endif
20eb69e
%doc README.md NEWS ECP.rst
20eb69e
%doc %{_pkgdocdir}/README.redhat.rst
20eb69e
%doc %{_pkgdocdir}/user_guide
Simo Sorce 5f23c37
%config(noreplace) %{_httpd_modconfdir}/10-auth_mellon.conf
Simo Sorce 5f23c37
%config(noreplace) %{_httpd_confdir}/auth_mellon.conf
Simo Sorce 5f23c37
%{_httpd_moddir}/mod_auth_mellon.so
Simo Sorce 5f23c37
%{_tmpfilesdir}/mod_auth_mellon.conf
Simo Sorce 5f23c37
%{_libexecdir}/%{name}
Simo Sorce 5f23c37
%dir /run/%{name}/
Simo Sorce 5f23c37
Simo Sorce 5f23c37
%changelog
Jakub Hrozek 7abeede
* Fri Mar 22 2019 Jakub Hrozek <jhrozek@redhat.com> - 0.14.0-4
Jakub Hrozek 7abeede
- Related: rhbz#1691771 - CVE-2019-3877 mod_auth_mellon: open redirect in
Jakub Hrozek 7abeede
                          logout url when using URLs with backslashes
Jakub Hrozek 7abeede
- Related: rhbz#1691136 - CVE-2019-3878 mod_auth_mellon: authentication
Jakub Hrozek 7abeede
                          bypass in ECP flow
Jakub Hrozek 7abeede
a65824a
* Wed May  2 2018 John Dennis <jdennis@redhat.com> - 0.14.0-3
a65824a
- update lasso version dependency
a65824a
ec006d9
* Tue May  1 2018 John Dennis <jdennis@redhat.com> - 0.14.0-2
ec006d9
- clean diagnostics build prior to normal build
ec006d9
20eb69e
* Thu Apr 19 2018 John Dennis <jdennis@redhat.com> - 0.14.0-1
20eb69e
- Upgrade to new upstream release
20eb69e
- Add README.redhat.rst doc explaining packaging of this module.
20eb69e
06e3aac
* Thu Feb 08 2018 Fedora Release Engineering <releng@fedoraproject.org> - 0.13.1-2
06e3aac
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
06e3aac
709a544
* Sun Oct  1 2017 John Dennis <jdennis@redhat.com> - 0.13.1-1
709a544
- upgrade to new upstream release
709a544
8b7f56a
* Thu Aug 03 2017 Fedora Release Engineering <releng@fedoraproject.org> - 0.12.0-7
8b7f56a
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Binutils_Mass_Rebuild
8b7f56a
4cda435
* Wed Jul 26 2017 Fedora Release Engineering <releng@fedoraproject.org> - 0.12.0-6
4cda435
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
4cda435
dc9da1f
* Fri Feb 10 2017 Fedora Release Engineering <releng@fedoraproject.org> - 0.12.0-5
dc9da1f
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
dc9da1f
ad64c07
* Tue Jan 17 2017 John Dennis <jdennis@redhat.com> - 0.12.0-4
ad64c07
- Resolves: bug #1414019 Incorrect PAOS Content-Type header
ad64c07
301b3bd
* Mon Jan  9 2017 John Dennis <jdennis@redhat.com> - 0.12.0-3
301b3bd
- bump release for rebuild
301b3bd
12b3161
* Tue May  3 2016 John Dennis <jdennis@redhat.com> - 0.12.0-2
12b3161
- Resolves: bug #1332729, mellon conflicts with mod_auth_openidc
12b3161
- am_check_uid() should be no-op if mellon not enabled
12b3161
d61f453
* Wed Mar  9 2016 John Dennis <jdennis@redhat.com> - 0.12.0-1
d61f453
- Update to new upstream 0.12.0
d61f453
- [CVE-2016-2145] Fix DOS attack (Apache worker process crash) due to
d61f453
  incorrect error handling when reading POST data from client.
d61f453
d61f453
- [CVE-2016-2146] Fix DOS attack (Apache worker process crash /
d61f453
  resource exhaustion) due to missing size checks when reading
d61f453
  POST data.
d61f453
d61f453
In addition this release contains the following new features and fixes:
d61f453
d61f453
- Add MellonRedirectDomains option to limit the sites that
d61f453
  mod_auth_mellon can redirect to. This option is enabled by default.
d61f453
d61f453
- Add support for ECP service options in PAOS requests.
d61f453
d61f453
- Fix AssertionConsumerService lookup for PAOS requests.
d61f453
f86b32b
* Thu Feb 04 2016 Fedora Release Engineering <releng@fedoraproject.org> - 0.11.0-4
f86b32b
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
f86b32b
9efdbdc
* Wed Dec 23 2015 John Dennis <jdennis@redhat.com> - 0.11.0-3
9efdbdc
- Fix the following warning that appears in the Apache log
9efdbdc
  lasso-CRITICAL **: lasso_provider_get_metadata_list_for_role: assertion '_lasso_provider_get_role_index(role)' failed
9efdbdc
d6a8eab
* Fri Sep 18 2015 John Dennis <jdennis@redhat.com> - 0.11.0-2
d6a8eab
- Add lasso 2.5.0 version dependency
d6a8eab
5d20714
* Fri Sep 18 2015 John Dennis <jdennis@redhat.com> - 0.11.0-1
5d20714
- Upgrade to upstream 0.11.0 release.
5d20714
- Includes ECP support, see NEWS for all changes.
5d20714
- Update mellon_create_metadata.sh to match internally generated metadata,
5d20714
  includes AssertionConsumerService for postResponse, artifactResponse &
5d20714
  paosResponse.
5d20714
781ae1c
* Wed Jun 17 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.10.0-2
781ae1c
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
781ae1c
Simo Sorce 4af43b7
* Wed Jan  7 2015 Simo Sorce <simo@redhat.com> 0.10.0-1
Simo Sorce 4af43b7
- New upstream release
Simo Sorce 4af43b7
Simo Sorce 6a56e02
* Tue Sep  2 2014 Simo Sorce <simo@redhat.com> 0.9.1-1
Simo Sorce 6a56e02
- New upstream release
Simo Sorce 6a56e02
2b4e918
* Sun Aug 17 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.8.0-2
2b4e918
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild
2b4e918
Simo Sorce eb3a0b5
* Tue Jun 24 2014 Simo Sorce <simo@redhat.com> 0.8.0-1
Simo Sorce eb3a0b5
- New upstream realease version 0.8.0
Simo Sorce eb3a0b5
- Upstream moved to github
Simo Sorce eb3a0b5
- Drops patches as they have been all included upstream
Simo Sorce eb3a0b5
Simo Sorce 3d3db5d
* Fri Jun 20 2014 Simo Sorce <simo@redhat.com> 0.7.0-3
Simo Sorce 3d3db5d
- Backport of useful patches from upstream
Simo Sorce 3d3db5d
  - Better handling of IDP reported errors
Simo Sorce 3d3db5d
  - Better handling of session data storage size
Simo Sorce 3d3db5d
421fefe
* Sat Jun 07 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.7.0-2
421fefe
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
421fefe
Simo Sorce 5f23c37
* Tue Dec 10 2013 Simo Sorce <simo@redhat.com> 0.7.0-1
Simo Sorce 5f23c37
- Fix ownership of /run files
Simo Sorce 5f23c37
Simo Sorce 5f23c37
* Wed Nov 27 2013 Simo Sorce <simo@redhat.com> 0.7.0-0
Simo Sorce 5f23c37
- Initial Fedora release based on version 0.7.0
Simo Sorce 5f23c37
- Based on an old spec file by Jean-Marc Liger <jmliger@siris.sorbonne.fr>