conjur-api 5.3.7 → 5.3.8.pre.319

Sign up to get free protection for your applications and to get access to all the features.
Files changed (143) hide show
  1. checksums.yaml +4 -4
  2. data/VERSION +1 -1
  3. metadata +23 -193
  4. data/.codeclimate.yml +0 -10
  5. data/.dockerignore +0 -1
  6. data/.github/CODEOWNERS +0 -10
  7. data/.gitignore +0 -32
  8. data/.gitleaks.toml +0 -219
  9. data/.overcommit.yml +0 -16
  10. data/.project +0 -18
  11. data/.rubocop.yml +0 -3
  12. data/.rubocop_settings.yml +0 -86
  13. data/.rubocop_todo.yml +0 -709
  14. data/.yardopts +0 -1
  15. data/CHANGELOG.md +0 -433
  16. data/CONTRIBUTING.md +0 -141
  17. data/Dockerfile +0 -16
  18. data/Gemfile +0 -7
  19. data/Jenkinsfile +0 -168
  20. data/LICENSE +0 -202
  21. data/README.md +0 -162
  22. data/Rakefile +0 -47
  23. data/SECURITY.md +0 -42
  24. data/bin/parse-changelog.sh +0 -12
  25. data/ci/configure_v4.sh +0 -12
  26. data/ci/configure_v5.sh +0 -14
  27. data/ci/submit-coverage +0 -36
  28. data/conjur-api.gemspec +0 -40
  29. data/dev/Dockerfile.dev +0 -12
  30. data/dev/docker-compose.yml +0 -56
  31. data/dev/start +0 -22
  32. data/dev/stop +0 -5
  33. data/docker-compose.yml +0 -76
  34. data/example/demo_v4.rb +0 -49
  35. data/example/demo_v5.rb +0 -57
  36. data/features/authenticators.feature +0 -33
  37. data/features/authn_local.feature +0 -32
  38. data/features/exists.feature +0 -37
  39. data/features/group.feature +0 -11
  40. data/features/host.feature +0 -50
  41. data/features/host_factory_create_host.feature +0 -28
  42. data/features/host_factory_token.feature +0 -63
  43. data/features/load_policy.feature +0 -61
  44. data/features/members.feature +0 -51
  45. data/features/new_api.feature +0 -36
  46. data/features/permitted.feature +0 -70
  47. data/features/permitted_roles.feature +0 -30
  48. data/features/public_keys.feature +0 -11
  49. data/features/resource_fields.feature +0 -53
  50. data/features/role_fields.feature +0 -15
  51. data/features/rotate_api_key.feature +0 -13
  52. data/features/step_definitions/api_steps.rb +0 -18
  53. data/features/step_definitions/policy_steps.rb +0 -75
  54. data/features/step_definitions/result_steps.rb +0 -7
  55. data/features/support/env.rb +0 -18
  56. data/features/support/hooks.rb +0 -3
  57. data/features/support/world.rb +0 -12
  58. data/features/update_password.feature +0 -14
  59. data/features/user.feature +0 -58
  60. data/features/variable_fields.feature +0 -20
  61. data/features/variable_value.feature +0 -60
  62. data/features_v4/authn_local.feature +0 -27
  63. data/features_v4/exists.feature +0 -29
  64. data/features_v4/host.feature +0 -18
  65. data/features_v4/host_factory_token.feature +0 -49
  66. data/features_v4/members.feature +0 -39
  67. data/features_v4/permitted.feature +0 -15
  68. data/features_v4/permitted_roles.feature +0 -8
  69. data/features_v4/resource_fields.feature +0 -47
  70. data/features_v4/rotate_api_key.feature +0 -13
  71. data/features_v4/step_definitions/api_steps.rb +0 -17
  72. data/features_v4/step_definitions/result_steps.rb +0 -3
  73. data/features_v4/support/env.rb +0 -23
  74. data/features_v4/support/policy.yml +0 -34
  75. data/features_v4/support/world.rb +0 -12
  76. data/features_v4/variable_fields.feature +0 -11
  77. data/features_v4/variable_value.feature +0 -54
  78. data/lib/conjur/acts_as_resource.rb +0 -123
  79. data/lib/conjur/acts_as_role.rb +0 -142
  80. data/lib/conjur/acts_as_rolsource.rb +0 -32
  81. data/lib/conjur/acts_as_user.rb +0 -68
  82. data/lib/conjur/api/authenticators.rb +0 -35
  83. data/lib/conjur/api/authn.rb +0 -125
  84. data/lib/conjur/api/host_factories.rb +0 -71
  85. data/lib/conjur/api/ldap_sync.rb +0 -38
  86. data/lib/conjur/api/policies.rb +0 -56
  87. data/lib/conjur/api/pubkeys.rb +0 -53
  88. data/lib/conjur/api/resources.rb +0 -109
  89. data/lib/conjur/api/roles.rb +0 -98
  90. data/lib/conjur/api/router/v4.rb +0 -206
  91. data/lib/conjur/api/router/v5.rb +0 -248
  92. data/lib/conjur/api/variables.rb +0 -59
  93. data/lib/conjur/api.rb +0 -105
  94. data/lib/conjur/base.rb +0 -355
  95. data/lib/conjur/base_object.rb +0 -57
  96. data/lib/conjur/build_object.rb +0 -47
  97. data/lib/conjur/cache.rb +0 -26
  98. data/lib/conjur/cert_utils.rb +0 -63
  99. data/lib/conjur/cidr.rb +0 -71
  100. data/lib/conjur/configuration.rb +0 -460
  101. data/lib/conjur/escape.rb +0 -129
  102. data/lib/conjur/exceptions.rb +0 -4
  103. data/lib/conjur/group.rb +0 -41
  104. data/lib/conjur/has_attributes.rb +0 -98
  105. data/lib/conjur/host.rb +0 -27
  106. data/lib/conjur/host_factory.rb +0 -75
  107. data/lib/conjur/host_factory_token.rb +0 -78
  108. data/lib/conjur/id.rb +0 -71
  109. data/lib/conjur/layer.rb +0 -9
  110. data/lib/conjur/log.rb +0 -72
  111. data/lib/conjur/log_source.rb +0 -60
  112. data/lib/conjur/policy.rb +0 -34
  113. data/lib/conjur/policy_load_result.rb +0 -61
  114. data/lib/conjur/query_string.rb +0 -12
  115. data/lib/conjur/resource.rb +0 -29
  116. data/lib/conjur/role.rb +0 -29
  117. data/lib/conjur/role_grant.rb +0 -85
  118. data/lib/conjur/routing.rb +0 -29
  119. data/lib/conjur/user.rb +0 -40
  120. data/lib/conjur/variable.rb +0 -208
  121. data/lib/conjur/webservice.rb +0 -30
  122. data/lib/conjur-api/version.rb +0 -24
  123. data/lib/conjur-api.rb +0 -2
  124. data/publish.sh +0 -5
  125. data/spec/api/host_factories_spec.rb +0 -34
  126. data/spec/api_spec.rb +0 -254
  127. data/spec/base_object_spec.rb +0 -13
  128. data/spec/cert_utils_spec.rb +0 -173
  129. data/spec/cidr_spec.rb +0 -34
  130. data/spec/configuration_spec.rb +0 -330
  131. data/spec/has_attributes_spec.rb +0 -63
  132. data/spec/helpers/errors_matcher.rb +0 -34
  133. data/spec/helpers/request_helpers.rb +0 -10
  134. data/spec/id_spec.rb +0 -29
  135. data/spec/ldap_sync_spec.rb +0 -21
  136. data/spec/log_source_spec.rb +0 -13
  137. data/spec/log_spec.rb +0 -42
  138. data/spec/roles_spec.rb +0 -24
  139. data/spec/spec_helper.rb +0 -113
  140. data/spec/ssl_spec.rb +0 -109
  141. data/spec/uri_escape_spec.rb +0 -21
  142. data/test.sh +0 -73
  143. data/tmp/.keep +0 -0
data/CHANGELOG.md DELETED
@@ -1,433 +0,0 @@
1
- # Changelog
2
- All notable changes to this project will be documented in this file.
3
-
4
- The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/)
5
- and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.html).
6
-
7
- ## Unreleased
8
- ### Changed
9
- - Nothing should go in this section, please add to the latest unreleased version
10
- (and update the corresponding date), or add a new version.
11
-
12
- ## [5.3.7] - 2021-12-28
13
-
14
- ### Changed
15
- - Change addressable gem dependency.
16
- [cyberark/conjur-api-ruby#199](https://github.com/cyberark/conjur-api-ruby/pull/199)
17
- - Update to use automated release process
18
-
19
- ## [5.3.6] - 2021-12-09
20
-
21
- ### Changed
22
- - Support ruby-3.0.2.
23
- [cyberark/conjur-api-ruby#197](https://github.com/cyberark/conjur-api-ruby/pull/197)
24
-
25
- ## [5.3.5] - 2021-05-04
26
-
27
- ### Added
28
- - Add `rest_client_options` option to `Conjur.configuration`. This allows users to
29
- configure the RestClient instance used by Conjur API to communicate with the Conjur
30
- server.
31
- [cyberark/conjur-api-ruby#188](https://github.com/cyberark/conjur-api-ruby/issues/188)
32
-
33
- ### Changed
34
- - Replace monkey patching `RestClient::Request` with defaults on `Conjur.configuration.rest_client_options`
35
- in order to limit the scope of the default `:ssl_cert_store` option only to inside
36
- Conjur API.
37
- [cyberark/conjur-api-ruby#188](https://github.com/cyberark/conjur-api-ruby/issues/188)
38
-
39
- ## [5.3.4] - 2020-10-29
40
-
41
- ### Changed
42
- - When rotating the currently logged in user's/host's API key, we now explictily
43
- prevent use of `resource({own_id}).rotate_api_key` for that action as the
44
- `Conjur::API.rotate_api_key` should be used instead for that. This change is a
45
- downstream enforcement of the stricter key rotation requirements on the server
46
- covered by [this](https://github.com/cyberark/conjur/security/advisories/GHSA-qhjf-g9gm-64jq)
47
- security bulletin.
48
- [cyberark/conjur-api-ruby#181](https://github.com/cyberark/conjur-api-ruby/issues/181)
49
-
50
- ## [5.3.3] - 2020-08-18
51
- ### Changed
52
- - Release process is updated to ensure that the published Ruby Gem matches a tag in this repository,
53
- so that consumers of this gem can always reference the correct source code included in any given version.
54
- [cyberark/conjur-api-ruby#173](https://github.com/cyberark/conjur-api-ruby/issues/173)
55
-
56
- ## 5.3.2 - 2018-09-24
57
- ### Added
58
- - Add `Conjur::API.authenticator_list`, `Conjur::API.authenticator_enable`, and
59
- ``Conjur::API.authenticator_disable` to inspect and manage authenticator status.
60
-
61
- ## [5.3.1] - 2018-09-24
62
- ### Added
63
- - Updates URI path parameter escaping to consistently encode resource ids
64
-
65
- ## [5.3.0] - 2018-06-19
66
- ### Added
67
- - Add `Conjur::API.ldap_sync_policy` for fetching the LDAP sync policy.
68
-
69
- ## 5.2.1 - 0000-00-00
70
- ### Fixed
71
- - Fix `Conjur::BuildObject#build_object` so it only tries to create
72
- instances of objects for classes that inherit from BaseObject.
73
-
74
- ### Added
75
- - require `openssl` before using it.
76
-
77
- ## 5.2.0 - 0000-00-00
78
- ### Added
79
- - Adds support for the Role endpoint for searching and paging Role Members
80
- - Adds additional escaping to URL parameters on requests to handle special characters (e.g. spaces)
81
-
82
- ## [5.1.0] - 2017-12-19
83
- ### Added
84
- - Introduces backwards compatibility with Conjur 4.x for most API methods.
85
- - Adds the configuration setting `version`, which is auto-populated from the environment variable `CONJUR_VERSION`.
86
- - Adds support for the `authn-local` service, which can be used when the API client runs on the server.
87
-
88
- ## [5.0.0] - 2017-09-19
89
- ### Added
90
- - Provides compatibility with [cyberark/conjur](https://github.com/cyberark/conjur), Conjur 5 CE.
91
-
92
- ### Changed
93
- - Changed license to Apache 2.0
94
- - *5.0.0-beta.4*
95
- - - Support for batch secret retrieval.
96
- - *v5.0.0-beta.3*
97
- - - Removed hard dependency on older version of `rest-client` gem.
98
- - *v5.0.0-beta.1*
99
- - - Migrated to be compatible with Conjur 5 API.
100
-
101
- ## [4.31.0] - 2017-03-27
102
- ### Added
103
- - Internal refactor to improve performance and facilitate caching.
104
-
105
- ## [4.30.0] - 2017-03-07
106
- ### Added
107
- - The following enhancements require Conjur server 4.9.1.0 or later:
108
- - Supports filter and pagination of role-listing methods.
109
- - Supports non-recursive retrieval of role memberships.
110
- - Supports the +role+ field on `Conjur::RoleGrant`.
111
- - On older server versions, the new options will be ignored by the server.
112
-
113
- ## [4.29.2] - 2017-02-22
114
- ### Added
115
- - `Conjur::API#resources` now supports `:owner` to retrieve all resources owned (directly or indirectly) by the indicated role. This capability has always been provided by the service, but was not exposed by the Ruby API.
116
-
117
- ## 4.29.1 - 0000-00-00
118
- ### Added
119
- - `Conjur::API#audit` now supports `:has_annotation` to retrieve audit events for resources annotated with the given name.
120
-
121
- ## [4.29.0] - 2017-02-01
122
- ### Added
123
- - Add `Conjur::API#new_from_token_file` to create an API instance from a file which contains an access token, which should be periodically updated by another process.
124
-
125
- ## 4.28.2 - 0000-00-00
126
- ### Added
127
- - Make sure certificate file is readable before trying to use it.
128
-
129
- ## [4.28.1] - 2016-11-30
130
- ### Added
131
- - `Conjur::API#ldap_sync_policy` now returns log events generated when
132
- showing a policy.
133
-
134
- ## [4.28.0] - 2016-11-16
135
- ### Added
136
- - Add `Conjur::API#ldap_sync_policy` to fetch the policy to use to
137
- bring Conjur and the LDAP server into sync.
138
-
139
- ### Removed
140
- - Remove `Conjur::API#ldap_sync_now` and `Conjur::API#ldap_sync_jobs`
141
-
142
- ## 4.27.0 - 0000-00-00
143
- ### Added
144
- - Add `Conjur::API#resources_permitted?"
145
- - `Conjur::API#ldap_sync_now` now accepts an options Hash which will
146
- be passed on to the `/sync` entrypoint. The old argument list is
147
- maintained for backwards compatibility.
148
- - `Conjur::Api#resources` now supports `:has_annotation` for
149
- retrieving Conjur resources that have an annotation with the given
150
- name.
151
-
152
- ## [4.26.0] - 2016-07-01
153
- ### Added
154
- - expose admin_option in the role graph (only populated by Conjur 4.8 and later)
155
-
156
- ## [4.25.1] - 2016-06-22
157
- ### Fixed
158
- - Fix token refresh when using `with_privilege`, `with_audit_roles`,
159
- and `with_audit_resources`.
160
-
161
- ## [4.25.0] - 2016-06-17
162
- ### Added
163
- - Add a workaround for a bug in Conjur <4.7 where long-running operations
164
- (such as policy load) would sometimes fail with 404 after five minutes.
165
-
166
- ## [4.24.1] - 2016-06-10
167
- ### Changed
168
- - Clarify the handling of the dry-run argument to `Conjur::API#ldap_sync_now`.
169
-
170
- ## [4.24.0] - 2016-05-24
171
- ### Added
172
- - Add `Conjur::API#ldap_sync_now` (requires Conjur 4.7 or later).
173
- - Don't trust the system clock and don't check token validity. Rely on the server to verify the token instead, and only try to refresh if enough time has passed locally (using monotonic clock for reference where available).
174
- - Don't try refreshing the token if the required credentials are not available.
175
-
176
- ## [4.23.0] - 2016-04-22
177
- ### Added
178
- - Add `with_audit_roles` and `with_audit_resources` to `Conjur::API`
179
- to add additional roles and resources to audit records generated by
180
- requests
181
-
182
- ### Fixed
183
- - Fix encoding of spaces in some urls.
184
-
185
- ## [4.22.1] - 2016-04-13
186
- ### Added
187
- - `bootstrap` creates host and webservice `conjur/expiration`.
188
-
189
- ## [4.22.0] - 2016-03-08
190
- ### Added
191
- - Add `show_expired` argument to `Conjur::Variable#value` to allow
192
- retrieval of values of expired variables.
193
- - Properly assign ownership of bootstrap-created webservice resources to the `security_admin` group.
194
-
195
- ## [4.21.0] - 2016-03-02
196
- ### Added
197
- - Add extensible Bootstrap commands as API methods.
198
- - `bootstrap` grants `reveal` and `elevate` to the `security_admin` group.
199
- - `bootstrap` creates `webservice:authn-tv`.
200
- - `bootstrap` creates an `auditors` group and gives `reveal` privilege to it.
201
-
202
- ## [4.20.1] - 2016-02-18
203
- ### Fixed
204
- - BUGFIX: Better handling for unicode and special characters in user ids.
205
-
206
- ## [4.20.0] - 2016-02-05
207
- ### Added
208
- - Add support for Host Factory functionality (replaces conjur-asset-host-factory plugin).
209
- - Add support for sending audit events (replaces conjur-asset-audit-send plugin).
210
- - Add support for variable expiration. Variable expiration is available in version 4.6 of the Conjur server.
211
- - Add `Conjur::API` methods to querying service versions : `service_version`, `service_names`, `appliance_info`.
212
- - Add `Conjur::API` method for querying server health: `appliance_health(remote_host=nil)`
213
- - Support ISO8601 duration strings as arguments in variable expiration methods.
214
- - Add support for CIDR restrictions
215
-
216
- ## 4.19.1 - 0000-00-00
217
- ### Fixed
218
- - BUGFIX: Allow Configuration to parse several certs in a string
219
-
220
- ## [4.19.0] - 2015-08-28
221
- ### Changed
222
- - Rename `sudo` to `elevate` throughout the spec and docstrings. This is an incompatible change, but it occurs before the Conjur 4.5 server that implements `elevate` is released.
223
-
224
- ## 4.18.0 - 0000-00-00
225
- ### Added
226
- - Add method `global_privilege_permitted?` to facilitate working with Conjur 4.5 global privileges.
227
-
228
- ## 4.17.0 - 0000-00-00
229
- ### Added
230
- - Add handling for `X-Forwarded-For` and `X-Conjur-Privilege` ("conjur sudo")
231
- - Transform embedded whitespace in certificate string into newlines
232
-
233
- ## [4.16.0] - 2015-04-28
234
- ### Added
235
- - Add ssl_certificate option to allow certs to be provided as strings (helpful in heroku)
236
- - Add `Conjur::Configuration#apply_cert_config!` method to add certs from `#cert_file` and `#ssl_certificate` to the default cert store.
237
-
238
- ## [4.15.0] - 2015-04-23
239
- ### Added
240
- - Extensive documentation improvements
241
- - A few additional methoods, for example `Conjur::API#public_key_names`.
242
-
243
- ## [4.14.0] - 2015-03-26
244
- ### Added
245
- - Bump rest-client version, remove the troublesome mime-types patch
246
- - Make sure SSL certificate verification is enabled
247
- - Bugfix: Don't escape ids twice when listing records
248
- - Add a stub so that require 'conjur-api' works
249
- - Lots of doc updates
250
-
251
- ## [4.13.0] - 2015-02-11
252
- ### Added
253
- - Add GID handling utilities
254
-
255
- ## [4.12.0] - 2015-01-27
256
- ### Added
257
- - Add the API method `role_graph` for retrieving role relationships in bulk
258
-
259
- ## 4.11.2 - 0000-00-00
260
- ### Added
261
- - Patch rest-client's patch of mime-types to support lazy loading
262
-
263
- ### Removed
264
- - Remove 'wrong' dependency for faster loading
265
-
266
- ## 4.11.0 - 0000-00-00
267
- ### Fixed
268
- - Fixed bug retrieving `Variable#version_count`
269
- - Include CONJUR_ENV in `Conjur.configuration`
270
-
271
- ### Added
272
- - Add `cert_file` option to `Conjur.configuration`
273
-
274
- ## [4.10.2] - 2014-09-22
275
- ### Added
276
- - Authn token is refetched before the expiration
277
- - Support for configuration `sticky` option is discarded
278
- - Resource#exists? refactored -- no overloading, code from exists.rb used
279
- - Tests use Rspec v3 and reset configuration between test cases
280
-
281
- ## [4.10.1] - 2014-09-04
282
- ### Added
283
- - Resource#exists? returns true if access to resource is forbidden
284
- - Thread-local configuration for working with different endpoints
285
-
286
- ## [4.10.0] - 2014-08-15
287
- ### Added
288
- - User#update
289
- - Added Users#find_users
290
-
291
- ## [4.9.2] - 2014-08-05
292
- ### Changed
293
- - Always construct Heroku service names that are valid Heroku names
294
- - authz resource#exists? anticipates a result of 403 Forbidden, and interprets this as true
295
- - Provide a method to detect whether each configuration setting has been explicitly set via the environment
296
-
297
- ## [4.9.1] - 2014-07-17
298
- ### Changed
299
- - Require rest-client gem version 1.6.7, as version 1.7 has bugs in SSL certificate trust options
300
-
301
- ## [4.9.0] - 2014-06-06
302
- ### Changed
303
- - Layer and Pubkeys are now part of the core API
304
-
305
- ## [4.8.0] - 2014-05-23
306
- ### Added
307
- - Variable#variable_values, batch fetching of variables to support the new conjur env command
308
-
309
- ## [4.7.2] - 2014-03-18
310
-
311
- ## [4.7.1] - 2014-03-13
312
-
313
- ## [4.6.1] - 2014-02-28
314
-
315
- ## [4.6.0] - 2014-01-11
316
-
317
- ## [4.4.1] - 2013-12-23
318
-
319
- ## [4.4.0] - 2013-12-23
320
-
321
- ## [4.3.0] - 2013-11-19
322
-
323
- ## [4.1.1] - 2013-10-24
324
-
325
- ## [2.7.1] - 2013-10-24
326
-
327
- ## [4.0.0] - 2013-10-17
328
-
329
- ## [2.5.1] - 2013-07-26
330
-
331
- ## [2.4.0] - 2013-06-05
332
-
333
- ## [2.3.1] - 2013-06-03
334
-
335
- ## [2.2.3] - 2013-05-31
336
-
337
- ## [2.2.2] - 2013-05-23
338
-
339
- ## [2.2.1] - 2013-05-20
340
-
341
- ## [2.2.0] - 2013-05-16
342
-
343
- ## [2.1.8] - 2013-05-15
344
-
345
- ## [2.1.7] - 2013-05-10
346
-
347
- ## [2.1.6] - 2013-04-30
348
-
349
- ## [2.1.5] - 2013-04-24
350
-
351
- ## [2.1.4] - 2013-04-24
352
-
353
- ## [2.1.3] - 2013-04-12
354
-
355
- ## [2.1.2] - 2013-04-12
356
-
357
- ## [2.1.1] - 2013-03-29
358
-
359
- ## [2.1.0] - 2013-03-25
360
-
361
- ## [2.0.1] - 2013-03-14
362
-
363
- ## [2.0.0] - 2013-13-12
364
-
365
- [Unreleased]: https://github.com/cyberark/conjur-api-ruby/compare/v5.3.6...HEAD
366
- [5.3.7]: https://github.com/cyberark/conjur-api-ruby/compare/v5.3.6...v5.3.7
367
- [5.3.6]: https://github.com/cyberark/conjur-api-ruby/compare/v5.3.5...v5.3.6
368
- [5.3.5]: https://github.com/cyberark/conjur-api-ruby/compare/v5.3.4...v5.3.5
369
- [5.3.4]: https://github.com/cyberark/conjur-api-ruby/compare/v5.3.3...v5.3.4
370
- [5.3.3]: https://github.com/cyberark/conjur-api-ruby/compare/v5.3.1...v5.3.3
371
- [5.3.1]: https://github.com/cyberark/conjur-api-ruby/compare/v5.3.0...v5.3.1
372
- [5.3.0]: https://github.com/cyberark/conjur-api-ruby/compare/v5.1.0...v5.3.0
373
- [5.1.0]: https://github.com/cyberark/conjur-api-ruby/compare/v5.0.0...v5.1.0
374
- [5.0.0]: https://github.com/cyberark/conjur-api-ruby/compare/v4.31.0...v5.0.0
375
- [4.31.0]: https://github.com/cyberark/conjur-api-ruby/compare/v4.30.0...v4.31.0
376
- [4.30.0]: https://github.com/cyberark/conjur-api-ruby/compare/v4.29.2...v4.30.0
377
- [4.29.2]: https://github.com/cyberark/conjur-api-ruby/compare/v4.29.0...v4.29.2
378
- [4.29.0]: https://github.com/cyberark/conjur-api-ruby/compare/v4.28.1...v4.29.0
379
- [4.28.1]: https://github.com/cyberark/conjur-api-ruby/compare/v4.28.0...v4.28.1
380
- [4.28.0]: https://github.com/cyberark/conjur-api-ruby/compare/v4.26.0...v4.28.0
381
- [4.26.0]: https://github.com/cyberark/conjur-api-ruby/compare/v4.25.1...v4.26.0
382
- [4.25.1]: https://github.com/cyberark/conjur-api-ruby/compare/v4.25.0...v4.25.1
383
- [4.25.0]: https://github.com/cyberark/conjur-api-ruby/compare/v4.24.1...v4.25.0
384
- [4.24.1]: https://github.com/cyberark/conjur-api-ruby/compare/v4.24.0...v4.24.1
385
- [4.24.0]: https://github.com/cyberark/conjur-api-ruby/compare/v4.23.0...v4.24.0
386
- [4.23.0]: https://github.com/cyberark/conjur-api-ruby/compare/v4.22.1...v4.23.0
387
- [4.22.1]: https://github.com/cyberark/conjur-api-ruby/compare/v4.22.0...v4.22.1
388
- [4.22.0]: https://github.com/cyberark/conjur-api-ruby/compare/v4.21.0...v4.22.0
389
- [4.21.0]: https://github.com/cyberark/conjur-api-ruby/compare/v4.20.1...v4.21.0
390
- [4.20.1]: https://github.com/cyberark/conjur-api-ruby/compare/v4.20.0...v4.20.1
391
- [4.20.0]: https://github.com/cyberark/conjur-api-ruby/compare/v4.19.1...v4.20.0
392
- [4.19.1]: https://github.com/cyberark/conjur-api-ruby/compare/v4.19.0...v4.19.1
393
- [4.19.0]: https://github.com/cyberark/conjur-api-ruby/compare/v4.16.0...v4.19.0
394
- [4.16.0]: https://github.com/cyberark/conjur-api-ruby/compare/v4.15.0...v4.16.0
395
- [4.15.0]: https://github.com/cyberark/conjur-api-ruby/compare/v4.14.0...v4.15.0
396
- [4.14.0]: https://github.com/cyberark/conjur-api-ruby/compare/v4.13.0...v4.14.0
397
- [4.13.0]: https://github.com/cyberark/conjur-api-ruby/compare/v4.12.0...v4.13.0
398
- [4.12.0]: https://github.com/cyberark/conjur-api-ruby/compare/v4.10.2...v4.12.0
399
- [4.10.2]: https://github.com/cyberark/conjur-api-ruby/compare/v4.10.1...v4.10.2
400
- [4.10.1]: https://github.com/cyberark/conjur-api-ruby/compare/v4.10.0...v4.10.1
401
- [4.10.0]: https://github.com/cyberark/conjur-api-ruby/compare/v4.9.2...v4.10.0
402
- [4.9.2]: https://github.com/cyberark/conjur-api-ruby/compare/v4.9.1...v4.9.2
403
- [4.9.1]: https://github.com/cyberark/conjur-api-ruby/compare/v4.9.0...v4.9.1
404
- [4.9.0]: https://github.com/cyberark/conjur-api-ruby/compare/v4.8.0...v4.9.0
405
- [4.8.0]: https://github.com/cyberark/conjur-api-ruby/compare/v4.7.2...v4.8.0
406
- [4.7.2]: https://github.com/cyberark/conjur-api-ruby/compare/v4.7.1...v4.7.2
407
- [4.7.1]: https://github.com/cyberark/conjur-api-ruby/compare/v4.6.1...v4.7.1
408
- [4.6.1]: https://github.com/cyberark/conjur-api-ruby/compare/v4.6.0...v4.6.1
409
- [4.6.0]: https://github.com/cyberark/conjur-api-ruby/compare/v4.4.1...v4.6.0
410
- [4.4.1]: https://github.com/cyberark/conjur-api-ruby/compare/v4.4.0...v4.4.1
411
- [4.4.0]: https://github.com/cyberark/conjur-api-ruby/compare/v4.3.0...v4.4.0
412
- [4.3.0]: https://github.com/cyberark/conjur-api-ruby/compare/v4.1.1...v4.3.0
413
- [4.1.1]: https://github.com/cyberark/conjur-api-ruby/compare/v2.7.1...v4.1.1
414
- [2.7.1]: https://github.com/cyberark/conjur-api-ruby/compare/v4.0.0...v2.7.1
415
- [4.0.0]: https://github.com/cyberark/conjur-api-ruby/compare/v2.5.1...v4.0.0
416
- [2.5.1]: https://github.com/cyberark/conjur-api-ruby/compare/v2.4.0...v2.5.1
417
- [2.4.0]: https://github.com/cyberark/conjur-api-ruby/compare/v2.3.1...v2.4.0
418
- [2.3.1]: https://github.com/cyberark/conjur-api-ruby/compare/v2.2.3...v2.3.1
419
- [2.2.3]: https://github.com/cyberark/conjur-api-ruby/compare/v2.2.2...v2.2.3
420
- [2.2.2]: https://github.com/cyberark/conjur-api-ruby/compare/v2.2.1...v2.2.2
421
- [2.2.1]: https://github.com/cyberark/conjur-api-ruby/compare/v2.2.0...v2.2.1
422
- [2.2.0]: https://github.com/cyberark/conjur-api-ruby/compare/v2.1.8...v2.2.0
423
- [2.1.8]: https://github.com/cyberark/conjur-api-ruby/compare/v2.1.7...v2.1.8
424
- [2.1.7]: https://github.com/cyberark/conjur-api-ruby/compare/v2.1.6...v2.1.7
425
- [2.1.6]: https://github.com/cyberark/conjur-api-ruby/compare/v2.1.5...v2.1.6
426
- [2.1.5]: https://github.com/cyberark/conjur-api-ruby/compare/v2.1.4...v2.1.5
427
- [2.1.4]: https://github.com/cyberark/conjur-api-ruby/compare/v2.1.3...v2.1.4
428
- [2.1.3]: https://github.com/cyberark/conjur-api-ruby/compare/v2.1.2...v2.1.3
429
- [2.1.2]: https://github.com/cyberark/conjur-api-ruby/compare/v2.1.1...v2.1.2
430
- [2.1.1]: https://github.com/cyberark/conjur-api-ruby/compare/v2.1.0...v2.1.1
431
- [2.1.0]: https://github.com/cyberark/conjur-api-ruby/compare/v2.0.1...v2.1.0
432
- [2.0.1]: https://github.com/cyberark/conjur-api-ruby/compare/v2.0.0...v2.0.1
433
- [2.0.0]: https://github.com/cyberark/conjur-api-ruby/releases/tag/v2.0.0
data/CONTRIBUTING.md DELETED
@@ -1,141 +0,0 @@
1
- # Contributing
2
-
3
- For general contribution and community guidelines, please see the [community repo](https://github.com/cyberark/community).
4
-
5
- ## Contributing
6
-
7
- 1. [Fork the project](https://help.github.com/en/github/getting-started-with-github/fork-a-repo)
8
- 2. [Clone your fork](https://help.github.com/en/github/creating-cloning-and-archiving-repositories/cloning-a-repository)
9
- 3. Make local changes to your fork by editing files
10
- 3. [Commit your changes](https://help.github.com/en/github/managing-files-in-a-repository/adding-a-file-to-a-repository-using-the-command-line)
11
- 4. [Push your local changes to the remote server](https://help.github.com/en/github/using-git/pushing-commits-to-a-remote-repository)
12
- 5. [Create new Pull Request](https://help.github.com/en/github/collaborating-with-issues-and-pull-requests/creating-a-pull-request-from-a-fork)
13
-
14
- From here your pull request will be reviewed and once you've responded to all
15
- feedback it will be merged into the project. Congratulations, you're a
16
- contributor!
17
-
18
-
19
- ## Development (V5)
20
- To develop and run tests against Conjur V5, use the `start` and `stop` scripts in the `dev` folder. The start script brings up an open source Conjur (and Postgres database), CLI container, and a "work" container, with the gem code mounted into the working directory.
21
-
22
- ### Starting a Shell
23
- To begin:
24
- ```sh
25
- $ cd dev
26
- $ ./start
27
- ...
28
- root@9df0ac10ada2:/src/conjur-api#
29
- ```
30
- You'll be dropped into development container upon completion. From there, install the development gems:
31
-
32
- ```sh
33
- root@9df0ac10ada2:/src/conjur-api# bundle
34
- ```
35
-
36
- #### Running Tests
37
- *NOTE*: There are some existing challenges around running tests from the development console. For now, run tests
38
- by using the `./test.sh` script utilized for Jenkins Pipelines.
39
-
40
- <!--
41
- Commented out until I can get tests running locally
42
-
43
- Tests can be run with:
44
- ```sh
45
- root@9df0ac10ada2:/src/conjur-api# bundle exec cucumber features
46
- root@9df0ac10ada2:/src/conjur-api# bundle exec rspec
47
- ```
48
- -->
49
-
50
- #### Stopping & Environment Cleanup
51
- Once you're done, exit the shell, and stop the containers:
52
-
53
- ```sh
54
- root@9df0ac10ada2:/src/conjur-api# exit
55
- $ ./stop
56
- ```
57
-
58
- ## Development (V4)
59
-
60
- The file `docker-compose.yml` is a self-contained development environment for the project.
61
-
62
- ### Starting
63
-
64
- To bring it up, run:
65
-
66
- ```sh-session
67
- $ docker-compose build
68
- $ docker-compose up -d pg conjur_4 conjur_5
69
- ```
70
-
71
- Then configure the v4 and v5 servers:
72
-
73
- ```sh-session
74
- $ ./ci/configure_v4.sh
75
- ...
76
- $ ./ci/configure_v5.sh
77
- ...
78
- ```
79
-
80
- ### Using
81
-
82
- Obtain the API key for the v5 admin user:
83
-
84
- ```
85
- $ docker-compose exec conjur_5 rake 'role:retrieve-key[cucumber:user:admin]'
86
- 3aezp05q3wkem3hmegymwzz8wh3bs3dr6xx3y3m2q41k5ymebkc
87
- ```
88
-
89
- The password of the v4 admin user is "secret".
90
-
91
- Now you can run the client `dev` container:
92
-
93
- ```sh-session
94
- $ docker-compose run --rm dev
95
- ```
96
-
97
- This gives you a shell session with `conjur_4` and `conjur_5` available as linked containers.
98
-
99
- ### Demos
100
-
101
- For a v5 demo, run:
102
-
103
- ```sh-session
104
- $ bundle exec ./example/demo_v5.rb <admin-api-key>
105
- ```
106
-
107
- For a v4 demo, run:
108
-
109
- ```sh-session
110
- $ bundle exec ./example/demo_v4.rb
111
- ```
112
-
113
- ### Stopping
114
-
115
- To bring it down, run:
116
-
117
- ```sh-session
118
- $ docker-compose down
119
- ```
120
-
121
- ## Releasing
122
-
123
- ### Update the version and changelog
124
-
125
- 1. Create a new branch for the version bump.
126
- 1. Based on the unreleased content, determine the new version number and update
127
- the [version.rb](lib/conjur-api/version.rb) file.
128
- 1. Commit these changes - `Bump version to x.y.z` is an acceptable commit message - and open a PR
129
- for review. Your PR should include updates to `lib/conjur-api/version.rb`, and
130
- `CHANGELOG.md`.
131
-
132
- ### Add a git tag
133
-
134
- 1. Once your changes have been **reviewed and merged into main**, tag the version
135
- using `git tag -a "vx.y.z" -m "vx.y.z release"`. Note this requires you to be able to sign releases.
136
- Consult the [github documentation on signing commits](https://help.github.com/articles/signing-commits-with-gpg/)
137
- on how to set this up. `vx.y.z release` is an acceptable tag message.
138
- 1. Push the tag: `git push vx.y.z` (or `git push origin vx.y.z` if you are working
139
- from your local machine).
140
-
141
- After pushing the tag, a matching version will be published to [RubyGems](https://rubygems.org/gems/conjur-api/versions)!
data/Dockerfile DELETED
@@ -1,16 +0,0 @@
1
- ARG RUBY_VERSION
2
- FROM ruby:$RUBY_VERSION
3
-
4
- RUN apt-get update && apt-get install -y vim curl
5
-
6
- WORKDIR /src/conjur-api
7
-
8
- COPY Gemfile conjur-api.gemspec VERSION ./
9
- COPY lib/conjur-api/version.rb ./lib/conjur-api/
10
-
11
- RUN bundle
12
-
13
- COPY . ./
14
-
15
- ENTRYPOINT ["/usr/local/bin/bundle", "exec"]
16
- CMD ["rake", "jenkins"]
data/Gemfile DELETED
@@ -1,7 +0,0 @@
1
- source 'https://rubygems.org'
2
-
3
- #ruby=ruby-3.0
4
- #ruby-gemset=conjur-api
5
-
6
- # Specify your gem's dependencies in conjur-api.gemspec
7
- gemspec