-
Notifications
You must be signed in to change notification settings - Fork 124
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Openssl 3 base images #2874
Openssl 3 base images #2874
Conversation
6fd42bc
to
eb40b59
Compare
@@ -1,5 +1,5 @@ | |||
#!/bin/sh | |||
httpclient_pem_location="/var/lib/gems/2.5.0/gems/httpclient-2.8.3/lib/httpclient" | |||
httpclient_pem_location=$(find $GEM_HOME -name httpclient -type d) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Double quote to prevent globbing and word splitting.
bin/conjurctl
Outdated
@@ -1,5 +1,6 @@ | |||
#!/usr/bin/env ruby | |||
# frozen_string_literal: true | |||
require "bundler/setup" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Add an empty line after magic comments.
CHANGELOG.md
Outdated
@@ -9,6 +9,11 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0. | |||
- Nothing should go in this section, please add to the latest unreleased version | |||
(and update the corresponding date), or add a new version. | |||
|
|||
## [0.0.5] - 2023-07-17 | |||
### Security | |||
- Use newer base images with Ubuntu 22.04, Ruby 3.2 and OpenSSL 3 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Lists should be surrounded by blank lines
CHANGELOG.md
Outdated
@@ -9,6 +9,11 @@ | |||
- Nothing should go in this section, please add to the latest unreleased version | |||
(and update the corresponding date), or add a new version. | |||
|
|||
## [0.0.5] - 2023-07-17 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Headers should be surrounded by blank lines
eb40b59
to
a77e0c5
Compare
CHANGELOG.md
Outdated
## [1.19.7] - 2023-07-31 | ||
|
||
### Changed | ||
- Conjur will now use the new FIPS Base Images. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Lists should be surrounded by blank lines
@@ -1 +1 @@ | |||
5.0 | |||
PR-57 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
will need to be reverted later
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
After merging this PR and being able to build appliance from master.
Dockerfile
Outdated
@@ -1,25 +1,32 @@ | |||
FROM cyberark/ubuntu-ruby-fips:latest | |||
FROM registry.tld/cyberark/ubuntu-ruby-builder:22.04 as builder |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
will need to be changed back to docker.io
Dockerfile.ubi
Outdated
@@ -1,14 +1,25 @@ | |||
# Conjur Base Image (UBI) | |||
FROM cyberark/ubi-ruby-fips:latest | |||
FROM registry.tld/cyberark/ubi-ruby-builder:ubi9 as builder |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
will need to be changed back to docker.io
dev/Dockerfile.dev
Outdated
@@ -1,40 +1,53 @@ | |||
FROM cyberark/phusion-ruby-fips:latest | |||
FROM registry.tld/cyberark/ubuntu-ruby-builder:22.04 as builder |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
will need to be changed back to docker.io
package.sh
Outdated
@@ -8,14 +8,16 @@ chmod +x docker-debify | |||
docker run --rm \ | |||
-v "$(pwd)":"$(pwd)" \ | |||
--workdir "$(pwd)" \ | |||
cyberark/phusion-ruby-fips:latest \ | |||
sh -c "apt-get update -y && apt-get install -y git && bundle lock --update=conjur-api" | |||
registry.tld/cyberark/ubuntu-ruby-builder:22.04 \ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
will need to be changed back to docker.io
f2c18fd
to
392ff88
Compare
CHANGELOG.md
Outdated
## [1.20.1] - 2023-07-31 | ||
|
||
### Changed | ||
- Conjur will now use the new FIPS Base Images. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Line 15, 16 and 17 could be deleted.
CHANGELOG.md
Outdated
## [1.20.0] - 2023-07-11 | ||
|
||
### Added | ||
- Telemetry support | ||
[cyberark/conjur#2854](https://github.com/cyberark/conjur/pull/2854) | ||
|
||
## [1.19.6] - 2023-07-05 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
To be removed?
86c2c3d
to
460d72e
Compare
29c9d81
to
818c118
Compare
@@ -219,7 +219,7 @@ def self_signed_certificate(rsa_key) | |||
cert.public_key = rsa_key.public_key | |||
cert.serial = 0x0 | |||
cert.version = 2 | |||
cert.sign rsa_key, OpenSSL::Digest::SHA1.new | |||
cert.sign rsa_key, OpenSSL::Digest::SHA256.new |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Use OpenSSL::Digest.new('SHA256')
instead of OpenSSL::Digest::SHA256.new
.
@@ -219,7 +219,7 @@ | |||
cert.public_key = rsa_key.public_key | |||
cert.serial = 0x0 | |||
cert.version = 2 | |||
cert.sign rsa_key, OpenSSL::Digest::SHA1.new | |||
cert.sign rsa_key, OpenSSL::Digest::SHA256.new |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Use parentheses for method calls with arguments.
3677639
to
288d037
Compare
288d037
to
5af4f83
Compare
5af4f83
to
d609208
Compare
2a87b04
to
1c1e21b
Compare
8f471d6
to
1d6d3e7
Compare
1d6d3e7
to
2c4e997
Compare
config/puma.rb
Outdated
@@ -90,4 +90,3 @@ | |||
puts "- #{k} from #{v}" | |||
end | |||
end | |||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
[nit] - we do want an empty new line at the end of all files.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good.
dev/Dockerfile.dev
Outdated
@@ -1,4 +1,4 @@ | |||
FROM cyberark/ubuntu-ruby-postgres-fips:latest | |||
FROM registry.tld/cyberark/ubuntu-ruby-postgres-fips:22.04 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
will need to be changed back to docker.io
@@ -1 +1 @@ | |||
5.0 | |||
PR-57 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Prepared #2949 to clean this up.
2c4e997
to
6536329
Compare
6536329
to
ccdd984
Compare
4964420
to
8feb9b9
Compare
Code Climate has analyzed commit 8feb9b9 and detected 0 issues on this pull request. The test coverage on the diff in this pull request is 100.0% (50% is the threshold). This pull request will bring the total coverage in the repository to 88.5% (0.0% change). View more on Code Climate. |
Desired Outcome
Please describe the desired outcome for this PR. Said another way, what was
the original request that resulted in these code changes? Feel free to copy
this information from the connected issue.
Implemented Changes
Describe how the desired outcome above has been achieved with this PR. In
particular, consider:
Connected Issue/Story
Resolves #[relevant GitHub issue(s), e.g. 76]
CyberArk internal issue ID: [insert issue ID]
Definition of Done
At least 1 todo must be completed in the sections below for the PR to be
merged.
Changelog
CHANGELOG update
Test coverage
changes, or
Documentation
README
s) were updated in this PRBehavior
Security