Skip to content

Vault config reload question #119

@guymoragx

Description

@guymoragx

Hi,
In my code I am using VaultConfigSource to load some configurations from Vault.
I am using a token I generate from kubernetes to access it, that token has a 1 hour timeout.
Afterwards of course whenever vault config tries to reload, it gets a forbidden error.

Is there a way to tell VaultConfigSource to go get a new token (using a method I created) every x amount of time? (or whenever access is forbidden the first time?)

Also is there a way to tell VaultConfigSource to make a callback to a certain method every time configurations are reloaded?

Thanks.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions