mirror of
https://github.com/internetee/registry.git
synced 2025-06-05 20:27:30 +02:00
added ip to white list
This commit is contained in:
parent
cc07350551
commit
5a19149129
5 changed files with 16 additions and 9 deletions
|
@ -116,10 +116,15 @@ module Repp
|
|||
def webclient_request?
|
||||
return if Rails.env.test?
|
||||
|
||||
header = request.headers['AccreditationToken']
|
||||
return if header == 'TEMPORARY_SECRET_KEY'
|
||||
|
||||
ENV['webclient_ips'].split(',').map(&:strip).include?(request.ip)
|
||||
end
|
||||
|
||||
def validate_webclient_ca
|
||||
|
||||
|
||||
return unless webclient_request?
|
||||
|
||||
request_name = request.env['HTTP_SSL_CLIENT_S_DN_CN']
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue