Skip to content

About

Enhance security and integration capabilities of [code-server]

Resources

Stars

0 stars

Watchers

1 watching

Forks

Latest commit

 

History

12 Commits

Folders and files

Repository files navigation

WIP


This project is used to enhance the security and integration capabilities of code-server .

features

Security enhancements

Code watermarking

  1. ✅Watermark display
  2. Watermark anti-cracking
    1. ✅Window resize
    2. ✅Delete watermark
    3. ✅Modify watermark attributes (location, size, transparency, etc.)
    4. ✅Modify watermark class
    5. ✅Modify watermark content
    6. ✅Overwrite watermark
    7. Browser compatibility

Code manipulation

  1. Encrypt Cut and Paste and Copy
    1. ✅Main Panel process
    2. ✅Termianl process
    3. ✅Developer tools process
  2. Disable code download
    1. ✅Download file in conetext menu
    2. Downlaod in termianl
  3. Disable copy remote file url
  4. Disable code sharing
  5. Operation anti-cracking
  6. Make a docker image with network restrictions

Behavior monitoring

  1. ✅Heartbeat detection
  2. Abnormal behavior alerts

Self-security protection

  1. ✅Wrapping algorithms and data using rustwasm
  2. Further protection of algorithms and data using custom VMs

Integration enhancements

Code submission specification

  1. ✅Commit message can only select specified content
  2. Specify content to integrate with Issue platform

Use

Out of the box

todo

Manual compilation

  1. set up the code-server environment and compile code according to https://github.com/coder/code-server/blob/main/docs/CONTRIBUTING.md
  2. clone this project
  3. copy pathes/code-server.patch to the root of the code-server project and execute git apply code-server.patch
  4. copy pathes/vscode.patch to the code-server project under lib/vscode and execute git apply vscode.patch
  5. compile code-server project according to https://github.com/coder/code-server/blob/main/docs/CONTRIBUTING.md#build

Contributing

  1. set up the code-server environment and compile code according to https://github.com/coder/code-server/blob/main/docs/CONTRIBUTING.md
  2. set up the rustwasm environment according to https://rustwasm.github.io/docs/book/game-of-life/setup.html
  3. clone this project, package wasm wasm-pack build --target web
  4. copy pkg/vscode_starsys.js / pkg/vscode_starsys_bg.wasm to the code-server project under lib/vscode/src/vs/code/browser/workbench/pkg
  5. execute yarn watch in the code-server project

Q&A

Development with code-server

When developing with code-server, you need to avoid conflicts between the project and code-server's own services. We can modify scripts.watch in package.json . Add a new port, e.g:

"watch": "LOG_LEVEL=trace PORT=3000 VSCODE_DEV=1 VSCODE_IPC_HOOK_CLI= NODE_OPTIONS='--max_old_space_size=32384 --trace-warnings' ts-node . /ci/dev/watch.ts --user-data-dir=/tmp/vscode_dev"

About

Enhance security and integration capabilities of [code-server]

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages