Feature request for incorporating "reference" in Transform FPE encode() and decode() operations #894
Labels
status: ideal-for-contribution
An issue that a contributor can help us with
type: enhancement
A general enhancement
Hello! I would like to request adding support for the reference parameter in Spring Cloud Vault’s Transform FPE encode and decode operations. Currently, the Spring Cloud Vault client supports only the transformation and tweak parameters, leaving no way to specify a reference that preserves the exact mapping of inputs to outputs when dealing with large batch requests. This becomes problematic when working with thousands of inputs, as there is no reliable way to correlate each input with its corresponding output.
Context
•
VaultTransformTemplate#encode(String, List<TransformPlaintext>)
andVaultTransformTemplate#decode(String, List<TransformCiphertext>)
only supply value (fromTransformPlaintext
) and transformation/tweak (fromVaultTransformContext
) for each batch item.• The HashiCorp Vault Transform API supports a reference field per item in
batch_input.
This is essential to correlate results in large batches, where maintaining the input→output mapping is critical.Desired Enhancement
1. Extend
VaultTransformContext
(or similar) to hold an optionalreference
field.2. Modify the batch request construction so each item can include its own
reference
.3. Optionally parse returned
reference
from Vault’sbatch_results
, allowing direct correlation of request and response.Implementing this feature would enable clients to handle large batches reliably without having to customize or override base Spring Cloud Vault classes. If there is a roadmap or timeline for including reference support, it would be great to learn more—particularly as we have a customer eager to see this functionality. Thank you!
The text was updated successfully, but these errors were encountered: