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

Generate Component failing with fedramp catalog #571

Closed
brandtkeller opened this issue Jul 31, 2024 · 0 comments · Fixed by #573
Closed

Generate Component failing with fedramp catalog #571

brandtkeller opened this issue Jul 31, 2024 · 0 comments · Fixed by #573
Assignees
Labels
bug Something isn't working

Comments

@brandtkeller
Copy link
Member

Steps to reproduce

dev@dev:~/work/lula$ ./bin/lula generate component -c https://raw.githubusercontent.com/GSA/fedramp-automation/93ca0e20ff5e54fc04140613476fba80f08e3c7d/dist/content/rev5/baselines/json/FedRAMP_rev5_HIGH-baseline-resolved-profile_catalog.json --component "Istio Controlplane" -r ac-14,ac-4,ac-4.21,ac-4.4,ac-6.3,ac-6.9,au-12,au-2,au-3,au-3.1,cm-5,sc-10,sc-13,sc-23,sc-3,sc-39,sc-4,sc-7.20,sc-7.21,sc-7.4,sc-7.8,sc-8,sc-8.1,sc-8.2

Expected result

Successful component generation

Actual Result

 NOTE  Saving log file to /tmp/lula-2024-07-31-15-06-34-3505079792.log
panic: runtime error: invalid memory address or nil pointer dereference
[signal SIGSEGV: segmentation violation code=0x1 addr=0x0 pc=0x1c2dcfb]

goroutine 1 [running]:
github.com/defenseunicorns/lula/src/pkg/common/oscal.addPart(0xc00096fb80?, 0xc004afb498, 0x0)
        github.com/defenseunicorns/lula/src/pkg/common/oscal/component.go:524 +0xbb
github.com/defenseunicorns/lula/src/pkg/common/oscal.ControlToImplementedRequirement(0xc004afb5e8, {0xc004afbc40, 0x1, 0x0?})
        github.com/defenseunicorns/lula/src/pkg/common/oscal/component.go:376 +0x3e5
github.com/defenseunicorns/lula/src/pkg/common/oscal.ComponentFromCatalog({0x7fff77eef2ca, 0xbb}, 0xc000f18000, {0x7fff77eef392, 0x12}, {0xc000ac6d80, 0x18, 0xc79e9c5400000000?}, {0xc004afbc40, 0x1, ...})
        github.com/defenseunicorns/lula/src/pkg/common/oscal/component.go:282 +0xbd8
github.com/defenseunicorns/lula/src/cmd/generate.init.func1(0x3a94e00, {0xc0000ede00?, 0x4?, 0x2192ad3?})
        github.com/defenseunicorns/lula/src/cmd/generate/generate.go:107 +0x445
github.com/spf13/cobra.(*Command).execute(0x3a94e00, {0xc0000eda40, 0x6, 0x6})
        github.com/spf13/[email protected]/command.go:989 +0xab1
github.com/spf13/cobra.(*Command).ExecuteC(0x3a93fa0)
        github.com/spf13/[email protected]/command.go:1117 +0x3ff
github.com/spf13/cobra.(*Command).Execute(...)
        github.com/spf13/[email protected]/command.go:1041
github.com/defenseunicorns/lula/src/cmd.Execute()
        github.com/defenseunicorns/lula/src/cmd/root.go:57 +0x1a
main.main()
        github.com/defenseunicorns/lula/main.go:8 +0xf

Severity/Priority

Medium

Additional Context

May need to keep considering if there is any functionality too opinionated for 800-53 that does not work with generic catalog authorship.

@brandtkeller brandtkeller added the possible-bug Something may not be working label Jul 31, 2024
@github-actions github-actions bot added the triage Awaiting triage from the team label Jul 31, 2024
@brandtkeller brandtkeller self-assigned this Jul 31, 2024
@brandtkeller brandtkeller added bug Something isn't working and removed triage Awaiting triage from the team possible-bug Something may not be working labels Jul 31, 2024
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
Archived in project
Development

Successfully merging a pull request may close this issue.

1 participant