1
0
Fork 0
forked from OpenNeo/impress
impress/config/initializers
Emi Matchu 4fff8d88f2 Add support_staff flag to user record; they can use Support tools
A little architecture trick here! DTI 2020 authorizes support staff
requests by means of a secret token, instead of user account stuff. And
our support tools still all call DTI 2020 APIs.

So here, we bridge the gap: we copy DTI 2020's support secret to this
app's environment variables (I needed to update
`deploy/files/production.env` and run `bin/deploy:setup` for this!),
then users with the new `support_secret` flag have it added to their
HTML documents in the meta tags. Then, the JS reads the meta tag.

I also fixed an issue in the `deploy/setup.yml` playbook, where I had
temporarily commented some stuff out to skip steps one time, and forgot
to uncomment them after oops lol!
2024-01-29 04:21:19 -08:00
..
application_controller_renderer.rb
asset_hosts.rb
assets.rb
attack.rb Try to fix the pet load limiter 2024-01-24 03:26:52 -08:00
backtrace_silencers.rb
content_security_policy.rb
cookies_serializer.rb
devise.rb
filter_parameter_logging.rb
impress_2020.rb Add support_staff flag to user record; they can use Support tools 2024-01-29 04:21:19 -08:00
inflections.rb
locale_meta.rb
mime_types.rb
permissions_policy.rb
rack_mini_profiler.rb Add mini profiler to each page 2023-10-27 19:38:49 -07:00
rspec_generator.rb
secret_token.rb Save last trade activity time onto User 2024-01-19 00:00:46 -08:00
sentry.rb Add Sentry to Rails 2023-11-06 12:37:40 -08:00
session_store.rb
stripe.rb
wrap_parameters.rb