# Roles with no name cause a segfault # # 13:32:41-0800 yagody $ ./deckd validate --verbose 2 --headers kong-admin-token:kong --rbac-resources-only -s no-name.yaml # panic: runtime error: invalid memory address or nil pointer dereference # [signal SIGSEGV: segmentation violation code=0x1 addr=0x0 pc=0xa00779] # # goroutine 36 [running]: # github.com/kong/deck/file.(*stateBuilder).rbacRoles(0xc00031f560) # /home/traines/src/deck/file/builder.go:486 +0x219 # github.com/kong/deck/file.(*stateBuilder).enterprise(0xc00031f560) # /home/traines/src/deck/file/builder.go:475 +0x2b # github.com/kong/deck/file.(*stateBuilder).build(0xc00031f560, 0x0, 0x0, 0x0) # /home/traines/src/deck/file/builder.go:56 +0x233 # github.com/kong/deck/file.Get(0xc0001c8000, 0xc0001aeaa0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, ...) # /home/traines/src/deck/file/reader.go:50 +0x1de # github.com/kong/deck/cmd.glob..func9(0xfdb9c0, 0xc0001aa070, 0x0, 0x7, 0x0, 0x0) # /home/traines/src/deck/cmd/validate.go:41 +0x23b # github.com/spf13/cobra.(*Command).execute(0xfdb9c0, 0xc0001aa000, 0x7, 0x7, 0x0, 0x0) # /home/traines/go/pkg/mod/github.com/spf13/cobra@v0.0.7/command.go:838 +0xb70 # github.com/spf13/cobra.(*Command).ExecuteC(0xfdb480, 0xfdb9c0, 0x0, 0x0) # /home/traines/go/pkg/mod/github.com/spf13/cobra@v0.0.7/command.go:943 +0x735 # github.com/spf13/cobra.(*Command).Execute(0xfdb480, 0x0, 0x0) # /home/traines/go/pkg/mod/github.com/spf13/cobra@v0.0.7/command.go:883 +0x3b # github.com/kong/deck/cmd.Execute.func2(0xc000190000, 0xc000192010, 0xc000192000) # /home/traines/src/deck/cmd/root.go:60 +0xbb # created by github.com/kong/deck/cmd.Execute # /home/traines/src/deck/cmd/root.go:57 +0x1d2 _format_version: "1.1" rbac_roles: - comment: Full access to all endpoints, across all workspaces is_default: false endpoint_permissions: - workspace: '*' endpoint: '*' actions: - delete - create - update - read negative: false