-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #982 from alphagov/dependabot/bundler/rails-7.1.2
Bump rails from 7.1.1 to 7.1.2
- Loading branch information
Showing
10 changed files
with
127 additions
and
81 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
class User < ApplicationRecord | ||
include GDS::SSO::User | ||
serialize :permissions, type: Array | ||
serialize :permissions, type: Array, coder: YAML | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,25 @@ | ||
# Eventually we'll want to use the GOV.UK Content Security Policy in this app, | ||
# however as of January 2023 we're scoping it to only frontend apps | ||
# Be sure to restart your server when you modify this file. | ||
|
||
# Define an application-wide content security policy. | ||
# See the Securing Rails Applications Guide for more information: | ||
# https://guides.rubyonrails.org/security.html#content-security-policy-header | ||
|
||
# Rails.application.configure do | ||
# config.content_security_policy do |policy| | ||
# policy.default_src :self, :https | ||
# policy.font_src :self, :https, :data | ||
# policy.img_src :self, :https, :data | ||
# policy.object_src :none | ||
# policy.script_src :self, :https | ||
# policy.style_src :self, :https | ||
# # Specify URI for violation reports | ||
# # policy.report_uri "/csp-violation-report-endpoint" | ||
# end | ||
# | ||
# For more info on the GOV.UK CSP see: https://docs.publishing.service.gov.uk/manual/content-security-policy.html | ||
# # Generate session nonces for permitted importmap, inline scripts, and inline styles. | ||
# config.content_security_policy_nonce_generator = ->(request) { request.session.id.to_s } | ||
# config.content_security_policy_nonce_directives = %w(script-src style-src) | ||
# | ||
# GovukContentSecurityPolicy.configure | ||
# # Report violations without enforcing the policy. | ||
# # config.content_security_policy_report_only = true | ||
# end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,13 @@ | ||
# Be sure to restart your server when you modify this file. | ||
|
||
# Define an application-wide HTTP permissions policy. For further | ||
# information see https://developers.google.com/web/updates/2018/06/feature-policy | ||
# | ||
# Rails.application.config.permissions_policy do |f| | ||
# f.camera :none | ||
# f.gyroscope :none | ||
# f.microphone :none | ||
# f.usb :none | ||
# f.fullscreen :self | ||
# f.payment :self, "https://secure.example.com" | ||
# information see: https://developers.google.com/web/updates/2018/06/feature-policy | ||
|
||
# Rails.application.config.permissions_policy do |policy| | ||
# policy.camera :none | ||
# policy.gyroscope :none | ||
# policy.microphone :none | ||
# policy.usb :none | ||
# policy.fullscreen :self | ||
# policy.payment :self, "https://secure.example.com" | ||
# end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
# Rails 7 has begun to deprecate Rails.application.secrets in favour | ||
# of Rails.application.credentials, but that adds the burden of master key | ||
# adminstration without giving us any benefit (because our production | ||
# secrets are handled as env vars, not committed to our repo. Here we | ||
# loads the config/secrets.YML values into Rails.application.credentials, | ||
# retaining the existing behaviour while dropping deprecated references. | ||
|
||
Rails.application.credentials.merge!(Rails.application.config_for(:secrets)) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters