Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Replace Digest::MD5 with OpenSSL::Digest::SHA256 for FIPS 140-2 compliance #239

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions lib/makara/config_parser.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
require 'digest/md5'
require 'openssl'
require 'active_support/core_ext/hash/keys'
require 'active_support/core_ext/hash/except'

Expand Down Expand Up @@ -151,7 +151,7 @@ def initialize(config)
def id
@id ||= begin
sorted = recursive_sort(@config)
Digest::MD5.hexdigest(sorted.to_s)
OpenSSL::Digest::SHA256.hexdigest(sorted.to_s)
end
end

Expand Down
2 changes: 0 additions & 2 deletions lib/makara/context.rb
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
require 'digest/md5'

# Keeps track of the current stickiness state for different Makara proxies
module Makara
class Context
Expand Down