Skip to content

Commit d65d499

Browse files
codihustonGitHub Enterprise
authored andcommitted
CONJSE-2050: Merge pull request #1219 from Conjur-Enterprise/13.6.3-activestorage
CONJSE-2050: 13.6.3 activestorage
2 parents 0822652 + 469aa68 commit d65d499

File tree

9 files changed

+24
-17
lines changed

9 files changed

+24
-17
lines changed

CHANGELOG.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,8 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.
1313
### Security
1414
- Remove the policy factory API endpoints from the config/routes.rb file to prevent
1515
anyone being able to call these endpoints and trigger the marshal.load call. CONJSE-2038
16+
- Fix unsafe shell command executions. CONJSE-2039. CONJSE-2041-2046.
17+
- Remove vulnerable activestorage gem from the dependencies to address CVE-2025-24293. CONJSE-2050
1618

1719
## [1.22.2] - 2025-06-30
1820
### Added

Dockerfile

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,8 @@ RUN bundle config set --local without 'test development' && \
1111
bundle config set --local deployment true && \
1212
bundle config set --local path vendor/bundle && \
1313
bundle config --local jobs "$(nproc --all)" && \
14+
rm -rf .bundle/plugin && \
15+
bundle plugin install bundler-override && \
1416
bundle install && \
1517
# Remove private keys brought in by gems in their test data
1618
find / -name 'openid_connect-*' -type d -exec find {} -name '*.pem' -type f -delete \; && \

Dockerfile.fpm

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,8 @@ RUN apt-get update -y && \
55
apt-get install -y zlib1g-dev \
66
liblzma-dev
77

8-
RUN gem install --no-document fpm
8+
RUN bundle plugin install bundler-override && \
9+
gem install --no-document fpm
910

1011
RUN mkdir -p /src/opt/conjur/project
1112

Dockerfile.test

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,8 @@ RUN bundle config unset --local without && \
1414
bundle config unset --local path && \
1515
bundle config set --local deployment false && \
1616
bundle config --local jobs "$(nproc --all)" && \
17+
rm -rf .bundle/plugin && \
18+
bundle plugin install bundler-override && \
1719
# this is a workaround to allow installation of ruby-debug-ide, for unknown
1820
# reasons the first attempt to install it fails but the subsequent call is
1921
# successful, therefore we try to install again if the first invocation fails
@@ -28,6 +30,7 @@ FROM conjur:${VERSION}
2830

2931
ENV GEM_HOME=/usr/local/bundle
3032
ENV PATH="${GEM_HOME}/bin:${PATH}"
33+
ENV BUNDLE_APP_CONFIG="/opt/conjur-server/.bundle"
3134

3235
RUN bundle config unset --local without && \
3336
bundle config unset --local path && \

Dockerfile.ubi

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,8 @@ RUN bundle config set --local without 'test development' && \
1212
bundle config set --local deployment true && \
1313
bundle config set --local path vendor/bundle && \
1414
bundle config --local jobs "$(nproc --all)" && \
15+
rm -rf .bundle/plugin && \
16+
bundle plugin install bundler-override && \
1517
bundle install && \
1618
# removing CA bundle of httpclient gem
1719
find / -name 'httpclient-*' -type d -exec find {} -name '*.pem' -type f -delete \; && \

Gemfile

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,13 +5,22 @@ source 'https://rubygems.org'
55
# ruby=ruby-3.0
66
# ruby-gemset=conjur
77

8+
require File.join(
9+
Bundler::Plugin.index.load_paths('bundler-override')[0],
10+
'bundler-override'
11+
) rescue nil
12+
813
# make sure to use tls for github
914
git_source(:github) { |name| "https://github.com/#{name}.git" }
1015

1116
# Do not use fuzzy version matching (~>) with the Ruby version. It doesn't play
1217
# nicely with RVM and we should be explicit since Ruby is such a fundamental
1318
# part of a Rails project. The Ruby version is also locked in place by the
1419
# Docker base image so it won't be updated with fuzzy matching.
20+
override 'rails', drop: 'activestorage'
21+
override 'actionmailbox', drop: 'activestorage'
22+
override 'actiontext', drop: 'activestorage'
23+
override 'conjur-cli', drop: 'activestorage'
1524

1625
gem 'base58'
1726
gem 'command_class'
@@ -33,7 +42,6 @@ gem 'sequel-pg_advisory_locking'
3342
gem 'sequel-postgres-schemata', require: false
3443
gem 'sequel-rails'
3544

36-
gem 'activesupport', '~> 6.1', '>= 6.1.4.6'
3745
gem 'base32-crockford'
3846
gem 'bcrypt'
3947
gem 'gli', require: false

Gemfile.lock

Lines changed: 1 addition & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,6 @@ GEM
2525
actionpack (= 6.1.7.10)
2626
activejob (= 6.1.7.10)
2727
activerecord (= 6.1.7.10)
28-
activestorage (= 6.1.7.10)
2928
activesupport (= 6.1.7.10)
3029
mail (>= 2.7.1)
3130
actionmailer (6.1.7.10)
@@ -45,7 +44,6 @@ GEM
4544
actiontext (6.1.7.10)
4645
actionpack (= 6.1.7.10)
4746
activerecord (= 6.1.7.10)
48-
activestorage (= 6.1.7.10)
4947
activesupport (= 6.1.7.10)
5048
nokogiri (>= 1.8.5)
5149
actionview (6.1.7.10)
@@ -62,13 +60,6 @@ GEM
6260
activerecord (6.1.7.10)
6361
activemodel (= 6.1.7.10)
6462
activesupport (= 6.1.7.10)
65-
activestorage (6.1.7.10)
66-
actionpack (= 6.1.7.10)
67-
activejob (= 6.1.7.10)
68-
activerecord (= 6.1.7.10)
69-
activesupport (= 6.1.7.10)
70-
marcel (~> 1.0)
71-
mini_mime (>= 1.1.0)
7263
activesupport (6.1.7.10)
7364
concurrent-ruby (~> 1.0, >= 1.0.2)
7465
i18n (>= 1.6, < 2)
@@ -313,12 +304,11 @@ GEM
313304
net-imap
314305
net-pop
315306
net-smtp
316-
marcel (1.0.4)
317307
method_source (1.1.0)
318308
mime-types (3.7.0)
319309
logger
320310
mime-types-data (~> 3.2025, >= 3.2025.0507)
321-
mime-types-data (3.2025.0722)
311+
mime-types-data (3.2025.0812)
322312
mini_mime (1.1.5)
323313
minitest (5.25.5)
324314
multi_json (1.15.0)
@@ -402,7 +392,6 @@ GEM
402392
activejob (= 6.1.7.10)
403393
activemodel (= 6.1.7.10)
404394
activerecord (= 6.1.7.10)
405-
activestorage (= 6.1.7.10)
406395
activesupport (= 6.1.7.10)
407396
bundler (>= 1.15.0)
408397
railties (= 6.1.7.10)
@@ -566,7 +555,6 @@ PLATFORMS
566555
x86_64-linux
567556

568557
DEPENDENCIES
569-
activesupport (~> 6.1, >= 6.1.4.6)
570558
anyway_config
571559
aruba
572560
aws-sdk-iam

dev/Dockerfile.dev

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,8 @@ COPY gems/ gems/
1010
# this is a workaround to allow installation of ruby-debug-ide, for unknown
1111
# reasons the first attempt to install it fails but the subsequent call is
1212
# successful, therefore we try to install again if the first invocation fails
13-
RUN bundle install || bundle install
13+
RUN bundle plugin install bundler-override && \
14+
bundle install || bundle install
1415

1516
FROM cyberark/ubuntu-ruby-postgres-fips:latest
1617

package.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ docker run --rm \
99
-v "$(pwd)":"$(pwd)" \
1010
--workdir "$(pwd)" \
1111
cyberark/ubuntu-ruby-builder:latest \
12-
sh -c "bundle lock --update=conjur-api"
12+
sh -c "rm -rf .bundle/plugin && bundle plugin install bundler-override && bundle lock --update=conjur-api"
1313

1414
# Create possum deb
1515
./docker-debify package \

0 commit comments

Comments
 (0)