Skip to content

Commit

Permalink
Pass KeyId to EncryptResponse (kubernetes#2535)
Browse files Browse the repository at this point in the history
  • Loading branch information
GlassOfWhiskey authored Mar 5, 2024
1 parent 89d264f commit 7eeef2f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/kms/server/server.go
Original file line number Diff line number Diff line change
Expand Up @@ -148,5 +148,5 @@ func (s *KMSserver) Encrypt(ctx context.Context, req *pb.EncryptRequest) (*pb.En
klog.V(4).Infof("Failed to encrypt data %v: ", err)
return nil, err
}
return &pb.EncryptResponse{Ciphertext: cipher}, nil
return &pb.EncryptResponse{Ciphertext: cipher, KeyId: s.cfg.KeyManager.KeyID}, nil
}

0 comments on commit 7eeef2f

Please sign in to comment.