-
Notifications
You must be signed in to change notification settings - Fork 37
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
Remove create button from download pages #98
Comments
Hello! |
That's part of the equation but take a step back: We have two functions (or services) that are being performed here:
In a true micro-service sense, you could argue these are two separate services with two separate endpoints. I agree use management is useful and part of the story but I can't see a good reason to allow a file create on teh file download page (logic service isolation and all that). I already manage the permissioning outside in the reverse proxy - I have Authentik basic auth in front of things: in nginx, there are two locations defined:
So that should work fine integrated into the Authentik SSO and not allow the create button to be pressed for an unauthenticated user, but this just tidies it up. |
About 1: one could set up the service to allow anybody to send files Optional upload passwords are to make anybody upload or not That being said, I do agree that the "download" page should be simpler and not expose the header bar! |
No - nothing I do will interfere with the user management in future - this is purely about whether links and buttons appear on eth download page.
And yes - extending fileshelter to do user management/auth would be good but that is a decent piece of work. Re my change - I have got it so that the navbar is displayed always, but the New button can be set optionally to disappear on the download mage (based on config setting) - it is still useful to have the T&C and the title displayed. What is more tricky is positioning that icon on the left which just goes to the same place as the New button does, so that I can also toggle its visibility. How wedded are you to that (a) existing - can't see it adds anything and (b) being on teh left of the title If I can just remove it or put it on the right of the title, then I'm good. Will send you the PR later today and you can check. |
OK - PR done new config item:
Default behaviour is unchanged but if set to false, hides the create share button on the download page only. |
Expectation is that we want limited numbers of people to be able to use our service to create shares but anyone with the link to be able to download from created share.
Seems no good reason to have the create share button on the download page so will fork and remove it. question though:
Does anyone feel that it might be required and so optionally removed via config. Can't see it myself but if so, what should the default be - shown/hidden.
This then complete the picture: via the reverse proxy (and perhaps something like authentik) we can subject all paths except /share-download to authentication and leave that one complete open.
The text was updated successfully, but these errors were encountered: