Skip to content

Import into STIGManager from Evaluate-STIG only processes the last CKL file scanned #1449

Description

@CWBISAST

Is there an existing issue for this?

  • I have searched the existing issues

Are you using the latest version of STIG Manager?

  • I am using the latest Release.
  • I am NOT using the latest Release. I am aware that the first thing I will be asked to do is update the application so that I have the latest bugfixes.

Where are you experiencing the issue?

  • API
  • UI or other client
  • Deployment
  • Elsewhere

Current Behavior

When performing an evaluation using evaluate-STIG that encompasses multiple STIGs or multiple instances of a single STIG on a given system, only the last file processed is uploaded to STIGManager. I worked with the Evaluate-STIG dev team and determined Evaluate-STIG is sending all the data across, but only the last one is being added to STIGManager.

Expected Behavior

All STIGs sent by Evaluate-STIG should be loaded into STIGManager

Steps To Reproduce

This was originally noticed on a web server. Evaluate-STIG properly assesses the Apache Server STIG, multiple Apache Site STIGS and the operating system STIG (in that order). The appropriate .CKL files are generated in the OutputPath. However, only the OS STIG is uploaded to STIG Manager. I then did a --SelectSTIG to specify the Apache Server STIG be evaluated separately, and that loaded to STIGManager correctly, so I know it's not Apache that is the issue. Finally, I ran the Site STIG separately, and although it evaluated 65 sites and produced CKL files for each, only the last one processed was pushed to STIGManager. I added debug code to Evaluate-STIG, and found that every STIG sent except the last receives a response of "@{ruleId=SV-214233r960900_rule; reason=no grant for this asset/ruleId}". If you load the STIG individually it works, but if it is loaded via the queue, it fails. Also working issue https://spork.navsea.navy.mil/nswc-crane-division/evaluate-stig/-/issues/2029#note_622921 with the Evaluate-STIG team as I am unsure where the issue is.

Can you provide screenshots, logs, or other useful artifacts?

No response

Describe your Environment

- Hosting: STIGManager 1.4.18 running in a container in AWS.
- Browser: NA / Evaluate-STIG_1.2410.0 pushing data
- OS: Oracle Enterprise Linux 8 and Ubuntu 20.04 LTS
- Node: ??
- npm: ??

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions