Skip to content

Improve insecure domain notification #3975

Open

Description

@vsantalov

When I try to access code-server over a local network I get an error message
code-server is being accessed over an insecure domain
I understand that the recommended method to expose the server is either SSH or reverse proxy. All these methods are an overkill if the server is always behind the same firewall as the client. There should be a way to acknowledge the message and dismiss it permanently. I did not notice any broken functionality despite the warning.

Activity

  1. jsjoeio commented on Aug 12, 2021

    @jsjoeio
    Contributor

    I could be wrong here, but I believe code-server needs to be accessed over a secure domain in order for browsers to allow service workers and other features of code-server.

    I did not notice any broken functionality despite the warning

    Though you did say.

    There should be a way to acknowledge the message and dismiss it permanently

    I wonder if we add some custom functionality to code-server which lets check a box like "Don't show this again"

    cc @code-asher thoughts?

  2. added this to the Backlog Candidates milestone on Aug 12, 2021
  3. code-asher commented on Aug 13, 2021

    @code-asher
    Member
  4. Alsabti5810 commented on Aug 21, 2021

    @Alsabti5810

    When I try to access code-server over a local network I get an error message
    code-server is being accessed over an insecure domain
    I understand that the recommended method to expose the server is either SSH or reverse proxy. All these methods are an overkill if the server is always behind the same firewall as the client. There should be a way to acknowledge the message and dismiss it permanently. I did not notice any broken functionality despite the warning.

  5. stale commented on Feb 17, 2022

    @stale

    This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no activity occurs in the next 5 days.

  6. RealKoenisch commented on Apr 5, 2022

    @RealKoenisch

    Please reopen this issue, its an annoying permant message.

  7. reopened this on Apr 5, 2022
  8. RealKoenisch commented on Apr 28, 2022

    @RealKoenisch

    Are there any activities planned to avoid this behaviour, maybe in the settings?

  9. code-asher commented on Apr 28, 2022

    @code-asher
    Member

    No plans at the moment but if someone wants to implement this we are definitely happy to merge:

    I think the best solution would be to remove the
    notification and then when someone tries to use a feature that doesn't
    work without a secure domain we then pop up a notification explaining
    why it doesn't work.

    I just tested and here is what I saw was broken (mostly just webviews but there might be other things I missed):

    • Paste
    • Extension details, markdown preview, images, parts of the getting started walkthrough, welcome pages from extensions like GitLens (all these are webviews)
  10. den-mac commented on Nov 10, 2023

    @den-mac

    I'm just using this as a config editor so the message is an annoyance to me; every time I use it I have to close the dialog.

    Would love a setting to turn it off.

  11. carefulcomputer commented on Feb 5, 2024

    @carefulcomputer

    +1

  12. changed the title [-]Accessing over local network without SSL[/-] [+]Improve insecure domain notification[/+] on Jul 13, 2024
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

    enhancementSome improvement that isn't a feature

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions