diff --git a/api/storage/v1alpha1/common.go b/api/storage/v1alpha1/common.go index e1c04ec64..d2af7480f 100644 --- a/api/storage/v1alpha1/common.go +++ b/api/storage/v1alpha1/common.go @@ -24,7 +24,8 @@ const ( // BucketPoolUserNamePrefix is the prefix all bucket pool users should have. BucketPoolUserNamePrefix = "storage.ironcore.dev:system:bucketpool:" - SecretTypeVolumeAuth = corev1.SecretType("storage.ironcore.dev/volume-auth") + SecretTypeVolumeAuth = corev1.SecretType("storage.ironcore.dev/volume-auth") + SecretTypeVolumeEncryption = corev1.SecretType("storage.ironcore.dev/volume-encryption") ) // VolumePoolCommonName constructs the common name for a certificate of a volume pool user. diff --git a/broker/machinebroker/server/machine_volume_attach.go b/broker/machinebroker/server/machine_volume_attach.go index 30d3f51e7..c86a1236d 100644 --- a/broker/machinebroker/server/machine_volume_attach.go +++ b/broker/machinebroker/server/machine_volume_attach.go @@ -33,10 +33,11 @@ type IronCoreVolumeEmptyDiskConfig struct { } type IronCoreVolumeRemoteConfig struct { - Driver string - Handle string - Attributes map[string]string - SecretData map[string][]byte + Driver string + Handle string + Attributes map[string]string + SecretData map[string][]byte + EncryptionData map[string][]byte } func (s *Server) getIronCoreVolumeConfig(volume *iri.Volume) (*IronCoreVolumeConfig, error) { @@ -55,10 +56,11 @@ func (s *Server) getIronCoreVolumeConfig(volume *iri.Volume) (*IronCoreVolumeCon } case volume.Connection != nil: remote = &IronCoreVolumeRemoteConfig{ - Driver: volume.Connection.Driver, - Handle: volume.Connection.Handle, - Attributes: volume.Connection.Attributes, - SecretData: volume.Connection.SecretData, + Driver: volume.Connection.Driver, + Handle: volume.Connection.Handle, + Attributes: volume.Connection.Attributes, + SecretData: volume.Connection.SecretData, + EncryptionData: volume.Connection.EncryptionData, } default: return nil, fmt.Errorf("unrecognized volume %#v", volume) @@ -82,8 +84,32 @@ func (s *Server) createIronCoreVolume( var ironcoreVolumeSrc computev1alpha1.VolumeSource switch { case cfg.Remote != nil: - log.V(1).Info("Creating ironcore volume") + + log.V(1).Info("Creating ironcore encryption secret") remote := cfg.Remote + var ( + encryptionSecret *corev1.Secret + ) + if encryptionData := remote.EncryptionData; encryptionData != nil { + log.V(1).Info("Creating ironcore encryption secret") + encryptionSecret = &corev1.Secret{ + ObjectMeta: metav1.ObjectMeta{ + Namespace: s.cluster.Namespace(), + Name: s.cluster.IDGen().Generate(), + Labels: map[string]string{ + machinebrokerv1alpha1.ManagerLabel: machinebrokerv1alpha1.MachineBrokerManager, + }, + }, + Type: storagev1alpha1.SecretTypeVolumeEncryption, + Data: encryptionData, + } + if err := s.cluster.Client().Create(ctx, encryptionSecret); err != nil { + return nil, nil, fmt.Errorf("error creating ironcore encryption secret: %w", err) + } + c.Add(cleaner.CleanupObject(s.cluster.Client(), encryptionSecret)) + } + + log.V(1).Info("Creating ironcore volume") ironcoreVolume := &storagev1alpha1.Volume{ ObjectMeta: metav1.ObjectMeta{ Namespace: s.cluster.Namespace(), @@ -100,11 +126,30 @@ func (s *Server) createIronCoreVolume( ClaimRef: s.optionalLocalUIDReference(optIronCoreMachine), }, } + if encryptionSecret != nil { + ironcoreVolume.Spec.Encryption = &storagev1alpha1.VolumeEncryption{ + SecretRef: corev1.LocalObjectReference{Name: encryptionSecret.Name}, + } + } if err := s.cluster.Client().Create(ctx, ironcoreVolume); err != nil { return nil, nil, fmt.Errorf("error creating ironcore volume: %w", err) } c.Add(cleaner.CleanupObject(s.cluster.Client(), ironcoreVolume)) + if encryptionSecret != nil { + log.V(1).Info("Patching owner ref of ironcore encryption secret") + baseEncryptionSecret := encryptionSecret.DeepCopy() + encryptionSecret.ObjectMeta.OwnerReferences = []metav1.OwnerReference{ + metautils.MakeControllerRef( + storagev1alpha1.SchemeGroupVersion.WithKind("Volume"), + ironcoreVolume, + ), + } + if err := s.cluster.Client().Patch(ctx, encryptionSecret, client.MergeFrom(baseEncryptionSecret)); err != nil { + return nil, nil, fmt.Errorf("error patching ironcore volume status: %w", err) + } + } + var ( secretRef *corev1.LocalObjectReference accessSecret *corev1.Secret diff --git a/broker/machinebroker/server/machine_volume_attach_test.go b/broker/machinebroker/server/machine_volume_attach_test.go index 15f839745..619ce3292 100644 --- a/broker/machinebroker/server/machine_volume_attach_test.go +++ b/broker/machinebroker/server/machine_volume_attach_test.go @@ -13,6 +13,7 @@ import ( corev1 "k8s.io/api/core/v1" metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" "sigs.k8s.io/controller-runtime/pkg/client" + . "sigs.k8s.io/controller-runtime/pkg/envtest/komega" ) var _ = Describe("AttachVolume", func() { @@ -99,4 +100,89 @@ var _ = Describe("AttachVolume", func() { Expect(secret.Type).To(Equal(storagev1alpha1.SecretTypeVolumeAuth)) Expect(secret.Data).To(Equal(map[string][]byte{"key": []byte("supersecret")})) }) + + It("should correctly attach an encrypted volume", func(ctx SpecContext) { + By("creating a machine") + createMachineRes, err := srv.CreateMachine(ctx, &iri.CreateMachineRequest{ + Machine: &iri.Machine{ + Spec: &iri.MachineSpec{ + Power: iri.Power_POWER_ON, + Image: &iri.ImageSpec{ + Image: "example.org/foo:latest", + }, + Class: machineClass.Name, + }, + }, + }) + Expect(err).NotTo(HaveOccurred()) + machineID := createMachineRes.Machine.Metadata.Id + + By("attaching a volume") + Expect(srv.AttachVolume(ctx, &iri.AttachVolumeRequest{ + MachineId: machineID, + Volume: &iri.Volume{ + Name: "my-volume", + Device: "oda", + Connection: &iri.VolumeConnection{ + Driver: "ceph", + Handle: "mycephvolume", + Attributes: map[string]string{ + "foo": "bar", + }, + SecretData: map[string][]byte{ + "key": []byte("supersecret"), + }, + EncryptionData: map[string][]byte{ + "encryption": []byte("supersecret2"), + }, + }, + }, + })).Error().ShouldNot(HaveOccurred()) + + By("getting the ironcore machine") + ironcoreMachine := &computev1alpha1.Machine{} + ironcoreMachineKey := client.ObjectKey{Namespace: ns.Name, Name: machineID} + Expect(k8sClient.Get(ctx, ironcoreMachineKey, ironcoreMachine)).To(Succeed()) + + By("inspecting the ironcore machine's volumes") + Expect(ironcoreMachine.Spec.Volumes).To(ConsistOf(MatchAllFields(Fields{ + "Name": Equal("my-volume"), + "Device": PointTo(Equal("oda")), + "VolumeSource": MatchFields(IgnoreExtras, Fields{ + "VolumeRef": PointTo(MatchAllFields(Fields{ + "Name": Not(BeEmpty()), + })), + }), + }))) + + By("getting the corresponding ironcore volume") + volume := &storagev1alpha1.Volume{} + volumeName := ironcoreMachine.Spec.Volumes[0].VolumeRef.Name + volumeKey := client.ObjectKey{Namespace: ns.Name, Name: volumeName} + Expect(k8sClient.Get(ctx, volumeKey, volume)).To(Succeed()) + + By("inspecting the ironcore volume") + Expect(volume).To(SatisfyAll( + HaveField("Spec.Encryption.SecretRef.Name", Not(BeEmpty())), + HaveField("Status.Access.SecretRef.Name", Not(BeEmpty())), + HaveField("Status.Access.Driver", Equal("ceph")), + HaveField("Status.Access.Handle", Equal("mycephvolume")), + HaveField("Status.Access.VolumeAttributes", Equal(map[string]string{ + "foo": "bar", + })), + )) + + By("fetching the corresponding ironcore volume encryption secret") + secret := &corev1.Secret{ + ObjectMeta: metav1.ObjectMeta{ + Name: volume.Spec.Encryption.SecretRef.Name, + Namespace: ns.Name, + }, + } + Expect(Object(secret)()).To(SatisfyAll( + HaveField("Type", Equal(storagev1alpha1.SecretTypeVolumeEncryption)), + HaveField("Data", Equal(map[string][]byte{"encryption": []byte("supersecret2")})), + Satisfy(func(o *corev1.Secret) bool { return metav1.IsControlledBy(o, volume) }), + )) + }) }) diff --git a/iri/apis/machine/v1alpha1/api.pb.go b/iri/apis/machine/v1alpha1/api.pb.go index 0442c24cd..4507f5bab 100644 --- a/iri/apis/machine/v1alpha1/api.pb.go +++ b/iri/apis/machine/v1alpha1/api.pb.go @@ -469,6 +469,7 @@ type VolumeConnection struct { Handle string `protobuf:"bytes,2,opt,name=handle,proto3" json:"handle,omitempty"` Attributes map[string]string `protobuf:"bytes,3,rep,name=attributes,proto3" json:"attributes,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"` SecretData map[string][]byte `protobuf:"bytes,4,rep,name=secret_data,json=secretData,proto3" json:"secret_data,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"` + EncryptionData map[string][]byte `protobuf:"bytes,5,rep,name=encryption_data,json=encryptionData,proto3" json:"encryption_data,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_sizecache int32 `json:"-"` } @@ -533,6 +534,13 @@ func (m *VolumeConnection) GetSecretData() map[string][]byte { return nil } +func (m *VolumeConnection) GetEncryptionData() map[string][]byte { + if m != nil { + return m.EncryptionData + } + return nil +} + type Volume struct { Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` Device string `protobuf:"bytes,2,opt,name=device,proto3" json:"device,omitempty"` @@ -2152,6 +2160,7 @@ func init() { proto.RegisterType((*EmptyDisk)(nil), "machine.v1alpha1.EmptyDisk") proto.RegisterType((*VolumeConnection)(nil), "machine.v1alpha1.VolumeConnection") proto.RegisterMapType((map[string]string)(nil), "machine.v1alpha1.VolumeConnection.AttributesEntry") + proto.RegisterMapType((map[string][]byte)(nil), "machine.v1alpha1.VolumeConnection.EncryptionDataEntry") proto.RegisterMapType((map[string][]byte)(nil), "machine.v1alpha1.VolumeConnection.SecretDataEntry") proto.RegisterType((*Volume)(nil), "machine.v1alpha1.Volume") proto.RegisterType((*NetworkInterface)(nil), "machine.v1alpha1.NetworkInterface") @@ -2192,120 +2201,122 @@ func init() { func init() { proto.RegisterFile("api.proto", fileDescriptor_00212fb1f9d3bf1c) } var fileDescriptor_00212fb1f9d3bf1c = []byte{ - // 1796 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xcc, 0x58, 0xcd, 0x72, 0xdb, 0xd6, - 0x15, 0x16, 0x28, 0x89, 0x12, 0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b, 0x4b, 0xea, 0x89, 0xae, 0x92, 0x0b, 0x70, 0x07, 0x80, 0x74, 0x53, 0xc2, 0x15, 0x92, 0x0e, - 0x44, 0x45, 0x58, 0xe8, 0x39, 0x37, 0x67, 0xa5, 0xe7, 0x1d, 0xf0, 0xd2, 0x61, 0x57, 0x2b, 0xba, - 0x8a, 0xe8, 0xaf, 0x80, 0xbc, 0x4b, 0x72, 0x01, 0xb5, 0xd2, 0x51, 0xc7, 0x5c, 0x18, 0x8f, 0xbd, - 0x78, 0x45, 0x1f, 0x90, 0x58, 0xc2, 0xe7, 0x11, 0x8f, 0x62, 0xe8, 0xb2, 0x42, 0x05, 0x58, 0x31, - 0x9a, 0x16, 0x36, 0x7b, 0xb8, 0x25, 0x9d, 0x60, 0x1d, 0x9b, 0xb2, 0xd3, 0x7f, 0x74, 0xfb, 0x20, - 0xf7, 0xd3, 0x73, 0xef, 0x0b, 0xfa, 0x03, 0xcc, 0x93, 0xfd, 0x46, 0x71, 0x4b, 0x16, 0xb3, 0x23, - 0xb7, 0x21, 0x16, 0xa9, 0x32, 0xba, 0x0e, 0x31, 0x07, 0x43, 0xc9, 0xc4, 0xc7, 0x0c, 0xbe, 0x45, - 0x47, 0x20, 0xe2, 0x63, 0xf4, 0xe4, 0x12, 0x1c, 0xda, 0x59, 0xd9, 0x50, 0x06, 0xa7, 0x1b, 0xd6, - 0x83, 0xe8, 0x55, 0x20, 0x44, 0x14, 0xe1, 0xbb, 0xe3, 0x21, 0x62, 0xee, 0x02, 0x80, 0x32, 0x20, - 0xe1, 0x8f, 0x18, 0xb6, 0x05, 0x02, 0x77, 0xec, 0x43, 0x17, 0xa1, 0x59, 0x07, 0xa1, 0xcc, 0xa8, - 0x62, 0x5c, 0x80, 0x84, 0x4f, 0x38, 0x58, 0x0f, 0x4e, 0x6f, 0xaa, 0xd8, 0xcf, 0xfa, 0x63, 0xdf, - 0x99, 0x0c, 0x03, 0x2f, 0x0b, 0x13, 0x12, 0x7e, 0x0e, 0x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0x06, 0x19, 0x50, 0xc8, 0x41, 0x36, 0x2c, 0x21, 0x96, 0xb3, - 0x08, 0x19, 0x5a, 0xcb, 0x47, 0xa6, 0x1c, 0x84, 0x4f, 0x0e, 0xb2, 0x61, 0x3e, 0x59, 0xd4, 0x65, - 0x58, 0x62, 0xac, 0x4d, 0xa3, 0x08, 0xa7, 0x90, 0x74, 0x05, 0x6c, 0x93, 0x1c, 0xc1, 0x6a, 0x1f, - 0x75, 0x48, 0xec, 0xcf, 0x37, 0xba, 0xf2, 0x6e, 0x8d, 0x66, 0x10, 0xe6, 0x0b, 0xb5, 0x87, 0x64, - 0xc2, 0x3d, 0x88, 0x57, 0xff, 0x83, 0x95, 0x09, 0x77, 0x4c, 0x0e, 0x12, 0x54, 0x9b, 0x65, 0x95, - 0x82, 0xd9, 0xae, 0xa9, 0xb9, 0xd3, 0xd9, 0x35, 0xb5, 0x8d, 0x5b, 0x30, 0xef, 0xf4, 0x39, 0x4a, - 0xc0, 0xe2, 0xde, 0xee, 0xab, 0xaa, 0x28, 0xed, 0x36, 0x52, 0x33, 0x68, 0x09, 0x62, 0xec, 0xb4, - 0xbd, 0x9d, 0xe2, 0x36, 0xfe, 0x08, 0x71, 0xdf, 0x73, 0x01, 0x21, 0x48, 0x1e, 0xed, 0xee, 0x1c, - 0xd6, 0xab, 0xd2, 0x5e, 0xb5, 0x51, 0xa9, 0x35, 0x9e, 0xa7, 0x66, 0xd0, 0x0a, 0x2c, 0x33, 0x59, - 0xe9, 0xe0, 0xa0, 0x54, 0x7e, 0x51, 0xad, 0xa4, 0xb8, 0x8d, 0x23, 0x58, 0x0b, 0xa4, 0x7a, 0x94, - 0x81, 0x6b, 0x8d, 0xea, 0xc1, 0xab, 0x5d, 0xf1, 0xa5, 0x54, 0x6b, 0x1c, 0x54, 0xc5, 0xed, 0x52, - 0xd9, 0xef, 0x2c, 0x0b, 0xfc, 0xf0, 0x67, 0x9f, 0xdf, 0x13, 0xef, 0x89, 0x40, 0xdd, 0xad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x0b, 0xeb, 0xc1, 0x6b, 0x1c, 0x15, 0xc2, 0x92, 0x0c, 0x59, - 0xe7, 0xfc, 0x83, 0xc9, 0x0d, 0x18, 0x7c, 0x6f, 0x61, 0x3d, 0x78, 0x9b, 0x07, 0x05, 0x1f, 0xc9, - 0x25, 0x41, 0xc1, 0x47, 0x13, 0x05, 0x7a, 0x09, 0x51, 0xf6, 0xa7, 0x44, 0xc0, 0xbb, 0xb9, 0x8f, - 0x42, 0xf8, 0x5c, 0xb8, 0x02, 0x73, 0x56, 0x85, 0x39, 0xb2, 0xcc, 0x51, 0xc0, 0xdf, 0x72, 0x3e, - 0x4a, 0xe0, 0xb3, 0x61, 0x9f, 0xa9, 0x9b, 0xad, 0xbf, 0xbd, 0xfb, 0x90, 0xe5, 0xbe, 0xfd, 0x90, - 0x9d, 0xf9, 0xdf, 0x45, 0x96, 0x7b, 0x77, 0x91, 0xe5, 0xde, 0x5f, 0x64, 0xb9, 0xef, 0x2e, 0xb2, - 0xdc, 0x67, 0xdf, 0x67, 0x67, 0xfe, 0xf1, 0x74, 0x8a, 0x7f, 0xce, 0xd3, 0x30, 0xde, 0xff, 0xe7, - 0x9b, 0x51, 0xe7, 0x9f, 0xf3, 0x0f, 0x7f, 0x0e, 0x00, 0x00, 0xff, 0xff, 0xaa, 0xa7, 0xaf, 0x56, - 0x2d, 0x18, 0x00, 0x00, + // 1832 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xc4, 0x59, 0xdd, 0x73, 0xdb, 0x58, + 0x15, 0x8f, 0x9c, 0xc4, 0x89, 0x8f, 0x1d, 0xc7, 0xbd, 0x49, 0xb3, 0xae, 0x16, 0xbb, 0xae, 0x58, + 0xb6, 0x9d, 0xd0, 0xda, 0x1b, 0x97, 0xfd, 0xa0, 0x33, 0xcb, 0xe0, 0xda, 0xee, 0xd6, 0xd3, 0xd8, + 0x29, 0x4a, 0x9a, 0x02,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, + 0xe7, 0xac, 0xa9, 0x3e, 0xab, 0xd5, 0xa3, 0x60, 0x45, 0x90, 0x67, 0x1f, 0x47, 0x70, 0x2f, 0xc3, + 0x2b, 0x02, 0x83, 0xdb, 0x83, 0xdd, 0x76, 0xad, 0xfe, 0xbc, 0xd5, 0x99, 0x8a, 0x28, 0x10, 0xaa, + 0xaf, 0x3a, 0x1d, 0x22, 0x94, 0xd0, 0x6d, 0xb8, 0x15, 0x08, 0x4f, 0x5f, 0x9d, 0x12, 0xe5, 0x66, + 0x23, 0x97, 0x40, 0x07, 0x80, 0x02, 0xf1, 0x59, 0x53, 0x6d, 0xb7, 0x3a, 0xb5, 0xb3, 0x66, 0x23, + 0xb7, 0x5e, 0xfd, 0x3a, 0x05, 0xd9, 0x60, 0x3f, 0x33, 0xbe, 0x44, 0x2f, 0x61, 0x8b, 0x73, 0x26, + 0x2a, 0x09, 0xa6, 0x79, 0x82, 0xce, 0xe5, 0x7b, 0x73, 0x34, 0x78, 0x33, 0xad, 0x21, 0x0d, 0x32, + 0x51, 0xaa, 0x44, 0xdf, 0x9b, 0x35, 0x12, 0x50, 0xb3, 0xfc, 0xfe, 0x22, 0xb5, 0xd0, 0x41, 0x17, + 0x76, 0x26, 0xf8, 0x0e, 0x09, 0x4c, 0x45, 0xec, 0x2a, 0xdf, 0x5f, 0xa8, 0x17, 0xf5, 0x31, 0x41, + 0x67, 0x22, 0x1f, 0x22, 0x9a, 0x14, 0xf9, 0x10, 0xf3, 0xe2, 0x1a, 0xfa, 0x9d, 0x04, 0xf9, 0x38, + 0xc6, 0x40, 0x47, 0x2b, 0xd3, 0x9b, 0x5c, 0x5d, 0xc5, 0x84, 0x8f, 0x90, 0x03, 0x68, 0x96, 0x25, + 0xd0, 0xf7, 0x17, 0x20, 0x45, 0x69, 0x4b, 0x7e, 0xb8, 0x9c, 0x32, 0x77, 0xa8, 0x41, 0x26, 0x4a, + 0x08, 0xa2, 0xee, 0x10, 0x10, 0x93, 0xa8, 0x3b, 0x84, 0xbc, 0x42, 0xdb, 0x2f, 0xca, 0x07, 0x22, + 0x07, 0x02, 0xe6, 0x91, 0xdf, 0x5f, 0xa4, 0x16, 0x3a, 0xf8, 0x12, 0x0e, 0xc4, 0x6b, 0x1c, 0x55, + 0xe2, 0x82, 0x8c, 0x59, 0xe7, 0xf2, 0x07, 0xcb, 0x1b, 0xf0, 0xf2, 0x7d, 0x09, 0x07, 0xe2, 0x6d, + 0x2e, 0x72, 0x3e, 0x97, 0x4b, 0x44, 0xce, 0xe7, 0x13, 0x05, 0x7a, 0x01, 0x49, 0xfe, 0x29, 0x21, + 0xb8, 0x37, 0x4f, 0x50, 0x88, 0x5c, 0x8a, 0x57, 0xe0, 0x60, 0x4d, 0xd8, 0x20, 0xcb, 0x1c, 0x09, + 0xbe, 0xe5, 0x22, 0x94, 0x20, 0x17, 0xe3, 0x1e, 0x33, 0x98, 0xa7, 0x3f, 0xfd, 0xea, 0x9b, 0xa2, + 0xf4, 0xcf, 0x6f, 0x8a, 0x6b, 0xbf, 0xbd, 0x29, 0x4a, 0x5f, 0xdd, 0x14, 0xa5, 0xaf, 0x6f, 0x8a, + 0xd2, 0xbf, 0x6e, 0x8a, 0xd2, 0x9f, 0xfe, 0x5d, 0x5c, 0xfb, 0xf9, 0x93, 0x15, 0xfe, 0x40, 0x60, + 0x6e, 0xc2, 0xff, 0x10, 0xba, 0x49, 0xfa, 0x07, 0xc2, 0xe3, 0xff, 0x05, 0x00, 0x00, 0xff, 0xff, + 0xd7, 0x93, 0x87, 0xc8, 0xd1, 0x18, 0x00, 0x00, } // Reference imports to suppress errors if they are not otherwise used. @@ -3080,6 +3091,27 @@ func (m *VolumeConnection) MarshalToSizedBuffer(dAtA []byte) (int, error) { _ = i var l int _ = l + if len(m.EncryptionData) > 0 { + for k := range m.EncryptionData { + v := m.EncryptionData[k] + baseI := i + if len(v) > 0 { + i -= len(v) + copy(dAtA[i:], v) + i = encodeVarintApi(dAtA, i, uint64(len(v))) + i-- + dAtA[i] = 0x12 + } + i -= len(k) + copy(dAtA[i:], k) + i = encodeVarintApi(dAtA, i, uint64(len(k))) + i-- + dAtA[i] = 0xa + i = encodeVarintApi(dAtA, i, uint64(baseI-i)) + i-- + dAtA[i] = 0x2a + } + } if len(m.SecretData) > 0 { for k := range m.SecretData { v := m.SecretData[k] @@ -4505,6 +4537,18 @@ func (m *VolumeConnection) Size() (n int) { n += mapEntrySize + 1 + sovApi(uint64(mapEntrySize)) } } + if len(m.EncryptionData) > 0 { + for k, v := range m.EncryptionData { + _ = k + _ = v + l = 0 + if len(v) > 0 { + l = 1 + len(v) + sovApi(uint64(len(v))) + } + mapEntrySize := 1 + len(k) + sovApi(uint64(len(k))) + l + n += mapEntrySize + 1 + sovApi(uint64(mapEntrySize)) + } + } return n } @@ -5146,11 +5190,22 @@ func (this *VolumeConnection) String() string { mapStringForSecretData += fmt.Sprintf("%v: %v,", k, this.SecretData[k]) } mapStringForSecretData += "}" + keysForEncryptionData := make([]string, 0, len(this.EncryptionData)) + for k, _ := range this.EncryptionData { + keysForEncryptionData = append(keysForEncryptionData, k) + } + github_com_gogo_protobuf_sortkeys.Strings(keysForEncryptionData) + mapStringForEncryptionData := "map[string][]byte{" + for _, k := range keysForEncryptionData { + mapStringForEncryptionData += fmt.Sprintf("%v: %v,", k, this.EncryptionData[k]) + } + mapStringForEncryptionData += "}" s := strings.Join([]string{`&VolumeConnection{`, `Driver:` + fmt.Sprintf("%v", this.Driver) + `,`, `Handle:` + fmt.Sprintf("%v", this.Handle) + `,`, `Attributes:` + mapStringForAttributes + `,`, `SecretData:` + mapStringForSecretData + `,`, + `EncryptionData:` + mapStringForEncryptionData + `,`, `}`, }, "") return s @@ -6876,6 +6931,134 @@ func (m *VolumeConnection) Unmarshal(dAtA []byte) error { } m.SecretData[mapkey] = mapvalue iNdEx = postIndex + case 5: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field EncryptionData", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowApi + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthApi + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthApi + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.EncryptionData == nil { + m.EncryptionData = make(map[string][]byte) + } + var mapkey string + mapvalue := []byte{} + for iNdEx < postIndex { + entryPreIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowApi + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + if fieldNum == 1 { + var stringLenmapkey uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowApi + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLenmapkey |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLenmapkey := int(stringLenmapkey) + if intStringLenmapkey < 0 { + return ErrInvalidLengthApi + } + postStringIndexmapkey := iNdEx + intStringLenmapkey + if postStringIndexmapkey < 0 { + return ErrInvalidLengthApi + } + if postStringIndexmapkey > l { + return io.ErrUnexpectedEOF + } + mapkey = string(dAtA[iNdEx:postStringIndexmapkey]) + iNdEx = postStringIndexmapkey + } else if fieldNum == 2 { + var mapbyteLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowApi + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + mapbyteLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intMapbyteLen := int(mapbyteLen) + if intMapbyteLen < 0 { + return ErrInvalidLengthApi + } + postbytesIndex := iNdEx + intMapbyteLen + if postbytesIndex < 0 { + return ErrInvalidLengthApi + } + if postbytesIndex > l { + return io.ErrUnexpectedEOF + } + mapvalue = make([]byte, mapbyteLen) + copy(mapvalue, dAtA[iNdEx:postbytesIndex]) + iNdEx = postbytesIndex + } else { + iNdEx = entryPreIndex + skippy, err := skipApi(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthApi + } + if (iNdEx + skippy) > postIndex { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + m.EncryptionData[mapkey] = mapvalue + iNdEx = postIndex default: iNdEx = preIndex skippy, err := skipApi(dAtA[iNdEx:]) diff --git a/iri/apis/machine/v1alpha1/api.proto b/iri/apis/machine/v1alpha1/api.proto index dc8bf5020..05ec5757b 100644 --- a/iri/apis/machine/v1alpha1/api.proto +++ b/iri/apis/machine/v1alpha1/api.proto @@ -68,6 +68,7 @@ message VolumeConnection { string handle = 2; map attributes = 3; map secret_data = 4; + map encryption_data = 5; } message Volume { diff --git a/poollet/machinepoollet/controllers/machine_controller_volume.go b/poollet/machinepoollet/controllers/machine_controller_volume.go index efc23fa06..b36ccd08e 100644 --- a/poollet/machinepoollet/controllers/machine_controller_volume.go +++ b/poollet/machinepoollet/controllers/machine_controller_volume.go @@ -142,14 +142,35 @@ func (r *MachineReconciler) prepareRemoteIRIVolume( secretData = secret.Data } + var encryptionData map[string][]byte + if encryption := volume.Spec.Encryption; encryption != nil { + secret := &corev1.Secret{} + secretKey := client.ObjectKey{Namespace: volume.Namespace, Name: encryption.SecretRef.Name} + if err := r.Get(ctx, secretKey, secret); err != nil { + if !apierrors.IsNotFound(err) { + return nil, false, fmt.Errorf("error getting volume encryption secret %s: %w", secretKey.Name, err) + } + + r.Eventf(machine, corev1.EventTypeNormal, events.VolumeNotReady, + "Volume %s encryption secret %s not found", + volume.Name, + secretKey.Name, + ) + return nil, false, nil + } + + encryptionData = secret.Data + } + return &iri.Volume{ Name: machineVolume.Name, Device: *machineVolume.Device, Connection: &iri.VolumeConnection{ - Driver: access.Driver, - Handle: access.Handle, - Attributes: access.VolumeAttributes, - SecretData: secretData, + Driver: access.Driver, + Handle: access.Handle, + Attributes: access.VolumeAttributes, + SecretData: secretData, + EncryptionData: encryptionData, }, }, true, nil }