abra app secret generate ... admin_token breaks #498

Closed
opened 2025-02-06 15:33:48 +00:00 by stevensting · 1 comment

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 with vaultwarden recipe: Still have an old unhashed admin token v1 present and then executing abra app secret generate ... admin_token

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 with vaultwarden recipe: Still have an old unhashed admin token v1 present and then executing abra app secret generate ... admin_token
Author
Moved from https://git.coopcloud.tech/coop-cloud/vaultwarden/issues/4
decentral1se added this to the abra v0.10.0 project 2025-02-11 09:55:15 +00:00
decentral1se moved this to Done in abra v0.10.0 on 2025-04-14 22:00:59 +00:00
decentral1se moved this to Done in abra v0.10.0 on 2025-04-14 22:01:01 +00:00
decentral1se moved this to Done in abra v0.10.0 on 2025-04-16 05:16:08 +00:00
decentral1se moved this to Done in abra v0.10.0 on 2025-04-16 05:16:10 +00:00
decentral1se moved this to Done in abra v0.10.0 on 2025-04-19 07:28:29 +00:00
decentral1se moved this to Done in abra v0.10.0 on 2025-04-21 17:48:16 +00:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: toolshed/abra#498
No description provided.