You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Feature request: add --password-file-reload flag to pick up refreshed tokens #975
We have been using the --password-file flag to read a token generated by vault injector. This has been working great
Going forward, we'll switch to Vault Dynamic Engine which mints short lived tokens and are automatically rotated
Current behavior of --password-file is to read the token once, store in-memory and keep reusing for all subsequent calls. This will no longer work with dynamic engine because the token would have changed
Requesting the addition of --password-file-reload boolean flag which when set will always read the token from file system during each sync cycle. Default value will be false so the change will be backward compatibility
I am already working on the change. Will open a PR soon. Thanks.
We have --askpass-url which (I think?) is a pretty standard way for git to do dynamic credentials.
Do you think we should piggy-back on that? e.g. tell users to run a tiny webserver which serves the password in the usual form? That feels heavy.
Will look at your PR
--askpass-url is what we switched to to get dynamic creds. We exposed an endpoint from our web app. The challenge with this approach is the circular dependency. The git-sync sidecar waits for our app container to be ready. And our app container is waiting for git-sync to clone the repo. With some hacks and ugly sleep statements, we eventually got it to work but I personally don't like the setup.
Activity
vaibhavdesai137 commentedon Jan 30, 2026
Open to suggestions for a different flag name. I chose
--password-file-reloadbecause it groups lexically with existing flag--password-file:)thockin commentedon Jan 31, 2026
We have
--askpass-urlwhich (I think?) is a pretty standard way for git to do dynamic credentials.Do you think we should piggy-back on that? e.g. tell users to run a tiny webserver which serves the password in the usual form? That feels heavy.
Will look at your PR
vaibhavdesai137 commentedon Feb 4, 2026
--askpass-urlis what we switched to to get dynamic creds. We exposed an endpoint from our web app. The challenge with this approach is the circular dependency. The git-sync sidecar waits for our app container to be ready. And our app container is waiting for git-sync to clone the repo. With some hacks and ugly sleep statements, we eventually got it to work but I personally don't like the setup.thockin commentedon Feb 5, 2026
Yeah, I don't like it either