Simo Sorce 5f23c37
Summary: A SAML 2.0 authentication module for the Apache Httpd Server
Simo Sorce 5f23c37
Name: mod_auth_mellon
11d67e1
Version: 0.17.0
11d67e1
Release: 1%{?dist}
11d67e1
Source0: https://github.com/latchset/mod_auth_mellon/releases/download/v0.17.0/mod_auth_mellon-0.17.0.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
73d052d
Source5: README.redhat.rst
Simo Sorce 5f23c37
License: GPLv2+
1ae540d
BuildRequires: make
Igor Gnatenko aedfbe4
BuildRequires:  gcc
d6a8eab
BuildRequires: curl-devel
d6a8eab
BuildRequires: glib2-devel
d6a8eab
BuildRequires: httpd-devel
3900871
BuildRequires: lasso-devel >= 2.5.1-13
d6a8eab
BuildRequires: openssl-devel
d6a8eab
BuildRequires: xmlsec1-devel
73d052d
BuildRequires: rubygem-asciidoctor
Simo Sorce 5f23c37
Requires: httpd-mmn = %{_httpd_mmn}
3900871
Requires: lasso >= 2.5.1-13
9707601
Url: https://github.com/latchset/mod_auth_mellon
Simo Sorce 3d3db5d
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}
Simo Sorce 5f23c37
Simo Sorce 5f23c37
%build
Simo Sorce 5f23c37
export APXS=%{_httpd_apxs}
73d052d
%configure --enable-diagnostics
73d052d
make clean
30ff028
%{make_build}
73d052d
cp .libs/%{name}.so %{name}-diagnostics.so
73d052d
Simo Sorce 5f23c37
%configure
a03b84e
make clean
30ff028
%{make_build}
73d052d
pushd doc/user_guide
73d052d
asciidoctor -a data-uri mellon_user_guide.adoc
73d052d
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}
73d052d
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
73d052d
#install documentation
73d052d
mkdir -p %{buildroot}/%{_pkgdocdir}
73d052d
73d052d
# install Red Hat README
73d052d
install %{SOURCE5} %{buildroot}/%{_pkgdocdir}
73d052d
73d052d
# install user guide
73d052d
cp -r doc/user_guide %{buildroot}/%{_pkgdocdir}
73d052d
73d052d
%package diagnostics
73d052d
Summary: Build of mod_auth_mellon with diagnostic logging
73d052d
Requires: %{name} = %{version}-%{release}
73d052d
73d052d
%description diagnostics
73d052d
Build of mod_auth_mellon with diagnostic logging. See README.redhat.rst
73d052d
in the doc directory for instructions on using the diagnostics build.
73d052d
73d052d
%files diagnostics
73d052d
%{_httpd_moddir}/%{name}-diagnostics.so
73d052d
Simo Sorce 5f23c37
%files
e63b5be
%if 0%{?rhel} && 0%{?rhel} < 7
e63b5be
%doc COPYING
e63b5be
%else
e63b5be
%license COPYING
e63b5be
%endif
73d052d
%doc README.md NEWS ECP.rst
73d052d
%doc %{_pkgdocdir}/README.redhat.rst
73d052d
%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
11d67e1
* Wed Sep 16 2020 Jakub Hrozek <jhrozek@redhat.com> - 0.17.0-1
11d67e1
- New upstream version 0.17.0
11d67e1
5bc8f65
* Tue Jul 28 2020 Fedora Release Engineering <releng@fedoraproject.org> - 0.16.0-3
11d67e1
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild 
5bc8f65
30ff028
* Thu Feb 13 2020 Tom Stellard <tstellar@redhat.com> - 0.16.0-2
30ff028
- Use make_build macro instead of just make
30ff028
- https://docs.fedoraproject.org/en-US/packaging-guidelines/#_parallel_make
30ff028
9143479
* Mon Feb  3 2020 Jakub Hrozek <jhrozek@redhat.com> - 0.16.0-1
9143479
- New upstream version 0.16.0
9143479
1ed2abf
* Wed Jan 29 2020 Fedora Release Engineering <releng@fedoraproject.org> - 0.15.0-2
1ed2abf
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
1ed2abf
9707601
* Tue Nov 19 2019 Jakub Hrozek <jhrozek@redhat.com> - 0.15.0-1
9707601
- New upstream version 0.15.0
9707601
- Resolves: rhbz#1725742 - CVE-2019-13038 mod_auth_mellon: an Open Redirect
9707601
                           via the login?ReturnTo= substring which could
9707601
                           facilitate information theft [fedora-all]
9707601
c201ed1
* Thu Jul 25 2019 Fedora Release Engineering <releng@fedoraproject.org> - 0.14.2-2
c201ed1
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
c201ed1
Jakub Hrozek dc2e6c5
* Fri Mar 22 2019 Jakub Hrozek <jhrozek@redhat.com> - 0.14.2-1
Jakub Hrozek dc2e6c5
- Upgrade to 0.14.2
Jakub Hrozek dc2e6c5
- Related: rhbz#1691771 - CVE-2019-3877 mod_auth_mellon: open redirect in
Jakub Hrozek dc2e6c5
                          logout url when using URLs with backslashes
Jakub Hrozek dc2e6c5
- Related: rhbz#1691136 - CVE-2019-3878 mod_auth_mellon: authentication
Jakub Hrozek dc2e6c5
                          bypass in ECP flow
Jakub Hrozek dc2e6c5
1a04264
* Fri Feb 01 2019 Fedora Release Engineering <releng@fedoraproject.org> - 0.14.0-5
1a04264
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
1a04264
f5c1c5f
* Fri Jul 13 2018 Fedora Release Engineering <releng@fedoraproject.org> - 0.14.0-4
f5c1c5f
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
f5c1c5f
3900871
* Wed May  2 2018 John Dennis <jdennis@redhat.com> - 0.14.0-3
3900871
- update lasso version dependency
3900871
a03b84e
* Tue May  1 2018 John Dennis <jdennis@redhat.com> - 0.14.0-2
a03b84e
- clean diagnostics build prior to normal build
a03b84e
73d052d
* Thu Apr 19 2018 John Dennis <jdennis@redhat.com> - 0.14.0-1
73d052d
- Upgrade to new upstream release
73d052d
- Add README.redhat.rst doc explaining packaging of this module.
73d052d
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>