2021-04-30 12:16:13 +00:00
|
|
|
%{!?_httpd_mmn: %{expand: %%global _httpd_mmn %%(cat %{_includedir}/httpd/.mmn 2>/dev/null || echo 0-0)}}
|
2020-10-15 17:52:44 +00:00
|
|
|
%{!?_httpd_moddir: %{expand: %%global _httpd_moddir %%{_libdir}/httpd/modules}}
|
|
|
|
%{!?_httpd_confdir: %{expand: %%global _httpd_confdir %{_sysconfdir}/httpd/conf.d}}
|
|
|
|
|
|
|
|
# Optionally build with hiredis if --with hiredis is passed
|
|
|
|
%{!?_with_hiredis: %{!?_without_hiredis: %global _without_hiredis --without-hiredis}}
|
|
|
|
# It is an error if both or neither required options exist.
|
|
|
|
%{?_with_hiredis: %{?_without_hiredis: %{error: both _with_hiredis and _without_hiredis}}}
|
|
|
|
%{!?_with_hiredis: %{!?_without_hiredis: %{error: neither _with_hiredis nor _without_hiredis}}}
|
|
|
|
|
|
|
|
# /etc/httpd/conf.d with httpd < 2.4 and defined as /etc/httpd/conf.modules.d with httpd >= 2.4
|
|
|
|
%{!?_httpd_modconfdir: %{expand: %%global _httpd_modconfdir %%{_sysconfdir}/httpd/conf.d}}
|
|
|
|
|
|
|
|
%global httpd_pkg_cache_dir /var/cache/httpd/mod_auth_openidc
|
|
|
|
|
|
|
|
Name: mod_auth_openidc
|
2024-04-16 10:12:27 +00:00
|
|
|
Version: 2.4.10
|
|
|
|
Release: 1%{?dist}
|
2020-10-15 17:52:44 +00:00
|
|
|
Summary: OpenID Connect auth module for Apache HTTP Server
|
|
|
|
|
|
|
|
License: ASL 2.0
|
2024-04-16 10:12:27 +00:00
|
|
|
URL: https://github.com/OpenIDC/mod_auth_openidc
|
|
|
|
Source0: https://github.com/OpenIDC/mod_auth_openidc/releases/download/v%{version}/mod_auth_openidc-%{version}.tar.gz
|
|
|
|
Patch0: 0000-destdir.patch
|
|
|
|
Patch1: 0001-CVE-2022-23527.patch
|
|
|
|
Patch2: 0002-CVE-2023-28625.patch
|
|
|
|
Patch3: 0003-CVE-2024-24814.patch
|
|
|
|
Patch4: 0004-race-condition.patch
|
2020-10-15 17:52:44 +00:00
|
|
|
|
|
|
|
BuildRequires: gcc
|
|
|
|
BuildRequires: httpd-devel
|
|
|
|
BuildRequires: openssl-devel
|
|
|
|
BuildRequires: curl-devel
|
|
|
|
BuildRequires: jansson-devel
|
|
|
|
BuildRequires: pcre-devel
|
|
|
|
BuildRequires: autoconf
|
|
|
|
BuildRequires: automake
|
|
|
|
BuildRequires: cjose-devel
|
|
|
|
BuildRequires: jq-devel
|
|
|
|
%{?_with_hiredis:BuildRequires: hiredis-devel}
|
|
|
|
Requires: httpd-mmn = %{_httpd_mmn}
|
|
|
|
|
|
|
|
%description
|
|
|
|
This module enables an Apache 2.x web server to operate as
|
|
|
|
an OpenID Connect Relying Party and/or OAuth 2.0 Resource Server.
|
|
|
|
|
|
|
|
%prep
|
2023-03-10 09:42:59 +00:00
|
|
|
%autosetup -p1
|
2020-10-15 17:52:44 +00:00
|
|
|
|
|
|
|
%build
|
|
|
|
# workaround rpm-buildroot-usage
|
|
|
|
export MODULES_DIR=%{_httpd_moddir}
|
|
|
|
export APXS2_OPTS='-S LIBEXECDIR=${MODULES_DIR}'
|
|
|
|
autoreconf
|
|
|
|
%configure \
|
|
|
|
--with-jq=/usr/lib64/ \
|
|
|
|
%{?_with_hiredis} \
|
|
|
|
%{?_without_hiredis} \
|
|
|
|
--with-apxs2=%{_httpd_apxs}
|
|
|
|
|
|
|
|
%{make_build}
|
|
|
|
|
|
|
|
%check
|
|
|
|
export MODULES_DIR=%{_httpd_moddir}
|
|
|
|
export APXS2_OPTS='-S LIBEXECDIR=${MODULES_DIR}'
|
|
|
|
make test
|
|
|
|
|
|
|
|
%install
|
|
|
|
mkdir -p $RPM_BUILD_ROOT%{_httpd_moddir}
|
2024-04-16 10:12:27 +00:00
|
|
|
make DESTDIR=$RPM_BUILD_ROOT MODULES_DIR=%{_httpd_moddir} install
|
2020-10-15 17:52:44 +00:00
|
|
|
|
|
|
|
install -m 755 -d $RPM_BUILD_ROOT%{_httpd_modconfdir}
|
|
|
|
echo 'LoadModule auth_openidc_module modules/mod_auth_openidc.so' > \
|
|
|
|
$RPM_BUILD_ROOT%{_httpd_modconfdir}/10-auth_openidc.conf
|
|
|
|
|
|
|
|
install -m 755 -d $RPM_BUILD_ROOT%{_httpd_confdir}
|
|
|
|
install -m 644 auth_openidc.conf $RPM_BUILD_ROOT%{_httpd_confdir}
|
|
|
|
# Adjust httpd cache location in install config file
|
|
|
|
sed -i 's!/var/cache/apache2/!/var/cache/httpd/!' $RPM_BUILD_ROOT%{_httpd_confdir}/auth_openidc.conf
|
|
|
|
install -m 700 -d $RPM_BUILD_ROOT%{httpd_pkg_cache_dir}
|
|
|
|
install -m 700 -d $RPM_BUILD_ROOT%{httpd_pkg_cache_dir}/metadata
|
|
|
|
install -m 700 -d $RPM_BUILD_ROOT%{httpd_pkg_cache_dir}/cache
|
|
|
|
|
|
|
|
|
|
|
|
%files
|
|
|
|
%if 0%{?rhel} && 0%{?rhel} < 7
|
|
|
|
%doc LICENSE.txt
|
|
|
|
%else
|
|
|
|
%license LICENSE.txt
|
|
|
|
%endif
|
|
|
|
%doc ChangeLog
|
|
|
|
%doc AUTHORS
|
|
|
|
%doc README.md
|
|
|
|
%{_httpd_moddir}/mod_auth_openidc.so
|
|
|
|
%config(noreplace) %{_httpd_modconfdir}/10-auth_openidc.conf
|
2023-04-24 19:10:45 +00:00
|
|
|
%config(noreplace) %attr(0640, root, apache) %{_httpd_confdir}/auth_openidc.conf
|
2020-10-15 17:52:44 +00:00
|
|
|
%dir %attr(0700, apache, apache) %{httpd_pkg_cache_dir}
|
|
|
|
%dir %attr(0700, apache, apache) %{httpd_pkg_cache_dir}/metadata
|
|
|
|
%dir %attr(0700, apache, apache) %{httpd_pkg_cache_dir}/cache
|
|
|
|
|
|
|
|
%changelog
|
2024-04-16 10:12:27 +00:00
|
|
|
* Fri Apr 12 2024 Tomas Halman <thalman@redhat.com> - 2.4.10-1
|
|
|
|
Rebase to 2.4.10 version improves `state cookies piling up` problem
|
|
|
|
Resolves: RHEL-32450 Race condition in mod_auth_openidc filecache
|
|
|
|
Resolves: RHEL-25422 mod_auth_openidc: DoS when using
|
|
|
|
`OIDCSessionType client-cookie` and manipulating cookies
|
|
|
|
(CVE-2024-24814)
|
|
|
|
|
2023-04-24 19:10:45 +00:00
|
|
|
* Mon Apr 24 2023 Tomas Halman <thalman@redhat.com> - 2.4.9.4-4
|
|
|
|
Resolves: rhbz#2189268 - auth_openidc.conf mode 0640 by default
|
|
|
|
|
2023-04-11 09:57:17 +00:00
|
|
|
* Tue Apr 11 2023 Tomas Halman <thalman@redhat.com> - 2.4.9.4-3
|
|
|
|
- Resolves: rhbz#2184145 - CVE-2023-28625 NULL pointer dereference
|
|
|
|
when OIDCStripCookies is set and a crafted Cookie header is supplied
|
|
|
|
|
2023-03-10 09:42:59 +00:00
|
|
|
* Tue Feb 21 2023 Tomas Halman <thalman@redhat.com> - 2.4.9.4-2
|
|
|
|
- Resolves: rhbz#2153656 - CVE-2022-23527 - Open Redirect in
|
|
|
|
oidc_validate_redirect_url() using tab character
|
|
|
|
|
2021-11-30 10:17:56 +00:00
|
|
|
* Tue Nov 30 2021 Tomas Halman <thalman@redhat.com> - 2.4.9.4-1
|
|
|
|
- Resolves: rhbz#2001852 - CVE-2021-39191 mod_auth_openidc: open redirect
|
|
|
|
by supplying a crafted URL in the target_link_uri
|
|
|
|
parameter
|
|
|
|
|
2023-03-10 09:42:59 +00:00
|
|
|
* Mon Aug 09 2021 Mohan Boddu <mboddu@redhat.com> - 2.4.8.2-3
|
|
|
|
- Rebuilt for IMA sigs, glibc 2.34, aarch64 flags
|
|
|
|
Related: rhbz#1991688
|
|
|
|
|
2021-07-30 10:58:15 +00:00
|
|
|
* Fri Jul 30 2021 Jakub Hrozek <jhrozek@redhat.com> - 2.4.9.1-1
|
|
|
|
- Resolves: rhbz#1987223 - CVE-2021-32792 mod_auth_openidc: XSS when using
|
|
|
|
OIDCPreservePost On [rhel-9.0]
|
|
|
|
- Resolves: rhbz#1987217 - CVE-2021-32791 mod_auth_openidc: hardcoded
|
|
|
|
static IV and AAD with a reused key in AES GCM
|
|
|
|
encryption [rhel-9.0]
|
|
|
|
- Resolves: rhbz#1987204 - CVE-2021-32786 mod_auth_openidc: open redirect in
|
|
|
|
oidc_validate_redirect_url() [rhel-9.0]
|
|
|
|
|
2021-06-16 03:31:08 +00:00
|
|
|
* Wed Jun 16 2021 Mohan Boddu <mboddu@redhat.com> - 2.4.8.2-2
|
|
|
|
- Rebuilt for RHEL 9 BETA for openssl 3.0
|
|
|
|
Related: rhbz#1971065
|
|
|
|
|
2021-05-10 12:17:30 +00:00
|
|
|
* Mon May 10 2021 Jakub Hrozek <jhrozek@redhat.com> - 2.4.8.2-1
|
|
|
|
- New upstream release
|
|
|
|
- Resolves: rhbz#1958466 - mod_auth_openidc-2.4.8.2 is available
|
|
|
|
|
|
|
|
* Thu May 6 2021 Jakub Hrozek <jhrozek@redhat.com> - 2.4.7.2-1
|
|
|
|
- New upstream release
|
|
|
|
- Resolves: rhbz#1900913 - mod_auth_openidc-2.4.7.2 is available
|
|
|
|
|
2021-04-30 12:16:13 +00:00
|
|
|
* Fri Apr 30 2021 Tomas Halman <thalman@redhat.com> - 2.4.4.1-3
|
|
|
|
- Resolves: rhbz#1951277 - Remove unnecessary LTO patch
|
|
|
|
|
2021-04-16 02:13:52 +00:00
|
|
|
* Fri Apr 16 2021 Mohan Boddu <mboddu@redhat.com> - 2.4.4.1-2
|
|
|
|
- Rebuilt for RHEL 9 BETA on Apr 15th 2021. Related: rhbz#1947937
|
|
|
|
|
2020-10-15 17:52:44 +00:00
|
|
|
* Fri Sep 4 2020 Jakub Hrozek <jhrozek@redhat.com> - 2.4.4.1-1
|
|
|
|
- New upstream version 2.4.4.1
|
|
|
|
|
|
|
|
* Tue Sep 1 2020 Jakub Hrozek <jhrozek@redhat.com> - 2.4.4-1
|
|
|
|
- New upstream version 2.4.4
|
|
|
|
|
|
|
|
* Thu Aug 27 2020 Joe Orton <jorton@redhat.com> - 2.4.3-5
|
|
|
|
- update to use correct apxs via _httpd_apxs macro
|
|
|
|
|
|
|
|
* Thu Aug 27 2020 Joe Orton <jorton@redhat.com> - 2.4.3-4
|
|
|
|
- work around LTO build failure
|
|
|
|
|
|
|
|
* Sat Aug 01 2020 Fedora Release Engineering <releng@fedoraproject.org> - 2.4.3-3
|
|
|
|
- Second attempt - Rebuilt for
|
|
|
|
https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
|
|
|
|
|
|
|
|
* Tue Jul 28 2020 Fedora Release Engineering <releng@fedoraproject.org> - 2.4.3-2
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
|
|
|
|
|
|
|
|
* Tue Jul 14 2020 Jakub Hrozek <jhrozek@redhat.com> - 2.4.3
|
|
|
|
- New upstream version 2.4.3
|
|
|
|
|
|
|
|
* Sun May 10 2020 Jakub Hrozek <jhrozek@redhat.com> - 2.4.2.1-1
|
|
|
|
- New upstream version 2.4.2.1
|
|
|
|
- Resolves: rhbz#1805104 - CVE-2019-20479 mod_auth_openidc: open redirect
|
|
|
|
issue exists in URLs with slash and backslash
|
|
|
|
[fedora-all]
|
|
|
|
- Resolves: rhbz#1816883 - mod_auth_openidc-2.4.2.1 is available
|
|
|
|
|
|
|
|
* Thu Feb 13 2020 Tom Stellard <tstellar@redhat.com> - 2.4.1-2
|
|
|
|
- Use make_build macro instead of just make
|
|
|
|
- https://docs.fedoraproject.org/en-US/packaging-guidelines/#_parallel_make
|
|
|
|
|
|
|
|
* Mon Feb 3 2020 Jakub Hrozek <jhrozek@redhat.com> - 2.4.1-1
|
|
|
|
- New upstream version 2.4.1
|
|
|
|
|
|
|
|
* Wed Jan 29 2020 Fedora Release Engineering <releng@fedoraproject.org> - 2.4.0.4-2
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
|
|
|
|
|
|
|
|
* Thu Nov 21 2019 Jakub Hrozek <jhrozek@redhat.com> - 2.4.0.4-1
|
|
|
|
- New upstream version 2.4.0.4
|
|
|
|
|
|
|
|
* Fri Oct 4 2019 Jakub Hrozek <jhrozek@redhat.com> - 2.4.0.3-1
|
|
|
|
- New upstream version 2.4.0.3
|
|
|
|
|
|
|
|
* Fri Aug 23 2019 Jakub Hrozek <jhrozek@redhat.com> - 2.4.0
|
|
|
|
- New upstream version 2.4.0
|
|
|
|
- Resolves: rhbz#1374884 - mod_auth_openidc-2.4.0 is available
|
|
|
|
|
|
|
|
* Thu Jul 25 2019 Fedora Release Engineering <releng@fedoraproject.org> - 2.3.7-5
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
|
|
|
|
|
|
|
|
* Fri Feb 01 2019 Fedora Release Engineering <releng@fedoraproject.org> - 2.3.7-4
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
|
|
|
|
|
|
|
|
* Thu Aug 16 2018 <jdennis@redhat.com> - 2.3.7-3
|
|
|
|
- update test-segfault.patch to match upstream
|
|
|
|
|
|
|
|
* Tue Aug 14 2018 <jdennis@redhat.com> - 2.3.7-2
|
|
|
|
- Resolves: rhbz# 1614977 - fix unit test segfault,
|
|
|
|
the problem was not limited exclusively to s390x, but s390x provoked it.
|
|
|
|
|
|
|
|
* Wed Aug 1 2018 <jdennis@redhat.com> - 2.3.7-1
|
|
|
|
- upgrade to upstream 2.3.7
|
|
|
|
|
|
|
|
* Fri Jul 13 2018 Fedora Release Engineering <releng@fedoraproject.org> - 2.3.5-2
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
|
|
|
|
|
|
|
|
* Wed May 23 2018 Patrick Uiterwijk <patrick@puiterwijk.org> - 2.3.5-1
|
|
|
|
- Rebase to 2.3.5
|
|
|
|
|
|
|
|
* Fri Feb 09 2018 Igor Gnatenko <ignatenkobrain@fedoraproject.org> - 1.8.10.1-7
|
|
|
|
- Escape macros in %%changelog
|
|
|
|
|
|
|
|
* Thu Feb 08 2018 Fedora Release Engineering <releng@fedoraproject.org> - 1.8.10.1-6
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
|
|
|
|
|
|
|
|
* Thu Aug 03 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1.8.10.1-5
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Binutils_Mass_Rebuild
|
|
|
|
|
|
|
|
* Wed Jul 26 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1.8.10.1-4
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
|
|
|
|
|
|
|
|
* Sat Feb 18 2017 John Dennis <jdennis@redhat.com> - 1.8.10.1-3
|
|
|
|
- Resolves: #1423956 fails to build with openssl 1.1.x
|
|
|
|
Also rolls up all fixes to jose library before the change over to cjose
|
|
|
|
|
|
|
|
* Fri Feb 10 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1.8.10.1-2
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
|
|
|
|
|
|
|
|
* Tue Jul 12 2016 John Dennis <jdennis@redhat.com> - 1.8.10.1-1
|
|
|
|
- Upgrade to new upstream
|
|
|
|
See /usr/share/doc/mod_auth_openidc/ChangeLog for details
|
|
|
|
|
|
|
|
* Tue Mar 29 2016 John Dennis <jdennis@redhat.com> - 1.8.8-4
|
|
|
|
- Add %%check to run test
|
|
|
|
|
|
|
|
* Wed Mar 23 2016 John Dennis <jdennis@redhat.com> - 1.8.8-3
|
|
|
|
- Make building with redis support optional (defaults to without)
|
|
|
|
|
|
|
|
* Mon Mar 21 2016 John Dennis <jdennis@redhat.com> - 1.8.8-2
|
|
|
|
- Add missing unpackaged files/directories
|
|
|
|
|
|
|
|
Add to doc: README.md, DISCLAIMER, AUTHORS
|
|
|
|
Add to httpd/conf.d: auth_openidc.conf
|
|
|
|
Add to /var/cache: /var/cache/httpd/mod_auth_openidc/cache
|
|
|
|
/var/cache/httpd/mod_auth_openidc/metadata
|
|
|
|
|
|
|
|
* Thu Mar 10 2016 Jan Pazdziora <jpazdziora@redhat.com> 1.8.8-1
|
|
|
|
- Update to 1.8.8 (#1316528)
|
|
|
|
|
|
|
|
* Thu Feb 04 2016 Fedora Release Engineering <releng@fedoraproject.org> - 1.8.7-2
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
|
|
|
|
|
|
|
|
* Sat Jan 09 2016 Fedora Release Monitoring <release-monitoring@fedoraproject.org> - 1.8.7-1
|
|
|
|
- Update to 1.8.7 (#1297080)
|
|
|
|
|
|
|
|
* Sat Nov 07 2015 Jan Pazdziora <jpazdziora@redhat.com> 1.8.6-1
|
|
|
|
- Initial packaging for Fedora 23.
|