Rework OAuth sources #244
Reference in New Issue
Block a user
No description provided.
Delete Branch "refs/pull/244/head"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
This change request includes two different things to improve OAuth source handling:
⚠️ BREAKING ⚠️
Users need to migrate their
gitea.oauth
configuration.#248 was merged, we can continue here :)
Yay ?
Updated and ready for review
LGTM
this conversion of yaml to cli options seems quite fragile and hacky.
We may want to consider having commands that would ingest the yaml directly.
However, if you're certain that this is the correct approach then LGTM.
@zeripath It is fragile and hacky.? I would consider it the right approach at the moment.
Literally a few hours ago I had a chat with luhahn about a quite generic way of having a configuration-as-code for Gitea natively. There are other tools like Jenkins with a plugin providing such stuff and it is awesome. I'll try to implement something similar in Gitea and create a PR for it to discuss a bit more but am not sure when I have enough time for it as I'm not so deep into the Gitea code.
I would like to point out that this fails currently (Using flux so that variable subtition is fine):
The log seems to be trimmed. Do you have the full log?
And: Have you tried this with the latest released 1.4.1? I've never encountered such a problem before.
In addition: Did Flux actually fetch new source for the Helm Chart yet?
@samip537 It looks like you're using an old version, "gitea.oauth_settings" at <ne $key "enabled">: the enabled key was removed with this PR.
Please notice, that the current master branch has not been released
Hi @samip537. I've tested FluxCD with the latest master source code for the Helm Chart and it works as expected. You can find my used Flux resources in my test repository:
We also opened PR #267 to make sure the obsolete and now invalid option
enabled
won't cause problems in the future.Ahh, okey. Somehow I thought that it was already released, my bad but then that makes perfect sense. :)