
Research
Security News
The Growing Risk of Malicious Browser Extensions
Socket researchers uncover how browser extensions in trusted stores are used to hijack sessions, redirect traffic, and manipulate user behavior.
console-websocket-cf-plugin
Advanced tools
This is a CF plugin for connecting to the STDIN / STDOUT of a remote process (rails console for example) on Cloud Foundry whilst simultaneously running the intended application in the same container. It uses a binary written in Go on the server side to provide the websocket connection and also serve the application itself, if you wish to serve that up too.
1 - Install the console-websocket-cf-plugin gem
$ gem install console-websocket-cf-plugin
2 - Copy the pre-built linux binary from the Github repo in to the root of your Rails app
$ cd my_rails_app
$ wget https://github.com/danhigham/console-websocket-cf-plugin/blob/master/console-server/console-server-linux-amd64?raw=true
3 - Modify the application manifest, note the 'command' property
---
applications:
- name: rails-console-test
memory: 256M
instances: 1
host: rails-console-test
domain: cfapps.io
path: .
command: ./console-server-linux-amd64 -console-process="rails c" -main-process="bundle exec rails s -p 8080"
The processes that are started by the console-server binary are completely configurable, you could for example just run 'bash' for the console process. If you wish to make the application available, mounted at /, then it needs to be bound to port 8080, this is the port console-server expects to proxy requests to.
4 - Push the app
$ cf push --reset
5 - Start a console
$ cf console <app name>
Of course you could chose to launch 'bash' and then start 'rails c' from within the shell itself, this is my preferred method. In fact, 'bash' is the default for the -console-process option if it is omitted!
NOTE: At the moment, "exit" tells the plugin to kill the websocket connection and finish the session.
FAQs
Unknown package
We found that console-websocket-cf-plugin demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Research
Security News
Socket researchers uncover how browser extensions in trusted stores are used to hijack sessions, redirect traffic, and manipulate user behavior.
Research
Security News
An in-depth analysis of credential stealers, crypto drainers, cryptojackers, and clipboard hijackers abusing open source package registries to compromise Web3 development environments.
Security News
pnpm 10.12.1 introduces a global virtual store for faster installs and new options for managing dependencies with version catalogs.