diff --git a/injector/bao/injector.go b/injector/bao/injector.go index 3f0f01a..25cb327 100644 --- a/injector/bao/injector.go +++ b/injector/bao/injector.go @@ -449,6 +449,10 @@ func (i *SecretInjector) readBaoPath(path, versionOrData string, update bool) (m return secretData, nil } +func IsValidPrefix(value string) bool { + return strings.HasPrefix(value, "bao:") || strings.HasPrefix(value, ">>bao:") +} + func HasInlineBaoDelimiters(value string) bool { return len(FindInlineBaoDelimiters(value)) > 0 } diff --git a/injector/vault/injector.go b/injector/vault/injector.go index 5d024ef..2aa0e71 100644 --- a/injector/vault/injector.go +++ b/injector/vault/injector.go @@ -449,6 +449,10 @@ func (i *SecretInjector) readVaultPath(path, versionOrData string, update bool) return secretData, nil } +func IsValidPrefix(value string) bool { + return strings.HasPrefix(value, "vault:") || strings.HasPrefix(value, ">>vault:") +} + func HasInlineVaultDelimiters(value string) bool { return len(FindInlineVaultDelimiters(value)) > 0 }