Hello community,
here is the log from the commit of package rubygem-mixlib-authentication for
openSUSE:Factory checked in at 2020-03-07 21:38:49
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/rubygem-mixlib-authentication (Old)
and /work/SRC/openSUSE:Factory/.rubygem-mixlib-authentication.new.26092
(New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "rubygem-mixlib-authentication"
Sat Mar 7 21:38:49 2020 rev:10 rq:773788 version:3.0.6
Changes:
--------
---
/work/SRC/openSUSE:Factory/rubygem-mixlib-authentication/rubygem-mixlib-authentication.changes
2019-06-19 21:00:29.370092590 +0200
+++
/work/SRC/openSUSE:Factory/.rubygem-mixlib-authentication.new.26092/rubygem-mixlib-authentication.changes
2020-03-07 21:38:51.324297140 +0100
@@ -1,0 +2,6 @@
+Mon Feb 10 15:08:25 UTC 2020 - Stephan Kulow <[email protected]>
+
+- updated to version 3.0.6
+ no changelog found
+
+-------------------------------------------------------------------
Old:
----
mixlib-authentication-3.0.1.gem
New:
----
mixlib-authentication-3.0.6.gem
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Other differences:
------------------
++++++ rubygem-mixlib-authentication.spec ++++++
--- /var/tmp/diff_new_pack.RcjmPS/_old 2020-03-07 21:38:52.028297615 +0100
+++ /var/tmp/diff_new_pack.RcjmPS/_new 2020-03-07 21:38:52.028297615 +0100
@@ -1,7 +1,7 @@
#
# spec file for package rubygem-mixlib-authentication
#
-# Copyright (c) 2019 SUSE LINUX GmbH, Nuernberg, Germany.
+# Copyright (c) 2020 SUSE LLC
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
@@ -24,7 +24,7 @@
#
Name: rubygem-mixlib-authentication
-Version: 3.0.1
+Version: 3.0.6
Release: 0
%define mod_name mixlib-authentication
%define mod_full_name %{mod_name}-%{version}
@@ -32,7 +32,7 @@
BuildRequires: %{ruby >= 2.4}
BuildRequires: %{rubygem gem2rpm}
BuildRequires: ruby-macros >= 5
-Url: https://github.com/chef/mixlib-authentication
+URL: https://github.com/chef/mixlib-authentication
Source: https://rubygems.org/gems/%{mod_full_name}.gem
Source1: gem2rpm.yml
Summary: Mixes in simple per-request authentication
++++++ mixlib-authentication-3.0.1.gem -> mixlib-authentication-3.0.6.gem ++++++
Binary files old/checksums.yaml.gz and new/checksums.yaml.gz differ
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/lib/mixlib/authentication/digester.rb
new/lib/mixlib/authentication/digester.rb
--- old/lib/mixlib/authentication/digester.rb 2019-04-23 21:01:32.000000000
+0200
+++ new/lib/mixlib/authentication/digester.rb 2019-12-30 02:51:15.000000000
+0100
@@ -16,7 +16,7 @@
# limitations under the License.
#
-require "mixlib/authentication"
+require_relative "../authentication"
require "openssl"
module Mixlib
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore'
old/lib/mixlib/authentication/http_authentication_request.rb
new/lib/mixlib/authentication/http_authentication_request.rb
--- old/lib/mixlib/authentication/http_authentication_request.rb
2019-04-23 21:01:32.000000000 +0200
+++ new/lib/mixlib/authentication/http_authentication_request.rb
2019-12-30 02:51:15.000000000 +0100
@@ -16,13 +16,13 @@
# limitations under the License.
#
-require "mixlib/authentication"
+require_relative "../authentication"
module Mixlib
module Authentication
class HTTPAuthenticationRequest
- MANDATORY_HEADERS = [:x_ops_sign, :x_ops_userid, :x_ops_timestamp,
:host, :x_ops_content_hash]
+ MANDATORY_HEADERS = %i{x_ops_sign x_ops_userid x_ops_timestamp host
x_ops_content_hash}.freeze
attr_reader :request
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/lib/mixlib/authentication/signatureverification.rb
new/lib/mixlib/authentication/signatureverification.rb
--- old/lib/mixlib/authentication/signatureverification.rb 2019-04-23
21:01:32.000000000 +0200
+++ new/lib/mixlib/authentication/signatureverification.rb 2019-12-30
02:51:15.000000000 +0100
@@ -19,9 +19,9 @@
require "net/http"
require "forwardable"
-require "mixlib/authentication"
-require "mixlib/authentication/http_authentication_request"
-require "mixlib/authentication/signedheaderauth"
+require_relative "../authentication"
+require_relative "http_authentication_request"
+require_relative "signedheaderauth"
module Mixlib
module Authentication
@@ -203,7 +203,7 @@
# No file_param; we're running in Merb, or it's just not there..
if file_param.nil?
hash_param = request.params.values.find { |value|
value.respond_to?(:has_key?) } # Hash responds to :has_key? .
- if !hash_param.nil?
+ unless hash_param.nil?
file_param = hash_param.values.find { |value|
value.respond_to?(:read) } # File/Tempfile responds to :read.
end
end
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/lib/mixlib/authentication/signedheaderauth.rb
new/lib/mixlib/authentication/signedheaderauth.rb
--- old/lib/mixlib/authentication/signedheaderauth.rb 2019-04-23
21:01:32.000000000 +0200
+++ new/lib/mixlib/authentication/signedheaderauth.rb 2019-12-30
02:51:15.000000000 +0100
@@ -20,8 +20,8 @@
require "time"
require "base64"
require "openssl/digest"
-require "mixlib/authentication"
-require "mixlib/authentication/digester"
+require_relative "../authentication"
+require_relative "digester"
module Mixlib
module Authentication
@@ -34,7 +34,7 @@
"1.0" => "sha1",
"1.1" => "sha1",
"1.3" => "sha256",
- }.freeze()
+ }.freeze
# Use of SUPPORTED_ALGORITHMS and SUPPORTED_VERSIONS is deprecated. Use
# ALGORITHM_FOR_VERSION instead
@@ -74,15 +74,14 @@
# * `:host`: The host part of the URI
def self.signing_object(args = {})
SigningObject.new(args[:http_method],
- args[:path],
- args[:body],
- args[:host],
- args[:timestamp],
- args[:user_id],
- args[:file],
- args[:proto_version],
- args[:headers]
- )
+ args[:path],
+ args[:body],
+ args[:host],
+ args[:timestamp],
+ args[:user_id],
+ args[:file],
+ args[:proto_version],
+ args[:headers])
end
def algorithm
@@ -175,7 +174,7 @@
# ====Parameters
#
def canonical_path
- p = path.gsub(/\/+/, "/")
+ p = path.gsub(%r{/+}, "/")
p.length > 1 ? p.chomp("/") : p
end
@@ -191,6 +190,7 @@
else
@hashed_body_digest = digest
end
+
# Hash the file object if it was passed in, otherwise hash based on
# the body.
# TODO: tim 2009-12-28: It'd be nice to just remove this special case,
@@ -283,11 +283,13 @@
do_sign_ssh_agent(rsa_key, string_to_sign)
else
raise AuthenticationError, "RSA private key is required to sign
requests, but a public key was provided" unless rsa_key.private?
+
rsa_key.sign(digest.new, string_to_sign)
end
else
raise AuthenticationError, "Agent signing mode requires signing
protocol version 1.3 or newer" if use_ssh_agent
raise AuthenticationError, "RSA private key is required to sign
requests, but a public key was provided" unless rsa_key.private?
+
rsa_key.private_encrypt(string_to_sign)
end
end
@@ -339,25 +341,25 @@
# generate a request signature. `SignedHeaderAuth.signing_object()`
# provides a more convenient interface to the constructor.
SigningObject = Struct.new(:http_method, :path, :body, :host,
- :timestamp, :user_id, :file,
:proto_version,
- :headers) do
+ :timestamp, :user_id, :file, :proto_version,
+ :headers) do
- include SignedHeaderAuth
+ include SignedHeaderAuth
- def proto_version
- (self[:proto_version] || SignedHeaderAuth::DEFAULT_PROTO_VERSION).to_s
- end
+ def proto_version
+ (self[:proto_version] ||
SignedHeaderAuth::DEFAULT_PROTO_VERSION).to_s
+ end
- def server_api_version
- key = (self[:headers] || {}).keys.select do |k|
- k.casecmp("x-ops-server-api-version") == 0
- end.first
- if key
- self[:headers][key]
- else
- DEFAULT_SERVER_API_VERSION
+ def server_api_version
+ key = (self[:headers] || {}).keys.select do |k|
+ k.casecmp("x-ops-server-api-version") == 0
+ end.first
+ if key
+ self[:headers][key]
+ else
+ DEFAULT_SERVER_API_VERSION
+ end
end
end
- end
end
end
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/lib/mixlib/authentication/version.rb
new/lib/mixlib/authentication/version.rb
--- old/lib/mixlib/authentication/version.rb 2019-04-23 21:01:32.000000000
+0200
+++ new/lib/mixlib/authentication/version.rb 2019-12-30 02:51:15.000000000
+0100
@@ -16,6 +16,6 @@
module Mixlib
module Authentication
- VERSION = "3.0.1"
+ VERSION = "3.0.6".freeze
end
end
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/lib/mixlib/authentication.rb
new/lib/mixlib/authentication.rb
--- old/lib/mixlib/authentication.rb 2019-04-23 21:01:32.000000000 +0200
+++ new/lib/mixlib/authentication.rb 2019-12-30 02:51:15.000000000 +0100
@@ -18,7 +18,7 @@
module Mixlib
module Authentication
- DEFAULT_SERVER_API_VERSION = "0"
+ DEFAULT_SERVER_API_VERSION = "0".freeze
attr_accessor :logger
module_function :logger, :logger=
@@ -36,7 +36,7 @@
require "mixlib/log"
Mixlib::Authentication::Log.extend(Mixlib::Log)
rescue LoadError
- require "mixlib/authentication/null_logger"
+ require_relative "authentication/null_logger"
Mixlib::Authentication::Log.extend(Mixlib::Authentication::NullLogger)
end
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/metadata new/metadata
--- old/metadata 2019-04-23 21:01:32.000000000 +0200
+++ new/metadata 2019-12-30 02:51:15.000000000 +0100
@@ -1,14 +1,14 @@
--- !ruby/object:Gem::Specification
name: mixlib-authentication
version: !ruby/object:Gem::Version
- version: 3.0.1
+ version: 3.0.6
platform: ruby
authors:
- Chef Software, Inc.
autorequire:
bindir: bin
cert_chain: []
-date: 2019-04-23 00:00:00.000000000 Z
+date: 2019-12-30 00:00:00.000000000 Z
dependencies: []
description: Mixes in simple per-request authentication
email: [email protected]