Louis Ruch
030c09c6b9
bug(targets): Fix panic in authorize-session (#1496)
When renaming credential libraries -> credential sources
the target service added the credential library information
to the SessionCredential response, while the target cmd was
parsing the credential source.
This prevents a panic like the following:
boundary targets authorize-session -id ttcp_5PS2dktESb
panic: runtime error: invalid memory address or nil pointer dereference
[signal SIGSEGV: segmentation violation code=0x1 addr=0x30 pc=0x1f99a31]
goroutine 1 [running]:
github.com/hashicorp/boundary/internal/cmd/commands/targetscmd.printCustomActionOutputImpl(0xc00046c0a0)
/Users/louisruch/boundary/internal/cmd/commands/targetscmd/funcs.go:822 +0x9d1
github.com/hashicorp/boundary/internal/cmd/commands/targetscmd.(*Command).Run(0xc00046c0a0, {0xc000134030, 0x2, 0x2})
/Users/louisruch/boundary/internal/cmd/commands/targetscmd/targets.gen.go:324 +0x188b
github.com/mitchellh/cli.(*CLI).Run(0xc0001c6500)
/Users/louisruch/go/pkg/mod/github.com/mitchellh/cli@v1.1.2/cli.go:262 +0x5f8
github.com/hashicorp/boundary/internal/cmd.RunCustom({0xc000134010, 0x60, 0x0}, 0x0)
/Users/louisruch/boundary/internal/cmd/main.go:186 +0x9d6
github.com/hashicorp/boundary/internal/cmd.Run(...)
/Users/louisruch/boundary/internal/cmd/main.go:92
main.main()
/Users/louisruch/boundary/cmd/boundary/main.go:13 +0xc9
Fixes #1488
2021-09-01 09:16:47 -07:00
..
2021-08-26 10:44:41 -04:00
2021-08-26 10:44:41 -04:00
2021-09-01 09:16:47 -07:00
2020-08-10 17:15:02 -04:00
2021-08-01 14:41:13 -04:00
2021-04-15 13:33:52 -04:00
2021-08-01 14:41:13 -04:00
2021-06-22 22:26:26 -04:00
2021-01-07 10:02:32 -05:00
2021-08-01 14:41:13 -04:00
2021-08-01 14:41:13 -04:00
2021-07-28 06:31:16 -04:00
2021-08-01 14:41:13 -04:00
2021-04-08 20:54:32 -04:00
2021-08-01 14:41:13 -04:00
2021-08-01 14:41:13 -04:00
2020-05-15 10:19:55 -04:00
2021-07-29 20:52:56 -04:00
2021-08-05 10:54:10 -04:00
2020-10-09 16:49:36 -04:00