<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[10.1.5: 'Require VPN' on an App Proxy app fails with an assertion and deletes the app's nginx config]]></title><description><![CDATA[<p dir="auto">Hi There,</p>
<p dir="auto"><strong>Version:</strong> Cloudron 10.1.5 (box), VPN app installed (WireGuard + OpenVPN)</p>
<p dir="auto"><strong>What I did</strong></p>
<ol>
<li>Installed the VPN app and added a WireGuard device with no custom CIDRs.</li>
<li>On an App Proxy entry (Apps &gt; Add app &gt; App Proxy, pointing at an internal service), opened Access Control and turned on "Require VPN" (VPN protection), then saved.</li>
</ol>
<p dir="auto"><strong>What happens</strong></p>
<ul>
<li>The UI shows an error: <code>Assertion: expected 'object' !== 'string'</code>, thrown from <code>getContainerIp6</code> at <code>reverseproxy.js:446</code>. It is reached through <code>getVpnAccessIngressData</code> from <code>writeAppLocationNginxConfig</code>.</li>
<li>The app's file in <code>/etc/nginx/applications</code> is deleted before the crash, and the new one is never written. Afterwards the app's domain is served by the default nginx server with the wrong certificate.</li>
<li>The setting does not stick: <code>requiresVpn</code> is still 0 in the database.</li>
<li>I reproduced this on three different proxy apps.</li>
</ul>
<p dir="auto"><strong>Recovery</strong></p>
<p dir="auto">Opening the app's Location and clicking Save rewrites the nginx config, and the app comes back.</p>
<p dir="auto"><strong>Expected</strong></p>
<p dir="auto">Either the option works for App Proxy apps, or it is hidden or refused up front. In every case a failure should leave the existing nginx config in place.</p>
<p dir="auto"><strong>Why I think it happens</strong></p>
<p dir="auto">A proxy app has no container, so there is no container IP to look up. <code>getContainerIp6</code> receives a string where it expects an object, and the failure comes before the vhost is rewritten. I have only read the stack trace, not the code path, so this is a guess.</p>
<p dir="auto"><strong>Also</strong></p>
<p dir="auto">"Require VPN" turns on without problems for a real (containerised) app, so the failure is specific to App Proxy.</p>
<p dir="auto"><strong>Side effect worth documenting</strong></p>
<p dir="auto">With no app requiring the VPN, the generated client profile has an empty <code>AllowedIPs =</code>. Some clients (Firewalla) refuse to import or connect with it. This is only a documentation point, since the profile gets entries once an app requires the VPN.</p>
<p dir="auto"><strong>Logs</strong></p>
<p dir="auto">The <code>box.log</code> lines from the failed save are available; I can attach them (redacted) on request.</p>
]]></description><link>https://forum.cloudron.io/topic/16197/10.1.5-require-vpn-on-an-app-proxy-app-fails-with-an-assertion-and-deletes-the-app-s-nginx-config</link><generator>RSS for Node</generator><lastBuildDate>Tue, 27 Oct 2026 21:27:43 GMT</lastBuildDate><atom:link href="https://forum.cloudron.io/topic/16197.rss" rel="self" type="application/rss+xml"/><pubDate>Mon, 26 Oct 2026 02:16:02 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to 10.1.5: 'Require VPN' on an App Proxy app fails with an assertion and deletes the app's nginx config on Tue, 27 Oct 2026 00:48:30 GMT]]></title><description><![CDATA[<p dir="auto">Awesome, thanks for the quick turn around.</p>
]]></description><link>https://forum.cloudron.io/post/131967</link><guid isPermaLink="true">https://forum.cloudron.io/post/131967</guid><dc:creator><![CDATA[webmin88]]></dc:creator><pubDate>Tue, 27 Oct 2026 00:48:30 GMT</pubDate></item><item><title><![CDATA[Reply to 10.1.5: 'Require VPN' on an App Proxy app fails with an assertion and deletes the app's nginx config on Mon, 26 Oct 2026 12:38:17 GMT]]></title><description><![CDATA[<p dir="auto">This is fixed for next cloudron release then.</p>
]]></description><link>https://forum.cloudron.io/post/131925</link><guid isPermaLink="true">https://forum.cloudron.io/post/131925</guid><dc:creator><![CDATA[nebulon]]></dc:creator><pubDate>Mon, 26 Oct 2026 12:38:17 GMT</pubDate></item><item><title><![CDATA[Reply to 10.1.5: 'Require VPN' on an App Proxy app fails with an assertion and deletes the app's nginx config on Mon, 26 Oct 2026 11:45:16 GMT]]></title><description><![CDATA[<p dir="auto">We are able to reproduce this easily and working on a fix. We have never really tested the combination of app proxy and vpn protection, so thanks a lot for the report!</p>
]]></description><link>https://forum.cloudron.io/post/131919</link><guid isPermaLink="true">https://forum.cloudron.io/post/131919</guid><dc:creator><![CDATA[nebulon]]></dc:creator><pubDate>Mon, 26 Oct 2026 11:45:16 GMT</pubDate></item></channel></rss>