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