hanami / hanami/hanami-webconsole

Provide a way to set BetterErrors::Middleware.allow_ip!

Open
#4 1 comment 0 reactions 0 assignees View on GitHub
Dominant language
Ruby
Stars
7
Forks
3
PR merge metrics
No merged PRs in 30d

Description

Whey you run Hanami app inside Docker/Vagrant container (in dev env)
you request end up "as being from external REMOTE_ADDR" and BetterErrors does not show itself for security reasons.
We need a way to setup this option, for example:
```
BetterErrors::Middleware.allow_ip! '172.18.0.0/16'
```
Maybe it should be an ENV var available?
Like `HANAMI_WEBCONSOLE_TRUSTED_IP` ?

Details: https://github.com/charliesome/better_errors/wiki/Allowing-access-to-the-console

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.