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

[HOLD] Migrate portscan and vulnscan Instances to Debian Buster #292

Merged
merged 9 commits into from
Dec 2, 2020

Conversation

mcdonnnj
Copy link
Member

@mcdonnnj mcdonnnj commented Nov 10, 2020

🗣 Description

This PR updates the Packer configurations to build the portscan and vulnscan AMIs (nessus.json and nmap.json) on Debian Buster.

This PR should only be merged along with the following PRs:
cisagov/cyhy-runner#2
https://github.com/jsf9k/cyhy-commander/pull/17

💭 Motivation and Context

Migrating cisagov/cyhy-runner to Python 3 requires the instances it runs on to update to using Debian Buster.

🧪 Testing

I have used these updates to create AMIs that were deployed as part of testing the linked PRs.

✅ Checklist

  • This PR has an informative and human-readable title.
  • Changes are limited to a single goal - eschew scope creep!
  • All relevant type-of-change labels have been added.
  • I have read the CONTRIBUTING document.
  • These code changes follow cisagov code standards.
  • All new and existing tests pass.

Update the Packer configurations for nessus and nmap to build from Debian
Buster base AMIs.
@mcdonnnj mcdonnnj marked this pull request as ready for review November 12, 2020 18:34
@mcdonnnj mcdonnnj requested review from dav3r, felddy, hillaryj, jsf9k and a team as code owners November 12, 2020 18:34
Missed updating these from Debian Stretch to Debian Buster to reflect the rest
of this PR's changes.
Copy link
Member

@dav3r dav3r left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Moar Buster! Sayonara Stretch! 🛥️

Copy link
Member

@jsf9k jsf9k left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I did a stretch in Chino.

Seriously, it feels good to move away from Debian Stretch.

With the vulnscanner instances moving to Python 3 only, the script that
installs the Nessus base policy needs to be updated for Python 3.
@mcdonnnj mcdonnnj requested review from jsf9k and dav3r November 16, 2020 15:22
Copy link
Member

@dav3r dav3r left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Still 👍 from me!

Copy link
Member

@jsf9k jsf9k left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I made a few suggestions to use f-strings instead of the less fashionable "".format() style.

ansible/roles/nessus/files/nessus_base.py Outdated Show resolved Hide resolved
ansible/roles/nessus/files/nessus_base.py Outdated Show resolved Hide resolved
ansible/roles/nessus/files/nessus_base.py Outdated Show resolved Hide resolved
ansible/roles/nessus/files/nessus_base.py Outdated Show resolved Hide resolved
mcdonnnj and others added 3 commits November 16, 2020 10:32
Switch .format() calls for f-strings since this script will run on systems with Python 3.6+.

Co-authored-by: Shane Frasier <jeremy.frasier@trio.dhs.gov>
Change two other str.format() uses to f-strings to mirror the changes suggested
in the PR review by @jsf9k.
Call the correct Python binary and update nessus_base.py to mirror how it is
used.
@hillaryj hillaryj changed the title Migrate portscan and vulnscan Instances to Debian Buster [HOLD] Migrate portscan and vulnscan Instances to Debian Buster Nov 23, 2020
@mcdonnnj mcdonnnj mentioned this pull request Nov 27, 2020
11 tasks
@mcdonnnj mcdonnnj merged commit afce82b into develop Dec 2, 2020
@mcdonnnj mcdonnnj deleted the scanners_on_buster branch December 2, 2020 18:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants