conjur-cli 6.2.3 → 6.2.4

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 2f9205266f63971061682c1413768e43adcaef56cb4c26e644182cdb005d4e77
4
- data.tar.gz: a186291efd20d3b04d4ff670b490879a9c8839ac0a1d24672cc924286878137e
3
+ metadata.gz: a430b83a83643bf129f213a63931ff989ec59a28dbb8391f9e3ee6a616d756fa
4
+ data.tar.gz: 844a47f03073f23efdcbfb53fcf03c673cfaa6bbe65a806148b386870ff1aa85
5
5
  SHA512:
6
- metadata.gz: a8cc5db1bd5c26343ea8cdce5c17f945a6ce27fb13e2acec3234461e6d5abe4a5e22ab990e4162dbf768a8ce738753b5e3131a3d5d4dc4f00eb693451a2cbea8
7
- data.tar.gz: 6eadbec2ee56021b5f84d1a4f0e47352034f7a70295d75dff6cbde8dbe879d80283f856fc6792f6d3080311647b845ac53ae02e5b9c15be824eb7f3c8a29b3d7
6
+ metadata.gz: 38d0b11e66da5052391604861b7b402e2313c0d80d880f9f03698cc751dd0ac216a518c30fdd9d145b3002ce0f89ea14bb8e1f226470827f1c6e57a4609f1033
7
+ data.tar.gz: 26bd3810c8c343b2f9f414418b6980c6cbc02fd354e86cc2aa27f855200f4474dd7f812e0a124aab70be04c3d4d2b57b7c34d8cc69dea8e9c450e6fdc7d6cf37
data/CHANGELOG.md CHANGED
@@ -6,6 +6,11 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.
6
6
 
7
7
  ## [Unreleased]
8
8
 
9
+ ## [6.2.4] - 2021-07-01
10
+ ### Changed
11
+ - Upgraded `conjur-api` dependency to 5.3.5.
12
+ [cyberark/conjur-cli#310](https://github.com/cyberark/conjur-cli/issues/310)
13
+
9
14
  ## [6.2.3] - 2020-12-22
10
15
  ### Fixed
11
16
  - The Conjur CLI now raises a proper error when trying to rotate a non-existing
@@ -54,7 +59,8 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.
54
59
  - **Codebase forked: for changes to the 5.x (API [v4](https://github.com/cyberark/conjur-cli/tree/v4)) series, see
55
60
  [CHANGELOG in `v4` branch][v4-changelog](https://github.com/cyberark/conjur-cli/blob/v4/CHANGELOG.md)**
56
61
 
57
- [Unreleased]: https://github.com/cyberark/conjur-cli/compare/v6.2.3...HEAD
62
+ [Unreleased]: https://github.com/cyberark/conjur-cli/compare/v6.2.4...HEAD
63
+ [6.2.4]: https://github.com/cyberark/conjur-cli/compare/v6.2.3...v6.2.4
58
64
  [6.2.3]: https://github.com/cyberark/conjur-cli/compare/v6.2.2...v6.2.3
59
65
  [6.2.2]: https://github.com/cyberark/conjur-cli/compare/v6.2.1...v6.2.2
60
66
  [6.2.1]: https://github.com/cyberark/conjur-cli/compare/v6.2.0...v6.2.1
data/CONTRIBUTING.md CHANGED
@@ -72,7 +72,7 @@ root@2b5f618dfdcb:/usr/src/cli-ruby# cucumber
72
72
  ## Releasing
73
73
 
74
74
  To create a new release, follow the instructions in our general release
75
- guidelines [here](https://github.com/cyberark/community/blob/master/Conjur/CONTRIBUTING.md#release-process).
75
+ guidelines [here](https://github.com/cyberark/community/blob/main/Conjur/CONTRIBUTING.md#release-process).
76
76
 
77
77
  Note: this project documents the version in two places:
78
78
  - The [VERSION](./VERSION) file
data/Jenkinsfile CHANGED
@@ -26,9 +26,9 @@ pipeline {
26
26
  }
27
27
  }
28
28
 
29
- stage('Test 2.4') {
29
+ stage('Test 2.5') {
30
30
  environment {
31
- RUBY_VERSION = '2.4'
31
+ RUBY_VERSION = '2.5'
32
32
  }
33
33
 
34
34
  steps {
@@ -42,9 +42,9 @@ pipeline {
42
42
  }
43
43
  }
44
44
 
45
- stage('Test 2.5') {
45
+ stage('Test 2.6') {
46
46
  environment {
47
- RUBY_VERSION = '2.5'
47
+ RUBY_VERSION = '2.6'
48
48
  }
49
49
 
50
50
  steps {
@@ -58,9 +58,9 @@ pipeline {
58
58
  }
59
59
  }
60
60
 
61
- stage('Test 2.6') {
61
+ stage('Test 2.7') {
62
62
  environment {
63
- RUBY_VERSION = '2.6'
63
+ RUBY_VERSION = '2.7'
64
64
  }
65
65
 
66
66
  steps {
data/README.md CHANGED
@@ -9,7 +9,7 @@ A complete reference guide is available at [conjur.org](https://www.conjur.org).
9
9
  ## Table of Contents
10
10
  - [Getting Started](#getting-started)
11
11
  - [Quick Start](#quick-start)
12
- - [Using This Project With Conjur OSS](#Using-conjur-cli-with-Conjur-OSS)
12
+ - [Using This Project With Conjur Open Source](#Using-conjur-cli-with-Conjur-Open-Source)
13
13
  - [Using Docker](#using-docker)
14
14
  - [Usage](#usage)
15
15
  - [Contributing](#contributing)
@@ -26,9 +26,9 @@ $ conjur -v
26
26
  conjur version 6.0.0
27
27
  ```
28
28
 
29
- ### Using conjur-cli with Conjur OSS
29
+ ### Using conjur-cli with Conjur Open Source
30
30
 
31
- Are you using this project with [Conjur OSS](https://github.com/cyberark/conjur)? Then we
31
+ Are you using this project with [Conjur Open Source](https://github.com/cyberark/conjur)? Then we
32
32
  **strongly** recommend choosing the version of this project to use from the latest [Conjur OSS
33
33
  suite release](https://docs.conjur.org/Latest/en/Content/Overview/Conjur-OSS-Suite-Overview.html).
34
34
  Conjur maintainers perform additional testing on the suite release versions to ensure
@@ -361,7 +361,7 @@ COMMANDS
361
361
  We welcome contributions of all kinds to this repository. For instructions on how to get started and descriptions of our development workflows, please see our [contributing
362
362
  guide][contrib].
363
363
 
364
- [contrib]: https://github.com/cyberark/conjur/blob/master/CONTRIBUTING.md
364
+ [contrib]: https://github.com/cyberark/conjur-cli/blob/main/CONTRIBUTING.md
365
365
 
366
366
  ## License
367
367
 
data/VERSION CHANGED
@@ -1 +1 @@
1
- 6.2.3
1
+ 6.2.4
data/jenkins.sh CHANGED
@@ -1,7 +1,7 @@
1
1
  #!/bin/bash -ex
2
2
 
3
3
  # Constants
4
- RUBY_VERSION_DEFAULT="2.2.4"
4
+ RUBY_VERSION_DEFAULT="2.7"
5
5
 
6
6
  # Arguments
7
7
  RUBY_VERSION=${1-${RUBY_VERSION_DEFAULT}}
@@ -5,15 +5,34 @@ RSpec::Core::DSL.change_global_dsl do
5
5
 
6
6
  before do
7
7
  allow(cert_store).to receive(:add_file)
8
+ # Stub the constant OpenSSL::SSL::SSLContext::DEFAULT_CERT_STORE which is
9
+ # implicitly used in many places in the CLI and in conjur-api-ruby as the de facto
10
+ # cert store.
8
11
  stub_const 'OpenSSL::SSL::SSLContext::DEFAULT_CERT_STORE', cert_store
12
+
13
+ # Reset the rest_client_options defaults to avoid using expired rspec doubles.
14
+ #
15
+ # Conjur.configuration is a lazy-loaded singleton. There is single CLI instance
16
+ # shared across this test suite. When Conjur.configuration is loaded for the first
17
+ # time it assumes the defaults value for Conjur.configuration.rest_client_options
18
+ # of:
19
+ # {
20
+ # :ssl_cert_store => OpenSSL::SSL::SSLContext::DEFAULT_CERT_STORE
21
+ # }
22
+ #
23
+ # Notice above that each test case stubs the constant
24
+ # OpenSSL::SSL::SSLContext::DEFAULT_CERT_STORE with a double. Without further
25
+ # modification this means the first time the CLI is run and Conjur.configuration
26
+ # is loaded Conjur.configuration.rest_client_options[:ssl_cert_store] it is set to
27
+ # the double associated with the test case at that point in time. Since
28
+ # Conjur.configuration is only loaded once, without modification, that double will
29
+ # be retained and its usage will result in a RSpec::Mocks::ExpiredTestDoubleError.
30
+ # To avoid this for each test case we must reset
31
+ # Conjur.configuration.rest_client_options[:ssl_cert_store] with the double for
32
+ # the current test case.
33
+ Conjur.configuration.rest_client_options[:ssl_cert_store] = cert_store
9
34
  end
10
-
11
- let(:cert_store_options) do
12
- {
13
- ssl_cert_store: cert_store
14
- }
15
- end
16
-
35
+
17
36
  let(:invoke) do
18
37
  Conjur::CLI.error_device = $stderr
19
38
  # TODO: allow proper handling of description like "audit:send 'hello world'"
@@ -19,6 +19,6 @@
19
19
  # CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
20
20
  #
21
21
  module Conjur
22
- VERSION = '6.2.3'
22
+ VERSION = '6.2.4'
23
23
  ::Version=VERSION
24
24
  end
@@ -13,6 +13,7 @@ describe Conjur::Command::Hosts, logged_in: true do
13
13
  authorization: "fakeauth",
14
14
  },
15
15
  username: "dknuth",
16
+ ssl_cert_store: cert_store
16
17
  }).and_return true
17
18
  expect(RestClient::Request).to receive(:execute).with({
18
19
  method: :put,
@@ -22,6 +23,7 @@ describe Conjur::Command::Hosts, logged_in: true do
22
23
  },
23
24
  payload: '',
24
25
  username: "dknuth",
26
+ ssl_cert_store: cert_store
25
27
  }).and_return double(:response, body: 'new api key')
26
28
  end
27
29
 
@@ -37,6 +39,7 @@ describe Conjur::Command::Hosts, logged_in: true do
37
39
  url: "https://core.example.com/api/resources/#{account}/host/non-existing",
38
40
  headers: {authorization: "fakeauth"},
39
41
  username: username,
42
+ ssl_cert_store: cert_store
40
43
  }).and_raise RestClient::ResourceNotFound
41
44
  end
42
45
  it 'rotate_api_key with non-existing --host option' do
@@ -1,46 +1,36 @@
1
1
  require 'spec_helper'
2
2
  require 'highline'
3
3
 
4
- GITHUB_FP = "SHA1 Fingerprint=5F:3F:7A:C2:56:9F:50:A4:66:76:47:C6:A1:8C:A0:07:AA:ED:BB:8E"
4
+ GITHUB_FP = "SHA1 Fingerprint=84:63:B3:A9:29:12:CC:FD:1D:31:47:05:98:9B:EC:13:99:37:D0:D7"
5
5
  GITHUB_CERT = <<EOF
6
6
  -----BEGIN CERTIFICATE-----
7
- MIIG1TCCBb2gAwIBAgIQBVfICygmg6F7ChFEkylreTANBgkqhkiG9w0BAQsFADBw
8
- MQswCQYDVQQGEwJVUzEVMBMGA1UEChMMRGlnaUNlcnQgSW5jMRkwFwYDVQQLExB3
9
- d3cuZGlnaWNlcnQuY29tMS8wLQYDVQQDEyZEaWdpQ2VydCBTSEEyIEhpZ2ggQXNz
10
- dXJhbmNlIFNlcnZlciBDQTAeFw0yMDA1MDUwMDAwMDBaFw0yMjA1MTAxMjAwMDBa
11
- MGYxCzA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lnaUNlcnRI
21
+ aWdoQXNzdXJhbmNlVExTSHlicmlkRUNDU0hBMjU2MjAyMENBMS5jcmwwPgYDVR0g
22
+ BDcwNTAzBgZngQwBAgIwKTAnBggrBgEFBQcCARYbaHR0cDovL3d3dy5kaWdpY2Vy
23
+ dC5jb20vQ1BTMIGSBggrBgEFBQcBAQSBhTCBgjAkBggrBgEFBQcwAYYYaHR0cDov
24
+ L29jc3AuZGlnaWNlcnQuY29tMFoGCCsGAQUFBzAChk5odHRwOi8vY2FjZXJ0cy5k
25
+ aWdpY2VydC5jb20vRGlnaUNlcnRIaWdoQXNzdXJhbmNlVExTSHlicmlkRUNDU0hB
26
+ MjU2MjAyMENBMS5jcnQwDAYDVR0TAQH/BAIwADCCAQUGCisGAQQB1nkCBAIEgfYE
27
+ gfMA8QB2ACl5vvCeOTkh8FZzn2Old+W+V32cYAr4+U1dJlwlXceEAAABeGq/vRoA
28
+ AAQDAEcwRQIhAJ7miER//DRFnDJNn6uUhgau3WMt4vVfY5dGigulOdjXAiBIVCfR
29
+ xjK1v4F31+sVaKzyyO7JAa0fzDQM7skQckSYWQB3ACJFRQdZVSRWlj+hL/H3bYbg
30
+ IyZjrcBLf13Gg1xu4g8CAAABeGq/vTkAAAQDAEgwRgIhAJgAEkoJQRivBlwo7x67
31
+ 3oVsf1ip096WshZqmRCuL/JpAiEA3cX4rb3waLDLq4C48NSoUmcw56PwO/m2uwnQ
32
+ prb+yh0wCgYIKoZIzj0EAwIDRwAwRAIgK+Kv7G+/KkWkNZg3PcQFp866Z7G6soxo
33
+ a4etSZ+SRlYCIBSiXS20Wc+yjD111nPzvQUCfsP4+DKZ3K+2GKsERD6d
44
34
  EOF
45
35
 
46
36
  describe Conjur::Command::Init do
@@ -12,7 +12,8 @@ describe Conjur::Command::Users, logged_in: true do
12
12
  user: username,
13
13
  password: api_key,
14
14
  headers: { },
15
- payload: "new-password"
15
+ payload: "new-password",
16
+ ssl_cert_store: cert_store
16
17
  })
17
18
  end
18
19
 
@@ -40,7 +41,8 @@ describe Conjur::Command::Users, logged_in: true do
40
41
  user: username,
41
42
  password: api_key,
42
43
  headers: {},
43
- payload: ''
44
+ payload: '',
45
+ ssl_cert_store: cert_store
44
46
  }).and_return double(:response, body: 'new api key')
45
47
  expect(Conjur::Authn).to receive(:save_credentials).with({
46
48
  username: username,
@@ -59,6 +61,7 @@ describe Conjur::Command::Users, logged_in: true do
59
61
  url: "https://core.example.com/api/resources/#{account}/user/non-existing",
60
62
  headers: {authorization: "fakeauth"},
61
63
  username: username,
64
+ ssl_cert_store: cert_store
62
65
  }).and_raise RestClient::ResourceNotFound
63
66
  end
64
67
  it 'rotate_api_key with non-existing --user option' do
data/test.sh CHANGED
@@ -1,6 +1,6 @@
1
1
  #!/bin/bash -ex
2
2
 
3
- : ${RUBY_VERSION=2.2.5}
3
+ : ${RUBY_VERSION=2.7}
4
4
 
5
5
  # My local RUBY_VERSION is set to ruby-#.#.# so this allows running locally.
6
6
  RUBY_VERSION=$(cut -d '-' -f 2 <<< $RUBY_VERSION)
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: conjur-cli
3
3
  version: !ruby/object:Gem::Version
4
- version: 6.2.3
4
+ version: 6.2.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Conjur Maintainers
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2020-12-22 00:00:00.000000000 Z
11
+ date: 2021-07-01 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activesupport
@@ -431,7 +431,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
431
431
  - !ruby/object:Gem::Version
432
432
  version: '0'
433
433
  requirements: []
434
- rubygems_version: 3.1.2
434
+ rubygems_version: 3.1.6
435
435
  signing_key:
436
436
  specification_version: 4
437
437
  summary: Conjur command line interface