DVLS provider: PushSecret cannot create a missing entry, so a vault can never be bootstrapped

Author: terem42Created Sep 18, 2026Updated Sep 20, 2026
Labelskind/featurearea/dvls

Is your feature request related to a problem? Please describe.

The DVLS provider implements PushSecret as an update of an existing entry only, so pushing to a remoteKey that does not exist yet fails with:

entry %q not found: entry must exist before pushing secrets

updatePolicy: IfNotExists does not work around it, because SecretExists() is true as soon as the entry exists, whatever it holds:

DVLS state SecretExists result
entry missing false push attempted -> fails
entry present true push skipped entirely

So the push never writes a value in either state, and the common pattern of Password generator -> PushSecret seeds the vault -> ExternalSecret reads the value back cannot bootstrap a vault. Every entry has to be created by hand first (we have been seeding ours with dvls-cli -put), which defeats the point of a GitOps-managed secret.

Other ESO providers create the remote secret on push, so this also reads as an inconsistency rather than an intended DVLS restriction.

Describe the solution you'd like

Create the entry when the remote key does not resolve. Two details that the implementation has to get right:

  • The new entry should be a Credential/AccessCode, the subtype GetSecret already reads back as password, so a pushed value is readable by an ExternalSecret with no property set.
  • A remote key may name folders (prod/db/postgres). Setting Path on the credential is not enough: DVLS keeps a folder as an entry of its own, so each missing level has to be created first (go-dvls ships a separate EntryFolderService for exactly this). Otherwise the entry may not come back under that path filter on the next reconcile, and the push would create a duplicate on every reconcile.

The SDK is not a blocker, go-dvls v0.19.1 already has EntryCredentialService.NewWithContext.

Describe alternatives you've considered

  • Fix SecretExists() to report on the value rather than the entry. Removes the IfNotExists deadlock, but the missing-entry case still fails, so it does not make bootstrapping possible on its own.
  • Gate creation behind a new store field. Creating unconditionally is a behaviour change for anyone relying on the current failure to catch a typo'd remoteKey, and folder creation widens that (a typo'd path leaves stray folders behind). I lean unconditional, to match the other providers, but I am happy to put it behind a flag if maintainers prefer.
  • Keep seeding entries manually. What we do now, does not scale and cannot be expressed in a chart.

Additional context

I have a working branch with this implemented (create + folder hierarchy, 53 tests in the module, lint clean) and will open a PR if the approach is agreeable, I wanted to raise the issue first since none exists.

One coordination note: #6724 ("feat(dvls): add vault name support to secret keys") touches much of the same client.go, so whichever lands first, the other will need a rebase.

/cc @rbstp

Source: external-secrets/external-secrets