[GH-ISSUE #913] [FEATURE REQUEST] Allow to disable the web UI #330

Closed
opened 2026-02-27 08:16:41 +03:00 by kerem · 11 comments
Owner

Originally created by @williamdes on GitHub (Jun 6, 2024).
Original GitHub issue: https://github.com/lldap/lldap/issues/913

Motivation

I have multiple servers, they do not each need the web UI.

Describe the solution you'd like

Allow to set to None the web port or host to disable the web server bind.

github.com/lldap/lldap@4f050cded5/server/src/main.rs (L170)

Describe alternatives you've considered

Not providing the web UI files.

Originally created by @williamdes on GitHub (Jun 6, 2024). Original GitHub issue: https://github.com/lldap/lldap/issues/913 **Motivation** I have multiple servers, they do not each need the web UI. **Describe the solution you'd like** Allow to set to `None` the web port or host to disable the web server bind. https://github.com/lldap/lldap/blob/4f050cded5ccdbb71898d9611adbcc45533c0833/server/src/main.rs#L170 **Describe alternatives you've considered** Not providing the web UI files.
kerem 2026-02-27 08:16:41 +03:00
Author
Owner

@nitnelave commented on GitHub (Jun 6, 2024):

Hi! I feel like this is better solved using firewall rules. I don't think it's necessary to add an option to disable the web UI. What if you wanted to serve the web UI on 2 ports, would you want an option for that? This would be better solved with a reverse proxy in front.

<!-- gh-comment-id:2153257620 --> @nitnelave commented on GitHub (Jun 6, 2024): Hi! I feel like this is better solved using firewall rules. I don't think it's necessary to add an option to disable the web UI. What if you wanted to serve the web UI on 2 ports, would you want an option for that? This would be better solved with a reverse proxy in front.
Author
Owner

@nitnelave commented on GitHub (Jun 6, 2024):

Note that disabling the http port would also disable the GraphQL API

<!-- gh-comment-id:2153289788 --> @nitnelave commented on GitHub (Jun 6, 2024): Note that disabling the http port would also disable the GraphQL API
Author
Owner

@williamdes commented on GitHub (Jun 7, 2024):

Hi! I feel like this is better solved using firewall rules. I don't think it's necessary to add an option to disable the web UI. What if you wanted to serve the web UI on 2 ports, would you want an option for that? This would be better solved with a reverse proxy in front.

Well, yes and no.
I really want that the code is disabled and not to have a warning when the service boots.

<!-- gh-comment-id:2154328251 --> @williamdes commented on GitHub (Jun 7, 2024): > Hi! I feel like this is better solved using firewall rules. I don't think it's necessary to add an option to disable the web UI. What if you wanted to serve the web UI on 2 ports, would you want an option for that? This would be better solved with a reverse proxy in front. Well, yes and no. I really want that the code is disabled and not to have a warning when the service boots.
Author
Owner

@williamdes commented on GitHub (Jun 7, 2024):

Could you re open and consider this feature?
I can make a PR

<!-- gh-comment-id:2154328886 --> @williamdes commented on GitHub (Jun 7, 2024): Could you re open and consider this feature? I can make a PR
Author
Owner

@nitnelave commented on GitHub (Jun 7, 2024):

I'm not sure I understand, what warning are you seeing?

<!-- gh-comment-id:2154352346 --> @nitnelave commented on GitHub (Jun 7, 2024): I'm not sure I understand, what warning are you seeing?
Author
Owner

@williamdes commented on GitHub (Jun 7, 2024):

I'm not sure I understand, what warning are you seeing?

Delete the app folder and restart. It will complain not having it

<!-- gh-comment-id:2154363626 --> @williamdes commented on GitHub (Jun 7, 2024): > I'm not sure I understand, what warning are you seeing? Delete the app folder and restart. It will complain not having it
Author
Owner

@nitnelave commented on GitHub (Jun 7, 2024):

Yes, that's not what I'm suggesting. I'm suggesting a firewall or a reverse proxy in front of it to disable traffic to the web Gui

<!-- gh-comment-id:2154441707 --> @nitnelave commented on GitHub (Jun 7, 2024): Yes, that's not what I'm suggesting. I'm suggesting a firewall or a reverse proxy in front of it to disable traffic to the web Gui
Author
Owner

@williamdes commented on GitHub (Jun 7, 2024):

Yes, that's not what I'm suggesting. I'm suggesting a firewall or a reverse proxy in front of it to disable traffic to the web Gui

yes, but that's what I am reporting ;)
First the warning should go away if I do not want to have the web ui running and binding my port.

<!-- gh-comment-id:2154542746 --> @williamdes commented on GitHub (Jun 7, 2024): > Yes, that's not what I'm suggesting. I'm suggesting a firewall or a reverse proxy in front of it to disable traffic to the web Gui yes, but that's what I am reporting ;) First the warning should go away if I do not want to have the web ui running and binding my port.
Author
Owner

@nitnelave commented on GitHub (Jun 7, 2024):

I hear you :) I'm trying to reduce the complexity of LLDAP, especially to support unusual cases. How bad would it be to have the static files, bind to a port (HTTP) and disable access to that port in the firewall or proxy?
Are you worried about the resource usage? In terms of CPU, disk space, number of free ports?
I don't have all your constraints.

<!-- gh-comment-id:2154563516 --> @nitnelave commented on GitHub (Jun 7, 2024): I hear you :) I'm trying to reduce the complexity of LLDAP, especially to support unusual cases. How bad would it be to have the static files, bind to a port (HTTP) and disable access to that port in the firewall or proxy? Are you worried about the resource usage? In terms of CPU, disk space, number of free ports? I don't have all your constraints.
Author
Owner

@williamdes commented on GitHub (Jun 7, 2024):

I hear you :) I'm trying to reduce the complexity of LLDAP, especially to support unusual cases. How bad would it be to have the static files, bind to a port (HTTP) and disable access to that port in the firewall or proxy? Are you worried about the resource usage? In terms of CPU, disk space, number of free ports? I don't have all your constraints.

I am trying to use rust tooling because the mentality is more to not use what you do not need. And I do not need the Web UI at all.

That removes security concerns about the web API and the files itself.

Just do not have what you do not need.

That said, off topic, but Idid not find a way to load custom schemas. And sadly I am back to openldap. 😢

<!-- gh-comment-id:2154651214 --> @williamdes commented on GitHub (Jun 7, 2024): > I hear you :) I'm trying to reduce the complexity of LLDAP, especially to support unusual cases. How bad would it be to have the static files, bind to a port (HTTP) and disable access to that port in the firewall or proxy? Are you worried about the resource usage? In terms of CPU, disk space, number of free ports? I don't have all your constraints. I am trying to use rust tooling because the mentality is more to not use what you do not need. And I do not need the Web UI at all. That removes security concerns about the web API and the files itself. Just do not have what you do not need. That said, off topic, but Idid not find a way to load custom schemas. And sadly I am back to openldap. 😢
Author
Owner

@nitnelave commented on GitHub (Jun 7, 2024):

We can't load ldif schemas, but we have custom user defined attributes which allow you to build your schema. There are some limitations on the filters that you can use, and they don't have a great web UI yet, though.

I'm not convinced by the concerns of resources (it's very cheap to have an interface that you listen to) or security (the main problem would be the one server where you do expose the web UI).

<!-- gh-comment-id:2154658448 --> @nitnelave commented on GitHub (Jun 7, 2024): We can't load ldif schemas, but we have custom user defined attributes which allow you to build your schema. There are some limitations on the filters that you can use, and they don't have a great web UI yet, though. I'm not convinced by the concerns of resources (it's very cheap to have an interface that you listen to) or security (the main problem would be the one server where you do expose the web UI).
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/lldap-lldap#330
No description provided.