Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions cmd/lk/agent.go
Original file line number Diff line number Diff line change
Expand Up @@ -1279,6 +1279,10 @@ func requireSecrets(_ context.Context, cmd *cli.Command, required, lazy bool) ([
continue
}

if v == "" {
return nil, fmt.Errorf("failed to parse secrets file: secret %s is empty, either remove it or provide a value", k)
}

secret := &lkproto.AgentSecret{
Name: k,
Value: []byte(v),
Expand Down
Loading