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

feat: add optional browser history routing to restrict #2689

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

Patrick-Remy
Copy link

Purpose

If you want to restrict creating secrets, e.g. via a proxy or firewall, you can already restrict access to /secret and /file via denying every method except GET in a proxy.

But it's not applicable to the UI/webapp as the public endpoint is /#/s/{key} and a HashRouter is used. So anybody can still access the / route and could be confused due to no error for access denied. Therefor you not need to have reak separate routes for the UI.

Related to #1635

Implemented solution

Add new build-time-env ROUTER_TYPE defaults to 'hash' with optional 'history' value to use the browsers history api for routing. Also refactor Dockerfile to improve performance on subsequent builds.

Add new build-time-env `ROUTER_TYPE` defaults to 'hash' with optional
'history' value to use the browsers history api for routing.
Also refactor Dockerfile to improve performance on subsequent builds.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant