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 +4 -4
- data/CHANGELOG.md +38 -0
- data/CONTRIBUTING.md +16 -0
- data/Dockerfile +6 -2
- data/Jenkinsfile +23 -6
- data/LICENSE.txt +1 -1
- data/README.md +3 -5
- data/VERSION +1 -1
- data/debify.gemspec +4 -4
- data/image-tags +23 -0
- data/lib/conjur/debify.rb +5 -5
- data/lib/conjur/debify/action/publish.rb +4 -4
- data/lib/conjur/fpm/Dockerfile +12 -17
- data/push-image.sh +1 -4
- data/tag-image.sh +2 -4
- metadata +15 -14
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 58a50a072fd2700fa612ac0a6113f2a6227787ed67ac732767443dc26a6f9e72
|
4
|
+
data.tar.gz: ba642699eb85c6506091ccdb8c82779a1f4daf9b5e00f45e071f910b889883e5
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 3674127fd6cc68ee9696f552edac2a089efe2c9ab6e1b0ac212ee78b4b282735e03ec65f15c7502592e2c31702a182756e6744c8a3bbc90a2e04b1c06ad6ffeb
|
7
|
+
data.tar.gz: 31b3d6dd4a7c414ea09ea97e98ef1a56963d4724b4bd637fbd0379f7f53db0c9d0be22981a1de2de748aa8925a5b15d82b6551e4eb7b4edf6c68579c7f5b9d3b
|
data/CHANGELOG.md
CHANGED
@@ -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.
|
data/CONTRIBUTING.md
ADDED
@@ -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.
|
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 &&
|
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"]
|
data/Jenkinsfile
CHANGED
@@ -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
|
|
data/LICENSE.txt
CHANGED
data/README.md
CHANGED
@@ -293,8 +293,6 @@ root@7d4217655332:/src/example# getent hosts mydb
|
|
293
293
|
|
294
294
|
## Contributing
|
295
295
|
|
296
|
-
|
297
|
-
|
298
|
-
|
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.
|
1
|
+
1.11.5
|
data/debify.gemspec
CHANGED
@@ -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" , "~>
|
23
|
-
spec.add_dependency "conjur-api", "~>
|
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", "~>
|
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
|
data/image-tags
ADDED
@@ -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
|
data/lib/conjur/debify.rb
CHANGED
@@ -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=
|
482
|
-
"CONJUR_ADMIN_PASSWORD=
|
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=
|
632
|
-
"CONJUR_ADMIN_PASSWORD=
|
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
|
-
|
75
|
-
|
76
|
-
|
77
|
-
[conjur.
|
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)
|
data/lib/conjur/fpm/Dockerfile
CHANGED
@@ -1,27 +1,23 @@
|
|
1
1
|
# Build from the same version of ubuntu as phusion/baseimage
|
2
|
-
FROM
|
2
|
+
FROM cyberark/phusion-ruby-fips:0.11-latest
|
3
3
|
|
4
4
|
RUN apt-get update -y && \
|
5
|
-
apt-get
|
6
|
-
apt-
|
7
|
-
|
8
|
-
|
5
|
+
apt-get dist-upgrade -y && \
|
6
|
+
apt-get install -y build-essential \
|
7
|
+
git \
|
8
|
+
libffi-dev
|
9
9
|
|
10
|
-
|
11
|
-
|
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
|
-
|
20
|
-
|
21
|
-
|
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
|
-
|
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
|
-
|
data/push-image.sh
CHANGED
@@ -1,9 +1,6 @@
|
|
1
1
|
#!/bin/bash -ex
|
2
2
|
|
3
|
-
|
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
|
|
data/tag-image.sh
CHANGED
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.
|
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:
|
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: '
|
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: '
|
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: '
|
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: '
|
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:
|
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:
|
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
|
-
|
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
|