Skip to content

Commit

Permalink
Disable OAuth 1.0a and basic authentication
Browse files Browse the repository at this point in the history
  • Loading branch information
tomhughes committed May 27, 2024
1 parent 15dbc13 commit 6542284
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
4 changes: 3 additions & 1 deletion cookbooks/web/recipes/cgimap.rb
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,9 @@
"CGIMAP_MAP_NODES" => node[:web][:max_number_of_nodes],
"CGIMAP_MAX_WAY_NODES" => node[:web][:max_number_of_way_nodes],
"CGIMAP_MAX_RELATION_MEMBERS" => node[:web][:max_number_of_relation_members],
"CGIMAP_RATELIMIT_UPLOAD" => "true"
"CGIMAP_RATELIMIT_UPLOAD" => "true",
"CGIMAP_OAUTH_10_SUPPORT" => "false",
"CGIMAP_BASIC_AUTH_SUPPORT" => "false"
}

if %w[database_readonly api_readonly].include?(node[:web][:status])
Expand Down
4 changes: 3 additions & 1 deletion cookbooks/web/resources/rails_port.rb
Original file line number Diff line number Diff line change
Expand Up @@ -364,7 +364,9 @@
"max_number_of_way_nodes" => node[:web][:max_number_of_way_nodes],
"max_number_of_relation_members" => node[:web][:max_number_of_relation_members],
"oauth_10_support" => false,
"oauth_10_registration" => false
"oauth_10_registration" => false,
"oauth_10a_support" => false,
"basic_auth_support" => false
)

if new_resource.memcache_servers
Expand Down

0 comments on commit 6542284

Please sign in to comment.