-
Notifications
You must be signed in to change notification settings - Fork 617
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
Documented preflight policy path #877
base: master
Are you sure you want to change the base?
Conversation
Added section describing that newer versions of vault need the preflight check path to be readable.
To renew the token, we need yet another policy, this was also missing.
Added documentation for token renewal, which was also missing. |
I set up a local vault instance running in dev mode, point my fabio instance to it and I was able to create the following minimal policy to support v2 kv store, with the preflight check. It appears that it is unnecessary to use the full ui mount path in the policy:
The ability to self- renew is enabled in the default policies, though I do agree it would be useful to call it out in case some operator has removed this from the default policy. This is the default policy on my local dev instance, which was just created:
If you could validate my findings, and update your documentation PR to include this, I'd like you to get credit for finding this. Another tidbit, it's important to create the token as an orphan and with an explicit period, so that this will keep the token from bumping into the implicit max ttl which prevents the token from renewing after a time. |
|
||
# To check for kv version in newer vault instances | ||
path "sys/internal/ui/mounts/secret/fabio/certs" { | ||
capabilities = ["read"] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
See the comments in the PR
Added section describing that newer versions of vault need the preflight check path to be readable. (fixes #876)