conjur-api 6.0.1.pre.139 → 6.0.1.pre.252

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: be9dbeeabfdd50fc245dc23bae80dfcd8768b3e6acbff0e5a563e6289392e6f8
4
- data.tar.gz: '03079e5cc447e507d2578b7e8be606cbcddffdbe369afab118439085173bc82b'
3
+ metadata.gz: 22577611fe210bd567dc63cd774db6bf8b188b764a0ed1d2d7d954010266573c
4
+ data.tar.gz: 635aad92a4751e1f68f5e03c67bf571b0498572d040fddf6a2d530eb83bcfb99
5
5
  SHA512:
6
- metadata.gz: 98c984e425df062ca23cf4a5f56b3c7988164cb3bb1461a3cf09ae1e45b9d48f296d8e93456b6f1a3e78ca4e51eabd7d069f521aae36f5b2aff6f0793616dffc
7
- data.tar.gz: 8024959d159baadde02a20914ee3e9b731b9f8b74a00370720b1f067a77b3955eb480fa28ea6cfa4f9a7b4e48a861547e80c1e75a7b8f96d923a7579da04e5d1
6
+ metadata.gz: 98ffb236fb6e0862be09adb1b2d3e6a0ca85b754295888936c69f35674884605135a13c5355833b2cb8147f3e53a2875ec87db7faa937b94d5ef17d5153d1d7e
7
+ data.tar.gz: f6bf3cd58f3df2d0bc26a8f8e889b6fd80610d3225946f386954b7abeab4e183956e3c0fa28c1032b9b25605b0b9838931a0cd0a7cf814afa3391600f24bfbf1
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
@@ -82,6 +82,7 @@ pipeline {
82
82
  stage('Test Ruby 3.0') {
83
83
  environment {
84
84
  RUBY_VERSION = '3.0'
85
+ INFRAPOOL_REGISTRY_URL = "registry.tld"
85
86
  }
86
87
  steps {
87
88
  script {
@@ -99,6 +100,7 @@ pipeline {
99
100
  stage('Test Ruby 3.1') {
100
101
  environment {
101
102
  RUBY_VERSION = '3.1'
103
+ INFRAPOOL_REGISTRY_URL = "registry.tld"
102
104
  }
103
105
  steps {
104
106
  script {
@@ -116,6 +118,7 @@ pipeline {
116
118
  stage('Test Ruby 3.2') {
117
119
  environment {
118
120
  RUBY_VERSION = '3.2'
121
+ INFRAPOOL_REGISTRY_URL = "registry.tld"
119
122
  }
120
123
  steps {
121
124
  script {
data/VERSION CHANGED
@@ -1 +1 @@
1
- 6.0.1-139
1
+ 6.0.1-252
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
@@ -6,7 +6,7 @@ services:
6
6
  POSTGRES_HOST_AUTH_METHOD: trust
7
7
 
8
8
  conjur:
9
- image: cyberark/conjur:edge
9
+ image: ${REGISTRY_URL:-docker.io}/cyberark/conjur:edge
10
10
  # TODO: Test with a version that supports authn-sut
11
11
  command: server -a cucumber
12
12
  environment:
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
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"
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'
data/test.sh CHANGED
@@ -4,6 +4,8 @@
4
4
  # My local RUBY_VERSION is set to ruby-#.#.# so this allows running locally.
5
5
  RUBY_VERSION="$(cut -d '-' -f 2 <<< "$RUBY_VERSION")"
6
6
 
7
+ export REGISTRY_URL=${INFRAPOOL_REGISTRY_URL:-"docker.io"}
8
+
7
9
  source ./ci/oauth/keycloak/keycloak_functions.sh
8
10
  TOP_LEVEL=$(git rev-parse --show-toplevel)
9
11
 
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.1.pre.139
4
+ version: 6.0.1.pre.252
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-04-11 00:00:00.000000000 Z
11
+ date: 2024-09-13 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