conjur-api 6.0.0 → 6.0.1.pre.250

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: f9abe53aac5d77960b35ee9f111cf86250adc0286b4411672184e1ebee57ddff
4
- data.tar.gz: e10e88374f348076d1e7064ab53c066462d25e2f4f981a5f610881bbb53eda05
3
+ metadata.gz: 87a442076a86568ddabff5afd5b9cd8b437c9e8c494290e47256f4a18742a620
4
+ data.tar.gz: 9e93f94e7e55dcf0df83741f79184d037ebdacac5d77ac548635fcac82299f1a
5
5
  SHA512:
6
- metadata.gz: 3307984dfc0e5f7cafccd2ea76462e6c3f50acad8a4a77ec44bfe9d228d8e3c4bad822db33fa2744cf13402147d528b8109787af844c9c880899fd77b0c21b14
7
- data.tar.gz: e6da130a448c56bda7316b064e673c50e5d15227d843d473602c4de9f07c0c340e52946bdc08da2d908a84d433b74e00d3ef72a8e73fd38943287787d229d447
6
+ metadata.gz: 9a57f7864acdb019e5310b31df1201975b67cd08ed7fc7ae5c2cdf603762d69abacaa537ef74bde6abd6759cf03947ebfc5e880003c5aeeee855c0936bddc4aa
7
+ data.tar.gz: 58d614f50cf4102b32e8e5f86899e48a36f67bf326b7f0525c1b9442b44eb65479f59d31225e361a47e78f990c7f27d111667b7679c7d30022ec3f13ba403fcb
data/CHANGELOG.md CHANGED
@@ -9,6 +9,12 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.
9
9
  - Nothing should go in this section, please add to the latest unreleased version
10
10
  (and update the corresponding date), or add a new version.
11
11
 
12
+ ## [6.0.1] - 2024-04-05
13
+
14
+ ### Fixed
15
+ - Pass valid field in #memberships to fix listing roles (CNJR-2109)
16
+ - Pull keycloak image from internal repository
17
+
12
18
  ## [6.0.0] - 2023-12-28
13
19
 
14
20
  ### Removed
data/Dockerfile CHANGED
@@ -1,7 +1,7 @@
1
1
  ARG RUBY_VERSION
2
2
  FROM ruby:$RUBY_VERSION
3
3
 
4
- RUN apt-get update && apt-get install -y vim curl
4
+ RUN apt-get update && apt-get install -y --no-install-recommends vim curl
5
5
 
6
6
  WORKDIR /src/conjur-api
7
7
 
data/Jenkinsfile CHANGED
@@ -48,6 +48,14 @@ pipeline {
48
48
  }
49
49
  }
50
50
 
51
+ stage('Scan for internal URLs') {
52
+ steps {
53
+ script {
54
+ detectInternalUrls()
55
+ }
56
+ }
57
+ }
58
+
51
59
  stage('Get InfraPool Agent') {
52
60
  steps {
53
61
  script {
data/VERSION CHANGED
@@ -1 +1 @@
1
- 6.0.0
1
+ 6.0.1-250
data/dev/Dockerfile.dev CHANGED
@@ -1,6 +1,6 @@
1
1
  FROM ruby:3-slim
2
2
 
3
- RUN apt-get update && apt-get install -y vim curl git build-essential
3
+ RUN apt-get update && apt-get install -y --no-install-recommends vim curl git build-essential
4
4
 
5
5
  WORKDIR /src/conjur-api
6
6
 
data/docker-compose.yml CHANGED
@@ -20,7 +20,7 @@ services:
20
20
  - keycloak
21
21
 
22
22
  keycloak:
23
- image: jboss/keycloak:4.3.0.Final
23
+ image: registry.tld/jboss/keycloak:4.3.0.Final
24
24
  environment:
25
25
  - KEYCLOAK_USER=admin
26
26
  - KEYCLOAK_PASSWORD=admin
data/example/demo.rb CHANGED
@@ -3,6 +3,7 @@
3
3
  require 'conjur-api'
4
4
  require 'securerandom'
5
5
 
6
+ # deepcode ignore HardcodedCredential: This is demo code
6
7
  username = "admin"
7
8
 
8
9
  arguments = ARGV.dup
@@ -49,3 +49,10 @@ Feature: Display role members and memberships.
49
49
  }
50
50
  ]
51
51
  """
52
+
53
+ Scenario: Show a role's memberships non-recursive.
54
+ When I run the code:
55
+ """
56
+ $conjur.role('cucumber:group:developers').memberships(recursive: false).any?
57
+ """
58
+ Then the result should be "true"
data/kics.config ADDED
@@ -0,0 +1,19 @@
1
+ # All of the following issues are not a concern for the infrastructure files in this
2
+ # repository since they're only used in the build process or testing.
3
+ exclude-queries:
4
+ - 965a08d7-ef86-4f14-8792-4a3b2098937e # Apt Get Install Pin Version Not Defined
5
+ - fd54f200-402c-4333-a5a4-36ef6709af2f # Missing User Instruction
6
+ - ce76b7d0-9e77-464d-b86f-c5c48e03e22d # Container Capabilities Unrestricted
7
+ - 8c978947-0ff6-485c-b0c2-0bfca6026466 # Shared Volumes Between Containers
8
+ - 610e266e-6c12-4bca-9925-1ed0cd29742b # Security Opt Not Set
9
+ - b03a748a-542d-44f4-bb86-9199ab4fd2d5 # Healthcheck Instruction Missing
10
+ - 698ed579-b239-4f8f-a388-baa4bcb13ef8 # Healthcheck Not Set
11
+ - 451d79dc-0588-476a-ad03-3c7f0320abb3 # Container Traffic Not Bound To Host Interface
12
+ - df746b39-6564-4fed-bf85-e9c44382303c # Apt Get Install Lists Were Not Deleted
13
+ - 4f31dd9f-2cc3-4751-9b53-67e4af83dac0 # Host Namespace is Shared
14
+ - ce14a68b-1668-41a0-ab7d-facd9f784742 # Networks Not Set
15
+
16
+ # The following files are used for development and testing only.
17
+ exclude-paths:
18
+ - "conjur-api-ruby/docker-compose.yml"
19
+ - "conjur-api-ruby/dev/docker-compose.yml"
@@ -108,7 +108,7 @@ module Conjur
108
108
  if item.is_a?(String)
109
109
  build_object(item, default_class: Role)
110
110
  else
111
- RoleGrant.parse_from_json(item, self.options)
111
+ RoleGrant.parse_from_json(item, self.credentials)
112
112
  end
113
113
  end
114
114
  end
data/spec/api_spec.rb CHANGED
@@ -146,6 +146,7 @@ describe Conjur::API do
146
146
  let(:token_encoded) { Base64.strict_encode64(token.to_json) }
147
147
  let(:base_headers) { { authorization: authz_header } }
148
148
  let(:headers) { base_headers }
149
+ # deepcode ignore InsecureTransmission: This is test code
149
150
  let(:resource) { RestClient::Resource.new("http://example.com", { headers: headers })}
150
151
  context 'basic functioning' do
151
152
  it_behaves_like 'it can clone itself'
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: conjur-api
3
3
  version: !ruby/object:Gem::Version
4
- version: 6.0.0
4
+ version: 6.0.1.pre.250
5
5
  platform: ruby
6
6
  authors:
7
7
  - CyberArk Maintainers
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2024-02-16 00:00:00.000000000 Z
11
+ date: 2024-09-12 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rest-client
@@ -339,6 +339,7 @@ files:
339
339
  - features/user.feature
340
340
  - features/variable_fields.feature
341
341
  - features/variable_value.feature
342
+ - kics.config
342
343
  - lib/conjur-api.rb
343
344
  - lib/conjur-api/version.rb
344
345
  - lib/conjur/acts_as_resource.rb
@@ -419,9 +420,9 @@ required_ruby_version: !ruby/object:Gem::Requirement
419
420
  version: '1.9'
420
421
  required_rubygems_version: !ruby/object:Gem::Requirement
421
422
  requirements:
422
- - - ">="
423
+ - - ">"
423
424
  - !ruby/object:Gem::Version
424
- version: '0'
425
+ version: 1.3.1
425
426
  requirements: []
426
427
  rubygems_version: 3.4.10
427
428
  signing_key: