Fatal: cannot unmarshal string into Go struct field Login.logins.username
1.0.8
Created a desktop without selecting secrets for username and password. Instant fatal.
2024-05-23T10:51:54.043+0200 INFO cmd/runner.go:228 Running in machine-only mode {"hostname": "seagrass"}
2024-05-23T10:51:54.043+0200 INFO cmd/runner.go:206 expvars available {"port": 8080}
2024-05-23T10:51:54.043+0200 DEBUG kwanza/kwanza.go:42 Connecting {"kwanzaUrl": "orebro.se.sirenia.cloud:8001"}
2024-05-23T10:51:54.043+0200 DEBUG kwanza/kwanza.go:42 Connecting {"kwanzaUrl": "orebro.se.sirenia.cloud:8001"}
2024-05-23T10:51:54.043+0200 DEBUG kwanza/kwanza.go:42 Connecting {"kwanzaUrl": "orebro.se.sirenia.cloud:8001"}
2024-05-23T10:51:54.043+0200 DEBUG kwanza/kwanza.go:42 Connecting {"kwanzaUrl": "orebro.se.sirenia.cloud:8001"}
2024-05-23T10:51:54.195+0200 DEBUG kwanza/kwanza.go:144 Fetching {"typeName": "desktop_login_status", "kql": ""}
2024-05-23T10:51:54.195+0200 DEBUG kwanza/kwanza.go:144 Fetching {"typeName": "desktop", "kql": "machine='seagrass'"}
2024-05-23T10:51:54.203+0200 DEBUG kwanza/kwanza.go:144 Fetching {"typeName": "secret", "kql": ""}
2024-05-23T10:51:54.322+0200 DEBUG cmd/runner.go:254 Updating statuses {"count": 0}
2024-05-23T10:51:54.322+0200 DEBUG cmd/runner.go:265 First statuses received
2024-05-23T10:51:54.325+0200 DEBUG cmd/runner.go:278 Updating desktops {"count": 0}
2024-05-23T10:51:54.325+0200 DEBUG cmd/runner.go:280 Updated desktops
2024-05-23T10:51:54.325+0200 DEBUG cmd/runner.go:282 Synced connectors (desktop)
2024-05-23T10:51:54.332+0200 DEBUG cmd/runner.go:270 Updating secrets {"count": 1}
2024-05-23T10:54:50.443+0200 WARN kwanza/kwanza.go:231 Failed to make item {"error": "json: cannot unmarshal string into Go struct field Login.logins.username of type kwanza.SecretReference"}
gitlab.com/sirenia/pistia/kwanza.merge[...]
C:/GitLab-Runner/builds/sirenia/pistia/kwanza/kwanza.go:231
gitlab.com/sirenia/pistia/kwanza.stream[...]
C:/GitLab-Runner/builds/sirenia/pistia/kwanza/kwanza.go:210
gitlab.com/sirenia/pistia/kwanza.Sync[...]
C:/GitLab-Runner/builds/sirenia/pistia/kwanza/kwanza.go:294
2024-05-23T10:54:50.443+0200 DEBUG kwanza/kwanza.go:215 Merged items {"count": 1}
2024-05-23T10:54:50.444+0200 DEBUG cmd/runner.go:278 Updating desktops {"count": 1}
panic: runtime error: invalid memory address or nil pointer dereference
[signal 0xc0000005 code=0x0 addr=0x8 pc=0x7ff772a3b2a0]
goroutine 1 [running]:
gitlab.com/sirenia/pistia/kwanza.(*Desktop).Identifier(0x116?)
C:/GitLab-Runner/builds/sirenia/pistia/kwanza/desktop.go:93
gitlab.com/sirenia/pistia/kwanza.(*Archive[...]).Update(0x7ff772ecd840, {0xc000290088, 0x1, 0x1})
C:/GitLab-Runner/builds/sirenia/pistia/kwanza/kwanza.go:360 +0xaf
gitlab.com/sirenia/pistia/cmd.(*Runner).run(0xc000488000, {0x7ff772ec3fb0, 0x7ff7733fd1c0})
C:/GitLab-Runner/builds/sirenia/pistia/cmd/runner.go:279 +0xb2e
gitlab.com/sirenia/pistia/cmd.init.func2(0xc000382300?, {0x7ff772d81dc2?, 0x4?, 0x7ff772d81dc6?})
C:/GitLab-Runner/builds/sirenia/pistia/cmd/run.go:135 +0x2b2
github.com/spf13/cobra.(*Command).execute(0x7ff772bbf380, {0xc00014e300, 0x8, 0x8})
C:/GitLab-Runner/builds/sirenia/pistia/vendor/github.com/spf13/cobra/command.go:987 +0xab1
github.com/spf13/cobra.(*Command).ExecuteC(0x7ff772bbf0a0)
C:/GitLab-Runner/builds/sirenia/pistia/vendor/github.com/spf13/cobra/command.go:1115 +0x3ff
github.com/spf13/cobra.(*Command).Execute(...)
C:/GitLab-Runner/builds/sirenia/pistia/vendor/github.com/spf13/cobra/command.go:1039
gitlab.com/sirenia/pistia/cmd.Execute()
C:/GitLab-Runner/builds/sirenia/pistia/cmd/root.go:32 +0x8b
main.main()
C:/GitLab-Runner/builds/sirenia/pistia/pistia.go:10 +0xf
PS C:\Users\martin\Downloads>