-
Notifications
You must be signed in to change notification settings - Fork 149
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add AOT and Graal Native support #667
Comments
There's no AOT support for Vault yet. |
Is it planned to be added? And if yes, when? |
@mp911de any tentative date on it. When can we expect it's support |
@mp911de Any workaround by adding hints until we get the support for AOT? |
We need some infrastructure from Spring Vault, see spring-projects/spring-vault#747 |
Thank you @mp911de ! This all looks encouraging! |
…when transferring instances from the Config Data API. Closes gh-667
Align constant names. See gh-667
Hi @mp911de, I see that this issue was closed almost and year back and it has been a while since other commits referencing this issue. Does spring-cloud-vault support AOT and Graal Native now? If yes, can you please point me to the docs I couldn't find it here https://cloud.spring.io/spring-cloud-vault/reference/html/? |
What kind of documentation are you looking for? There isn't anything that you could configure in regard to AOT. For a general Spring application using Spring Cloud Vault, you just compile a native image and you're good to go. |
You are right @mp911de. I tried it on a quick project - https://github.com/raj-saxena/test-vault-with-graal/tree/main/src/main/java/com/example/testgraal and it worked as expected. Thanks for the reply! |
Describe the bug
Vault connection fails to initialize during the Spring Boot 3 AOT phase
Sample
Via the Spring Initializer, create any project with:
spring-boot-starter-parent:3.0.1
spring-cloud-starter-vault-config (spring-cloud-dependencies:2022.0.0 is configured automatically)
the application works normally, but when passing through the AOT phase, the build fails with this error:
Exception in thread "main" java.lang.IllegalStateException: No constructor or factory method candidate found for Root bean: class [org.springframework.vault.client.RestTemplateFactory]; scope=singleton; abstract=false; lazyInit=null; autowireMode=0; dependencyCheck=0; autowireCandidate=true; primary=false; factoryBeanName=null; factoryMethodName=null; initMethodNames=null; destroyMethodNames=null and argument types []
vault config in application.yaml
spring:
config:
import: vault:///app
profiles:
active: dev12
application:
name: app
cloud:
vault:
authentication: APPROLE
fail-fast: false
uri: https://vaultui
app-role:
role-id: db02udb8-a390-0239-980e-11ec746f95ab
secret-id: 8d9nf101-5764-124d-f5e4-ab98fa9ed2c3
generic:
enabled: false
The text was updated successfully, but these errors were encountered: