Skip to content
This repository has been archived by the owner on Jan 4, 2021. It is now read-only.

Commit

Permalink
(#547) require a different global for disabling protocol security
Browse files Browse the repository at this point in the history
  • Loading branch information
ripienaar committed Dec 7, 2018
1 parent a7fc65d commit a8d9246
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Gemfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@ GEM
multi_json (~> 1.10)
rainbow (2.2.2)
rake
rake (12.3.1)
rake (12.3.2)
rb-fsevent (0.10.3)
rb-inotify (0.9.10)
ffi (>= 0.5.0, < 2)
Expand Down
2 changes: 1 addition & 1 deletion lib/mcollective/security/choria.rb
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ def encoderequest(sender, msg, requestid, filter, target_agent, target_collectiv
"pubcert" => "insecure"
}

unless $choria_unsafe_disable_nats_tls # rubocop:disable Style/GlobalVars
unless $choria_unsafe_disable_protocol_security # rubocop:disable Style/GlobalVars
secure_request["signature"] = sign(serialized_request)
secure_request["pubcert"] = File.read(client_public_cert).chomp
end
Expand Down

0 comments on commit a8d9246

Please sign in to comment.