From dad08a3935eead4f3a531852bd29304c7638b8dc Mon Sep 17 00:00:00 2001 From: Tom Hughes Date: Thu, 7 Dec 2023 09:03:26 +0000 Subject: [PATCH] Set a one week delay for account deletion --- cookbooks/web/recipes/rails.rb | 1 + cookbooks/web/resources/rails_port.rb | 4 +++- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/cookbooks/web/recipes/rails.rb b/cookbooks/web/recipes/rails.rb index dd0086b70..ea0287a97 100644 --- a/cookbooks/web/recipes/rails.rb +++ b/cookbooks/web/recipes/rails.rb @@ -149,6 +149,7 @@ rails_port "www.openstreetmap.org" do signup_email_per_day 1 signup_email_max_burst 2 doorkeeper_signing_key web_passwords["openid_connect_key"].join("\n") + user_account_deletion_delay 7 * 24 # Requests to modify the imagery blacklist should come from the DWG only imagery_blacklist [ # Current Google imagery URLs have google or googleapis in the domain diff --git a/cookbooks/web/resources/rails_port.rb b/cookbooks/web/resources/rails_port.rb index 4d266f54a..2dcbbc586 100644 --- a/cookbooks/web/resources/rails_port.rb +++ b/cookbooks/web/resources/rails_port.rb @@ -92,6 +92,7 @@ property :signup_ip_max_burst, Integer property :signup_email_per_day, Integer property :signup_email_max_burst, Integer property :doorkeeper_signing_key, String +property :user_account_deletion_delay, Integer action :create do package %W[ @@ -349,7 +350,8 @@ action :create do "signup_ip_max_burst", "signup_email_per_day", "signup_email_max_burst", - "doorkeeper_signing_key" + "doorkeeper_signing_key", + "user_account_deletion_delay" ).compact.merge( "server_protocol" => "https", "server_url" => new_resource.site, -- 2.39.5