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

Component-Def/component/protocol/port-range start and end points are not identified. #290

Closed
RS-Credentive opened this issue Jun 14, 2024 · 3 comments
Labels
bug Something isn't working

Comments

@RS-Credentive
Copy link

Describe the bug

If a component definition has a port range with a start and end, eg:

                        "port-ranges": [
                            {
                                "start": 80,
                                "end": 80,
                                "transport": "TCP"
                            }
                        ]

oscal CLI reports the following:

[WARNING] [/component-definition/component[X]/protocol[X]/port-range[X]] A start port exists, but an end point does not. To define a single port, the start and end should be the same value.
[WARNING] [/component-definition/component[X]/protocol[X]/port-range[X]] An end point exists, but a start port does not. To define a single port, the start and end should be the same value.

Who is the bug affecting?

Me

What is affected by this bug?

component-def validation

When does this occur?

When passed the attached component definition
rails-puma-component-def.json

How do we replicate the issue?

oscal-cli component-definition validate rails-puma-component-def.json

Expected behavior (i.e. solution)

Document should validate

@RS-Credentive RS-Credentive added the bug Something isn't working label Jun 14, 2024
@iMichaela
Copy link

@RS-Credentive - Hi Rob - this is a known-to-NIST error in the OSCAL definitions (the constraints). We will have it corrected in the next OSCAL release, but to ensure traceably at your end, do you mind moving this issue to OSCAL repo? Thank you.

@RS-Credentive
Copy link
Author

I will do this. Thanks!

@github-project-automation github-project-automation bot moved this from Needs Triage to Done in NIST OSCAL Work Board Jun 15, 2024
@iMichaela
Copy link

Issue usnistgov/OSCAL#2023 addresses the core problem of this issue, and future releases of oscal-cli will not exhibit this error after the usnistgov/OSCAL#2023 is closed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
Status: Done
Development

No branches or pull requests

2 participants