conjur-cli 6.2.3 → 6.2.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/CHANGELOG.md +7 -1
- data/CONTRIBUTING.md +1 -1
- data/Jenkinsfile +6 -6
- data/README.md +4 -4
- data/VERSION +1 -1
- data/jenkins.sh +1 -1
- data/lib/conjur/command/rspec/describe_command.rb +26 -7
- data/lib/conjur/version.rb +1 -1
- data/spec/command/hosts_spec.rb +3 -0
- data/spec/command/init_spec.rb +28 -38
- data/spec/command/users_spec.rb +5 -2
- data/test.sh +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: a430b83a83643bf129f213a63931ff989ec59a28dbb8391f9e3ee6a616d756fa
|
4
|
+
data.tar.gz: 844a47f03073f23efdcbfb53fcf03c673cfaa6bbe65a806148b386870ff1aa85
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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.
|
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/
|
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.
|
29
|
+
stage('Test 2.5') {
|
30
30
|
environment {
|
31
|
-
RUBY_VERSION = '2.
|
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.
|
45
|
+
stage('Test 2.6') {
|
46
46
|
environment {
|
47
|
-
RUBY_VERSION = '2.
|
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.
|
61
|
+
stage('Test 2.7') {
|
62
62
|
environment {
|
63
|
-
RUBY_VERSION = '2.
|
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
|
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
|
29
|
+
### Using conjur-cli with Conjur Open Source
|
30
30
|
|
31
|
-
Are you using this project with [Conjur
|
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/
|
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.
|
1
|
+
6.2.4
|
data/jenkins.sh
CHANGED
@@ -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'"
|
data/lib/conjur/version.rb
CHANGED
data/spec/command/hosts_spec.rb
CHANGED
@@ -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
|
data/spec/command/init_spec.rb
CHANGED
@@ -1,46 +1,36 @@
|
|
1
1
|
require 'spec_helper'
|
2
2
|
require 'highline'
|
3
3
|
|
4
|
-
GITHUB_FP = "SHA1 Fingerprint=
|
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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vQ1BTMIGSBggrBgEFBQcBAQSBhTCBgjAkBggrBgEFBQcwAYYYaHR0cDov
|
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
|
data/spec/command/users_spec.rb
CHANGED
@@ -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
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.
|
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:
|
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.
|
434
|
+
rubygems_version: 3.1.6
|
435
435
|
signing_key:
|
436
436
|
specification_version: 4
|
437
437
|
summary: Conjur command line interface
|