spring-projects / spring-projects/spring-vault
Native image support for KV operations
Nobody has claimed this yet.
- Dominant language
- Java
- Stars
- 306
- Forks
- 202
- PR merge metrics
- No merged PRs in 30d
Description
are native images supported? (not an expert, just tried casually to build a native image from a Spring Boot app)
doing something like
Versioned<KeyWrapper> v = vaultTemplate.opsForVersionedKeyValue(kvEngine).get(kvPath,KeyWrapper.class);
And I get
com.fasterxml.jackson.databind.exc.InvalidDefinitionException: Cannot construct instance of
org.springframework.vault.core.VersionedResponse: cannot deserialize from Object value (no delegate- or property-based Creator): this appears to be a native image, in which case you may need to configure reflection for the class that is to be deserialized
Versions are
Spring Boot 3.4.0-M3 (also tried 3.3.4)
Spring Vault 3.1.2
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by reproducing the failure at vaultTemplate.opsForVersionedKeyValue(...).get(...) using the Spring Boot and Spring Vault versions reported. Trace native-image deserialization of org.springframework.vault.core.VersionedResponse and check how the project handles native-image reflection; the work is done when this KV operation succeeds in a native image.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- java, spring, spring-boot
- Domain
- backend, security
- Issue type
- Feature
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 35/100