You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Add the ability to change the default console URL path in the config file.
This would enable one to hide the consoles login page, which would protect it
from brute force login attacks.
There are plugins that do this for WordPress for example, which hide the default
/wp-admin login path and substitute it with whatever string the user has provided.
@aabmets, thanks for raising this issue! 🙏🏼 FYI, this is a little difficult right now because:
the Console uses file-based routing and expects the paths to be a certain way. The Console is also statically built, so changing the path at runtime wouldn't be possible.
the backend routes various paths to the Console frontend:
@stnguyen90
File based routing is not an issue, because Svelte has parameterized file routes.
You could implement it like this: src/pages/[randstr]/+console.js
And put a logic check into the console.js file which checks if the randstr param matches the one defined in the configuration file. Hell, there is even no need for doing it through the appwrite config file, because the console itself could store the randstr route value into whatever db it maintains its own state in. Although, the check must be done server-side to prevent client-side
hacking. I don't know if Svelte supports SSR or not.
This issue seems to not get much attention from the community and the effort to make this possible will be too big vs the benefits. Our official recommendation for hosting Appwrite with other apps on the same domain is to separate it but using a different subdomain.
Activity
stnguyen90 commentedon Apr 28, 2023
@aabmets, thanks for raising this issue! 🙏🏼 FYI, this is a little difficult right now because:
appwrite/app/controllers/web/console.php
Lines 6 to 19 in e311b6b
aabmets commentedon Apr 28, 2023
@stnguyen90
File based routing is not an issue, because Svelte has parameterized file routes.
You could implement it like this:
src/pages/[randstr]/+console.jsAnd put a logic check into the console.js file which checks if the randstr param matches the one defined in the configuration file. Hell, there is even no need for doing it through the appwrite config file, because the console itself could store the randstr route value into whatever db it maintains its own state in. Although, the check must be done server-side to prevent client-side
hacking. I don't know if Svelte supports SSR or not.
[-]Console custom URL path[/-][+]:rocket: Feature: Console custom URL path[/+]eldadfux commentedon Feb 22, 2024
This issue seems to not get much attention from the community and the effort to make this possible will be too big vs the benefits. Our official recommendation for hosting Appwrite with other apps on the same domain is to separate it but using a different subdomain.