Skip to content

Commit ac1b96d

Browse files
committed
Protect the status page and add the tutor-deployment version
1 parent 3d1bafe commit ac1b96d

File tree

4 files changed

+8
-4
lines changed

4 files changed

+8
-4
lines changed

Gemfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ gem 'rails-html-sanitizer', '~> 1.0'
5959
gem 'addressable'
6060

6161
# Utilities for OpenStax websites
62-
gem 'openstax_utilities', '~> 4.4.0'
62+
gem 'openstax_utilities', '~> 4.4.1'
6363

6464
# Cron job scheduling
6565
gem 'whenever'

Gemfile.lock

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ GEM
8484
awesome_print (1.8.0)
8585
aws-eventstream (1.1.0)
8686
aws-partitions (1.396.0)
87-
aws-sdk-autoscaling (1.52.0)
87+
aws-sdk-autoscaling (1.53.0)
8888
aws-sdk-core (~> 3, >= 3.109.0)
8989
aws-sigv4 (~> 1.1)
9090
aws-sdk-cloudwatch (1.46.0)
@@ -470,7 +470,7 @@ GEM
470470
openstax_active_force
471471
rails (~> 5.0)
472472
restforce
473-
openstax_utilities (4.4.0)
473+
openstax_utilities (4.4.1)
474474
aws-sdk-autoscaling
475475
faraday
476476
faraday-http-cache
@@ -823,7 +823,7 @@ DEPENDENCIES
823823
openstax_healthcheck
824824
openstax_rescue_from
825825
openstax_salesforce
826-
openstax_utilities (~> 4.4.0)
826+
openstax_utilities (~> 4.4.1)
827827
p3p
828828
parallel_tests
829829
paranoia (~> 2.4.1)
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
OpenStax::Utilities.configure do |config|
2+
config.status_authenticate = -> { raise SecurityTransgression unless current_user.is_admin? }
3+
end

config/secrets.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -159,6 +159,7 @@ production:
159159
environment_name: <%= ENV['ENVIRONMENT_NAME'] %>
160160
exception_contact_name: <%= ENV['EXCEPTION_CONTACT_NAME'] %>
161161
release_version: <%= ENV['RELEASE_VERSION'] %>
162+
deployment_version: <%= ENV['DEPLOYMENT_VERSION'] %>
162163
sentry_dsn: <%= ENV['SENTRY_DSN'] %>
163164
response_validation:
164165
url: <%= ENV['RESPONSE_VALIDATION_URL'] %>

0 commit comments

Comments
 (0)