From d0896492a9ae055facba803ffcfe2bbc97c34013 Mon Sep 17 00:00:00 2001 From: Andrew Thornton Date: Wed, 19 Jan 2022 20:00:48 +0000 Subject: [PATCH] Change initial TrustModel to committer The current default trustmodel for gitea is the collaborator model. This is not GitHub compatible by default. Now changing the nil default model committer would be a breaking change and could cause commits to become unverified. Therefore we should change the install default to committer so that new users have the github default model and later make a breaking change to set the default to committer. Related #18328 Signed-off-by: Andrew Thornton --- routers/install/install.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/routers/install/install.go b/routers/install/install.go index 7c3d43bbde07..230f6e0602ac 100644 --- a/routers/install/install.go +++ b/routers/install/install.go @@ -464,6 +464,8 @@ func SubmitInstall(ctx *context.Context) { cfg.Section("log").Key("ROOT_PATH").SetValue(form.LogRootPath) cfg.Section("log").Key("ROUTER").SetValue("console") + cfg.Section("repository.signing").Key("DEFAULT_TRUST_MODEL").SetValue("committer") + cfg.Section("security").Key("INSTALL_LOCK").SetValue("true") var internalToken string