-
Notifications
You must be signed in to change notification settings - Fork 32
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
Address security issues #1589
Address security issues #1589
Changes from 2 commits
762d7e0
a34e61a
b5ab34f
1bbe3d8
cee8313
f789329
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -25,6 +25,7 @@ | |
|
||
class StorageController < ApplicationController | ||
def buckets | ||
return unless authorization('system') | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This is a good check but doesn't everyone have There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Yes, but at least not it requires you to be authenicated. Before even not logged in could get it. |
||
# ENV.map returns a big array of mostly nils which is why we compact | ||
# The non-nil are MatchData objects due to the regex match | ||
matches = ENV.map { |key, _value| key.match(/^OPENC3_(.+)_BUCKET$/) }.compact | ||
|
@@ -35,6 +36,7 @@ def buckets | |
end | ||
|
||
def volumes | ||
return unless authorization('system') | ||
# ENV.map returns a big array of mostly nils which is why we compact | ||
# The non-nil are MatchData objects due to the regex match | ||
matches = ENV.map { |key, _value| key.match(/^OPENC3_(.+)_VOLUME$/) }.compact | ||
|
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.
Should this still be
param_list[index]
or should it beresult[index]
?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.
I updated to match other messages.