-
I have a problem when using Vault through the io.quarkiverse.vault:quarkus-vault dependency in Quarkus 3.22.1 The application starts up fine and I can retrieve a secret, but after about 1 hour it stops working and I get the error: I'm using the Config used: I know the ttl for the vault token is 2 hours. I'm not sure if this is a bug or if I don't understand. Shouldn't a request be made to Am I suppose to renew programatically? Granted this is not my area of expertise so any guidance is appreciated |
Beta Was this translation helpful? Give feedback.
Replies: 6 comments 4 replies
-
/cc @vsevel (vault) |
Beta Was this translation helpful? Give feedback.
-
was it something that used to work before? I would be surprised. |
Beta Was this translation helpful? Give feedback.
-
I tried reproducing the issue.
then I configured my app with:
and finally in
I start the application, it works for a little while, and after a minute or so, I start getting errors.
one difference I see between the token providers for the other auth methods (approle, k8s, ...) is that the
so I suspect this is the reason why renewing does not work. |
Beta Was this translation helpful? Give feedback.
-
may be that is not a concern, but with the renewed token, and even more with the wrapping token, if the application was to stop, and get restarted, this could not work. I assume you are not running in a kubernetes cluster (or an infra with probes, and automatic restarts). or the control plane would have to go through generating a new token, and wrapping it. |
Beta Was this translation helpful? Give feedback.
-
I was able to get it to work in a hack, that we can't commit as is.
and in
this would hardcode the token as 1) renewable 2) with obviously, this last statement is what causes an issue. in normal login, we would make the appropriate call (e.g. |
Beta Was this translation helpful? Give feedback.
-
so in short, renewal is not currently supported for direct client token, and there would be a little bit of work if we wanted to support it. |
Beta Was this translation helpful? Give feedback.
so in short, renewal is not currently supported for direct client token, and there would be a little bit of work if we wanted to support it.
would that be an option to use one of the other auth methods, such as
approle
?you can still using a wrapping token to hide the
secretId
.see quarkus.vault.authentication.app-role.secret-id-wrapping-token