Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add MSSP functionality to Hosts and User Management samples, fix CSPM policies sample #575

Merged
merged 5 commits into from
Mar 3, 2022

Conversation

jshcodes
Copy link
Member

@jshcodes jshcodes commented Mar 3, 2022

Sample updates

This pull request updates several samples to provide MSSP functionality and implements a bug fix for the CSPM policies sample causing the example to drop a few of the results.

  • Enhancement
  • Bug fixes
  • Code sample

Bandit analysis

Please note: Due to a false positive newly introduced in bandit version 1.7.3, we have pinned bandit to version 1.7.2 temporarily.

bandit -r samples
[main]	INFO	running on Python 3.9.9
Run started:2022-03-03 01:40:18.145639

Test results:
	No issues identified.

Code scanned:
	Total lines of code: 4585
	Total lines skipped (#nosec): 1

Run metrics:
	Total issues (by severity):
		Undefined: 0.0
		Low: 0.0
		Medium: 0.0
		High: 0.0
	Total issues (by confidence):
		Undefined: 0.0
		Low: 0.0
		Medium: 0.0
		High: 0.0
Files skipped (0):

Added features and functionality

  • Added: MSSP functionality to multiple samples for Hosts and User Management service collections.
    • samples/hosts/sensor_versions_by_hostname.py
    • samples/hosts/stale_sensors.py
    • samples/user_management/bulk_user.py

Issues resolved

  • Bug fix: JSON parsing issue resulting in dropped policies from overall resultset.
    • samples/cspm_registration/get_cspm_policies.py

@jshcodes jshcodes self-assigned this Mar 3, 2022
@github-actions github-actions bot added code samples Functioning sample code to get you started documentation 📖 Improvements or additions to documentation pipeline CI/CD related labels Mar 3, 2022
Bumping bandit pinned version to 1.7.2
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
code samples Functioning sample code to get you started documentation 📖 Improvements or additions to documentation pipeline CI/CD related
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant