Skip to content
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

Is it safe to block hauk default url ? #31

Closed
RuralYak opened this issue Sep 13, 2019 · 4 comments
Closed

Is it safe to block hauk default url ? #31

RuralYak opened this issue Sep 13, 2019 · 4 comments
Labels
documentation Improvements or additions to documentation question Further information is requested

Comments

@RuralYak
Copy link
Contributor

To minimize exposed surface I wanted to block default hauk url that does not have any reference to a particular endpoint document.

Like https://apps.varden.info/demo/hauk/ is blocked
but https://apps.varden.info/demo/hauk/?2HFB-4KOS allowed

Is that good idea?

@bilde2910
Copy link
Owner

As long as you're careful to only block only the root URL and only if it does not have query string parameters, then that's completely safe. You can do this using nginx as a reverse proxy with e.g.

location / {
    proxy_pass http://hauk;
}

location ~* ^/(index.html)?$ {
    if ($args ~ "^$") {
        return 403;
    }
    proxy_pass http://hauk;
}

This will return a 403 Forbidden error when you try to access the root, but if you have e.g. ?2HFB-4KOS at the end, it will allow the connection.

@bilde2910 bilde2910 added the question Further information is requested label Sep 13, 2019
@RuralYak
Copy link
Contributor Author

Think it could be a good suggestion in documentation.

@bilde2910
Copy link
Owner

I can add a section on it in the FAQ.

@bilde2910 bilde2910 added the documentation Improvements or additions to documentation label Sep 13, 2019
@bilde2910
Copy link
Owner

Added to FAQ.

This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation Improvements or additions to documentation question Further information is requested
Projects
None yet
Development

No branches or pull requests

2 participants