abra app secret generate ... admin_token breaks #4

Closed
opened 2025-01-20 13:35:46 +00:00 by stevensting · 5 comments
Owner

Not sure what the expected output should be after introducing the hashed password command, but this is the current behaviour:

panic: runtime error: index out of range [2] with length 2

goroutine 1 [running]:
coopcloud.tech/abra/cli/app.init.func47(0xc000469300?, {0xc00015adc0, 0x2, 0x13a1f31?})
	/drone/src/cli/app/secret.go:72 +0xcdc
github.com/spf13/cobra.(*Command).execute(0x1fa3aa0, {0xc00015ad80, 0x2, 0x2})
	/drone/src/vendor/github.com/spf13/cobra/command.go:989 +0xa91
github.com/spf13/cobra.(*Command).ExecuteC(0xc000475208)
	/drone/src/vendor/github.com/spf13/cobra/command.go:1117 +0x3ff
github.com/spf13/cobra.(*Command).Execute(...)
	/drone/src/vendor/github.com/spf13/cobra/command.go:1041
coopcloud.tech/abra/cli.Run({0x15e9650, 0xf}, {0x15f6180, 0x28})
	/drone/src/cli/run.go:211 +0x99c
main.main()
	/drone/src/cmd/abra/main.go:22 +0xa9

how to reproduce: Still have an old unhashed admin token v1 present and then executing abra app secret generate ... admin_token

maybe a hint to use the new command would be nice?

Also not sure if this is a recipe issue or an abra issue.

Not sure what the expected output should be after introducing the hashed password command, but this is the current behaviour: ``` panic: runtime error: index out of range [2] with length 2 goroutine 1 [running]: coopcloud.tech/abra/cli/app.init.func47(0xc000469300?, {0xc00015adc0, 0x2, 0x13a1f31?}) /drone/src/cli/app/secret.go:72 +0xcdc github.com/spf13/cobra.(*Command).execute(0x1fa3aa0, {0xc00015ad80, 0x2, 0x2}) /drone/src/vendor/github.com/spf13/cobra/command.go:989 +0xa91 github.com/spf13/cobra.(*Command).ExecuteC(0xc000475208) /drone/src/vendor/github.com/spf13/cobra/command.go:1117 +0x3ff github.com/spf13/cobra.(*Command).Execute(...) /drone/src/vendor/github.com/spf13/cobra/command.go:1041 coopcloud.tech/abra/cli.Run({0x15e9650, 0xf}, {0x15f6180, 0x28}) /drone/src/cli/run.go:211 +0x99c main.main() /drone/src/cmd/abra/main.go:22 +0xa9 ``` how to reproduce: Still have an old unhashed admin token v1 present and then executing `abra app secret generate ... admin_token` maybe a hint to use the new command would be nice? Also not sure if this is a recipe issue or an abra issue.
Owner

@stevensting which version of abra are you running?

It looks like an abra bug?

/drone/src/cli/app/secret.go:72 +0xcdc

secretVersion := args[2]

Maybe to be moved to https://git.coopcloud.tech/toolshed/abra/issues?

It seems unrelated to the recipe on a quick glance but I don't have time to dive into it right now.

@stevensting which version of `abra` are you running? It looks like an `abra` bug? > /drone/src/cli/app/secret.go:72 +0xcdc https://git.coopcloud.tech/toolshed/abra/src/commit/8a7fe4ca07df7bf94fb897271e29fd7605595ace/cli/app/secret.go#L72 Maybe to be moved to https://git.coopcloud.tech/toolshed/abra/issues? It seems unrelated to the recipe on a quick glance but I don't have time to dive into it right now.
Author
Owner

@stevensting which version of abra are you running?

version 0.10.0-rc1-beta-8af87aa

> @stevensting which version of `abra` are you running? version 0.10.0-rc1-beta-8af87aa
Author
Owner

The move to abra queue is fine for me.

The move to abra queue is fine for me.
Owner

@stevensting do you mean, you're OK with migrating the ticket? Can you go ahead and do that? I'm catching up on a backlog now which is pretty large and would appreciate the help with ticket maintenance.

@stevensting do you mean, you're OK with migrating the ticket? Can you go ahead and do that? I'm catching up on a backlog now which is pretty large and would appreciate the help with ticket maintenance.
Author
Owner

Moved to abra queue: toolshed/abra#498

Moved to abra queue: https://git.coopcloud.tech/toolshed/abra/issues/498
Sign in to join this conversation.
No Label
2 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: coop-cloud/vaultwarden#4
No description provided.