Skip to content

Commit 31bf0ff

Browse files
authored
Merge pull request #208 from nextcloud/rel/nc30
Bump to NC 30
2 parents c85b221 + 35d8083 commit 31bf0ff

File tree

11 files changed

+71
-34
lines changed

11 files changed

+71
-34
lines changed

.github/workflows/docker.yml

Lines changed: 7 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -29,24 +29,23 @@ jobs:
2929

3030
steps:
3131
- name: Checkout repository
32-
uses: actions/checkout@v3
32+
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
3333

3434
# Install the cosign tool except on PR
3535
# https://github.com/sigstore/cosign-installer
3636
- name: Install cosign
3737
if: github.event_name != 'pull_request'
38-
uses: sigstore/cosign-installer@v3.5.0
39-
38+
uses: sigstore/cosign-installer@3454372f43399081ed03b604cb2d021dabca52bb # v3.8.2
4039

4140
# Workaround: https://github.com/docker/build-push-action/issues/461
42-
- name: Setup Docker buildx
43-
uses: docker/setup-buildx-action@79abd3f86f79a9d68a23c75a09a9a85889262adf
41+
- name: Set up Docker Buildx
42+
uses: docker/setup-buildx-action@b5ca514318bd6ebac0fb2aedd5d36ec1b5c232a2 # v3.10.0
4443

4544
# Login against a Docker registry except on PR
4645
# https://github.com/docker/login-action
4746
- name: Log into registry ${{ env.REGISTRY }}
4847
if: github.event_name != 'pull_request'
49-
uses: docker/login-action@28218f9b04b4f3f62068d7b6ce6ca5b26e35336c
48+
uses: docker/login-action@74a5d142397b4f367a81961eba4e8cd7edddf772 #v3.4.0
5049
with:
5150
registry: ${{ env.REGISTRY }}
5251
username: ${{ github.actor }}
@@ -56,15 +55,15 @@ jobs:
5655
# https://github.com/docker/metadata-action
5756
- name: Extract Docker metadata
5857
id: meta
59-
uses: docker/metadata-action@98669ae865ea3cffbcbaa878cf57c20bbf1c6c38
58+
uses: docker/metadata-action@902fa8ec7d6ecbf8d84d538b9b233a880e428804 #v5.7.0
6059
with:
6160
images: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}
6261

6362
# Build and push Docker image with Buildx (don't push on PR)
6463
# https://github.com/docker/build-push-action
6564
- name: Build and push Docker image
6665
id: build-and-push
67-
uses: docker/build-push-action@ac9327eae2b366085ac7f6a2d02df8aa8ead720a
66+
uses: docker/build-push-action@471d1dc4e07e5cdedd4c2171150001c434f0b7a4 #v6.15.0
6867
with:
6968
context: .
7069
push: true

Dockerfile

Lines changed: 10 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -22,17 +22,17 @@
2222

2323
FROM ubuntu:24.04
2424

25-
ADD https://download.nextcloud.com/server/releases/nextcloud-29.0.11.tar.bz2 /root/nextcloud.tar.bz2
26-
ADD https://github.com/nextcloud-releases/richdocuments/releases/download/v8.4.9/richdocuments-v8.4.9.tar.gz /root/richdocuments.tar.gz
27-
ADD https://github.com/ONLYOFFICE/onlyoffice-nextcloud/releases/download/v9.5.0/onlyoffice.tar.gz /root/onlyoffice.tar.gz
25+
ADD https://download.nextcloud.com/server/releases/nextcloud-30.0.15.tar.bz2 /root/nextcloud.tar.bz2
26+
ADD https://github.com/nextcloud-releases/richdocuments/releases/download/v8.5.10/richdocuments-v8.5.10.tar.gz /root/richdocuments.tar.gz
27+
ADD https://github.com/ONLYOFFICE/onlyoffice-nextcloud/releases/download/v9.10.0/onlyoffice.tar.gz /root/onlyoffice.tar.gz
2828
COPY resources/entrypoint.sh /usr/sbin/
2929
COPY resources/60-nextcloud.ini /etc/php/8.3/apache2/conf.d/
3030
COPY resources/60-nextcloud.ini /etc/php/8.3/cli/conf.d/
3131
COPY resources/000-default.conf /etc/apache2/sites-enabled/
3232

3333
# uncomment and set to true if a patch nededs to be applied
34-
#COPY resources/19439.patch /root/nc.patch
35-
ENV NC_IS_PATCHED false
34+
COPY resources/55065.patch /root/nc.patch
35+
ENV NC_IS_PATCHED true
3636

3737
RUN /bin/bash -c "export DEBIAN_FRONTEND=noninteractive" && \
3838
echo 'debconf debconf/frontend select Noninteractive' | debconf-set-selections && \
@@ -79,10 +79,8 @@ RUN a2enmod rewrite
7979

8080
RUN cd /root/ && \
8181
tar -xf "nextcloud.tar.bz2" && \
82-
mv /root/nextcloud/* /var/www/html/ && \
83-
mv /root/nextcloud/.htaccess /var/www/html/ && \
84-
mv /root/nextcloud/.user.ini /var/www/html/ && \
85-
rm -Rf /root/nextcloud && \
82+
rm -Rf /var/www/html && \
83+
mv /root/nextcloud /var/www/html && \
8684
rm "nextcloud.tar.bz2" && \
8785
cd /var/www/html/ && \
8886
chmod +x occ && \
@@ -107,9 +105,9 @@ RUN /bin/bash -c "export DEBIAN_FRONTEND=noninteractive" && \
107105
apt autoremove -y && apt clean
108106

109107
# uncomment and adjust following block if a patch needs to be applied
110-
#RUN cd /var/www/html/ && \
111-
# patch -p1 -t < /root/nc.patch && \
112-
# rm /root/nc.patch
108+
RUN cd /var/www/html/ && \
109+
patch -p1 -t < /root/nc.patch && \
110+
rm /root/nc.patch
113111

114112
EXPOSE 80
115113

Makefile

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,8 @@
1818
# along with this program. If not, see <http://www.gnu.org/licenses/>.
1919

2020
app_name=nextcloud
21-
app_version=29.0.11-0
22-
app_upgrade_from=28.0.14-0
21+
app_version=30.0.15-0
22+
app_upgrade_from=29.0.11-0
2323

2424
ucs_version=5.0
2525

@@ -59,7 +59,7 @@ push-files:
5959
i18n/en/README_POST_UPDATE_EN \
6060
i18n/de/README_POST_UPDATE_DE
6161
univention-appcenter-control set --noninteractive $(ucs_version)/$(app_name)=$(app_version) \
62-
--json '{"DockerImage": "ghcr.io/nextcloud/univention-app:$(app_version)", "UMCOptionsAttributes": "nextcloudEnabled", "WebInterface": "/nextcloud", "MinPhysicalRam": "512", "RequiredUcsVersion": "5.0-3", "SupportedUCSVersions": "5.0-3", "RequiredAppVersionUpgrade": "$(app_upgrade_from)"}'
62+
--json '{"DockerImage": "ghcr.io/nextcloud/univention-app:$(app_version)", "UMCOptionsAttributes": "nextcloudEnabled", "WebInterface": "/nextcloud", "MinPhysicalRam": "512", "RequiredUcsVersion": "5.0-3", "SupportedUCSVersions": "5.0-3,5.2-0", "RequiredAppVersionUpgrade": "$(app_upgrade_from)"}'
6363

6464
.PHONY: docker
6565
docker:

i18n/de/README_INSTALL_DE

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,5 +2,5 @@
22
Nextcloud bietet die Möglichkeit, LDAP Gruppen aus UCS zu verwenden. Dies vereinfacht es zum Beispiel, Ordner für eine Gruppe von Leuten bereit zu stellen. Um eine bestimmte Gruppe einzubeziehen, können diese aus ihren erweiterten Einstellungen in UCS heraus für Nextcloud freigegeben werden. Um eine signifikant bessere Performance zu erhalten, sollte vor der Nextcloud-Installation das <a href="https://help.univention.com/t/memberof-attribute-group-memberships-of-user-and-computer-objects/6439" target="_blank">memberOf-Overlay</a> aktiviert werden. In Domänen, die mindestens mit UCS Version 4.3 installiert wurden, ist das memberOf-Overlay standardmäßig aktiviert.
33
</p>
44
<p>
5-
Falls im Host Webserver HTTP Strict Transport Security nicht eingeschaltet sein sollte, so ist diese Einrichtung zu empfehlen. Weitere Informationen dazu befinden sich in der <a href="https://docs.nextcloud.com/server/29/admin_manual/installation/harden_server.html#enable-http-strict-transport-security" target="_blank">Dokumentation</a>.
5+
Falls im Host Webserver HTTP Strict Transport Security nicht eingeschaltet sein sollte, so ist diese Einrichtung zu empfehlen. Weitere Informationen dazu befinden sich in der <a href="https://docs.nextcloud.com/server/30/admin_manual/installation/harden_server.html#enable-http-strict-transport-security" target="_blank">Dokumentation</a>.
66
</p>

i18n/de/README_POST_INSTALL_DE

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,8 @@
55
<p>Im Bereich der <strong>Sicherheits- & Einrichtungswarnungen</strong> werden wahrscheinlich einige Hinweise angezeigt, mit der die Nextcloud-Installation verbessert werden kann. Diese Punkt können nicht im Rahmen der Nextcloud Integration für UCS erfolgen, stattdessen entscheidet der Administrator gegebenenfalls Schritte durchzuführen.
66
<h3>"Strict-Transport-Security" HTTP header</h3>
77
<p>Um den Dienst gegen Man-in-the-Middle Attacken zu härten, kann dieser Mechanismus aktiviert werden. Die SSL Terminierung erfolgt auf dem Reverse Proxy, typischer ein Apache2 Webserver auf dem Host. Die Konfiguration für die Domain(s) unter denen Nextcloud betrieben wird, muss dafür um einen HTTP Header ergänzt werden. Wenn diese Änderungen durchgeführt werden, wirken sie sich auf alle Dienste unterhalb der Domain aus.</p>
8-
<p>This <a href="https://docs.nextcloud.com/server/29/admin_manual/installation/harden_server.html#enable-http-strict-transport-security">Dokumentation erklärt wie HSTS eingerichtet wird</a>. Der <strong>includeSubDomains</strong>-Schalter ist notwendig.</p>
8+
<p>This <a href="https://docs.nextcloud.com/server/30/admin_manual/installation/harden_server.html#enable-http-strict-transport-security">Dokumentation erklärt wie HSTS eingerichtet wird</a>. Der <strong>includeSubDomains</strong>-Schalter ist notwendig.</p>
99
<h3>Auflösung von "/.well-known/caldav|carddav" scheitert</h3
10-
<p>Das Auffinden von Adressbuch- und Kalenderdiensten kann für entsprechende Klienten vereinfacht werden, in dem solche well-known URLs verfügbar gemacht werden, die letztlich auf den tatsächlichen Dienst verweisen. Die anschlagende Überprüfung tested, ob unterhalb der Hauptdomain diese URLs vorhanden sind. Um diese bereit zu stellen muss auch hier der Webserver des Hosts <a href="https://docs.nextcloud.com/server/29/admin_manual/issues/general_troubleshooting.html#service-discovery">anhand dieser Dokumentation</a> angefasst werden.
10+
<p>Das Auffinden von Adressbuch- und Kalenderdiensten kann für entsprechende Klienten vereinfacht werden, in dem solche well-known URLs verfügbar gemacht werden, die letztlich auf den tatsächlichen Dienst verweisen. Die anschlagende Überprüfung tested, ob unterhalb der Hauptdomain diese URLs vorhanden sind. Um diese bereit zu stellen muss auch hier der Webserver des Hosts <a href="https://docs.nextcloud.com/server/30/admin_manual/issues/general_troubleshooting.html#service-discovery">anhand dieser Dokumentation</a> angefasst werden.
1111
<p>Es kann nur jeweils ein Dienst pro Domain verknüpft werden. Das Vorhandensein der URLs ist nicht kritisch für das Funktionieren der Nextcloud, erhöht aber den Komfort für einige Endnutzer.</p>
1212
<p>Diese Überprüfung ist während der Nextcloud 13 Serie eingeführt worden. In früheren Versionen wurde der Hinweis folglich nicht gezeigt.</p>

i18n/de/README_POST_UPDATE_DE

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,9 @@
22
<p>Im Bereich der <strong>Sicherheits- & Einrichtungswarnungen</strong> werden wahrscheinlich einige Hinweise angezeigt, mit der die Nextcloud-Installation verbessert werden kann. Diese Punkt können nicht im Rahmen der Nextcloud Integration für UCS erfolgen, stattdessen entscheidet der Administrator gegebenenfalls Schritte durchzuführen.
33
<h3>"Strict-Transport-Security" HTTP header</h3>
44
<p>Um den Dienst gegen Man-in-the-Middle Attacken zu härten, kann dieser Mechanismus aktiviert werden. Die SSL Terminierung erfolgt auf dem Reverse Proxy, typischer ein Apache2 Webserver auf dem Host. Die Konfiguration für die Domain(s) unter denen Nextcloud betrieben wird, muss dafür um einen HTTP Header ergänzt werden. Wenn diese Änderungen durchgeführt werden, wirken sie sich auf alle Dienste unterhalb der Domain aus.</p>
5-
<p>This <a href="https://docs.nextcloud.com/server/29/admin_manual/installation/harden_server.html#enable-http-strict-transport-security">Dokumentation erklärt wie HSTS eingerichtet wird</a>. Der <strong>includeSubDomains</strong>-Schalter ist notwendig.</p>
5+
<p>This <a href="https://docs.nextcloud.com/server/30/admin_manual/installation/harden_server.html#enable-http-strict-transport-security">Dokumentation erklärt wie HSTS eingerichtet wird</a>. Der <strong>includeSubDomains</strong>-Schalter ist notwendig.</p>
66
<h3>Auflösung von "/.well-known/caldav|carddav" scheitert</h3
7-
<p>Das Auffinden von Adressbuch- und Kalenderdiensten kann für entsprechende Klienten vereinfacht werden, in dem solche well-known URLs verfügbar gemacht werden, die letztlich auf den tatsächlichen Dienst verweisen. Die anschlagende Überprüfung tested, ob unterhalb der Hauptdomain diese URLs vorhanden sind. Um diese bereit zu stellen muss auch hier der Webserver des Hosts <a href="https://docs.nextcloud.com/server/29/admin_manual/issues/general_troubleshooting.html#service-discovery">anhand dieser Dokumentation</a> angefasst werden.
7+
<p>Das Auffinden von Adressbuch- und Kalenderdiensten kann für entsprechende Klienten vereinfacht werden, in dem solche well-known URLs verfügbar gemacht werden, die letztlich auf den tatsächlichen Dienst verweisen. Die anschlagende Überprüfung tested, ob unterhalb der Hauptdomain diese URLs vorhanden sind. Um diese bereit zu stellen muss auch hier der Webserver des Hosts <a href="https://docs.nextcloud.com/server/30/admin_manual/issues/general_troubleshooting.html#service-discovery">anhand dieser Dokumentation</a> angefasst werden.
88
<p>Es kann nur jeweils ein Dienst pro Domain verknüpft werden. Das Vorhandensein der URLs ist nicht kritisch für das Funktionieren der Nextcloud, erhöht aber den Komfort für einige Endnutzer.</p>
99
<p>Diese Überprüfung ist während der Nextcloud 13 Serie eingeführt worden. In früheren Versionen wurde der Hinweis folglich nicht gezeigt.</p>
1010
<h3>Fehlende Datenbank-Indizes</h3>

i18n/en/README_INSTALL_EN

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
Nextcloud offers the possibility of using LDAP groups from UCS. This make it easier to share a folder to a range of people, for instance. To include a specific group they can be enabled from within their extended settings in UCS. For a significantly better performance, please make sure that the <a href="https://help.univention.com/t/memberof-attribute-group-memberships-of-user-and-computer-objects/6439" target="_blank">memberOf overlay</a> is activated. In domains that were installed with at least UCS 4.3 it is activated by default.
22
<br>
33
<br>
4-
Also, if the host webserver does not have HTTP Strict Transport Security enabled, it is recommend to configure it. More information can be found in <a href="https://docs.nextcloud.com/server/29/admin_manual/installation/harden_server.html#enable-http-strict-transport-security" target="_blank">our documentation</a>.
4+
Also, if the host webserver does not have HTTP Strict Transport Security enabled, it is recommend to configure it. More information can be found in <a href="https://docs.nextcloud.com/server/30/admin_manual/installation/harden_server.html#enable-http-strict-transport-security" target="_blank">our documentation</a>.

i18n/en/README_POST_INSTALL_EN

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,8 @@
55
<p>In the <strong>Security & setup warnings</strong> section it is likely that some messages are shown, on how to improve the setup. The items mentioned cannot be done by the Nextcloud integration for UCS, instead the admin needs to decide whether actions should be taken.</p>
66
<h3>"Strict-Transport-Security" HTTP header</h3>
77
<p>To harden the service against man-in-the-middle attacks, this mechanism can be enabled. The SSL termination happens on the reverse proxy, which typically is an Apache2 web server on the host. The configuration for the domain(s) Nextcloud is running on would need to be extended with an HTTP header. Applying the changes affects all services running within this domain.</p>
8-
<p>This <a href="https://docs.nextcloud.com/server/29/admin_manual/installation/harden_server.html#enable-http-strict-transport-security">documentation page explains how to configure HSTS</a>. The <strong>includeSubDomains</strong> is necessary.</p>
8+
<p>This <a href="https://docs.nextcloud.com/server/30/admin_manual/installation/harden_server.html#enable-http-strict-transport-security">documentation page explains how to configure HSTS</a>. The <strong>includeSubDomains</strong> is necessary.</p>
99
<h3>Not able to resolve "/.well-known/caldav|carddav"</h3>
10-
<p>Discovery of addressbook and calendar services can be made easier for such clients, by providing well-known URLs that redirect to the actual location of that service. This check tests whether the top-level domain has the given URLs present. Again, to resolve this, the web server configuration of the host needs to be adjusted, <a href="https://docs.nextcloud.com/server/29/admin_manual/issues/general_troubleshooting.html#service-discovery">according to this documentation</a>.<p>
10+
<p>Discovery of addressbook and calendar services can be made easier for such clients, by providing well-known URLs that redirect to the actual location of that service. This check tests whether the top-level domain has the given URLs present. Again, to resolve this, the web server configuration of the host needs to be adjusted, <a href="https://docs.nextcloud.com/server/30/admin_manual/issues/general_troubleshooting.html#service-discovery">according to this documentation</a>.<p>
1111
<p>It is only possible to link to one service provider on a domain. Having the URLs present is not crucial for a working Nextcloud setup, but improves the convenience for some end users.</p>
1212
<p>The check was introduced within the Nextcloud 13 series. Thus in the earlier version the hint was not shown.</p>

i18n/en/README_POST_UPDATE_EN

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,9 @@
22
<p>In the <strong>Security & setup warnings</strong> section it is likely that some messages are shown, on how to improve the setup. The items mentioned cannot be done by the Nextcloud integration for UCS, instead the admin needs to decide whether actions should be taken.</p>
33
<h3>"Strict-Transport-Security" HTTP header</h3>
44
<p>To harden the service against man-in-the-middle attacks, this mechanism can be enabled. The SSL termination happens on the reverse proxy, which typically is an Apache2 web server on the host. The configuration for the domain(s) Nextcloud is running on would need to be extended with an HTTP header. Applying the changes affects all services running within this domain.</p>
5-
<p>This <a href="https://docs.nextcloud.com/server/29/admin_manual/installation/harden_server.html#enable-http-strict-transport-security">documentation page explains how to configure HSTS</a>. The <strong>includeSubDomains</strong> is necessary.</p>
5+
<p>This <a href="https://docs.nextcloud.com/server/30/admin_manual/installation/harden_server.html#enable-http-strict-transport-security">documentation page explains how to configure HSTS</a>. The <strong>includeSubDomains</strong> is necessary.</p>
66
<h3>Not able to resolve "/.well-known/caldav|carddav"</h3>
7-
<p>Discovery of addressbook and calendar services can be made easier for such clients, by providing well-known URLs that redirect to the actual location of that service. This check tests whether the top-level domain has the given URLs present. Again, to resolve this, the web server configuration of the host needs to be adjusted, <a href="https://docs.nextcloud.com/server/29/admin_manual/issues/general_troubleshooting.html#service-discovery">according to this documentation</a>.<p>
7+
<p>Discovery of addressbook and calendar services can be made easier for such clients, by providing well-known URLs that redirect to the actual location of that service. This check tests whether the top-level domain has the given URLs present. Again, to resolve this, the web server configuration of the host needs to be adjusted, <a href="https://docs.nextcloud.com/server/30/admin_manual/issues/general_troubleshooting.html#service-discovery">according to this documentation</a>.<p>
88
<p>It is only possible to link to one service provider on a domain. Having the URLs present is not crucial for a working Nextcloud setup, but improves the convenience for some end users.</p>
99
<p>The check was introduced within the Nextcloud 13 series. Thus in the earlier version the hint was not shown.</p>
1010
<h3>Missing database indices</h3>

inst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -281,7 +281,7 @@ nextcloud_configure_saml() {
281281
--set simplesamlAttributes=TRUE \
282282
--set AssertionConsumerService="https://$hostname.$domainname/nextcloud/apps/user_saml/saml/acs" \
283283
--set simplesamlNameIDAttribute="uid" \
284-
--set singleLogoutService="https://$hostname.$domainname/nextcloud/apps/user_saml/saml/sls" || die
284+
--set singleLogoutService="https://$hostname.$domainname/nextcloud/apps/user_saml/saml/sls" || die "Failed to create saml/serviceprovider (SimpleSAMLphp)"
285285

286286
IDP_CERT=$(curl -s https://"${ucs_server_sso_fqdn:-ucs-sso.$domainname}"/simplesamlphp/saml2/idp/certificate | sed -ne '
287287
/-BEGIN CERTIFICATE-/,/-END CERTIFICATE-/p # got the range, ok

0 commit comments

Comments
 (0)