Dome9 SDK for Python
Project description
Dome9 (Python SDK)
Dome9 is a web service that allows you to improve the security of your cloud technologies (AWS, Azure, GCP, Kubernetes, etc...). Through its service you can centralize all the information and perform security controls (GDPR, HIPAA, ISO27001...) individually or globally.
This repository contains a Python SDK of this tool. Initially its SDK did not have much functionality and that is why I developed this one to be able to work and include it within my continuous integration processes.
Installation
pip install dome9 # Install last stable version
Usage
There are two ways to authenticate:
- As Arguments: Passing variables on init ->
Dome9(key='xxxxxx', secret='yyyyyyy')
- As Environment variables: Setting your credentials as environment variables ->
DOME9_ACCESS_KEY
andDOME9_SECRET_KEY
from dome9 import Dome9
dome9 = Dome9(key='xxxxxx', secret='yyyyyyy')
rulesets = dome9.list_rulesets()
export DOME9_ACCESS_KEY='xxxxxxxxxxxxxxxxxxxx'
export DOME9_SECRET_KEY='yyyyyyyyyyyyyyyyyyyy'
python -c "from dome9 import Dome9; print(Dome9().list_rulesets())"
What can I do?
- 🔥 List all cloud accounts ->
dome9.list_cloud_accounts()
- 🔥 List AWS accounts ->
dome9.list_aws_accounts()
- 🔥 List KUBERNETES accounts ->
dome9.list_kubernetes_accounts()
- 🍺 Create ruleset ->
dome9.create_ruleset()
- 🍺 Create remediation ->
dome9.create_remediation()
- 🚀 Connect new AWS account ->
dome9.create_aws_account()
- 🚀 Run assessment ->
dome9.run_assessment()
- 💖 List all your cloud assets ->
dome9.list_protected_assets()
What else?
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
dome9-0.4.1.tar.gz
(9.0 kB
view hashes)
Built Distribution
dome9-0.4.1-py3-none-any.whl
(9.2 kB
view hashes)