<?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[Default config changes]]></title><description><![CDATA[<p dir="auto">I was looking through the gitea config cheat sheet and there are some changes that could be made to make it more operator friendly.</p>
<p dir="auto">I'd like to hear your thoughts.</p>
<h3>1. Disable registration by default</h3>
<p dir="auto">See <a href="https://forum.cloudron.io/post/92945">Prevent external users from joining gitea instance</a>.</p>
<pre><code class="language-ini">[service]
DISABLE_REGISTRATION = True
REGISTER_MANUAL_CONFIRM = True
EMAIL_DOMAIN_ALLOWLIST = XX_your_domain_here_XX,cloudron.local
DEFAULT_USER_IS_RESTRICTED = True
</code></pre>
<p dir="auto">I would guess that most cloudron users would want to manage gitea user accounts through cloudron instead of in the app itself. This would prevent spam and abuse of gitea instances by default. This may require some tuning, I'm not sure how carefully these configs were tested.</p>
<h3>2. Completely disable gitea password-based signin form</h3>
<p dir="auto">I noticed gitea has these options to disable the username/password signin form entirely. This would make cloudron logins smoother because I keep forgetting and fill in my cloudron credentials to the gitea login form, which doesn't work, instead of clicking "Sign in with Cloudron".</p>
<p dir="auto">More importantly, if this setting is changed it might eliminate the need to change and manage the admin password during first time app install, simplifying the initial setup. To ensure that users can get to the admin panel, maybe we could use the CLI to make the cloudron app owner account an administrator in <code>start.sh</code>.</p>
<pre><code class="language-ini">[service]
ENABLE_PASSWORD_SIGNIN_FORM = false
ENABLE_BASIC_AUTHENTICATION = false
</code></pre>
<blockquote>
<p dir="auto"><code>ENABLE_PASSWORD_SIGNIN_FORM</code>: <strong>true</strong>: Show the password login form (for password-based login), otherwise, only show OAuth2 or passkey login methods if they are enabled. If you set it to false, maybe it also needs to set ENABLE_BASIC_AUTHENTICATION to false to completely disable password-based authentication.</p>
</blockquote>
]]></description><link>https://forum.cloudron.io/topic/14061/default-config-changes</link><generator>RSS for Node</generator><lastBuildDate>Wed, 11 Nov 2026 10:13:51 GMT</lastBuildDate><atom:link href="https://forum.cloudron.io/topic/14061.rss" rel="self" type="application/rss+xml"/><pubDate>Fri, 11 Jul 2025 14:33:29 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Default config changes on Thu, 17 Jul 2025 00:25:43 GMT]]></title><description><![CDATA[<p dir="auto">What I was aiming for with this was to simplify the Gitea app install process for new instances. This would:</p>
<ol>
<li>Remove the step where new app owners must change the root password and save it, eliminating the initial period where new installs are vulnerable to spam and abuse, and eliminating the need for a root user at all.</li>
<li>Allow for disabling username/password entry form, streamlining cloudron logins.</li>
<li>Derive Gitea Site Administrator privileges directly from app owner/operator role, simplifying app administrator delegation.</li>
</ol>
<p dir="auto">These goals are related to the default initial configuration of the gitea app, and are thus not possible to achieve with cloudron groups.</p>
<p dir="auto">To do this, cloudron would need to:</p>
<ol>
<li>Add a <code>role</code> claim (maybe <code>roles</code> plural) to the claims returned by <a href="https://git.cloudron.io/platform/box/-/blob/master/src/oidcserver.js?ref_type=heads#L485-513" target="_blank" rel="noopener noreferrer nofollow ugc"><code>getClaims</code></a>, corresponding to the user's role assignment for that app.</li>
<li>Accept a PR to the gitea app that configures it to use these claims to set the site administrator role, after waiting for gitea to implement the ability to configure these settings from <code>app.ini</code>.</li>
</ol>
<p dir="auto">I understand if you are not interested at this time.</p>
]]></description><link>https://forum.cloudron.io/post/110336</link><guid isPermaLink="true">https://forum.cloudron.io/post/110336</guid><dc:creator><![CDATA[infogulch]]></dc:creator><pubDate>Thu, 17 Jul 2025 00:25:43 GMT</pubDate></item><item><title><![CDATA[Reply to Default config changes on Wed, 16 Jul 2025 17:35:45 GMT]]></title><description><![CDATA[<p dir="auto">This is currently not on our list. But you should be able to use Cloudron groups for that already, just have to add the users accordingly.</p>
]]></description><link>https://forum.cloudron.io/post/110331</link><guid isPermaLink="true">https://forum.cloudron.io/post/110331</guid><dc:creator><![CDATA[nebulon]]></dc:creator><pubDate>Wed, 16 Jul 2025 17:35:45 GMT</pubDate></item><item><title><![CDATA[Reply to Default config changes on Wed, 16 Jul 2025 16:34:52 GMT]]></title><description><![CDATA[<p dir="auto">I see. Having some impedance mismatch between cloudron roles and app groups makes sense.</p>
<p dir="auto">What if cloudron exposed a separate "roles" claim in addition to groups? Gitea could be configured to use the cloudron role claim as <em>Claim name providing groups for this source</em>, then set <code>administrator</code> as the <em>Group Claim value for administrator users</em>. Or set it to <code>operators</code> if you want to allow every operator to act as a Gitea Site Administrator.</p>
<p dir="auto">In this case as long as <em>Map claimed groups to Organization teams</em> is left blank then there's no mapping that will confuse the app.</p>
<p dir="auto"><img src="/assets/uploads/files/1752682888183-570e0266-5cf0-4b06-9148-847b2ac904ee-image.png" alt="image.png" class="img-markdown  img-fluid" width="589" height="428" /></p>
]]></description><link>https://forum.cloudron.io/post/110323</link><guid isPermaLink="true">https://forum.cloudron.io/post/110323</guid><dc:creator><![CDATA[infogulch]]></dc:creator><pubDate>Wed, 16 Jul 2025 16:34:52 GMT</pubDate></item><item><title><![CDATA[Reply to Default config changes on Wed, 16 Jul 2025 16:13:07 GMT]]></title><description><![CDATA[<p dir="auto">Cloudron will return the groups a user is part of. However admin or app operator are roles not groups. So an app does not know if a user is also an admin on your Cloudron or such.</p>
<p dir="auto">Long ago we did expose this, but this usually does not map well to apps. Roles and groups often mean different things within different apps.</p>
]]></description><link>https://forum.cloudron.io/post/110320</link><guid isPermaLink="true">https://forum.cloudron.io/post/110320</guid><dc:creator><![CDATA[nebulon]]></dc:creator><pubDate>Wed, 16 Jul 2025 16:13:07 GMT</pubDate></item><item><title><![CDATA[Reply to Default config changes on Wed, 16 Jul 2025 13:16:45 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/girish" aria-label="Profile: girish">@<bdi>girish</bdi></a> So my question for you is: Does cloudron assign an oauth2 claim for groups, specifically for app operators? If not, could it?</p>
]]></description><link>https://forum.cloudron.io/post/110311</link><guid isPermaLink="true">https://forum.cloudron.io/post/110311</guid><dc:creator><![CDATA[infogulch]]></dc:creator><pubDate>Wed, 16 Jul 2025 13:16:45 GMT</pubDate></item><item><title><![CDATA[Reply to Default config changes on Tue, 15 Jul 2025 21:05:01 GMT]]></title><description><![CDATA[<p dir="auto">Ok I found that the configuration is loaded from the <code>login_soruce</code> table, which has a JSON column <code>cfg</code> with OAuth2-specific fields. For reference it works like this:</p>
<ul>
<li>OAuth2 login starts in <a href="https://github.com/go-gitea/gitea/blob/558005a5ea8d3996bfd45fbf645a1e2583eae946/routers/web/auth/oauth.go#L74" target="_blank" rel="noopener noreferrer nofollow ugc"><code>SignInOAuthCallback</code></a>
<ul>
<li>This <a href="https://github.com/go-gitea/gitea/blob/558005a5ea8d3996bfd45fbf645a1e2583eae946/routers/web/auth/oauth.go#L88" target="_blank" rel="noopener noreferrer nofollow ugc">calls <code>GetActiveOAuth2SourceByAuthName</code></a> to get the OAuth config</li>
<li><a href="https://github.com/go-gitea/gitea/blob/558005a5ea8d3996bfd45fbf645a1e2583eae946/models/auth/oauth2.go#L616-L628" target="_blank" rel="noopener noreferrer nofollow ugc"><code>GetActiveOAuth2SourceByAuthName</code></a> loads the login configuration from the database</li>
<li>This populates a <a href="https://github.com/go-gitea/gitea/blob/558005a5ea8d3996bfd45fbf645a1e2583eae946/models/auth/source.go#L116-L128" target="_blank" rel="noopener noreferrer nofollow ugc"><code>models.auth.Source</code></a> struct from the <a href="https://github.com/go-gitea/gitea/blob/558005a5ea8d3996bfd45fbf645a1e2583eae946/models/auth/source.go#L132" target="_blank" rel="noopener noreferrer nofollow ugc"><code>login_source</code> table</a></li>
<li>The <code>Cfg</code> field is parsed into the source-specific struct <a href="https://github.com/go-gitea/gitea/blob/558005a5ea8d3996bfd45fbf645a1e2583eae946/services/auth/source/oauth2/source.go#L11-L33" target="_blank" rel="noopener noreferrer nofollow ugc"><code>services.auth.source.oauth2.Source</code></a> which contains the <code>GroupClaimName</code> and <code>AdminGroup</code> fields.</li>
</ul>
</li>
<li>Then <a href="https://github.com/go-gitea/gitea/blob/558005a5ea8d3996bfd45fbf645a1e2583eae946/routers/web/auth/oauth.go#L191" target="_blank" rel="noopener noreferrer nofollow ugc"><code>SignInOAuthCallback</code> calls</a> function <a href="https://github.com/go-gitea/gitea/blob/558005a5ea8d3996bfd45fbf645a1e2583eae946/routers/web/auth/oauth.go#L261-L277" target="_blank" rel="noopener noreferrer nofollow ugc"><code>getUserAdminAndRestrictedFromGroupClaims</code></a> to read these fields to get the user's admin status from the oauth claims.</li>
</ul>
<p dir="auto">I looked at my <code>login_source</code> table:</p>
<pre><code class="language-sql">SELECT * FROM login_source WHERE type = 6 /*OAuth2*/ AND name = 'cloudron' AND is_active = 1;
</code></pre>
<pre><code>+----+------+----------+-----------------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+--------------+--------------+-----------+-------------------+
| id | type | name     | is_sync_enabled | cfg                                                                                                                                                                                                                                                                                                                                                                                                          | created_unix | updated_unix | is_active | two_factor_policy |
+----+------+----------+-----------------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+--------------+--------------+-----------+-------------------+
|  1 |    6 | cloudron |               0 | {"Provider":"openidConnect","ClientID":"&lt;snip&gt;","ClientSecret":"&lt;snip&gt;","OpenIDConnectAutoDiscoveryURL":"https://my.&lt;cloudron domain&gt;/openid/.well-known/openid-configuration","CustomURLMapping":null,"IconURL":"","Scopes":["openid email profile"],"RequiredClaimName":"","RequiredClaimValue":"","GroupClaimName":"","AdminGroup":"","GroupTeamMap":"","GroupTeamMapRemoval":false,"RestrictedGroup":""} |   1752293846 |   1752293846 |         1 |                   |
+----+------+----------+-----------------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+--------------+--------------+-----------+-------------------+
</code></pre>
<p dir="auto">Here you can see the JSON fields <code>GroupClaimName</code> and <code>AdminGroup</code> in the cfg column.</p>
<p dir="auto">So these configuration settings can be updated today with a query like this:</p>
<pre><code class="language-sql">UPDATE login_source
SET cfg = JSON_SET(cfg, '$.GroupClaimName', '&lt;group claim name&gt;', '$.AdminGroup', '&lt;operators group name&gt;')
WHERE type = 6 /*OAuth2*/ AND name = 'cloudron' AND is_active = 1;
</code></pre>
<p dir="auto">Obviously it would be better if this setting was exposed in <code>app.ini</code>, but this is enough for testing. And we'll have a stronger case for a PR to add this if we come with a live use-case.</p>
<p dir="auto">To me it seems like the next steps are:</p>
<ol>
<li>Figure out if Cloudron even exposes the group names and the app's operators group via OAuth2 claims</li>
<li>Test to see if filling in the GroupClaimName and AdminGroup fields in the UI works</li>
<li>Test to see if changing it by sql works</li>
<li>Decide if this makes sense as a default</li>
<li>Update the app to use it by default<br />
a. <code>start.sh</code> can open a subshell that tries to update these settings by direct query, checking in a loop every 5 seconds waiting for the schema to populate on first boot and for the <code>login_source</code> row to be created from config.<br />
b. Add the settings <code>ENABLE_PASSWORD_SIGNIN_FORM = false</code> and <code>ENABLE_BASIC_AUTHENTICATION = false</code>, and remove the first-time setup task to change the root password.<br />
c. Open an issue with Gitea to expose these settings via <code>app.ini</code>, remove the subshell workaround and use the exposed config options when they are available.</li>
</ol>
]]></description><link>https://forum.cloudron.io/post/110232</link><guid isPermaLink="true">https://forum.cloudron.io/post/110232</guid><dc:creator><![CDATA[infogulch]]></dc:creator><pubDate>Tue, 15 Jul 2025 21:05:01 GMT</pubDate></item><item><title><![CDATA[Reply to Default config changes on Mon, 14 Jul 2025 14:09:32 GMT]]></title><description><![CDATA[<p dir="auto">Yes I suspected that's how it would work.</p>
<p dir="auto">What if we configure Gitea admin group claims from OIDC tokens? Can cloudron add a claim to the token when the authenticated user is an operator?</p>
<blockquote>
<ul>
<li><code>--group-claim-name</code>: Claim name providing group names for this source. (Optional)</li>
<li><code>--admin-group</code>: Group Claim value for administrator users. (Optional)</li>
</ul>
<p dir="auto">-<a href="https://docs.gitea.com/administration/command-line?_highlight=group&amp;_highlight=claim&amp;_highlight=value&amp;_highlight=administrator&amp;_highlight=users#admin" target="_blank" rel="noopener noreferrer nofollow ugc">Gitea Command Line Reference</a></p>
</blockquote>
<p dir="auto"><img src="/assets/uploads/files/1752499939471-83748401-ef37-49ed-9efd-265108748798-image.png" alt="image.png" class="img-markdown  img-fluid" width="546" height="151" /></p>
<p dir="auto"><a href="https://github.com/search?q=repo%3Ago-gitea%2Fgitea%20oauth2_group_claim_name&amp;type=code" target="_blank" rel="noopener noreferrer nofollow ugc">https://github.com/search?q=repo%3Ago-gitea%2Fgitea oauth2_group_claim_name&amp;type=code</a><br />
<a href="https://github.com/search?q=repo%3Ago-gitea%2Fgitea+oauth2groupclaimname&amp;type=code" target="_blank" rel="noopener noreferrer nofollow ugc">https://github.com/search?q=repo%3Ago-gitea%2Fgitea+oauth2groupclaimname&amp;type=code</a><br />
<a href="https://github.com/search?q=repo%3Ago-gitea%2Fgitea%20GroupClaimName&amp;type=code" target="_blank" rel="noopener noreferrer nofollow ugc">https://github.com/search?q=repo%3Ago-gitea%2Fgitea GroupClaimName&amp;type=code</a></p>
<p dir="auto">Ok it looks like these configs are not settable by app.ini. I'll ask in the discord and post back here.</p>
<p dir="auto"><a href="https://github.com/go-gitea/gitea/blob/b861d86f80ea7a848efb539b798bbde3c7877d02/modules/setting/oauth2.go#L63-L79" target="_blank" rel="noopener noreferrer nofollow ugc">https://github.com/go-gitea/gitea/blob/b861d86f80ea7a848efb539b798bbde3c7877d02/modules/setting/oauth2.go#L63-L79</a></p>
]]></description><link>https://forum.cloudron.io/post/110174</link><guid isPermaLink="true">https://forum.cloudron.io/post/110174</guid><dc:creator><![CDATA[infogulch]]></dc:creator><pubDate>Mon, 14 Jul 2025 14:09:32 GMT</pubDate></item><item><title><![CDATA[Reply to Default config changes on Mon, 14 Jul 2025 13:04:58 GMT]]></title><description><![CDATA[<p dir="auto">Users are auto-created by gitea on OIDC login. So, we may not have the user object in gitea database in <a href="http://start.sh" target="_blank" rel="noopener noreferrer nofollow ugc">start.sh</a> time.</p>
]]></description><link>https://forum.cloudron.io/post/110168</link><guid isPermaLink="true">https://forum.cloudron.io/post/110168</guid><dc:creator><![CDATA[girish]]></dc:creator><pubDate>Mon, 14 Jul 2025 13:04:58 GMT</pubDate></item><item><title><![CDATA[Reply to Default config changes on Mon, 14 Jul 2025 12:32:45 GMT]]></title><description><![CDATA[<p dir="auto">What if the OIDC user can be made admin through the CLI in <code>start.sh</code>?</p>
]]></description><link>https://forum.cloudron.io/post/110166</link><guid isPermaLink="true">https://forum.cloudron.io/post/110166</guid><dc:creator><![CDATA[infogulch]]></dc:creator><pubDate>Mon, 14 Jul 2025 12:32:45 GMT</pubDate></item><item><title><![CDATA[Reply to Default config changes on Mon, 14 Jul 2025 12:31:34 GMT]]></title><description><![CDATA[<p dir="auto">Doesn't the first OIDC user need to be made an admin by logging in as admin first?</p>
]]></description><link>https://forum.cloudron.io/post/110164</link><guid isPermaLink="true">https://forum.cloudron.io/post/110164</guid><dc:creator><![CDATA[girish]]></dc:creator><pubDate>Mon, 14 Jul 2025 12:31:34 GMT</pubDate></item><item><title><![CDATA[Reply to Default config changes on Mon, 14 Jul 2025 12:30:02 GMT]]></title><description><![CDATA[<p dir="auto">Yes that's what I'm saying: I've never logged in with the root user since changing the password, I've always managed my gitea instance by giving my cloudron identity administrator privileges in the app. So maybe the admin is not even necessary. And if we just completely disable the admin login this would simplify first-time setup of the gitea app.</p>
]]></description><link>https://forum.cloudron.io/post/110163</link><guid isPermaLink="true">https://forum.cloudron.io/post/110163</guid><dc:creator><![CDATA[infogulch]]></dc:creator><pubDate>Mon, 14 Jul 2025 12:30:02 GMT</pubDate></item><item><title><![CDATA[Reply to Default config changes on Mon, 14 Jul 2025 07:28:48 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/infogulch" aria-label="Profile: infogulch">@<bdi>infogulch</bdi></a> I think disabling the signin form disables admin login as well. We won't put it in the package since then the first login won't work (to change admin password) . But I think it makes sense in general.</p>
]]></description><link>https://forum.cloudron.io/post/110148</link><guid isPermaLink="true">https://forum.cloudron.io/post/110148</guid><dc:creator><![CDATA[girish]]></dc:creator><pubDate>Mon, 14 Jul 2025 07:28:48 GMT</pubDate></item><item><title><![CDATA[Reply to Default config changes on Fri, 11 Jul 2025 18:25:42 GMT]]></title><description><![CDATA[<p dir="auto">Cool. What do you think about item 2?</p>
]]></description><link>https://forum.cloudron.io/post/110079</link><guid isPermaLink="true">https://forum.cloudron.io/post/110079</guid><dc:creator><![CDATA[infogulch]]></dc:creator><pubDate>Fri, 11 Jul 2025 18:25:42 GMT</pubDate></item><item><title><![CDATA[Reply to Default config changes on Fri, 11 Jul 2025 14:44:27 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/infogulch" aria-label="Profile: infogulch">@<bdi>infogulch</bdi></a> thanks for the write up.</p>
<p dir="auto">I have a MR going now which disables registration by default - <a href="https://git.cloudron.io/packages/gitea-app/-/merge_requests/29" target="_blank" rel="noopener noreferrer nofollow ugc">https://git.cloudron.io/packages/gitea-app/-/merge_requests/29</a> . Also, adds a checklist item to disable registration in non-sso mode .</p>
]]></description><link>https://forum.cloudron.io/post/110066</link><guid isPermaLink="true">https://forum.cloudron.io/post/110066</guid><dc:creator><![CDATA[girish]]></dc:creator><pubDate>Fri, 11 Jul 2025 14:44:27 GMT</pubDate></item></channel></rss>