This repository was archived by the owner on Mar 1, 2026. It is now read-only.
Repository navigation
to_xccdf: Enable STIGViewer support for automatic CCI descriptions. - #222
Merged
Merged
Conversation
…m attribute to display correctly in STIG Viewer. Signed-off-by: Jarod Neuner <[email protected]>
janeuner
force-pushed
the
jn-ident-system-stigviewer
branch
from
April 9, 2021 23:11
10dae7a to
eb466e7
Compare
Signed-off-by: Jarod Neuner <[email protected]>
Contributor
Author
Bialogs
suggested changes
Apr 15, 2021
Bialogs
left a comment
Contributor
There was a problem hiding this comment.
Instead of making the rule_idents method aware of the type of system being created, move back the logic to the initializer for the Ident itself. This way the logic for determine legacy or CCI can be reused if we need to include this information on other output formats.
Not sure what you would have to parse within the control['cci'] or control['legacy'] to make that determination.
Essentially what would be acceptable is
# to_xxdf.rb#build_rule_idents
# ...
idents.map { Ident.new(identifier) }
# HappyMapperTools::Benchmark::Ident
class Ident
def initialize(ident_string)
# Some parsing to determine CCI or Legacy
@system = system
@ident = ident
end
end
Contributor
|
Thanks for the changes. Makes sense since these legacy IDs are now being parsed from the XCCDF content. Please take a look at my review. |
…ructor Signed-off-by: Jarod Neuner <[email protected]>
Bialogs
approved these changes
Apr 16, 2021
Merged
Bialogs
pushed a commit
that referenced
this pull request
Apr 23, 2021
- added fallback logic for unrecognized idents, using legacy behaviors - added unit testing for the new Ident constructor * Cleanup Ident test to use hash instead of array Signed-off-by: Jarod Neuner <[email protected]> Signed-off-by: Robert Clark <[email protected]> Co-authored-by: Robert Clark <[email protected]>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.

XCCDF ident elements with CCI values should use a cyber.mil/cci system attribute to display correctly in STIG Viewer.