-
Notifications
You must be signed in to change notification settings - Fork 107
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
Authorization issues with Ruby apps for servers without domain names #2970
Comments
I wonder what this value is for you when you don't have |
I suspect this is always evaluated to ondemand/ood-portal-generator/templates/ood-portal.conf.erb Lines 189 to 190 in f392397
|
|
Thanks I see where it's being set. Seems like we need to add IPs to this list. |
I have a patch incoming for this. Do you need ipv6 addresses too? |
ipv4 should be fine for now thanks |
I'm having the same issue, and how did I fix it |
It looks like the patch made it into the 3.1 series. Are you running |
The access issue was solved by using the ood-portal-generator/lib/ood_portal_generator/view.rb file of the master branch. |
We have been upgrading from OnDemand 2 to 3 and found that trying to access the dashboard would give a 403 error
The
error.log
file in the user's/var/log/ondemand-nginx
directory contained:ERROR "[ActionDispatch::HostAuthorization::DefaultResponseApp] Blocked host: <our IP address>
This was fixed by specifying our IP as the
servername
in theood_portal.yml
file, but it is documented that leaving this as the default null value should allow IP connections https://osc.github.io/ood-documentation/latest/reference/files/ood-portal-yml.htmlOn investigation of the error message, we found that we could connect via IP by injecting
config.hosts = nil
into
/var/www/ood/apps/sys/dashboard/config/environments/production.rb
and/var/www/ood/apps/sys/myjobs/config/environments/production.rb
and the error message would no longer appearThe line replaced in both files was originally
config.hosts = ENV['ALLOWED_HOSTS'].nil? ? nil : ENV['ALLOWED_HOSTS'].split(',')
We can't find where this environment variable comes from
Is this a bug or is there something wrong with our config? Thank you
The text was updated successfully, but these errors were encountered: