Blame SPECS/mod_auth_openidc.spec

3074fe
%{!?_httpd_mmn: %{expand: %%global _httpd_mmn %%(cat %{_includedir}/httpd/.mmn 2>/dev/null || echo 0-0)}}
db9f25
%{!?_httpd_moddir: %{expand: %%global _httpd_moddir %%{_libdir}/httpd/modules}}
db9f25
%{!?_httpd_confdir: %{expand: %%global _httpd_confdir %{_sysconfdir}/httpd/conf.d}}
db9f25
db9f25
# Optionally build with hiredis if --with hiredis is passed
db9f25
%{!?_with_hiredis: %{!?_without_hiredis: %global _without_hiredis --without-hiredis}}
db9f25
# It is an error if both or neither required options exist.
db9f25
%{?_with_hiredis: %{?_without_hiredis: %{error: both _with_hiredis and _without_hiredis}}}
db9f25
%{!?_with_hiredis: %{!?_without_hiredis: %{error: neither _with_hiredis nor _without_hiredis}}}
db9f25
db9f25
# /etc/httpd/conf.d with httpd < 2.4 and defined as /etc/httpd/conf.modules.d with httpd >= 2.4
db9f25
%{!?_httpd_modconfdir: %{expand: %%global _httpd_modconfdir %%{_sysconfdir}/httpd/conf.d}}
db9f25
db9f25
%global httpd_pkg_cache_dir /var/cache/httpd/mod_auth_openidc
db9f25
db9f25
Name:		mod_auth_openidc
3074fe
Version:	2.4.9.4
3074fe
Release:	1%{?dist}
db9f25
Summary:	OpenID Connect auth module for Apache HTTP Server
db9f25
db9f25
License:	ASL 2.0
db9f25
URL:		https://github.com/zmartzone/mod_auth_openidc
3074fe
Source0:	https://github.com/zmartzone/mod_auth_openidc/archive/v%{version}.tar.gz
db9f25
db9f25
BuildRequires:  gcc
db9f25
BuildRequires:	httpd-devel
db9f25
BuildRequires:	openssl-devel
db9f25
BuildRequires:	curl-devel
db9f25
BuildRequires:	jansson-devel
db9f25
BuildRequires:	pcre-devel
db9f25
BuildRequires:	autoconf
db9f25
BuildRequires:	automake
db9f25
BuildRequires:	cjose-devel
db9f25
BuildRequires:	jq-devel
db9f25
%{?_with_hiredis:BuildRequires: hiredis-devel}
db9f25
Requires:	httpd-mmn = %{_httpd_mmn}
db9f25
db9f25
%description
db9f25
This module enables an Apache 2.x web server to operate as
db9f25
an OpenID Connect Relying Party and/or OAuth 2.0 Resource Server.
db9f25
db9f25
%prep
db9f25
%setup -q
db9f25
db9f25
%build
db9f25
# workaround rpm-buildroot-usage
db9f25
export MODULES_DIR=%{_httpd_moddir}
db9f25
export APXS2_OPTS='-S LIBEXECDIR=${MODULES_DIR}'
db9f25
autoreconf
db9f25
%configure \
db9f25
  --with-jq=/usr/lib64/ \
db9f25
  %{?_with_hiredis} \
3074fe
  %{?_without_hiredis} \
3074fe
  --with-apxs2=%{_httpd_apxs}
db9f25
3074fe
3074fe
%{make_build}
db9f25
db9f25
%check
db9f25
export MODULES_DIR=%{_httpd_moddir}
db9f25
export APXS2_OPTS='-S LIBEXECDIR=${MODULES_DIR}'
db9f25
make test
db9f25
db9f25
%install
db9f25
mkdir -p $RPM_BUILD_ROOT%{_httpd_moddir}
db9f25
make install MODULES_DIR=$RPM_BUILD_ROOT%{_httpd_moddir}
db9f25
db9f25
install -m 755 -d $RPM_BUILD_ROOT%{_httpd_modconfdir}
db9f25
echo 'LoadModule auth_openidc_module modules/mod_auth_openidc.so' > \
db9f25
	$RPM_BUILD_ROOT%{_httpd_modconfdir}/10-auth_openidc.conf
db9f25
db9f25
install -m 755 -d $RPM_BUILD_ROOT%{_httpd_confdir}
db9f25
install -m 644 auth_openidc.conf $RPM_BUILD_ROOT%{_httpd_confdir}
db9f25
# Adjust httpd cache location in install config file
db9f25
sed -i 's!/var/cache/apache2/!/var/cache/httpd/!' $RPM_BUILD_ROOT%{_httpd_confdir}/auth_openidc.conf
db9f25
install -m 700 -d $RPM_BUILD_ROOT%{httpd_pkg_cache_dir}
db9f25
install -m 700 -d $RPM_BUILD_ROOT%{httpd_pkg_cache_dir}/metadata
db9f25
install -m 700 -d $RPM_BUILD_ROOT%{httpd_pkg_cache_dir}/cache
db9f25
db9f25
db9f25
%files
db9f25
%if 0%{?rhel} && 0%{?rhel} < 7
db9f25
%doc LICENSE.txt
db9f25
%else
db9f25
%license LICENSE.txt
db9f25
%endif
db9f25
%doc ChangeLog
db9f25
%doc AUTHORS
db9f25
%doc README.md
db9f25
%{_httpd_moddir}/mod_auth_openidc.so
db9f25
%config(noreplace) %{_httpd_modconfdir}/10-auth_openidc.conf
db9f25
%config(noreplace) %{_httpd_confdir}/auth_openidc.conf
db9f25
%dir %attr(0700, apache, apache) %{httpd_pkg_cache_dir}
db9f25
%dir %attr(0700, apache, apache) %{httpd_pkg_cache_dir}/metadata
db9f25
%dir %attr(0700, apache, apache) %{httpd_pkg_cache_dir}/cache
db9f25
db9f25
%changelog
3074fe
* Fri Apr 8 2022 Tomas Halman <thalman@redhat.com> - 2.4.9.4-1
3074fe
- Resolves: rhbz#2025368 - Rebase to new version
3074fe
569f44
* Fri Jan 28 2022 Tomas Halman <thalman@redhat.com> - 2.3.7-11
569f44
- Resolves: rhbz#1987222 - CVE-2021-32792 XSS when using OIDCPreservePost On
569f44
569f44
* Fri Jan 28 2022 Tomas Halman <thalman@redhat.com> - 2.3.7-10
569f44
- Resolves: rhbz#1987216 - CVE-2021-32791 hardcoded static IV and AAD with a
569f44
                           reused key in AES GCM encryption [rhel-8] (edit) 
569f44
569f44
* Fri Oct 29 2021 Tomas Halman <thalman@redhat.com> - 2.3.7-9
569f44
- Resolves: rhbz#2001853 - CVE-2021-39191 open redirect by supplying a crafted URL
569f44
                           in the target_link_uri parameter
569f44
79aa81
* Tue Nov 17 2020 Jakub Hrozek <jhrozek@redhat.com> - 2.3.7-8
79aa81
- Resolves: rhbz#1823756 - Backport SameSite=None cookie from
79aa81
                           mod_auth_openidc upstream to support latest browsers
79aa81
79aa81
* Tue Nov 17 2020 Jakub Hrozek <jhrozek@redhat.com> - 2.3.7-7
79aa81
- Resolves: rhbz#1897992 - OIDCStateInputHeaders &
79aa81
                           OIDCStateMaxNumberOfCookies in existing
79aa81
                           mod_auth_openidc version
79aa81
- Backport the OIDCStateMaxNumberOfCookies option
79aa81
- Configure which header value is used to calculate the fingerprint of
79aa81
  the auth state
79aa81
79aa81
* Sun May 10 2020 Jakub Hrozek <jhrozek@redhat.com> - 2.3.7-6
79aa81
- Fix the previous backport
79aa81
- Related: rhbz#1805749 - CVE-2019-14857 mod_auth_openidc:2.3/mod_auth_openidc:
79aa81
                          Open redirect in logout url when using URLs with
79aa81
                          leading slashes
79aa81
- Related: rhbz#1805068 - CVE-2019-20479 mod_auth_openidc:2.3/mod_auth_openidc:
79aa81
                          open redirect issue exists in URLs with slash and
79aa81
                          backslash
79aa81
79aa81
* Sun May 10 2020 Jakub Hrozek <jhrozek@redhat.com> - 2.3.7-5
79aa81
- Resolves: rhbz#1805749 - CVE-2019-14857 mod_auth_openidc:2.3/mod_auth_openidc:
79aa81
                           Open redirect in logout url when using URLs with
79aa81
                           leading slashes
79aa81
- Resolves: rhbz#1805068 - CVE-2019-20479 mod_auth_openidc:2.3/mod_auth_openidc:
79aa81
                           open redirect issue exists in URLs with slash and
79aa81
                           backslash
79aa81
db9f25
* Thu Aug 16 2018  <jdennis@redhat.com> - 2.3.7-3
db9f25
- Resolves: rhbz# 1614977 - fix unit test segfault,
db9f25
  the problem was not limited exclusively to s390x, but s390x provoked it.
db9f25
db9f25
* Fri Aug 10 2018  <jdennis@redhat.com> - 2.3.7-2
db9f25
- disable running check on s390x
db9f25
db9f25
* Wed Aug  1 2018  <jdennis@redhat.com> - 2.3.7-1
db9f25
- upgrade to upstream 2.3.7
db9f25
db9f25
* Fri Jul 13 2018 Fedora Release Engineering <releng@fedoraproject.org> - 2.3.5-2
db9f25
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
db9f25
db9f25
* Wed May 23 2018 Patrick Uiterwijk <patrick@puiterwijk.org> - 2.3.5-1
db9f25
- Rebase to 2.3.5
db9f25
db9f25
* Fri Feb 09 2018 Igor Gnatenko <ignatenkobrain@fedoraproject.org> - 1.8.10.1-7
db9f25
- Escape macros in %%changelog
db9f25
db9f25
* Thu Feb 08 2018 Fedora Release Engineering <releng@fedoraproject.org> - 1.8.10.1-6
db9f25
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
db9f25
db9f25
* Thu Aug 03 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1.8.10.1-5
db9f25
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Binutils_Mass_Rebuild
db9f25
db9f25
* Wed Jul 26 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1.8.10.1-4
db9f25
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
db9f25
db9f25
* Sat Feb 18 2017 John Dennis <jdennis@redhat.com> - 1.8.10.1-3
db9f25
- Resolves: #1423956 fails to build with openssl 1.1.x
db9f25
  Also rolls up all fixes to jose library before the change over to cjose
db9f25
db9f25
* Fri Feb 10 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1.8.10.1-2
db9f25
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
db9f25
db9f25
* Tue Jul 12 2016 John Dennis <jdennis@redhat.com> - 1.8.10.1-1
db9f25
- Upgrade to new upstream
db9f25
  See /usr/share/doc/mod_auth_openidc/ChangeLog for details
db9f25
db9f25
* Tue Mar 29 2016 John Dennis <jdennis@redhat.com> - 1.8.8-4
db9f25
- Add %%check to run test
db9f25
db9f25
* Wed Mar 23 2016 John Dennis <jdennis@redhat.com> - 1.8.8-3
db9f25
- Make building with redis support optional (defaults to without)
db9f25
db9f25
* Mon Mar 21 2016 John Dennis <jdennis@redhat.com> - 1.8.8-2
db9f25
- Add missing unpackaged files/directories
db9f25
db9f25
  Add to doc: README.md, DISCLAIMER, AUTHORS
db9f25
  Add to httpd/conf.d: auth_openidc.conf
db9f25
  Add to /var/cache: /var/cache/httpd/mod_auth_openidc/cache
db9f25
                     /var/cache/httpd/mod_auth_openidc/metadata
db9f25
db9f25
* Thu Mar 10 2016 Jan Pazdziora <jpazdziora@redhat.com> 1.8.8-1
db9f25
- Update to 1.8.8 (#1316528)
db9f25
db9f25
* Thu Feb 04 2016 Fedora Release Engineering <releng@fedoraproject.org> - 1.8.7-2
db9f25
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
db9f25
db9f25
* Sat Jan 09 2016 Fedora Release Monitoring <release-monitoring@fedoraproject.org> - 1.8.7-1
db9f25
- Update to 1.8.7 (#1297080)
db9f25
db9f25
* Sat Nov 07 2015 Jan Pazdziora <jpazdziora@redhat.com> 1.8.6-1
db9f25
- Initial packaging for Fedora 23.