conjur-api 2.0.0
Sign up to get free protection for your applications and to get access to all the features.
- data/.gitignore +18 -0
- data/.project +18 -0
- data/.rspec +2 -0
- data/.rvmrc +1 -0
- data/Gemfile +10 -0
- data/LICENSE +22 -0
- data/README.md +29 -0
- data/Rakefile +20 -0
- data/conjur-api.gemspec +28 -0
- data/features/enroll_server.feature +26 -0
- data/features/login.feature +13 -0
- data/features/ping_as_server.feature +16 -0
- data/features/ping_as_user.feature +9 -0
- data/lib/conjur-api/version.rb +5 -0
- data/lib/conjur/acts_as_resource.rb +21 -0
- data/lib/conjur/acts_as_role.rb +8 -0
- data/lib/conjur/acts_as_user.rb +13 -0
- data/lib/conjur/api.rb +22 -0
- data/lib/conjur/api/authn.rb +66 -0
- data/lib/conjur/api/das.rb +33 -0
- data/lib/conjur/api/groups.rb +18 -0
- data/lib/conjur/api/hosts.rb +37 -0
- data/lib/conjur/api/resources.rb +9 -0
- data/lib/conjur/api/roles.rb +18 -0
- data/lib/conjur/api/secrets.rb +23 -0
- data/lib/conjur/api/users.rb +23 -0
- data/lib/conjur/api/variables.rb +25 -0
- data/lib/conjur/authn-api.rb +22 -0
- data/lib/conjur/authz-api.rb +23 -0
- data/lib/conjur/base.rb +50 -0
- data/lib/conjur/core-api.rb +26 -0
- data/lib/conjur/das-api.rb +22 -0
- data/lib/conjur/env.rb +24 -0
- data/lib/conjur/escape.rb +31 -0
- data/lib/conjur/exists.rb +12 -0
- data/lib/conjur/group.rb +11 -0
- data/lib/conjur/has_attributes.rb +30 -0
- data/lib/conjur/has_id.rb +8 -0
- data/lib/conjur/has_identifier.rb +13 -0
- data/lib/conjur/host.rb +20 -0
- data/lib/conjur/log.rb +52 -0
- data/lib/conjur/log_source.rb +13 -0
- data/lib/conjur/resource.rb +81 -0
- data/lib/conjur/role.rb +52 -0
- data/lib/conjur/secret.rb +12 -0
- data/lib/conjur/user.rb +13 -0
- data/lib/conjur/variable.rb +27 -0
- data/spec/lib/api_spec.rb +98 -0
- data/spec/lib/das_spec.rb +33 -0
- data/spec/lib/resource_spec.rb +84 -0
- data/spec/lib/role_spec.rb +24 -0
- data/spec/lib/user_spec.rb +33 -0
- data/spec/spec_helper.rb +86 -0
- data/spec/vcr_cassettes/Conjur_Resource/_create/with_path-like_identifier.yml +87 -0
- data/spec/vcr_cassettes/Conjur_Resource/_create/with_un-encoded_path-like_identifier.yml +87 -0
- data/spec/vcr_cassettes/Conjur_Resource/_create/with_uuid_identifier.yml +87 -0
- metadata +266 -0
@@ -0,0 +1,33 @@
|
|
1
|
+
require 'spec_helper'
|
2
|
+
|
3
|
+
require 'conjur/api'
|
4
|
+
|
5
|
+
describe Conjur::User do
|
6
|
+
context "#new" do
|
7
|
+
let(:login) { 'the-login' }
|
8
|
+
let(:api_key) { 'the-api-key' }
|
9
|
+
let(:credentials) { { user: login, password: api_key } }
|
10
|
+
let(:user) { Conjur::User.new(login, credentials)}
|
11
|
+
describe "attributes" do
|
12
|
+
subject { user }
|
13
|
+
its(:id) { should == login }
|
14
|
+
its(:login) { should == login }
|
15
|
+
its(:roleid) { should == login }
|
16
|
+
its(:resource_id) { should == login }
|
17
|
+
its(:resource_kind) { should == "user" }
|
18
|
+
its(:options) { should == credentials }
|
19
|
+
end
|
20
|
+
it "connects to a Resource" do
|
21
|
+
require 'conjur/resource'
|
22
|
+
Conjur::Resource.should_receive(:new).with("#{Conjur::Authz::API.host}/#{user.resource_kind}/#{user.resource_id}", credentials)
|
23
|
+
|
24
|
+
user.resource
|
25
|
+
end
|
26
|
+
it "connects to a Role" do
|
27
|
+
require 'conjur/role'
|
28
|
+
Conjur::Role.should_receive(:new).with("#{Conjur::Authz::API.host}/roles/#{user.roleid}", credentials)
|
29
|
+
|
30
|
+
user.role
|
31
|
+
end
|
32
|
+
end
|
33
|
+
end
|
data/spec/spec_helper.rb
ADDED
@@ -0,0 +1,86 @@
|
|
1
|
+
require 'rubygems'
|
2
|
+
$:.unshift File.join(File.dirname(__FILE__), "..", "lib")
|
3
|
+
$:.unshift File.join(File.dirname(__FILE__), "lib")
|
4
|
+
require 'spork'
|
5
|
+
|
6
|
+
Spork.prefork do
|
7
|
+
# This file is copied to ~/spec when you run 'ruby script/generate rspec'
|
8
|
+
# from the project root directory.
|
9
|
+
ENV["CONJUR_ENV"] ||= 'test'
|
10
|
+
|
11
|
+
# Allows loading of an environment config based on the environment
|
12
|
+
require 'rspec'
|
13
|
+
require 'webmock/rspec'
|
14
|
+
require 'vcr'
|
15
|
+
require 'securerandom'
|
16
|
+
|
17
|
+
# Uncomment the next line to use webrat's matchers
|
18
|
+
#require 'webrat/integrations/rspec-rails'
|
19
|
+
|
20
|
+
VCR.configure do |c|
|
21
|
+
c.cassette_library_dir = 'spec/vcr_cassettes'
|
22
|
+
c.hook_into :webmock
|
23
|
+
c.default_cassette_options = { :record => :new_episodes }
|
24
|
+
# c.ignore_localhost = true
|
25
|
+
end
|
26
|
+
|
27
|
+
RSpec.configure do |config|
|
28
|
+
# If you're not using ActiveRecord you should remove these
|
29
|
+
# lines, delete config/database.yml and disable :active_record
|
30
|
+
# in your config/boot.rb
|
31
|
+
#config.use_transactional_fixtures = true
|
32
|
+
#config.use_instantiated_fixtures = false
|
33
|
+
#config.fixture_path = File.join(redmine_root, 'test', 'fixtures')
|
34
|
+
|
35
|
+
# == Fixtures
|
36
|
+
#
|
37
|
+
# You can declare fixtures for each example_group like this:
|
38
|
+
# describe "...." do
|
39
|
+
# fixtures :table_a, :table_b
|
40
|
+
#
|
41
|
+
# Alternatively, if you prefer to declare them only once, you can
|
42
|
+
# do so right here. Just uncomment the next line and replace the fixture
|
43
|
+
# names with your fixtures.
|
44
|
+
#
|
45
|
+
#
|
46
|
+
# If you declare global fixtures, be aware that they will be declared
|
47
|
+
# for all of your examples, even those that don't use them.
|
48
|
+
#
|
49
|
+
# You can also declare which fixtures to use (for example fixtures for test/fixtures):
|
50
|
+
#
|
51
|
+
# config.fixture_path = RAILS_ROOT + '/spec/fixtures/'
|
52
|
+
#
|
53
|
+
# == Mock Framework
|
54
|
+
#
|
55
|
+
# RSpec uses its own mocking framework by default. If you prefer to
|
56
|
+
# use mocha, flexmock or RR, uncomment the appropriate line:
|
57
|
+
#
|
58
|
+
# config.mock_with :mocha
|
59
|
+
# config.mock_with :flexmock
|
60
|
+
# config.mock_with :rr
|
61
|
+
#
|
62
|
+
# == Notes
|
63
|
+
#
|
64
|
+
# For more information take a look at Spec::Runner::Configuration and Spec::Runner
|
65
|
+
|
66
|
+
config.extend VCR::RSpec::Macros
|
67
|
+
end
|
68
|
+
end
|
69
|
+
|
70
|
+
Spork.each_run do
|
71
|
+
# This code will be run each time you run your specs.
|
72
|
+
|
73
|
+
# Requires supporting files with custom matchers and macros, etc,
|
74
|
+
# in ./support/ and its subdirectories.
|
75
|
+
Dir[File.expand_path(File.join(File.dirname(__FILE__),'support','**','*.rb'))].each {|f| require f}
|
76
|
+
end
|
77
|
+
|
78
|
+
shared_examples_for "http response" do
|
79
|
+
let(:http_response) { mock(:response) }
|
80
|
+
|
81
|
+
before(:each) do
|
82
|
+
http_response.stub(:code).and_return 200
|
83
|
+
http_response.stub(:message).and_return nil
|
84
|
+
http_response.stub(:body).and_return http_json.to_json
|
85
|
+
end
|
86
|
+
end
|
@@ -0,0 +1,87 @@
|
|
1
|
+
---
|
2
|
+
http_interactions:
|
3
|
+
- request:
|
4
|
+
method: put
|
5
|
+
uri: http://admin:%5E6feWZpr@localhost:5100/spec/ddd1f59a-494d-48fb-b045-0374c4a6eef9%2Fxxx
|
6
|
+
body:
|
7
|
+
encoding: ASCII-8BIT
|
8
|
+
string: !binary ""
|
9
|
+
headers:
|
10
|
+
Accept:
|
11
|
+
- ! '*/*; q=0.5, application/xml'
|
12
|
+
Accept-Encoding:
|
13
|
+
- gzip, deflate
|
14
|
+
Content-Type:
|
15
|
+
- application/x-www-form-urlencoded
|
16
|
+
Content-Length:
|
17
|
+
- '0'
|
18
|
+
User-Agent:
|
19
|
+
- Ruby
|
20
|
+
response:
|
21
|
+
status:
|
22
|
+
code: 200
|
23
|
+
message: ! 'OK '
|
24
|
+
headers:
|
25
|
+
Content-Type:
|
26
|
+
- text/html; charset=utf-8
|
27
|
+
Cache-Control:
|
28
|
+
- no-cache
|
29
|
+
X-Request-Id:
|
30
|
+
- 98704b39989fbbf3466b5be63ab9149b
|
31
|
+
X-Runtime:
|
32
|
+
- '0.089084'
|
33
|
+
Server:
|
34
|
+
- WEBrick/1.3.1 (Ruby/1.9.3/2012-11-10)
|
35
|
+
Date:
|
36
|
+
- Wed, 30 Jan 2013 18:17:15 GMT
|
37
|
+
Content-Length:
|
38
|
+
- '0'
|
39
|
+
Connection:
|
40
|
+
- Keep-Alive
|
41
|
+
body:
|
42
|
+
encoding: US-ASCII
|
43
|
+
string: ''
|
44
|
+
http_version:
|
45
|
+
recorded_at: Wed, 30 Jan 2013 18:17:15 GMT
|
46
|
+
- request:
|
47
|
+
method: head
|
48
|
+
uri: http://admin:%5E6feWZpr@localhost:5100/spec/ddd1f59a-494d-48fb-b045-0374c4a6eef9%2Fxxx
|
49
|
+
body:
|
50
|
+
encoding: US-ASCII
|
51
|
+
string: ''
|
52
|
+
headers:
|
53
|
+
Accept:
|
54
|
+
- ! '*/*; q=0.5, application/xml'
|
55
|
+
Accept-Encoding:
|
56
|
+
- gzip, deflate
|
57
|
+
User-Agent:
|
58
|
+
- Ruby
|
59
|
+
response:
|
60
|
+
status:
|
61
|
+
code: 200
|
62
|
+
message: ! 'OK '
|
63
|
+
headers:
|
64
|
+
Content-Type:
|
65
|
+
- application/json; charset=utf-8
|
66
|
+
Etag:
|
67
|
+
- ! '"6b15850e72c52c9bc10b0f67349774c9"'
|
68
|
+
Cache-Control:
|
69
|
+
- max-age=0, private, must-revalidate
|
70
|
+
X-Request-Id:
|
71
|
+
- 28a81334baa7bf4aedf12a56a0e294c7
|
72
|
+
X-Runtime:
|
73
|
+
- '0.088457'
|
74
|
+
Server:
|
75
|
+
- WEBrick/1.3.1 (Ruby/1.9.3/2012-11-10)
|
76
|
+
Date:
|
77
|
+
- Wed, 30 Jan 2013 18:17:15 GMT
|
78
|
+
Content-Length:
|
79
|
+
- '0'
|
80
|
+
Connection:
|
81
|
+
- Keep-Alive
|
82
|
+
body:
|
83
|
+
encoding: US-ASCII
|
84
|
+
string: ''
|
85
|
+
http_version:
|
86
|
+
recorded_at: Wed, 30 Jan 2013 18:17:15 GMT
|
87
|
+
recorded_with: VCR 2.3.0
|
@@ -0,0 +1,87 @@
|
|
1
|
+
---
|
2
|
+
http_interactions:
|
3
|
+
- request:
|
4
|
+
method: put
|
5
|
+
uri: http://admin:%5E6feWZpr@localhost:5100/spec/ddd1f59a-494d-48fb-b045-0374c4a6eef9%2F+%3F!!%3F+%2Fxxx
|
6
|
+
body:
|
7
|
+
encoding: ASCII-8BIT
|
8
|
+
string: !binary ""
|
9
|
+
headers:
|
10
|
+
Accept:
|
11
|
+
- ! '*/*; q=0.5, application/xml'
|
12
|
+
Accept-Encoding:
|
13
|
+
- gzip, deflate
|
14
|
+
Content-Type:
|
15
|
+
- application/x-www-form-urlencoded
|
16
|
+
Content-Length:
|
17
|
+
- '0'
|
18
|
+
User-Agent:
|
19
|
+
- Ruby
|
20
|
+
response:
|
21
|
+
status:
|
22
|
+
code: 200
|
23
|
+
message: ! 'OK '
|
24
|
+
headers:
|
25
|
+
Content-Type:
|
26
|
+
- text/html; charset=utf-8
|
27
|
+
Cache-Control:
|
28
|
+
- no-cache
|
29
|
+
X-Request-Id:
|
30
|
+
- 9b6cc33f59907307da678452e0e3faa4
|
31
|
+
X-Runtime:
|
32
|
+
- '0.086922'
|
33
|
+
Server:
|
34
|
+
- WEBrick/1.3.1 (Ruby/1.9.3/2012-11-10)
|
35
|
+
Date:
|
36
|
+
- Wed, 30 Jan 2013 18:17:15 GMT
|
37
|
+
Content-Length:
|
38
|
+
- '0'
|
39
|
+
Connection:
|
40
|
+
- Keep-Alive
|
41
|
+
body:
|
42
|
+
encoding: US-ASCII
|
43
|
+
string: ''
|
44
|
+
http_version:
|
45
|
+
recorded_at: Wed, 30 Jan 2013 18:17:15 GMT
|
46
|
+
- request:
|
47
|
+
method: head
|
48
|
+
uri: http://admin:%5E6feWZpr@localhost:5100/spec/ddd1f59a-494d-48fb-b045-0374c4a6eef9%2F+%3F!!%3F+%2Fxxx
|
49
|
+
body:
|
50
|
+
encoding: US-ASCII
|
51
|
+
string: ''
|
52
|
+
headers:
|
53
|
+
Accept:
|
54
|
+
- ! '*/*; q=0.5, application/xml'
|
55
|
+
Accept-Encoding:
|
56
|
+
- gzip, deflate
|
57
|
+
User-Agent:
|
58
|
+
- Ruby
|
59
|
+
response:
|
60
|
+
status:
|
61
|
+
code: 200
|
62
|
+
message: ! 'OK '
|
63
|
+
headers:
|
64
|
+
Content-Type:
|
65
|
+
- application/json; charset=utf-8
|
66
|
+
Etag:
|
67
|
+
- ! '"efa2bc5554b480a61948855b3b06a97e"'
|
68
|
+
Cache-Control:
|
69
|
+
- max-age=0, private, must-revalidate
|
70
|
+
X-Request-Id:
|
71
|
+
- 9790615667d793e342ac1ece26a0bbde
|
72
|
+
X-Runtime:
|
73
|
+
- '0.089211'
|
74
|
+
Server:
|
75
|
+
- WEBrick/1.3.1 (Ruby/1.9.3/2012-11-10)
|
76
|
+
Date:
|
77
|
+
- Wed, 30 Jan 2013 18:17:15 GMT
|
78
|
+
Content-Length:
|
79
|
+
- '0'
|
80
|
+
Connection:
|
81
|
+
- Keep-Alive
|
82
|
+
body:
|
83
|
+
encoding: US-ASCII
|
84
|
+
string: ''
|
85
|
+
http_version:
|
86
|
+
recorded_at: Wed, 30 Jan 2013 18:17:15 GMT
|
87
|
+
recorded_with: VCR 2.3.0
|
@@ -0,0 +1,87 @@
|
|
1
|
+
---
|
2
|
+
http_interactions:
|
3
|
+
- request:
|
4
|
+
method: put
|
5
|
+
uri: http://admin:%5E6feWZpr@localhost:5100/spec/ddd1f59a-494d-48fb-b045-0374c4a6eef9
|
6
|
+
body:
|
7
|
+
encoding: ASCII-8BIT
|
8
|
+
string: !binary ""
|
9
|
+
headers:
|
10
|
+
Accept:
|
11
|
+
- ! '*/*; q=0.5, application/xml'
|
12
|
+
Accept-Encoding:
|
13
|
+
- gzip, deflate
|
14
|
+
Content-Type:
|
15
|
+
- application/x-www-form-urlencoded
|
16
|
+
Content-Length:
|
17
|
+
- '0'
|
18
|
+
User-Agent:
|
19
|
+
- Ruby
|
20
|
+
response:
|
21
|
+
status:
|
22
|
+
code: 200
|
23
|
+
message: ! 'OK '
|
24
|
+
headers:
|
25
|
+
Content-Type:
|
26
|
+
- text/html; charset=utf-8
|
27
|
+
Cache-Control:
|
28
|
+
- no-cache
|
29
|
+
X-Request-Id:
|
30
|
+
- a5eeef9182aff04965c282af32467ba8
|
31
|
+
X-Runtime:
|
32
|
+
- '0.091628'
|
33
|
+
Server:
|
34
|
+
- WEBrick/1.3.1 (Ruby/1.9.3/2012-11-10)
|
35
|
+
Date:
|
36
|
+
- Wed, 30 Jan 2013 18:17:15 GMT
|
37
|
+
Content-Length:
|
38
|
+
- '0'
|
39
|
+
Connection:
|
40
|
+
- Keep-Alive
|
41
|
+
body:
|
42
|
+
encoding: US-ASCII
|
43
|
+
string: ''
|
44
|
+
http_version:
|
45
|
+
recorded_at: Wed, 30 Jan 2013 18:17:15 GMT
|
46
|
+
- request:
|
47
|
+
method: head
|
48
|
+
uri: http://admin:%5E6feWZpr@localhost:5100/spec/ddd1f59a-494d-48fb-b045-0374c4a6eef9
|
49
|
+
body:
|
50
|
+
encoding: US-ASCII
|
51
|
+
string: ''
|
52
|
+
headers:
|
53
|
+
Accept:
|
54
|
+
- ! '*/*; q=0.5, application/xml'
|
55
|
+
Accept-Encoding:
|
56
|
+
- gzip, deflate
|
57
|
+
User-Agent:
|
58
|
+
- Ruby
|
59
|
+
response:
|
60
|
+
status:
|
61
|
+
code: 200
|
62
|
+
message: ! 'OK '
|
63
|
+
headers:
|
64
|
+
Content-Type:
|
65
|
+
- application/json; charset=utf-8
|
66
|
+
Etag:
|
67
|
+
- ! '"9f8c419a05c8d3d62a4e8bdf7277bfb0"'
|
68
|
+
Cache-Control:
|
69
|
+
- max-age=0, private, must-revalidate
|
70
|
+
X-Request-Id:
|
71
|
+
- f21d3442b4ae3550eb5c46456a6e918c
|
72
|
+
X-Runtime:
|
73
|
+
- '0.099216'
|
74
|
+
Server:
|
75
|
+
- WEBrick/1.3.1 (Ruby/1.9.3/2012-11-10)
|
76
|
+
Date:
|
77
|
+
- Wed, 30 Jan 2013 18:17:15 GMT
|
78
|
+
Content-Length:
|
79
|
+
- '0'
|
80
|
+
Connection:
|
81
|
+
- Keep-Alive
|
82
|
+
body:
|
83
|
+
encoding: US-ASCII
|
84
|
+
string: ''
|
85
|
+
http_version:
|
86
|
+
recorded_at: Wed, 30 Jan 2013 18:17:15 GMT
|
87
|
+
recorded_with: VCR 2.3.0
|
metadata
ADDED
@@ -0,0 +1,266 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: conjur-api
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 2.0.0
|
5
|
+
prerelease:
|
6
|
+
platform: ruby
|
7
|
+
authors:
|
8
|
+
- Rafał Rzepecki
|
9
|
+
- Kevin Gilpin
|
10
|
+
autorequire:
|
11
|
+
bindir: bin
|
12
|
+
cert_chain: []
|
13
|
+
date: 2013-03-12 00:00:00.000000000 Z
|
14
|
+
dependencies:
|
15
|
+
- !ruby/object:Gem::Dependency
|
16
|
+
name: rest-client
|
17
|
+
requirement: !ruby/object:Gem::Requirement
|
18
|
+
none: false
|
19
|
+
requirements:
|
20
|
+
- - ! '>='
|
21
|
+
- !ruby/object:Gem::Version
|
22
|
+
version: '0'
|
23
|
+
type: :runtime
|
24
|
+
prerelease: false
|
25
|
+
version_requirements: !ruby/object:Gem::Requirement
|
26
|
+
none: false
|
27
|
+
requirements:
|
28
|
+
- - ! '>='
|
29
|
+
- !ruby/object:Gem::Version
|
30
|
+
version: '0'
|
31
|
+
- !ruby/object:Gem::Dependency
|
32
|
+
name: slosilo
|
33
|
+
requirement: !ruby/object:Gem::Requirement
|
34
|
+
none: false
|
35
|
+
requirements:
|
36
|
+
- - ! '>='
|
37
|
+
- !ruby/object:Gem::Version
|
38
|
+
version: '0'
|
39
|
+
type: :runtime
|
40
|
+
prerelease: false
|
41
|
+
version_requirements: !ruby/object:Gem::Requirement
|
42
|
+
none: false
|
43
|
+
requirements:
|
44
|
+
- - ! '>='
|
45
|
+
- !ruby/object:Gem::Version
|
46
|
+
version: '0'
|
47
|
+
- !ruby/object:Gem::Dependency
|
48
|
+
name: activesupport
|
49
|
+
requirement: !ruby/object:Gem::Requirement
|
50
|
+
none: false
|
51
|
+
requirements:
|
52
|
+
- - ! '>='
|
53
|
+
- !ruby/object:Gem::Version
|
54
|
+
version: '0'
|
55
|
+
type: :runtime
|
56
|
+
prerelease: false
|
57
|
+
version_requirements: !ruby/object:Gem::Requirement
|
58
|
+
none: false
|
59
|
+
requirements:
|
60
|
+
- - ! '>='
|
61
|
+
- !ruby/object:Gem::Version
|
62
|
+
version: '0'
|
63
|
+
- !ruby/object:Gem::Dependency
|
64
|
+
name: rake
|
65
|
+
requirement: !ruby/object:Gem::Requirement
|
66
|
+
none: false
|
67
|
+
requirements:
|
68
|
+
- - ! '>='
|
69
|
+
- !ruby/object:Gem::Version
|
70
|
+
version: '0'
|
71
|
+
type: :development
|
72
|
+
prerelease: false
|
73
|
+
version_requirements: !ruby/object:Gem::Requirement
|
74
|
+
none: false
|
75
|
+
requirements:
|
76
|
+
- - ! '>='
|
77
|
+
- !ruby/object:Gem::Version
|
78
|
+
version: '0'
|
79
|
+
- !ruby/object:Gem::Dependency
|
80
|
+
name: spork
|
81
|
+
requirement: !ruby/object:Gem::Requirement
|
82
|
+
none: false
|
83
|
+
requirements:
|
84
|
+
- - ! '>='
|
85
|
+
- !ruby/object:Gem::Version
|
86
|
+
version: '0'
|
87
|
+
type: :development
|
88
|
+
prerelease: false
|
89
|
+
version_requirements: !ruby/object:Gem::Requirement
|
90
|
+
none: false
|
91
|
+
requirements:
|
92
|
+
- - ! '>='
|
93
|
+
- !ruby/object:Gem::Version
|
94
|
+
version: '0'
|
95
|
+
- !ruby/object:Gem::Dependency
|
96
|
+
name: rspec
|
97
|
+
requirement: !ruby/object:Gem::Requirement
|
98
|
+
none: false
|
99
|
+
requirements:
|
100
|
+
- - ! '>='
|
101
|
+
- !ruby/object:Gem::Version
|
102
|
+
version: '0'
|
103
|
+
type: :development
|
104
|
+
prerelease: false
|
105
|
+
version_requirements: !ruby/object:Gem::Requirement
|
106
|
+
none: false
|
107
|
+
requirements:
|
108
|
+
- - ! '>='
|
109
|
+
- !ruby/object:Gem::Version
|
110
|
+
version: '0'
|
111
|
+
- !ruby/object:Gem::Dependency
|
112
|
+
name: vcr
|
113
|
+
requirement: !ruby/object:Gem::Requirement
|
114
|
+
none: false
|
115
|
+
requirements:
|
116
|
+
- - ! '>='
|
117
|
+
- !ruby/object:Gem::Version
|
118
|
+
version: '0'
|
119
|
+
type: :development
|
120
|
+
prerelease: false
|
121
|
+
version_requirements: !ruby/object:Gem::Requirement
|
122
|
+
none: false
|
123
|
+
requirements:
|
124
|
+
- - ! '>='
|
125
|
+
- !ruby/object:Gem::Version
|
126
|
+
version: '0'
|
127
|
+
- !ruby/object:Gem::Dependency
|
128
|
+
name: webmock
|
129
|
+
requirement: !ruby/object:Gem::Requirement
|
130
|
+
none: false
|
131
|
+
requirements:
|
132
|
+
- - ! '>='
|
133
|
+
- !ruby/object:Gem::Version
|
134
|
+
version: '0'
|
135
|
+
type: :development
|
136
|
+
prerelease: false
|
137
|
+
version_requirements: !ruby/object:Gem::Requirement
|
138
|
+
none: false
|
139
|
+
requirements:
|
140
|
+
- - ! '>='
|
141
|
+
- !ruby/object:Gem::Version
|
142
|
+
version: '0'
|
143
|
+
- !ruby/object:Gem::Dependency
|
144
|
+
name: ci_reporter
|
145
|
+
requirement: !ruby/object:Gem::Requirement
|
146
|
+
none: false
|
147
|
+
requirements:
|
148
|
+
- - ! '>='
|
149
|
+
- !ruby/object:Gem::Version
|
150
|
+
version: '0'
|
151
|
+
type: :development
|
152
|
+
prerelease: false
|
153
|
+
version_requirements: !ruby/object:Gem::Requirement
|
154
|
+
none: false
|
155
|
+
requirements:
|
156
|
+
- - ! '>='
|
157
|
+
- !ruby/object:Gem::Version
|
158
|
+
version: '0'
|
159
|
+
description: Conjur API
|
160
|
+
email:
|
161
|
+
- divided.mind@gmail.com
|
162
|
+
- kevin.gilpin@inscitiv.com
|
163
|
+
executables: []
|
164
|
+
extensions: []
|
165
|
+
extra_rdoc_files: []
|
166
|
+
files:
|
167
|
+
- .gitignore
|
168
|
+
- .project
|
169
|
+
- .rspec
|
170
|
+
- .rvmrc
|
171
|
+
- Gemfile
|
172
|
+
- LICENSE
|
173
|
+
- README.md
|
174
|
+
- Rakefile
|
175
|
+
- conjur-api.gemspec
|
176
|
+
- features/enroll_server.feature
|
177
|
+
- features/login.feature
|
178
|
+
- features/ping_as_server.feature
|
179
|
+
- features/ping_as_user.feature
|
180
|
+
- lib/conjur-api/version.rb
|
181
|
+
- lib/conjur/acts_as_resource.rb
|
182
|
+
- lib/conjur/acts_as_role.rb
|
183
|
+
- lib/conjur/acts_as_user.rb
|
184
|
+
- lib/conjur/api.rb
|
185
|
+
- lib/conjur/api/authn.rb
|
186
|
+
- lib/conjur/api/das.rb
|
187
|
+
- lib/conjur/api/groups.rb
|
188
|
+
- lib/conjur/api/hosts.rb
|
189
|
+
- lib/conjur/api/resources.rb
|
190
|
+
- lib/conjur/api/roles.rb
|
191
|
+
- lib/conjur/api/secrets.rb
|
192
|
+
- lib/conjur/api/users.rb
|
193
|
+
- lib/conjur/api/variables.rb
|
194
|
+
- lib/conjur/authn-api.rb
|
195
|
+
- lib/conjur/authz-api.rb
|
196
|
+
- lib/conjur/base.rb
|
197
|
+
- lib/conjur/core-api.rb
|
198
|
+
- lib/conjur/das-api.rb
|
199
|
+
- lib/conjur/env.rb
|
200
|
+
- lib/conjur/escape.rb
|
201
|
+
- lib/conjur/exists.rb
|
202
|
+
- lib/conjur/group.rb
|
203
|
+
- lib/conjur/has_attributes.rb
|
204
|
+
- lib/conjur/has_id.rb
|
205
|
+
- lib/conjur/has_identifier.rb
|
206
|
+
- lib/conjur/host.rb
|
207
|
+
- lib/conjur/log.rb
|
208
|
+
- lib/conjur/log_source.rb
|
209
|
+
- lib/conjur/resource.rb
|
210
|
+
- lib/conjur/role.rb
|
211
|
+
- lib/conjur/secret.rb
|
212
|
+
- lib/conjur/user.rb
|
213
|
+
- lib/conjur/variable.rb
|
214
|
+
- spec/lib/api_spec.rb
|
215
|
+
- spec/lib/das_spec.rb
|
216
|
+
- spec/lib/resource_spec.rb
|
217
|
+
- spec/lib/role_spec.rb
|
218
|
+
- spec/lib/user_spec.rb
|
219
|
+
- spec/spec_helper.rb
|
220
|
+
- spec/vcr_cassettes/Conjur_Resource/_create/with_path-like_identifier.yml
|
221
|
+
- spec/vcr_cassettes/Conjur_Resource/_create/with_un-encoded_path-like_identifier.yml
|
222
|
+
- spec/vcr_cassettes/Conjur_Resource/_create/with_uuid_identifier.yml
|
223
|
+
homepage: ''
|
224
|
+
licenses: []
|
225
|
+
post_install_message:
|
226
|
+
rdoc_options: []
|
227
|
+
require_paths:
|
228
|
+
- lib
|
229
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
230
|
+
none: false
|
231
|
+
requirements:
|
232
|
+
- - ! '>='
|
233
|
+
- !ruby/object:Gem::Version
|
234
|
+
version: '0'
|
235
|
+
segments:
|
236
|
+
- 0
|
237
|
+
hash: 3213033468970777555
|
238
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
239
|
+
none: false
|
240
|
+
requirements:
|
241
|
+
- - ! '>='
|
242
|
+
- !ruby/object:Gem::Version
|
243
|
+
version: '0'
|
244
|
+
segments:
|
245
|
+
- 0
|
246
|
+
hash: 3213033468970777555
|
247
|
+
requirements: []
|
248
|
+
rubyforge_project:
|
249
|
+
rubygems_version: 1.8.24
|
250
|
+
signing_key:
|
251
|
+
specification_version: 3
|
252
|
+
summary: Conjur API
|
253
|
+
test_files:
|
254
|
+
- features/enroll_server.feature
|
255
|
+
- features/login.feature
|
256
|
+
- features/ping_as_server.feature
|
257
|
+
- features/ping_as_user.feature
|
258
|
+
- spec/lib/api_spec.rb
|
259
|
+
- spec/lib/das_spec.rb
|
260
|
+
- spec/lib/resource_spec.rb
|
261
|
+
- spec/lib/role_spec.rb
|
262
|
+
- spec/lib/user_spec.rb
|
263
|
+
- spec/spec_helper.rb
|
264
|
+
- spec/vcr_cassettes/Conjur_Resource/_create/with_path-like_identifier.yml
|
265
|
+
- spec/vcr_cassettes/Conjur_Resource/_create/with_un-encoded_path-like_identifier.yml
|
266
|
+
- spec/vcr_cassettes/Conjur_Resource/_create/with_uuid_identifier.yml
|