Thanks to visit codestin.com
Credit goes to github.com

Skip to content

How to run code-server with HTTPS by a low privilege user? #1211

Closed
@ttfan240

Description

@ttfan240

How to run code-server with HTTPS by a low privilege user?

Overview

If I run code-server as the root user and log in, I can use the account in the terminal of VSCode.

However, since code-server uses password authentication for login, I want to use a low privilege user alternatively for insurance.

Are there good methods?

Environment

code-server 2.1692-vsc1.39.2
Ubuntu 18.04.1 LTS

Problem

If a user had access to the private key, I was able to run code-server over https with the user. But, when I log in on Chrome, it shows just a white screen.

DevTools console shows the following error after about 5 seconds from login.

storageService.ts:42 Uncaught TypeError: Cannot read property 'hasPendingUpdate' of undefined
    at p.get hasPendingUpdate [as hasPendingUpdate] (storageService.ts:42)
    at storageService.ts:71

Moreover, I don't need access to the private key when coding, so I don't want to give it.

Supplementary information

Even a low privilege user can run code-server over HTTP.

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions