conjur-cli 5.6.6 → 6.0.0.rc1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (203) hide show
  1. checksums.yaml +5 -5
  2. data/.dockerignore +1 -1
  3. data/.gitignore +2 -0
  4. data/.rubocop.yml +1 -1
  5. data/APPLIANCE_VERSION +1 -1
  6. data/CHANGELOG.md +3 -42
  7. data/Gemfile +4 -7
  8. data/Humanfile.md +31 -0
  9. data/Jenkinsfile +34 -63
  10. data/README.md +41 -55
  11. data/Rakefile +5 -1
  12. data/bin/conjur +0 -2
  13. data/build-deb.sh +1 -3
  14. data/ci/cli-test.sh +6 -0
  15. data/ci/package.sh +3 -1
  16. data/ci/publish.sh +2 -2
  17. data/ci/secrets/publish.yml +2 -2
  18. data/ci/wait_for_server.sh +10 -0
  19. data/conjur-cli.gemspec +7 -7
  20. data/dev/docker-compose.yml +24 -0
  21. data/dev/start.sh +15 -0
  22. data/dev/stop.sh +5 -0
  23. data/docker-compose.yml +30 -0
  24. data/features/authentication/authenticate.feature +34 -0
  25. data/features/authentication/login.feature +13 -0
  26. data/features/authentication/logout.feature +15 -0
  27. data/{acceptance-features → features}/authentication/whoami.feature +0 -0
  28. data/features/authorization/resource/annotate.feature +22 -0
  29. data/features/authorization/resource/check.feature +47 -0
  30. data/{acceptance-features → features}/authorization/resource/exists.feature +18 -6
  31. data/features/authorization/resource/permitted_roles.feature +35 -0
  32. data/features/authorization/resource/show.feature +34 -0
  33. data/features/authorization/role/exists.feature +28 -0
  34. data/features/authorization/role/members.feature +45 -0
  35. data/features/authorization/role/memberships.feature +43 -0
  36. data/features/conjurenv/check.feature +34 -0
  37. data/features/conjurenv/run.feature +15 -0
  38. data/{acceptance-features → features}/conjurenv/template.feature +8 -3
  39. data/{acceptance-features → features}/directory/user/update_password.feature +8 -2
  40. data/{acceptance-features → features}/directory/variable/value.feature +9 -5
  41. data/{acceptance-features → features}/directory/variable/values-add.feature +8 -3
  42. data/features/hostfactory/tokens.feature +22 -0
  43. data/features/pubkeys/show.feature +18 -0
  44. data/features/step_definitions/authn_steps.rb +22 -0
  45. data/features/step_definitions/cli_steps.rb +28 -0
  46. data/features/step_definitions/file_steps.rb +12 -0
  47. data/features/step_definitions/flow_control_steps.rb +7 -0
  48. data/features/step_definitions/graph_steps.rb +4 -3
  49. data/{acceptance-features → features}/step_definitions/http_steps.rb +0 -0
  50. data/features/step_definitions/overrides.rb +9 -0
  51. data/features/step_definitions/policy_steps.rb +11 -0
  52. data/{acceptance-features → features}/step_definitions/trusted_proxy_steps.rb +0 -0
  53. data/features/support/blank.yml +1 -0
  54. data/features/support/env.rb +21 -7
  55. data/features/support/hooks.rb +31 -116
  56. data/features/support/world.rb +16 -76
  57. data/jenkins.sh +33 -0
  58. data/lib/conjur/authenticator.rb +83 -0
  59. data/lib/conjur/authn.rb +5 -20
  60. data/lib/conjur/cli.rb +13 -6
  61. data/lib/conjur/command.rb +30 -350
  62. data/lib/conjur/command/authn.rb +23 -15
  63. data/lib/conjur/command/host_factories.rb +2 -74
  64. data/lib/conjur/command/hosts.rb +6 -113
  65. data/lib/conjur/command/init.rb +20 -35
  66. data/lib/conjur/command/{secrets.rb → policies.rb} +33 -22
  67. data/lib/conjur/command/pubkeys.rb +3 -63
  68. data/lib/conjur/command/resources.rb +45 -162
  69. data/lib/conjur/command/roles.rb +11 -181
  70. data/lib/conjur/command/rspec/helpers.rb +0 -1
  71. data/lib/conjur/command/rspec/mock_services.rb +4 -4
  72. data/lib/conjur/command/users.rb +2 -159
  73. data/lib/conjur/command/variables.rb +5 -218
  74. data/lib/conjur/complete.rb +2 -2
  75. data/lib/conjur/config.rb +1 -11
  76. data/lib/conjur/conjurenv.rb +12 -9
  77. data/lib/conjur/identifier_manipulation.rb +3 -5
  78. data/lib/conjur/version.rb +2 -2
  79. data/{publish-rubygem.sh → publish.sh} +0 -4
  80. data/spec/authn_spec.rb +4 -0
  81. data/spec/command/hosts_spec.rb +2 -69
  82. data/spec/command/init_spec.rb +16 -11
  83. data/spec/command/pubkeys_spec.rb +1 -46
  84. data/spec/command/resources_spec.rb +21 -170
  85. data/spec/command/roles_spec.rb +5 -181
  86. data/spec/command/users_spec.rb +3 -79
  87. data/spec/command_spec.rb +1 -20
  88. data/spec/complete_spec.rb +1 -23
  89. data/spec/config_spec.rb +1 -1
  90. data/spec/spec_helper.rb +4 -5
  91. data/test.sh +29 -25
  92. metadata +92 -212
  93. data/.githooks/pre_commit/run_specs.rb +0 -23
  94. data/Dockerfile +0 -15
  95. data/Dockerfile.fpm +0 -18
  96. data/Dockerfile.publish +0 -12
  97. data/Dockerfile.standalone +0 -33
  98. data/Dockerfile.validate-packaging +0 -9
  99. data/VERSION +0 -1
  100. data/acceptance-features/audit/audit_event_send.feature +0 -107
  101. data/acceptance-features/audit/fetch.feature +0 -16
  102. data/acceptance-features/audit/send.feature +0 -51
  103. data/acceptance-features/authentication/authenticate.feature +0 -10
  104. data/acceptance-features/authentication/login.feature +0 -12
  105. data/acceptance-features/authentication/logout.feature +0 -13
  106. data/acceptance-features/authorization/resource/annotate.feature +0 -35
  107. data/acceptance-features/authorization/resource/check.feature +0 -24
  108. data/acceptance-features/authorization/resource/create.feature +0 -21
  109. data/acceptance-features/authorization/resource/deny.feature +0 -12
  110. data/acceptance-features/authorization/resource/give.feature +0 -24
  111. data/acceptance-features/authorization/resource/permit.feature +0 -20
  112. data/acceptance-features/authorization/resource/permitted_roles.feature +0 -16
  113. data/acceptance-features/authorization/resource/show.feature +0 -28
  114. data/acceptance-features/authorization/role/create.feature +0 -13
  115. data/acceptance-features/authorization/role/exists.feature +0 -19
  116. data/acceptance-features/authorization/role/grant_to.feature +0 -21
  117. data/acceptance-features/authorization/role/graph.feature +0 -57
  118. data/acceptance-features/authorization/role/members.feature +0 -23
  119. data/acceptance-features/authorization/role/memberships.feature +0 -27
  120. data/acceptance-features/bootstrap.feature +0 -13
  121. data/acceptance-features/conjurenv/check.feature +0 -21
  122. data/acceptance-features/conjurenv/run.feature +0 -10
  123. data/acceptance-features/directory/group/create.feature +0 -20
  124. data/acceptance-features/directory/group/retire.feature +0 -54
  125. data/acceptance-features/directory/host/create.feature +0 -23
  126. data/acceptance-features/directory/host/retire.feature +0 -6
  127. data/acceptance-features/directory/hostfactory/create.feature +0 -28
  128. data/acceptance-features/directory/hostfactory/tokens.feature +0 -16
  129. data/acceptance-features/directory/layer/create.feature +0 -10
  130. data/acceptance-features/directory/layer/hosts-add.feature +0 -9
  131. data/acceptance-features/directory/layer/hosts-remove.feature +0 -10
  132. data/acceptance-features/directory/layer/retire.feature +0 -43
  133. data/acceptance-features/directory/user/create.feature +0 -23
  134. data/acceptance-features/directory/user/retire.feature +0 -6
  135. data/acceptance-features/directory/variable/create.feature +0 -14
  136. data/acceptance-features/directory/variable/retire.feature +0 -17
  137. data/acceptance-features/dsl/policy_owner.feature +0 -45
  138. data/acceptance-features/dsl/resource_owner.feature +0 -17
  139. data/acceptance-features/dsl/retire.feature +0 -15
  140. data/acceptance-features/global-privilege/elevate.feature +0 -20
  141. data/acceptance-features/global-privilege/reveal.privilege +0 -20
  142. data/acceptance-features/pubkeys/add.feature +0 -22
  143. data/acceptance-features/pubkeys/delete.feature +0 -9
  144. data/acceptance-features/pubkeys/names.feature +0 -26
  145. data/acceptance-features/pubkeys/show.feature +0 -27
  146. data/acceptance-features/step_definitions/cli_steps.rb +0 -57
  147. data/acceptance-features/step_definitions/graph_steps.rb +0 -22
  148. data/acceptance-features/step_definitions/user_steps.rb +0 -51
  149. data/acceptance-features/support/env.rb +0 -23
  150. data/acceptance-features/support/hooks.rb +0 -178
  151. data/acceptance-features/support/world.rb +0 -176
  152. data/acceptance-features/trusted_proxies.feature +0 -82
  153. data/bin/conjurize +0 -26
  154. data/bin/jsonfield +0 -70
  155. data/build-standalone +0 -6
  156. data/deprecations.sh +0 -38
  157. data/features/conjurize.feature +0 -134
  158. data/features/dsl_context.feature +0 -36
  159. data/features/dsl_host_create.feature +0 -11
  160. data/features/dsl_ownership.feature +0 -30
  161. data/features/dsl_permission.feature +0 -45
  162. data/features/dsl_resource_create.feature +0 -23
  163. data/features/dsl_role_create.feature +0 -11
  164. data/features/dsl_user_create.feature +0 -23
  165. data/features/jsonfield.feature +0 -49
  166. data/features/role_graph.feature +0 -58
  167. data/features/step_definitions/conjurize_steps.rb +0 -5
  168. data/features/step_definitions/dsl_steps.rb +0 -52
  169. data/features/support/conjur.conf +0 -6
  170. data/lib/conjur/command/assets.rb +0 -121
  171. data/lib/conjur/command/audit.rb +0 -155
  172. data/lib/conjur/command/bootstrap.rb +0 -129
  173. data/lib/conjur/command/dsl_command.rb +0 -75
  174. data/lib/conjur/command/elevate.rb +0 -76
  175. data/lib/conjur/command/field.rb +0 -45
  176. data/lib/conjur/command/groups.rb +0 -208
  177. data/lib/conjur/command/ids.rb +0 -34
  178. data/lib/conjur/command/layers.rb +0 -211
  179. data/lib/conjur/command/ldapsync.rb +0 -118
  180. data/lib/conjur/command/rspec/audit_helpers.rb +0 -68
  181. data/lib/conjur/command/rubydsl.rb +0 -93
  182. data/lib/conjur/command/script.rb +0 -48
  183. data/lib/conjur/command/server.rb +0 -67
  184. data/lib/conjur/conjurize.rb +0 -71
  185. data/lib/conjur/conjurize/script.rb +0 -150
  186. data/lib/conjur/dsl/runner.rb +0 -273
  187. data/publish-deb.sh +0 -6
  188. data/push-image +0 -29
  189. data/spec/command/assets_spec.rb +0 -115
  190. data/spec/command/audit_spec.rb +0 -376
  191. data/spec/command/elevate_spec.rb +0 -28
  192. data/spec/command/env_spec.rb +0 -168
  193. data/spec/command/groups_spec.rb +0 -77
  194. data/spec/command/host_factories_spec.rb +0 -38
  195. data/spec/command/layers_spec.rb +0 -35
  196. data/spec/command/ldapsync_spec.rb +0 -28
  197. data/spec/command/rubydsl_spec.rb +0 -63
  198. data/spec/command/variable_expiration_spec.rb +0 -164
  199. data/spec/command/variables_spec.rb +0 -192
  200. data/spec/conjurize/script_spec.rb +0 -62
  201. data/spec/conjurize_spec.rb +0 -70
  202. data/spec/dsl/runner_spec.rb +0 -93
  203. data/spec/env_spec.rb +0 -214
data/test.sh CHANGED
@@ -1,36 +1,40 @@
1
1
  #!/bin/bash -ex
2
2
 
3
- # Constants
4
- RUBY_VERSION_DEFAULT="2.2.4"
3
+ : ${RUBY_VERSION=2.2.5}
5
4
 
6
- # Arguments
7
- RUBY_VERSION=${1-${RUBY_VERSION_DEFAULT}}
5
+ # My local RUBY_VERSION is set to ruby-#.#.# so this allows running locally.
6
+ RUBY_VERSION=$(cut -d '-' -f 2 <<< $RUBY_VERSION)
8
7
 
9
- # Script
8
+ main() {
9
+ build
10
10
 
11
- # Clones 'Dockerfile' and updates the Ruby version in FROM, returning the cloned file's path
12
- function dockerfile_path {
13
- echo "Setting Ruby version as ${RUBY_VERSION}" >&2
14
- cp "Dockerfile" "Dockerfile.${RUBY_VERSION}"
15
- if ! grep "Dockerfile.${RUBY_VERSION}" .git/info/exclude >/dev/null; then
16
- echo "Dockerfile.${RUBY_VERSION}*" >>.git/info/exclude
17
- fi
18
- sed -i -e "s/${RUBY_VERSION_DEFAULT}/${RUBY_VERSION}/g" Dockerfile.${RUBY_VERSION}
11
+ start_conjur
19
12
 
20
- echo "Dockerfile.${RUBY_VERSION}"
13
+ run_tests
21
14
  }
22
15
 
23
- rm -f Gemfile.lock # Needed for bundle to work right
16
+ # internal functions
24
17
 
25
- IMAGE_NAME="cli-ruby:${RUBY_VERSION}" # The tag is the version of Ruby tested against
18
+ build() {
19
+ # we can get rid of this once we upgrade to docker 17.06+
20
+ sed "s/\${RUBY_VERSION}/$RUBY_VERSION/" Dockerfile > Dockerfile.$RUBY_VERSION
26
21
 
27
- docker build -t ${IMAGE_NAME} -f $(dockerfile_path) .
22
+ docker-compose build --pull
23
+ }
24
+
25
+ start_conjur() {
26
+ docker-compose pull pg conjur
27
+
28
+ env CONJUR_DATA_KEY="$(docker-compose run -T --no-deps conjur data-key generate)" \
29
+ docker-compose up -d conjur
30
+ trap "docker-compose down" EXIT
31
+
32
+ docker-compose run test ci/wait_for_server.sh
33
+ }
34
+
35
+ run_tests() {
36
+ env CONJUR_AUTHN_API_KEY=$(docker-compose exec -T conjur rails r "print Credentials['cucumber:user:admin'].api_key") \
37
+ docker-compose run test "$@"
38
+ }
28
39
 
29
- docker run --rm \
30
- -v $PWD:/src \
31
- ${IMAGE_NAME} \
32
- bash -c '''
33
- bundle update
34
- bundle exec rake jenkins
35
- bundle exec rake build
36
- '''
40
+ main
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: conjur-cli
3
3
  version: !ruby/object:Gem::Version
4
- version: 5.6.6
4
+ version: 6.0.0.rc1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Rafal Rzepecki
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2018-04-09 00:00:00.000000000 Z
12
+ date: 2017-10-06 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: activesupport
@@ -17,34 +17,28 @@ dependencies:
17
17
  requirements:
18
18
  - - ">="
19
19
  - !ruby/object:Gem::Version
20
- version: '4.2'
21
- - - "<"
22
- - !ruby/object:Gem::Version
23
- version: '6'
20
+ version: '0'
24
21
  type: :runtime
25
22
  prerelease: false
26
23
  version_requirements: !ruby/object:Gem::Requirement
27
24
  requirements:
28
25
  - - ">="
29
26
  - !ruby/object:Gem::Version
30
- version: '4.2'
31
- - - "<"
32
- - !ruby/object:Gem::Version
33
- version: '6'
27
+ version: '0'
34
28
  - !ruby/object:Gem::Dependency
35
29
  name: conjur-api
36
30
  requirement: !ruby/object:Gem::Requirement
37
31
  requirements:
38
32
  - - "~>"
39
33
  - !ruby/object:Gem::Version
40
- version: '4.30'
34
+ version: 5.0.0.beta
41
35
  type: :runtime
42
36
  prerelease: false
43
37
  version_requirements: !ruby/object:Gem::Requirement
44
38
  requirements:
45
39
  - - "~>"
46
40
  - !ruby/object:Gem::Version
47
- version: '4.30'
41
+ version: 5.0.0.beta
48
42
  - !ruby/object:Gem::Dependency
49
43
  name: gli
50
44
  requirement: !ruby/object:Gem::Requirement
@@ -87,20 +81,6 @@ dependencies:
87
81
  - - "~>"
88
82
  - !ruby/object:Gem::Version
89
83
  version: '0.10'
90
- - !ruby/object:Gem::Dependency
91
- name: methadone
92
- requirement: !ruby/object:Gem::Requirement
93
- requirements:
94
- - - "~>"
95
- - !ruby/object:Gem::Version
96
- version: '1.9'
97
- type: :runtime
98
- prerelease: false
99
- version_requirements: !ruby/object:Gem::Requirement
100
- requirements:
101
- - - "~>"
102
- - !ruby/object:Gem::Version
103
- version: '1.9'
104
84
  - !ruby/object:Gem::Dependency
105
85
  name: deep_merge
106
86
  requirement: !ruby/object:Gem::Requirement
@@ -143,34 +123,6 @@ dependencies:
143
123
  - - "~>"
144
124
  - !ruby/object:Gem::Version
145
125
  version: '1.5'
146
- - !ruby/object:Gem::Dependency
147
- name: semantic
148
- requirement: !ruby/object:Gem::Requirement
149
- requirements:
150
- - - ">="
151
- - !ruby/object:Gem::Version
152
- version: 1.4.1
153
- type: :runtime
154
- prerelease: false
155
- version_requirements: !ruby/object:Gem::Requirement
156
- requirements:
157
- - - ">="
158
- - !ruby/object:Gem::Version
159
- version: 1.4.1
160
- - !ruby/object:Gem::Dependency
161
- name: cas_rest_client
162
- requirement: !ruby/object:Gem::Requirement
163
- requirements:
164
- - - "~>"
165
- - !ruby/object:Gem::Version
166
- version: '1.3'
167
- type: :runtime
168
- prerelease: false
169
- version_requirements: !ruby/object:Gem::Requirement
170
- requirements:
171
- - - "~>"
172
- - !ruby/object:Gem::Version
173
- version: '1.3'
174
126
  - !ruby/object:Gem::Dependency
175
127
  name: rspec
176
128
  requirement: !ruby/object:Gem::Requirement
@@ -311,6 +263,20 @@ dependencies:
311
263
  - - ">="
312
264
  - !ruby/object:Gem::Version
313
265
  version: '0'
266
+ - !ruby/object:Gem::Dependency
267
+ name: pry-byebug
268
+ requirement: !ruby/object:Gem::Requirement
269
+ requirements:
270
+ - - ">="
271
+ - !ruby/object:Gem::Version
272
+ version: '0'
273
+ type: :development
274
+ prerelease: false
275
+ version_requirements: !ruby/object:Gem::Requirement
276
+ requirements:
277
+ - - ">="
278
+ - !ruby/object:Gem::Version
279
+ version: '0'
314
280
  description:
315
281
  email:
316
282
  - rafal@conjur.net
@@ -318,13 +284,10 @@ email:
318
284
  executables:
319
285
  - _conjur
320
286
  - conjur
321
- - conjurize
322
- - jsonfield
323
287
  extensions: []
324
288
  extra_rdoc_files: []
325
289
  files:
326
290
  - ".dockerignore"
327
- - ".githooks/pre_commit/run_specs.rb"
328
291
  - ".gitignore"
329
292
  - ".kateproject"
330
293
  - ".overcommit.yml"
@@ -332,190 +295,108 @@ files:
332
295
  - ".rubocop.yml"
333
296
  - APPLIANCE_VERSION
334
297
  - CHANGELOG.md
335
- - Dockerfile
336
- - Dockerfile.fpm
337
- - Dockerfile.publish
338
- - Dockerfile.standalone
339
- - Dockerfile.validate-packaging
340
298
  - Gemfile
299
+ - Humanfile.md
341
300
  - Jenkinsfile
342
301
  - LICENSE.md
343
302
  - PUBLISH.md
344
303
  - README.md
345
304
  - Rakefile
346
- - VERSION
347
- - acceptance-features/audit/audit_event_send.feature
348
- - acceptance-features/audit/fetch.feature
349
- - acceptance-features/audit/send.feature
350
- - acceptance-features/authentication/authenticate.feature
351
- - acceptance-features/authentication/login.feature
352
- - acceptance-features/authentication/logout.feature
353
- - acceptance-features/authentication/whoami.feature
354
- - acceptance-features/authorization/resource/annotate.feature
355
- - acceptance-features/authorization/resource/check.feature
356
- - acceptance-features/authorization/resource/create.feature
357
- - acceptance-features/authorization/resource/deny.feature
358
- - acceptance-features/authorization/resource/exists.feature
359
- - acceptance-features/authorization/resource/give.feature
360
- - acceptance-features/authorization/resource/permit.feature
361
- - acceptance-features/authorization/resource/permitted_roles.feature
362
- - acceptance-features/authorization/resource/show.feature
363
- - acceptance-features/authorization/role/create.feature
364
- - acceptance-features/authorization/role/exists.feature
365
- - acceptance-features/authorization/role/grant_to.feature
366
- - acceptance-features/authorization/role/graph.feature
367
- - acceptance-features/authorization/role/members.feature
368
- - acceptance-features/authorization/role/memberships.feature
369
- - acceptance-features/bootstrap.feature
370
- - acceptance-features/conjurenv/check.feature
371
- - acceptance-features/conjurenv/run.feature
372
- - acceptance-features/conjurenv/template.feature
373
- - acceptance-features/directory/group/create.feature
374
- - acceptance-features/directory/group/retire.feature
375
- - acceptance-features/directory/host/create.feature
376
- - acceptance-features/directory/host/retire.feature
377
- - acceptance-features/directory/hostfactory/create.feature
378
- - acceptance-features/directory/hostfactory/tokens.feature
379
- - acceptance-features/directory/layer/create.feature
380
- - acceptance-features/directory/layer/hosts-add.feature
381
- - acceptance-features/directory/layer/hosts-remove.feature
382
- - acceptance-features/directory/layer/retire.feature
383
- - acceptance-features/directory/user/create.feature
384
- - acceptance-features/directory/user/retire.feature
385
- - acceptance-features/directory/user/update_password.feature
386
- - acceptance-features/directory/variable/create.feature
387
- - acceptance-features/directory/variable/retire.feature
388
- - acceptance-features/directory/variable/value.feature
389
- - acceptance-features/directory/variable/values-add.feature
390
- - acceptance-features/dsl/policy_owner.feature
391
- - acceptance-features/dsl/resource_owner.feature
392
- - acceptance-features/dsl/retire.feature
393
- - acceptance-features/global-privilege/elevate.feature
394
- - acceptance-features/global-privilege/reveal.privilege
395
- - acceptance-features/pubkeys/add.feature
396
- - acceptance-features/pubkeys/delete.feature
397
- - acceptance-features/pubkeys/names.feature
398
- - acceptance-features/pubkeys/show.feature
399
- - acceptance-features/step_definitions/cli_steps.rb
400
- - acceptance-features/step_definitions/graph_steps.rb
401
- - acceptance-features/step_definitions/http_steps.rb
402
- - acceptance-features/step_definitions/trusted_proxy_steps.rb
403
- - acceptance-features/step_definitions/user_steps.rb
404
- - acceptance-features/support/env.rb
405
- - acceptance-features/support/hooks.rb
406
- - acceptance-features/support/world.rb
407
- - acceptance-features/trusted_proxies.feature
408
305
  - bin/_conjur
409
306
  - bin/conjur
410
- - bin/conjurize
411
- - bin/jsonfield
412
307
  - build-deb.sh
413
- - build-standalone
308
+ - ci/cli-test.sh
414
309
  - ci/install.sh
415
310
  - ci/package.sh
416
311
  - ci/publish.sh
417
312
  - ci/secrets/publish.yml
418
313
  - ci/test.sh
314
+ - ci/wait_for_server.sh
419
315
  - conjur-cli.gemspec
420
316
  - debify.sh
421
- - deprecations.sh
422
- - features/conjurize.feature
423
- - features/dsl_context.feature
424
- - features/dsl_host_create.feature
425
- - features/dsl_ownership.feature
426
- - features/dsl_permission.feature
427
- - features/dsl_resource_create.feature
428
- - features/dsl_role_create.feature
429
- - features/dsl_user_create.feature
430
- - features/jsonfield.feature
431
- - features/role_graph.feature
432
- - features/step_definitions/conjurize_steps.rb
433
- - features/step_definitions/dsl_steps.rb
317
+ - dev/docker-compose.yml
318
+ - dev/start.sh
319
+ - dev/stop.sh
320
+ - docker-compose.yml
321
+ - features/authentication/authenticate.feature
322
+ - features/authentication/login.feature
323
+ - features/authentication/logout.feature
324
+ - features/authentication/whoami.feature
325
+ - features/authorization/resource/annotate.feature
326
+ - features/authorization/resource/check.feature
327
+ - features/authorization/resource/exists.feature
328
+ - features/authorization/resource/permitted_roles.feature
329
+ - features/authorization/resource/show.feature
330
+ - features/authorization/role/exists.feature
331
+ - features/authorization/role/members.feature
332
+ - features/authorization/role/memberships.feature
333
+ - features/conjurenv/check.feature
334
+ - features/conjurenv/run.feature
335
+ - features/conjurenv/template.feature
336
+ - features/directory/user/update_password.feature
337
+ - features/directory/variable/value.feature
338
+ - features/directory/variable/values-add.feature
339
+ - features/hostfactory/tokens.feature
340
+ - features/pubkeys/show.feature
341
+ - features/step_definitions/authn_steps.rb
342
+ - features/step_definitions/cli_steps.rb
343
+ - features/step_definitions/file_steps.rb
344
+ - features/step_definitions/flow_control_steps.rb
434
345
  - features/step_definitions/graph_steps.rb
435
- - features/support/conjur-test.pem
436
- - features/support/conjur.conf
346
+ - features/step_definitions/http_steps.rb
347
+ - features/step_definitions/overrides.rb
348
+ - features/step_definitions/policy_steps.rb
349
+ - features/step_definitions/trusted_proxy_steps.rb
350
+ - features/support/blank.yml
437
351
  - features/support/env.rb
438
352
  - features/support/hooks.rb
439
- - features/support/host.json
440
353
  - features/support/world.rb
354
+ - jenkins.sh
441
355
  - lib/conjur-cli.rb
442
356
  - lib/conjur.rb
443
357
  - lib/conjur/audit/follower.rb
358
+ - lib/conjur/authenticator.rb
444
359
  - lib/conjur/authn.rb
445
360
  - lib/conjur/cli.rb
446
361
  - lib/conjur/command.rb
447
- - lib/conjur/command/assets.rb
448
- - lib/conjur/command/audit.rb
449
362
  - lib/conjur/command/authn.rb
450
- - lib/conjur/command/bootstrap.rb
451
- - lib/conjur/command/dsl_command.rb
452
- - lib/conjur/command/elevate.rb
453
363
  - lib/conjur/command/env.rb
454
- - lib/conjur/command/field.rb
455
- - lib/conjur/command/groups.rb
456
364
  - lib/conjur/command/host_factories.rb
457
365
  - lib/conjur/command/hosts.rb
458
- - lib/conjur/command/ids.rb
459
366
  - lib/conjur/command/init.rb
460
- - lib/conjur/command/layers.rb
461
- - lib/conjur/command/ldapsync.rb
462
367
  - lib/conjur/command/plugin.rb
368
+ - lib/conjur/command/policies.rb
463
369
  - lib/conjur/command/pubkeys.rb
464
370
  - lib/conjur/command/resources.rb
465
371
  - lib/conjur/command/roles.rb
466
- - lib/conjur/command/rspec/audit_helpers.rb
467
372
  - lib/conjur/command/rspec/describe_command.rb
468
373
  - lib/conjur/command/rspec/helpers.rb
469
374
  - lib/conjur/command/rspec/mock_services.rb
470
375
  - lib/conjur/command/rspec/output_matchers.rb
471
- - lib/conjur/command/rubydsl.rb
472
- - lib/conjur/command/script.rb
473
- - lib/conjur/command/secrets.rb
474
- - lib/conjur/command/server.rb
475
376
  - lib/conjur/command/shellinit.rb
476
377
  - lib/conjur/command/users.rb
477
378
  - lib/conjur/command/variables.rb
478
379
  - lib/conjur/complete.rb
479
380
  - lib/conjur/config.rb
480
381
  - lib/conjur/conjurenv.rb
481
- - lib/conjur/conjurize.rb
482
- - lib/conjur/conjurize/script.rb
483
- - lib/conjur/dsl/runner.rb
484
382
  - lib/conjur/identifier_manipulation.rb
485
383
  - lib/conjur/version.rb
486
384
  - lib/patches/conjur/error.rb
487
385
  - lib/patches/gli.rb
488
386
  - profile.rb
489
- - publish-deb.sh
490
- - publish-rubygem.sh
491
- - push-image
387
+ - publish.sh
492
388
  - spec/authn_spec.rb
493
- - spec/command/assets_spec.rb
494
- - spec/command/audit_spec.rb
495
389
  - spec/command/authn_spec.rb
496
- - spec/command/elevate_spec.rb
497
- - spec/command/env_spec.rb
498
- - spec/command/groups_spec.rb
499
- - spec/command/host_factories_spec.rb
500
390
  - spec/command/hosts_spec.rb
501
391
  - spec/command/init_spec.rb
502
- - spec/command/layers_spec.rb
503
- - spec/command/ldapsync_spec.rb
504
392
  - spec/command/pubkeys_spec.rb
505
393
  - spec/command/resources_spec.rb
506
394
  - spec/command/roles_spec.rb
507
- - spec/command/rubydsl_spec.rb
508
395
  - spec/command/users_spec.rb
509
- - spec/command/variable_expiration_spec.rb
510
- - spec/command/variables_spec.rb
511
396
  - spec/command_spec.rb
512
397
  - spec/complete_spec.rb
513
398
  - spec/config_spec.rb
514
- - spec/conjurize/script_spec.rb
515
- - spec/conjurize_spec.rb
516
399
  - spec/conjurrc
517
- - spec/dsl/runner_spec.rb
518
- - spec/env_spec.rb
519
400
  - spec/spec_helper.rb
520
401
  - standalone.entrypoint
521
402
  - test.sh
@@ -534,60 +415,59 @@ required_ruby_version: !ruby/object:Gem::Requirement
534
415
  version: '0'
535
416
  required_rubygems_version: !ruby/object:Gem::Requirement
536
417
  requirements:
537
- - - ">="
418
+ - - ">"
538
419
  - !ruby/object:Gem::Version
539
- version: '0'
420
+ version: 1.3.1
540
421
  requirements: []
541
422
  rubyforge_project:
542
- rubygems_version: 2.7.6
423
+ rubygems_version: 2.6.13
543
424
  signing_key:
544
425
  specification_version: 4
545
426
  summary: Conjur command line interface
546
427
  test_files:
547
- - features/conjurize.feature
548
- - features/dsl_context.feature
549
- - features/dsl_host_create.feature
550
- - features/dsl_ownership.feature
551
- - features/dsl_permission.feature
552
- - features/dsl_resource_create.feature
553
- - features/dsl_role_create.feature
554
- - features/dsl_user_create.feature
555
- - features/jsonfield.feature
556
- - features/role_graph.feature
557
- - features/step_definitions/conjurize_steps.rb
558
- - features/step_definitions/dsl_steps.rb
428
+ - features/authentication/authenticate.feature
429
+ - features/authentication/login.feature
430
+ - features/authentication/logout.feature
431
+ - features/authentication/whoami.feature
432
+ - features/authorization/resource/annotate.feature
433
+ - features/authorization/resource/check.feature
434
+ - features/authorization/resource/exists.feature
435
+ - features/authorization/resource/permitted_roles.feature
436
+ - features/authorization/resource/show.feature
437
+ - features/authorization/role/exists.feature
438
+ - features/authorization/role/members.feature
439
+ - features/authorization/role/memberships.feature
440
+ - features/conjurenv/check.feature
441
+ - features/conjurenv/run.feature
442
+ - features/conjurenv/template.feature
443
+ - features/directory/user/update_password.feature
444
+ - features/directory/variable/value.feature
445
+ - features/directory/variable/values-add.feature
446
+ - features/hostfactory/tokens.feature
447
+ - features/pubkeys/show.feature
448
+ - features/step_definitions/authn_steps.rb
449
+ - features/step_definitions/cli_steps.rb
450
+ - features/step_definitions/file_steps.rb
451
+ - features/step_definitions/flow_control_steps.rb
559
452
  - features/step_definitions/graph_steps.rb
560
- - features/support/conjur-test.pem
561
- - features/support/conjur.conf
453
+ - features/step_definitions/http_steps.rb
454
+ - features/step_definitions/overrides.rb
455
+ - features/step_definitions/policy_steps.rb
456
+ - features/step_definitions/trusted_proxy_steps.rb
457
+ - features/support/blank.yml
562
458
  - features/support/env.rb
563
459
  - features/support/hooks.rb
564
- - features/support/host.json
565
460
  - features/support/world.rb
566
461
  - spec/authn_spec.rb
567
- - spec/command/assets_spec.rb
568
- - spec/command/audit_spec.rb
569
462
  - spec/command/authn_spec.rb
570
- - spec/command/elevate_spec.rb
571
- - spec/command/env_spec.rb
572
- - spec/command/groups_spec.rb
573
- - spec/command/host_factories_spec.rb
574
463
  - spec/command/hosts_spec.rb
575
464
  - spec/command/init_spec.rb
576
- - spec/command/layers_spec.rb
577
- - spec/command/ldapsync_spec.rb
578
465
  - spec/command/pubkeys_spec.rb
579
466
  - spec/command/resources_spec.rb
580
467
  - spec/command/roles_spec.rb
581
- - spec/command/rubydsl_spec.rb
582
468
  - spec/command/users_spec.rb
583
- - spec/command/variable_expiration_spec.rb
584
- - spec/command/variables_spec.rb
585
469
  - spec/command_spec.rb
586
470
  - spec/complete_spec.rb
587
471
  - spec/config_spec.rb
588
- - spec/conjurize/script_spec.rb
589
- - spec/conjurize_spec.rb
590
472
  - spec/conjurrc
591
- - spec/dsl/runner_spec.rb
592
- - spec/env_spec.rb
593
473
  - spec/spec_helper.rb