Research
Security News
Malicious npm Packages Inject SSH Backdoors via Typosquatted Libraries
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.
confr-upload
Advanced tools
Upload configuration files from a given directory to confr-backend. Directory name is a stack name, subdirectories are services
npm -g i confr-upload
You may create alias
alias cu="confr-upload"
|-stacks
| |-stackA
| | |-service1
| | | |-conf.es6 ConfR configuration template. Can be used for bootstraping haproxy, nginx, rabbitmq.conf and etc
| | | |-arbitrary[@env#version].file Arbitrary file
| | | |-config[@env#version].json Json-file on a service level. May have @env and #version markers
| | |-compose[@environment].yml Docker compose file for stack with all it services
| | |-config.json Json-file on a stack level. Will be merged to service-env-version files
| |-stackB
$ cu --help
Usage: confr-upload [options]
Options:
-h, --help output usage information
-V, --version output the version number
-u, --url [url] Url to confr-backend
-e, --env [env] Enviromnent for environment-less files. Comma-separated values
-d, --dir [dir] Stack files directory [default: cwd]
-s, --stack [stack] Override stack name [default: directory name]
-f, --filter [filter] Filter only services
$ pwd
/Users/ndelitski/repo/rancher.confr-directory-tree-example
$ LOG_LEVEL=debug cu -d ./metadata-proxy -e qa,production -u http://user:super-password@localhost:3000
[INFO] 2015-11-28 21:10:16:924 Start upload...
[INFO] 2015-11-28 21:10:16:925 uploading conf.es6
[DEBUG] 2015-11-28 21:10:16:932 started POST localhost:3000/files?stack=metadata-proxy&service=proxy&environment=qa&version=&name=conf.es6
[DEBUG] 2015-11-28 21:10:16:940 started POST localhost:3000/files?stack=metadata-proxy&service=proxy&environment=production&version=&name=conf.es6
[DEBUG] 2015-11-28 21:10:16:959 finished POST localhost:3000/files?stack=metadata-proxy&service=proxy&environment=qa&version=&name=conf.es6 with response:
{"status":"ok"}
[DEBUG] 2015-11-28 21:10:16:983 finished POST localhost:3000/files?stack=metadata-proxy&service=proxy&environment=production&version=&name=conf.es6 with response:
{"status":"ok"}
[INFO] 2015-11-28 21:10:16:984 uploaded /metadata-proxy/proxy/qa/conf.es6
[INFO] 2015-11-28 21:10:16:984 uploaded /metadata-proxy/proxy/production/conf.es6
CONFR_BACKEND
environment variable in .bash_profile
or other shell~/.rancher
file if you are using rancher-cli
And now:
$ cud your-stack [service]
FAQs
Directory-to-`confr-backend` uploader
We found that confr-upload 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’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.
Security News
MITRE's 2024 CWE Top 25 highlights critical software vulnerabilities like XSS, SQL Injection, and CSRF, reflecting shifts due to a refined ranking methodology.
Security News
In this segment of the Risky Business podcast, Feross Aboukhadijeh and Patrick Gray discuss the challenges of tracking malware discovered in open source softare.