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 methods for changing and querying a scan template's ACES logging level #187

Merged
merged 2 commits into from
Oct 7, 2015

Conversation

tomhart-r7
Copy link
Contributor

No description provided.

return 'default' if logging.nil?
aces = REXML::XPath.first(logging, 'aces')
return 'default' if aces.nil?
return aces.attributes['level']
Copy link
Contributor

Choose a reason for hiding this comment

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

Minor, but this could return nil here if aces_level= is called with nil. Perhaps only valid values should be allowed as args to aces_level and/or an attribute existence test is in order here.

Copy link
Contributor

Choose a reason for hiding this comment

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

Would agree with Jon, might enter into some weirdness if the aces.attributes level value is nil.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Added sanity checking.

@jhart-r7
Copy link
Contributor

Since this is for product functionality that is not yet released, what is the impact of using it against a product version that does not have this functionality. IOW, if someone tries to modify a pre-ACES product's scan template to use ACES, what happens? Does the scan template still work, are there side effects, etc?

@tomhart-r7
Copy link
Contributor Author

@jhart-r7 The scan template is just XML, and Nexpose doesn't validate what XML you send it. Any XML that Nexpose doesn't know to check for will be ignored.

@tomhart-r7
Copy link
Contributor Author

That said I would rather this go out on the first gem update post SixO.

gschneider-r7 added a commit that referenced this pull request Oct 7, 2015
Add methods for changing and querying a scan template's ACES logging level
@gschneider-r7 gschneider-r7 merged commit 7f57ee6 into rapid7:master Oct 7, 2015
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.

4 participants