This repo includes a python script that can be used to generate compliance report in PDF format for VMware Secure State
- Works on both Linux and Windows
- virtualenv (Optional but recommended)
- Python3.7 or higher
- pip3
- Run
pip3 install -r requirements.txt
- Modify the configuration file based on your requirements. The file should be
.json
format.
Here are some sample config files.
- Sample 1 - config.json
{
"org_name":"Test Inc",
"config":{
"providers": ["AWS", "Azure"],
"severity": ["High", "Medium", "low"],
"cloudTags":{},
"cloudAccountIds":["All"]
}
}
- Sample 2 - config_2.json
{
"org_name":"Demo Inc",
"config":{
"providers": ["AWS"],
"severity": ["High"],
"cloudTags":{"alpha.eksctl.io/cluster-name": ["acme-rds"], "owner":["developer"]},
"cloudAccountIds":["12345679012", "22325145250"]
}
}
- Obtain the
Refresh Token
from CSP portal and set the environment variable
export REFRESH_TOKEN=<your_token_here>
- Run the command from cli. Configuration file name and output file name are required arguments.
python3 generate.py --config config.json --output-file vss_report
- Run
python3 generate.py -h
to get help and description
MIT License
Copyright (c) 2020 Shrivatsa Upadhye
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.