conjur-debify 1.10.3 → 1.11.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: a5d37eadc9ebb56259a7a9fbb811761eb4d9a4210b664b450e5ddcb51e3f5eeb
4
- data.tar.gz: 88611983be2c6a1726b54ffac032f95ab3966e3d7cef57e50504fd3c781fce54
3
+ metadata.gz: 58a50a072fd2700fa612ac0a6113f2a6227787ed67ac732767443dc26a6f9e72
4
+ data.tar.gz: ba642699eb85c6506091ccdb8c82779a1f4daf9b5e00f45e071f910b889883e5
5
5
  SHA512:
6
- metadata.gz: 4be770ae77cf5e80478fb77137b90394086d3bbede9a0d15a61b64b636a6c43ca8e1711e69d7033deb12f0ed13f9609c5c13d1eab4ececfc7a89163a530aa2d7
7
- data.tar.gz: 925471e67b930d1fab9cba2484706bea504357fc3dead42cb6c3b2136036cf4ece73092b640b8fef70abf46b84bb7908f0f2189ebef0994171abc06f21d57e32
6
+ metadata.gz: 3674127fd6cc68ee9696f552edac2a089efe2c9ab6e1b0ac212ee78b4b282735e03ec65f15c7502592e2c31702a182756e6744c8a3bbc90a2e04b1c06ad6ffeb
7
+ data.tar.gz: 31b3d6dd4a7c414ea09ea97e98ef1a56963d4724b4bd637fbd0379f7f53db0c9d0be22981a1de2de748aa8925a5b15d82b6551e4eb7b4edf6c68579c7f5b9d3b
@@ -1,3 +1,41 @@
1
+ # 1.11.5
2
+
3
+ ### Changed
4
+ * Updated FPM and Test images to use a base image with FIPS-compliant Ruby and OpenSSL.
5
+
6
+ # 1.11.4
7
+
8
+ * Updated sandbox password to match Conjur password complexity requirements.
9
+
10
+ # 1.11.3
11
+
12
+ * Reverted to `bundler` v1. `bundler` v2 was creating incompatible paths for downstream
13
+ packages.
14
+ * Made FPM Ruby version use `ruby2.5` instead of `ruby2.6` since that is what
15
+ our appliance image uses otherwise the gems bundled in the packages are unusable.
16
+
17
+ # 1.11.2
18
+
19
+ * Upgraded to use Ruby 2.6 and latest version of FPM
20
+ * Update Conjur Dockerfile from Ubuntu 14.04 --> 18.04 as 14.04 repos
21
+ are now behind a [pay wall](https://ubuntu.com/blog/ubuntu-14-04-esm-support)
22
+ Ruby is installed from `ppa:brightbox/ruby-ng` however that PPA
23
+ [doesn't currently supply ruby2.2 for Ubuntu 18.04](https://launchpad.net/~brightbox/+archive/ubuntu/ruby-ng?field.series_filter=bionic). [The documentation](https://www.brightbox.com/docs/ruby/ubuntu/)
24
+ suggests this combination is available, so it may be a temporary problem.
25
+ To work around the problem, ruby is bumped from 2.2 to 2.3 as 2.3 is the oldest
26
+ version available for Ubuntu 18.04.
27
+
28
+ # 1.11.1
29
+
30
+ * Upgrade `docker-debify` to use Ruby 2.6.
31
+
32
+ # 1.11.0
33
+
34
+ * Use a Docker env-file (docker.env, by default) to pass environment
35
+ variables to the debify container.
36
+
37
+ * Make sure `--env` variables get passed along to the Conjur container when testing, too.
38
+
1
39
  # 1.10.3
2
40
 
3
41
  * Fix a bug causing duplicate files between normal and dev packages when a file name contained a space.
@@ -0,0 +1,16 @@
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!
data/Dockerfile CHANGED
@@ -1,4 +1,4 @@
1
- FROM ruby:2.2
1
+ FROM ruby:2.6-stretch
2
2
 
3
3
  ### DockerInDocker support is take from
4
4
  ### https://github.com/jpetazzo/dind/blob/master/Dockerfile . I
@@ -7,7 +7,9 @@ FROM ruby:2.2
7
7
  ### docker:dind image much more complicated and didn't lend itself to
8
8
  ### also running ruby.
9
9
 
10
- RUN apt-get update -qq && apt-get install -qqy \
10
+ RUN apt-get update -qq && \
11
+ apt-get dist-upgrade -qqy && \
12
+ apt-get install -qqy \
11
13
  apt-transport-https \
12
14
  ca-certificates \
13
15
  curl \
@@ -38,5 +40,7 @@ RUN gem install -N conjur-debify-${VERSION}.gem
38
40
 
39
41
  ARG CONJUR_APPLIANCE_URL
40
42
  ENV CONJUR_APPLIANCE_URL ${CONJUR_APPLIANCE_URL:-https://conjur-master-v2.itp.conjur.net/api}
43
+ ENV CONJUR_ACCOUNT ${CONJUR_ACCOUNT:-conjur}
44
+ ENV CONJUR_VERSION ${CONJUR_VERSION:-4}
41
45
 
42
46
  ENTRYPOINT ["/debify/distrib/entrypoint.sh"]
@@ -9,6 +9,10 @@ pipeline {
9
9
  skipDefaultCheckout()
10
10
  }
11
11
 
12
+ triggers {
13
+ cron(getDailyCronString())
14
+ }
15
+
12
16
  stages {
13
17
  stage('Checkout') {
14
18
  steps {
@@ -28,6 +32,23 @@ pipeline {
28
32
  }
29
33
  }
30
34
 
35
+ stage('Scan Docker image') {
36
+ parallel {
37
+ stage('Scan Docker image for fixable issues') {
38
+ steps{
39
+ script {
40
+ VERSION = sh(returnStdout: true, script: 'cat VERSION')
41
+ }
42
+ scanAndReport("debify:${VERSION}", "HIGH", false)
43
+ }
44
+ }
45
+ // No all report generated because it currently adds 10-12 minutes of
46
+ // build time just to write the trivy report. It'll be added once we've
47
+ // cleaned up and/or ignored enough issues to reduce the impact
48
+ // on build time.
49
+ }
50
+ }
51
+
31
52
  stage('Run feature tests') {
32
53
  steps {
33
54
  sh './test.sh'
@@ -38,10 +59,6 @@ pipeline {
38
59
  }
39
60
 
40
61
  stage('Push Docker image') {
41
- when {
42
- branch 'master'
43
- }
44
-
45
62
  steps {
46
63
  sh './tag-image.sh'
47
64
  sh './push-image.sh'
@@ -53,7 +70,7 @@ pipeline {
53
70
  when {
54
71
  allOf {
55
72
  branch 'master'
56
- expression {
73
+ /* expression {
57
74
  boolean publish = false
58
75
 
59
76
  try {
@@ -66,7 +83,7 @@ pipeline {
66
83
  }
67
84
 
68
85
  return publish
69
- }
86
+ }*/
70
87
  }
71
88
  }
72
89
 
@@ -1,4 +1,4 @@
1
- Copyright (c) 2016 Kevin Gilpin
1
+ Copyright (c) 2020 CyberArk Software Ltd. All rights reserved.
2
2
 
3
3
  MIT License
4
4
 
data/README.md CHANGED
@@ -293,8 +293,6 @@ root@7d4217655332:/src/example# getent hosts mydb
293
293
 
294
294
  ## Contributing
295
295
 
296
- 1. Fork it ( https://github.com/[my-github-username]/debify/fork )
297
- 2. Create your feature branch (`git checkout -b my-new-feature`)
298
- 3. Commit your changes (`git commit -am 'Add some feature'`)
299
- 4. Push to the branch (`git push origin my-new-feature`)
300
- 5. Create a new Pull Request
296
+ For instructions on how to get started and
297
+ descriptions of our development workflows, please see our
298
+ [contributing guide](CONTRIBUTING.md).
data/VERSION CHANGED
@@ -1 +1 @@
1
- 1.10.3
1
+ 1.11.5
@@ -19,19 +19,19 @@ Gem::Specification.new do |spec|
19
19
 
20
20
  spec.add_dependency "gli"
21
21
  spec.add_dependency "docker-api", "~> 1.33"
22
- spec.add_dependency "conjur-cli" , "~> 5"
23
- spec.add_dependency "conjur-api", "~> 4"
22
+ spec.add_dependency "conjur-cli" , "~> 6"
23
+ spec.add_dependency "conjur-api", "~> 5"
24
24
 
25
25
  spec.add_development_dependency "bundler", "~> 1.7"
26
26
  spec.add_development_dependency "fakefs", "~> 0"
27
- spec.add_development_dependency "rake", "~> 10.0"
27
+ spec.add_development_dependency "rake", "~> 12.3.3"
28
28
 
29
29
  # Pin to cucumbe v2. cucumber v3 changes (breaks) the behavior of
30
30
  # unmatched capture groups with \(d+). In v3, the value of such a
31
31
  # group is 0 instead of nil, which breaks aruba's "I successfully
32
32
  # run...." steps.
33
33
  spec.add_development_dependency "cucumber", '~> 2'
34
- spec.add_development_dependency "aruba"
34
+ spec.add_development_dependency "aruba", "~> 0.14"
35
35
  spec.add_development_dependency 'rspec', '~> 3'
36
36
  spec.add_development_dependency 'ci_reporter_rspec', '~> 1.0'
37
37
  end
@@ -0,0 +1,23 @@
1
+ #!/bin/bash -e
2
+
3
+ : ${BRANCH_NAME:=$(git symbolic-ref --short HEAD)}
4
+
5
+ show_master_tags() {
6
+ IFS=. read MAJOR MINOR PATCH <VERSION
7
+ TAG="$MAJOR.$MINOR.$PATCH"
8
+ echo "latest $TAG $MAJOR.$MINOR"
9
+ }
10
+
11
+ show_branch_tags() {
12
+ # tail and tr, to remove the grottiness from the detect-version
13
+ # output
14
+ local version="$(DEBIFY_IMAGE=debify:$(<VERSION) ./docker-debify detect-version | tail -1 | tr -d '\r')"
15
+
16
+ echo "$BRANCH_NAME $version"
17
+ }
18
+
19
+ if [[ "$BRANCH_NAME" == "master" ]]; then
20
+ show_master_tags
21
+ else
22
+ show_branch_tags
23
+ fi
@@ -478,9 +478,9 @@ RUN touch /etc/service/conjur/down
478
478
  'Env' => [
479
479
  "CONJUR_AUTHN_LOGIN=admin",
480
480
  "CONJUR_ENV=appliance",
481
- "CONJUR_AUTHN_API_KEY=secret",
482
- "CONJUR_ADMIN_PASSWORD=secret",
483
- ],
481
+ "CONJUR_AUTHN_API_KEY=SEcret12!!!!",
482
+ "CONJUR_ADMIN_PASSWORD=SEcret12!!!!",
483
+ ] + global_options[:env],
484
484
  'HostConfig' => {
485
485
  'Binds' => [
486
486
  [ dir, "/src/#{project_name}" ].join(':')
@@ -628,8 +628,8 @@ command "sandbox" do |c|
628
628
  'Env' => [
629
629
  "CONJUR_AUTHN_LOGIN=admin",
630
630
  "CONJUR_ENV=appliance",
631
- "CONJUR_AUTHN_API_KEY=secret",
632
- "CONJUR_ADMIN_PASSWORD=secret",
631
+ "CONJUR_AUTHN_API_KEY=SEcret12!!!!",
632
+ "CONJUR_ADMIN_PASSWORD=SEcret12!!!!",
633
633
  ] + global_options[:env]
634
634
  }
635
635
 
@@ -71,10 +71,10 @@ module Conjur::Debify
71
71
  Conjur::Config.apply
72
72
  conjur = Conjur::Authn.connect nil, noask: true
73
73
 
74
- username_var = 'ci/artifactory/users/jenkins/username'
75
- password_var = 'ci/artifactory/users/jenkins/password'
76
-
77
- [conjur.variable(username_var).value, conjur.variable(password_var).value]
74
+ account = Conjur.configuration.account
75
+ username_var = [account, "variable", "ci/artifactory/users/jenkins/username"].join(':')
76
+ password_var = [account, "variable", 'ci/artifactory/users/jenkins/password'].join(':')
77
+ [conjur.resource(username_var).value, conjur.resource(password_var).value]
78
78
  end
79
79
 
80
80
  def publish(options)
@@ -1,27 +1,23 @@
1
1
  # Build from the same version of ubuntu as phusion/baseimage
2
- FROM ubuntu:14.04
2
+ FROM cyberark/phusion-ruby-fips:0.11-latest
3
3
 
4
4
  RUN apt-get update -y && \
5
- apt-get install -y software-properties-common && \
6
- apt-add-repository -y ppa:brightbox/ruby-ng && \
7
- apt-get update -y && \
8
- apt-get install -y build-essential git libpq5 libpq-dev ruby2.2 ruby2.2-dev libffi-dev
5
+ apt-get dist-upgrade -y && \
6
+ apt-get install -y build-essential \
7
+ git \
8
+ libffi-dev
9
9
 
10
-
11
- # Configure bundler and gem the way the ruby:2.2 Dockerfile does, as of
12
- # https://github.com/docker-library/ruby/commit/c88f3a67da720bfa9fb1717960d90fd5db11c757
13
- ENV BUNDLER_VERSION 1.11.2
14
-
15
- RUN gem install --no-rdoc --no-ri bundler:$BUNDLER_VERSION ruby-xz:0.2.3 fpm
10
+ RUN gem install --no-document bundler:1.17.3 \
11
+ fpm
16
12
 
17
13
  ENV GEM_HOME /usr/local/bundle
18
14
  ENV BUNDLE_PATH="$GEM_HOME" \
19
- BUNDLE_BIN="$GEM_HOME/bin" \
20
- BUNDLE_SILENCE_ROOT_WARNING=1 \
21
- BUNDLE_APP_CONFIG="$GEM_HOME"
15
+ BUNDLE_BIN="$GEM_HOME/bin" \
16
+ BUNDLE_SILENCE_ROOT_WARNING=1 \
17
+ BUNDLE_APP_CONFIG="$GEM_HOME"
22
18
  ENV PATH $BUNDLE_BIN:$PATH
23
- RUN mkdir -p "$GEM_HOME" "$BUNDLE_BIN" \
24
- && chmod 777 "$GEM_HOME" "$BUNDLE_BIN"
19
+ RUN mkdir -p "$GEM_HOME" "$BUNDLE_BIN" && \
20
+ chmod 777 "$GEM_HOME" "$BUNDLE_BIN"
25
21
 
26
22
  RUN mkdir /src
27
23
 
@@ -29,4 +25,3 @@ ENTRYPOINT [ "/package.sh" ]
29
25
 
30
26
  COPY debify_utils.sh /
31
27
  COPY package.sh /
32
-
@@ -1,9 +1,6 @@
1
1
  #!/bin/bash -ex
2
2
 
3
- IFS=. read MAJOR MINOR PATCH <VERSION
4
-
5
- TAGS="latest $(docker images --filter reference="registry.tld/conjurinc/debify:$MAJOR.$MINOR*" --format '{{.Tag}}')"
6
- for t in $TAGS; do
3
+ for t in $(./image-tags); do
7
4
  docker push registry.tld/conjurinc/debify:$t
8
5
  done
9
6
 
@@ -1,8 +1,6 @@
1
1
  #!/bin/bash -ex
2
2
 
3
- IFS=. read MAJOR MINOR PATCH <VERSION
4
- TAG=$MAJOR.$MINOR.$PATCH
5
-
6
- for t in latest $TAG $MAJOR.$MINOR; do
3
+ TAG=$(< VERSION)
4
+ for t in $(./image-tags); do
7
5
  docker tag debify:$TAG registry.tld/conjurinc/debify:$t
8
6
  done
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: conjur-debify
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.10.3
4
+ version: 1.11.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Kevin Gilpin
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2018-05-22 00:00:00.000000000 Z
11
+ date: 2020-06-14 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: gli
@@ -44,28 +44,28 @@ dependencies:
44
44
  requirements:
45
45
  - - "~>"
46
46
  - !ruby/object:Gem::Version
47
- version: '5'
47
+ version: '6'
48
48
  type: :runtime
49
49
  prerelease: false
50
50
  version_requirements: !ruby/object:Gem::Requirement
51
51
  requirements:
52
52
  - - "~>"
53
53
  - !ruby/object:Gem::Version
54
- version: '5'
54
+ version: '6'
55
55
  - !ruby/object:Gem::Dependency
56
56
  name: conjur-api
57
57
  requirement: !ruby/object:Gem::Requirement
58
58
  requirements:
59
59
  - - "~>"
60
60
  - !ruby/object:Gem::Version
61
- version: '4'
61
+ version: '5'
62
62
  type: :runtime
63
63
  prerelease: false
64
64
  version_requirements: !ruby/object:Gem::Requirement
65
65
  requirements:
66
66
  - - "~>"
67
67
  - !ruby/object:Gem::Version
68
- version: '4'
68
+ version: '5'
69
69
  - !ruby/object:Gem::Dependency
70
70
  name: bundler
71
71
  requirement: !ruby/object:Gem::Requirement
@@ -100,14 +100,14 @@ dependencies:
100
100
  requirements:
101
101
  - - "~>"
102
102
  - !ruby/object:Gem::Version
103
- version: '10.0'
103
+ version: 12.3.3
104
104
  type: :development
105
105
  prerelease: false
106
106
  version_requirements: !ruby/object:Gem::Requirement
107
107
  requirements:
108
108
  - - "~>"
109
109
  - !ruby/object:Gem::Version
110
- version: '10.0'
110
+ version: 12.3.3
111
111
  - !ruby/object:Gem::Dependency
112
112
  name: cucumber
113
113
  requirement: !ruby/object:Gem::Requirement
@@ -126,16 +126,16 @@ dependencies:
126
126
  name: aruba
127
127
  requirement: !ruby/object:Gem::Requirement
128
128
  requirements:
129
- - - ">="
129
+ - - "~>"
130
130
  - !ruby/object:Gem::Version
131
- version: '0'
131
+ version: '0.14'
132
132
  type: :development
133
133
  prerelease: false
134
134
  version_requirements: !ruby/object:Gem::Requirement
135
135
  requirements:
136
- - - ">="
136
+ - - "~>"
137
137
  - !ruby/object:Gem::Version
138
- version: '0'
138
+ version: '0.14'
139
139
  - !ruby/object:Gem::Dependency
140
140
  name: rspec
141
141
  requirement: !ruby/object:Gem::Requirement
@@ -177,6 +177,7 @@ files:
177
177
  - ".project"
178
178
  - ".rvmrc"
179
179
  - CHANGELOG.md
180
+ - CONTRIBUTING.md
180
181
  - Dockerfile
181
182
  - Gemfile
182
183
  - Jenkinsfile
@@ -209,6 +210,7 @@ files:
209
210
  - features/support/hooks.rb
210
211
  - features/support/world.rb
211
212
  - features/test.feature
213
+ - image-tags
212
214
  - lib/conjur/debify.rb
213
215
  - lib/conjur/debify/Dockerfile.fpm
214
216
  - lib/conjur/debify/action/publish.rb
@@ -248,8 +250,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
248
250
  - !ruby/object:Gem::Version
249
251
  version: '0'
250
252
  requirements: []
251
- rubyforge_project:
252
- rubygems_version: 2.7.6
253
+ rubygems_version: 3.1.2
253
254
  signing_key:
254
255
  specification_version: 4
255
256
  summary: Utility commands to build and package Conjur services as Debian packages