aquasecurity / aquasecurity/cloudsploit

docker run with "--config" throws error

Open
#365 3 comments 0 reactions 0 assignees View on GitHub
Dominant language
JavaScript
Stars
3.8k
Forks
751
Avg merge
11d 9h
Merged PRs (30d)
3

Description

Error
**ERROR: Config file could not be loaded. Please ensure you have copied the config_example.js file to config.js**

Full Trace

```
praveend$ docker run -e AWS_ACCESS_KEY_ID=PPPPREDACTED -e AWS_SECRET_ACCESS_KEY=DDDDREDACTED cs_us:0.0.2 --config='/Users/praveen.da/PRAVEEND/upstream_cloudsploit/cloudsploit/config.js' --compliance=pci

_____ _ _ _____ _ _ _
/ ____| | | |/ ____| | | (_) |
| | | | ___ _ _ __| | (___ _ __ | | ___ _| |_
| | | |/ _ \| | | |/ _` |\___ \| '_ \| |/ _ \| | __|
| |____| | (_) | |_| | (_| |____) | |_) | | (_) | | |_
\_____|_|\___/ \__,_|\__,_|_____/| .__/|_|\___/|_|\__|
| |
|_|

CloudSploit by Aqua Security, Ltd.
Cloud security auditing for AWS, Azure, GCP, Oracle, and GitHub

INFO: Using CloudSploit config file: /Users/praveen.da/PRAVEEND/upstream_cloudsploit/cloudsploit/config.js
ERROR: Config file could not be loaded. Please ensure you have copied the config_example.js file to config.js
```

Contributor guide

Open the contributing guide

Research direction

Reproduce the reported docker run command with --config and compare how config_example.js and config.js are handled. Trace the config-loading path from the command entry point; the issue is done when a valid config.js supplied through --config loads without the reported error.

Written by the indexing model from the issue text.

Assessment

Tech stack
docker, javascript
Domain
cli, devops
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.