conjur-api 5.3.3 → 5.3.7.pre.167
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/.github/CODEOWNERS +1 -1
- data/.gitleaks.toml +1 -1
- data/CHANGELOG.md +48 -3
- data/CONTRIBUTING.md +1 -1
- data/Dockerfile +3 -2
- data/Gemfile +1 -5
- data/Jenkinsfile +115 -18
- data/LICENSE +1 -1
- data/README.md +26 -4
- data/VERSION +1 -0
- data/ci/submit-coverage +36 -0
- data/conjur-api.gemspec +6 -5
- data/docker-compose.yml +15 -3
- data/features/host.feature +39 -9
- data/features/permitted.feature +27 -0
- data/features/step_definitions/api_steps.rb +14 -3
- data/features/step_definitions/policy_steps.rb +40 -0
- data/features/support/env.rb +3 -3
- data/features/user.feature +47 -6
- data/features_v4/support/env.rb +0 -2
- data/lib/conjur/acts_as_user.rb +5 -1
- data/lib/conjur/api/authn.rb +3 -3
- data/lib/conjur/api/resources.rb +2 -2
- data/lib/conjur/api/router/v4.rb +80 -23
- data/lib/conjur/api/router/v5.rb +87 -21
- data/lib/conjur/api.rb +0 -18
- data/lib/conjur/base.rb +19 -5
- data/lib/conjur/base_object.rb +14 -7
- data/lib/conjur/configuration.rb +45 -17
- data/lib/conjur/escape.rb +2 -3
- data/lib/conjur-api/version.rb +2 -2
- data/spec/api_spec.rb +59 -13
- data/spec/base_object_spec.rb +0 -1
- data/spec/configuration_spec.rb +25 -3
- data/spec/spec_helper.rb +4 -4
- data/spec/ssl_spec.rb +50 -26
- data/test.sh +10 -17
- metadata +35 -21
- data/.github/ISSUE_TEMPLATE/bug.md +0 -42
- data/.github/ISSUE_TEMPLATE/feature_request.md +0 -27
- data/.github/PULL_REQUEST_TEMPLATE.md +0 -21
- data/ci/codeclimate.dockerfile +0 -6
- data/spec/vendor/rest_client_spec.rb +0 -41
metadata
CHANGED
@@ -1,15 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: conjur-api
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 5.3.
|
4
|
+
version: 5.3.7.pre.167
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
|
-
-
|
8
|
-
- Kevin Gilpin
|
7
|
+
- CyberArk Maintainers
|
9
8
|
autorequire:
|
10
9
|
bindir: bin
|
11
10
|
cert_chain: []
|
12
|
-
date:
|
11
|
+
date: 2021-12-31 00:00:00.000000000 Z
|
13
12
|
dependencies:
|
14
13
|
- !ruby/object:Gem::Dependency
|
15
14
|
name: rest-client
|
@@ -31,14 +30,28 @@ dependencies:
|
|
31
30
|
requirements:
|
32
31
|
- - ">="
|
33
32
|
- !ruby/object:Gem::Version
|
34
|
-
version: '
|
33
|
+
version: '4.2'
|
35
34
|
type: :runtime
|
36
35
|
prerelease: false
|
37
36
|
version_requirements: !ruby/object:Gem::Requirement
|
38
37
|
requirements:
|
39
38
|
- - ">="
|
40
39
|
- !ruby/object:Gem::Version
|
41
|
-
version: '
|
40
|
+
version: '4.2'
|
41
|
+
- !ruby/object:Gem::Dependency
|
42
|
+
name: addressable
|
43
|
+
requirement: !ruby/object:Gem::Requirement
|
44
|
+
requirements:
|
45
|
+
- - "~>"
|
46
|
+
- !ruby/object:Gem::Version
|
47
|
+
version: '2.0'
|
48
|
+
type: :runtime
|
49
|
+
prerelease: false
|
50
|
+
version_requirements: !ruby/object:Gem::Requirement
|
51
|
+
requirements:
|
52
|
+
- - "~>"
|
53
|
+
- !ruby/object:Gem::Version
|
54
|
+
version: '2.0'
|
42
55
|
- !ruby/object:Gem::Dependency
|
43
56
|
name: rake
|
44
57
|
requirement: !ruby/object:Gem::Requirement
|
@@ -127,16 +140,22 @@ dependencies:
|
|
127
140
|
name: simplecov
|
128
141
|
requirement: !ruby/object:Gem::Requirement
|
129
142
|
requirements:
|
130
|
-
- - "
|
143
|
+
- - "~>"
|
131
144
|
- !ruby/object:Gem::Version
|
132
|
-
version: '0'
|
145
|
+
version: '0.17'
|
146
|
+
- - "<"
|
147
|
+
- !ruby/object:Gem::Version
|
148
|
+
version: '0.18'
|
133
149
|
type: :development
|
134
150
|
prerelease: false
|
135
151
|
version_requirements: !ruby/object:Gem::Requirement
|
136
152
|
requirements:
|
137
|
-
- - "
|
153
|
+
- - "~>"
|
138
154
|
- !ruby/object:Gem::Version
|
139
|
-
version: '0'
|
155
|
+
version: '0.17'
|
156
|
+
- - "<"
|
157
|
+
- !ruby/object:Gem::Version
|
158
|
+
version: '0.18'
|
140
159
|
- !ruby/object:Gem::Dependency
|
141
160
|
name: io-grab
|
142
161
|
requirement: !ruby/object:Gem::Requirement
|
@@ -209,8 +228,7 @@ dependencies:
|
|
209
228
|
version: '0'
|
210
229
|
description: Conjur API
|
211
230
|
email:
|
212
|
-
-
|
213
|
-
- kgilpin@conjur.net
|
231
|
+
- conj_maintainers@cyberark.com
|
214
232
|
executables: []
|
215
233
|
extensions: []
|
216
234
|
extra_rdoc_files: []
|
@@ -218,9 +236,6 @@ files:
|
|
218
236
|
- ".codeclimate.yml"
|
219
237
|
- ".dockerignore"
|
220
238
|
- ".github/CODEOWNERS"
|
221
|
-
- ".github/ISSUE_TEMPLATE/bug.md"
|
222
|
-
- ".github/ISSUE_TEMPLATE/feature_request.md"
|
223
|
-
- ".github/PULL_REQUEST_TEMPLATE.md"
|
224
239
|
- ".gitignore"
|
225
240
|
- ".gitleaks.toml"
|
226
241
|
- ".overcommit.yml"
|
@@ -238,10 +253,11 @@ files:
|
|
238
253
|
- README.md
|
239
254
|
- Rakefile
|
240
255
|
- SECURITY.md
|
256
|
+
- VERSION
|
241
257
|
- bin/parse-changelog.sh
|
242
|
-
- ci/codeclimate.dockerfile
|
243
258
|
- ci/configure_v4.sh
|
244
259
|
- ci/configure_v5.sh
|
260
|
+
- ci/submit-coverage
|
245
261
|
- conjur-api.gemspec
|
246
262
|
- dev/Dockerfile.dev
|
247
263
|
- dev/docker-compose.yml
|
@@ -356,7 +372,6 @@ files:
|
|
356
372
|
- spec/spec_helper.rb
|
357
373
|
- spec/ssl_spec.rb
|
358
374
|
- spec/uri_escape_spec.rb
|
359
|
-
- spec/vendor/rest_client_spec.rb
|
360
375
|
- test.sh
|
361
376
|
- tmp/.keep
|
362
377
|
homepage: https://github.com/cyberark/conjur-api-ruby/
|
@@ -374,11 +389,11 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
374
389
|
version: '1.9'
|
375
390
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
376
391
|
requirements:
|
377
|
-
- - "
|
392
|
+
- - ">"
|
378
393
|
- !ruby/object:Gem::Version
|
379
|
-
version:
|
394
|
+
version: 1.3.1
|
380
395
|
requirements: []
|
381
|
-
rubygems_version: 3.1.
|
396
|
+
rubygems_version: 3.1.6
|
382
397
|
signing_key:
|
383
398
|
specification_version: 4
|
384
399
|
summary: Conjur API
|
@@ -426,4 +441,3 @@ test_files:
|
|
426
441
|
- spec/spec_helper.rb
|
427
442
|
- spec/ssl_spec.rb
|
428
443
|
- spec/uri_escape_spec.rb
|
429
|
-
- spec/vendor/rest_client_spec.rb
|
@@ -1,42 +0,0 @@
|
|
1
|
-
---
|
2
|
-
name: Bug
|
3
|
-
about: Create a bug report to help us improve
|
4
|
-
title: ''
|
5
|
-
labels: component/api/ruby, kind/bug
|
6
|
-
assignees: ''
|
7
|
-
|
8
|
-
---
|
9
|
-
|
10
|
-
## Summary
|
11
|
-
A clear and concise description of what the bug is.
|
12
|
-
|
13
|
-
## Steps to Reproduce
|
14
|
-
Steps to reproduce the behavior:
|
15
|
-
1. Go to '...'
|
16
|
-
2. Click on '....'
|
17
|
-
3. Scroll down to '....'
|
18
|
-
4. See error
|
19
|
-
|
20
|
-
## Expected Results
|
21
|
-
A clear and concise description of what you expected to happen.
|
22
|
-
|
23
|
-
## Actual Results (including error logs, if applicable)
|
24
|
-
A clear and concise description of what actually did happen.
|
25
|
-
|
26
|
-
## Reproducible
|
27
|
-
* [ ] Always
|
28
|
-
* [ ] Sometimes
|
29
|
-
* [ ] Non-Reproducible
|
30
|
-
|
31
|
-
## Version/Tag number
|
32
|
-
What version of the product are you running? Any version info that you can share is helpful.
|
33
|
-
For example, you might give the version from Docker logs, the Docker tag, a specific download URL,
|
34
|
-
the output of the `/info` route, etc.
|
35
|
-
|
36
|
-
## Environment setup
|
37
|
-
Can you describe the environment in which this product is running? Is it running on a VM / in a container / in a cloud?
|
38
|
-
Which cloud provider? Which container orchestrator (including version)?
|
39
|
-
The more info you can share about your runtime environment, the better we may be able to reproduce the issue.
|
40
|
-
|
41
|
-
## Additional Information
|
42
|
-
Add any other context about the problem here.
|
@@ -1,27 +0,0 @@
|
|
1
|
-
---
|
2
|
-
name: Feature request
|
3
|
-
about: Suggest an idea for this project
|
4
|
-
title: ''
|
5
|
-
labels: kind/enhancement, component/api/ruby
|
6
|
-
assignees: ''
|
7
|
-
|
8
|
-
---
|
9
|
-
|
10
|
-
## Is your feature request related to a problem? Please describe.
|
11
|
-
|
12
|
-
A clear and concise description of what the problem is. Ex. `I would like to see [...] because [...]`.
|
13
|
-
Please include the intended use case and what the feature would improve on so that we can prioritize
|
14
|
-
the feature accordingly.
|
15
|
-
|
16
|
-
## Describe the solution you would like
|
17
|
-
|
18
|
-
A clear and concise description of what the desired end result(s) would be.
|
19
|
-
|
20
|
-
## Describe alternatives you have considered
|
21
|
-
|
22
|
-
A clear and concise description of any alternative solutions or features that may be related to this that
|
23
|
-
you have considered.
|
24
|
-
|
25
|
-
## Additional context
|
26
|
-
|
27
|
-
Add any other context information about the feature request here.
|
@@ -1,21 +0,0 @@
|
|
1
|
-
### What does this PR do?
|
2
|
-
- _What's changed? Why were these changes made?_
|
3
|
-
- _How should the reviewer approach this PR, especially if manual tests are required?_
|
4
|
-
- _Are there relevant screenshots you can add to the PR description?_
|
5
|
-
|
6
|
-
### What ticket does this PR close?
|
7
|
-
Connected to #[relevant GitHub issues, eg 76]
|
8
|
-
|
9
|
-
### Checklists
|
10
|
-
|
11
|
-
#### Change log
|
12
|
-
- [ ] The CHANGELOG has been updated, or
|
13
|
-
- [ ] This PR does not include user-facing changes and doesn't require a CHANGELOG update
|
14
|
-
|
15
|
-
#### Test coverage
|
16
|
-
- [ ] This PR includes new unit and integration tests to go with the code changes, or
|
17
|
-
- [ ] The changes in this PR do not require tests
|
18
|
-
|
19
|
-
#### Documentation
|
20
|
-
- [ ] Docs (e.g. `README`s) were updated in this PR, and/or there is a follow-on issue to update docs, or
|
21
|
-
- [ ] This PR does not require updating any documentation
|
data/ci/codeclimate.dockerfile
DELETED
@@ -1,41 +0,0 @@
|
|
1
|
-
# Copyright (C) 2014 Conjur Inc
|
2
|
-
#
|
3
|
-
# Permission is hereby granted, free of charge, to any person obtaining a copy of
|
4
|
-
# this software and associated documentation files (the "Software"), to deal in
|
5
|
-
# the Software without restriction, including without limitation the rights to
|
6
|
-
# use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of
|
7
|
-
# the Software, and to permit persons to whom the Software is furnished to do so,
|
8
|
-
# subject to the following conditions:
|
9
|
-
#
|
10
|
-
# The above copyright notice and this permission notice shall be included in all
|
11
|
-
# copies or substantial portions of the Software.
|
12
|
-
#
|
13
|
-
# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
14
|
-
# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS
|
15
|
-
# FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR
|
16
|
-
# COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
|
17
|
-
# IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
|
18
|
-
# CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
19
|
-
|
20
|
-
require 'spec_helper'
|
21
|
-
require 'tempfile'
|
22
|
-
|
23
|
-
# RestClient monkey patches MIME::Types, breaking it in certain situations.
|
24
|
-
# Let's make sure we monkey patch the monkey patch if necessary.
|
25
|
-
|
26
|
-
describe RestClient::Request do
|
27
|
-
shared_examples :restclient do
|
28
|
-
it "can be initialized" do
|
29
|
-
expect { RestClient::Request.new method: 'GET', url: 'http://example.com' }.to_not raise_error
|
30
|
-
end
|
31
|
-
end
|
32
|
-
|
33
|
-
context 'default arguments' do
|
34
|
-
let(:cache) { nil }
|
35
|
-
let(:lazy) { false }
|
36
|
-
it "sets cert_store to OpenSSL's default cert store" do
|
37
|
-
request = RestClient::Request.new(method: 'GET', url: 'http://example.com')
|
38
|
-
expect(request.ssl_opts[:cert_store]).to eq(OpenSSL::SSL::SSLContext::DEFAULT_CERT_STORE)
|
39
|
-
end
|
40
|
-
end
|
41
|
-
end
|