Skip to content

Commit

Permalink
use existing MasterSecret type
Browse files Browse the repository at this point in the history
  • Loading branch information
miampf committed Jan 9, 2025
1 parent d873b4b commit 78fd3ca
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions cli/internal/cmd/ssh.go
Original file line number Diff line number Diff line change
Expand Up @@ -24,11 +24,6 @@ import (
"golang.org/x/crypto/ssh"
)

type secret struct {
Key []byte `json:"key,omitempty"`
Salt []byte `json:"salt,omitempty"`
}

var permissions = ssh.Permissions{
Extensions: map[string]string{
"permit-port-forwarding": "yes",
Expand Down Expand Up @@ -58,7 +53,7 @@ func runSSH(cmd *cobra.Command, _ []string) error {
}

// NOTE(miampf): Since other KMS aren't fully implemented yet, this commands assumes that the cKMS is used and derives the key accordingly.
var mastersecret secret
var mastersecret uri.MasterSecret
if err = fh.ReadJSON(fmt.Sprintf("%s.json", constants.ConstellationMasterSecretStoreName), &mastersecret); err != nil {
return fmt.Errorf("Failed to read constellation master secret: %s", err)
}
Expand Down

0 comments on commit 78fd3ca

Please sign in to comment.