From fae8f57298484cfd63a9ebda3c9c15bea8d80733 Mon Sep 17 00:00:00 2001 From: Greg Karekinian Date: Sat, 1 Aug 2026 11:17:13 +0200 Subject: [PATCH 1/2] Update Gitea to 1.27.1 The webhooks allowed list was moved to the security part of the config file This is running on gitea-2 --- site-cookbooks/kosmos_gitea/attributes/default.rb | 4 ++-- site-cookbooks/kosmos_gitea/metadata.rb | 2 +- site-cookbooks/kosmos_gitea/templates/default/app.ini.erb | 8 +++----- 3 files changed, 6 insertions(+), 8 deletions(-) diff --git a/site-cookbooks/kosmos_gitea/attributes/default.rb b/site-cookbooks/kosmos_gitea/attributes/default.rb index 8e632db..7108259 100644 --- a/site-cookbooks/kosmos_gitea/attributes/default.rb +++ b/site-cookbooks/kosmos_gitea/attributes/default.rb @@ -1,5 +1,5 @@ -node.default["gitea"]["version"] = "1.26.4" -node.default["gitea"]["checksum"] = "0faa36d151918f8f7d6e0f3ae67597d1c338583d695add146ac393109d0fc44a" +node.default["gitea"]["version"] = "1.27.1" +node.default["gitea"]["checksum"] = "86a7ac26e7f9c9cca0f56c4fac07fff205d5fc3bca0e54af23a204f07b833bc9" node.default["gitea"]["repo"] = nil node.default["gitea"]["revision"] = nil node.default["gitea"]["working_directory"] = "/var/lib/gitea" diff --git a/site-cookbooks/kosmos_gitea/metadata.rb b/site-cookbooks/kosmos_gitea/metadata.rb index d643f62..bd9bc2f 100644 --- a/site-cookbooks/kosmos_gitea/metadata.rb +++ b/site-cookbooks/kosmos_gitea/metadata.rb @@ -4,7 +4,7 @@ maintainer_email 'ops@kosmos.org' license 'MIT' description 'Installs/configures Gitea' long_description 'Installs/configures Gitea' -version '0.2.0' +version '0.2.1' chef_version '>= 14.0' depends "firewall" diff --git a/site-cookbooks/kosmos_gitea/templates/default/app.ini.erb b/site-cookbooks/kosmos_gitea/templates/default/app.ini.erb index 9d0fb7b..9b50f1a 100644 --- a/site-cookbooks/kosmos_gitea/templates/default/app.ini.erb +++ b/site-cookbooks/kosmos_gitea/templates/default/app.ini.erb @@ -62,6 +62,9 @@ FROM = <%= @email %> INTERNAL_TOKEN = <%= @internal_token %> INSTALL_LOCK = true SECRET_KEY = <%= @secret_key %> +<% if c = @config["webhook"] %> +<% if c["allowed_host_list"] %>ALLOWED_HOST_LIST = <%= c["allowed_host_list"] %><% end %> +<% end %> [service] REGISTER_EMAIL_CONFIRM = false @@ -101,11 +104,6 @@ RUN_AT_START = false NOTICE_ON_SUCCESS = false SCHEDULE = @every 15m -<% if c = @config["webhook"] %> -[webhook] -<% if c["allowed_host_list"] %>ALLOWED_HOST_LIST = <%= c["allowed_host_list"] %><% end %> -<% end %> - <% if c = @config["storage"] %> [storage] <% if c["type"] == "minio" %> From 64e1639c06eb5b4363feec03239f538e8fc95f92 Mon Sep 17 00:00:00 2001 From: Greg Karekinian Date: Sat, 1 Aug 2026 13:35:08 +0200 Subject: [PATCH 2/2] Update nodes git submodule --- nodes | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/nodes b/nodes index 2535a79..13c12de 160000 --- a/nodes +++ b/nodes @@ -1 +1 @@ -Subproject commit 2535a79036769daddafa75b908a35246978f36eb +Subproject commit 13c12de5742a0c3c7b8bc4f75a6eb97d7575e713