Skip to content

Commit 9a08e7b

Browse files
committed
comments about ip filtering features to come in the future
1 parent fc11d28 commit 9a08e7b

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

lib/hooks/app/api.rb

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
require "json"
55
require "securerandom"
66
require_relative "helpers"
7+
#require_relative "network/ip_filtering"
78
require_relative "auth/auth"
89
require_relative "rack_env_builder"
910
require_relative "../plugins/handlers/base"
@@ -82,6 +83,13 @@ def self.create(config:, endpoints:, log:)
8283
plugin.on_request(rack_env)
8384
end
8485

86+
# TODO: IP filtering before processing the request if defined
87+
# If IP filtering is enabled at either global or endpoint level, run the filtering rules
88+
# before processing the request
89+
#if config[:ip_filtering] || endpoint_config[:ip_filtering]
90+
#ip_filtering!(headers, endpoint_config, config, request_context, rack_env)
91+
#end
92+
8593
enforce_request_limits(config, request_context)
8694
request.body.rewind
8795
raw_body = request.body.read

0 commit comments

Comments
 (0)