Skip to content

🚀 Feature: Console custom URL path #5430

Closed

Description

@aabmets

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.

Activity

  1. stnguyen90 commented on Apr 28, 2023

    @stnguyen90
    Contributor

    @aabmets, thanks for raising this issue! 🙏🏼 FYI, this is a little difficult right now because:

    1. 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.
    2. the backend routes various paths to the Console frontend:

    App::get('/console')
    ->alias('/')
    ->alias('/invite')
    ->alias('/login')
    ->alias('/recover')
    ->alias('/register')
    ->groups(['web'])
    ->label('permission', 'public')
    ->label('scope', 'home')
    ->inject('response')
    ->action(function (Response $response) {
    $fallback = file_get_contents(__DIR__ . '/../../../console/index.html');
    $response->html($fallback);
    });

  2. aabmets commented on Apr 28, 2023

    @aabmets
    Author

    @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.

  3. changed the title [-]Console custom URL path[/-] [+]:rocket: Feature: Console custom URL path[/+] on Apr 28, 2023
  4. eldadfux commented on Feb 22, 2024

    @eldadfux
    Member

    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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions