Skip to content

K8s PushSecret deletion without properties #5535

@tiagolobocastro

Description

@tiagolobocastro

Describe the bug
Cannot delete a PushSecret which pushes the secret as a whole (ie without specific properties)

To Reproduce

apiVersion: v1
data:
  encryption_parameters: xxx
  info: xxx
kind: Secret
metadata:
  name: my-secret
  namespace: default
type: Opaque
apiVersion: external-secrets.io/v1alpha1
kind: PushSecret
metadata:
  name: my-secret
  namespace: default
spec:
  data:
  - conversionStrategy: None
    match:
      remoteRef:
        remoteKey: kms-secret-1
  deletionPolicy: Delete
  refreshInterval: 1h
  secretStoreRefs:
  - kind: SecretStore
    name: k8s-store-1
  selector:
    secret:
      name: my-secret
  updatePolicy: Replace

K8s version: v1.33.1
ESO version: v0.20.4

Expected behavior
Upon deletion, expected pushsecret to be deleted gracefully.

Additional context
On deletion, pushsecret gets stuck in Errored status with the following message: Failed to Delete Secrets from Provider: requires property in RemoteRef to delete secret value

Metadata

Metadata

Assignees

No one assigned

    Labels

    kind/bugCategorizes issue or PR as related to a bug.

    Type

    No type

    Projects

    Status

    Done

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions