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 }}
This repository has been archived by the owner on Jan 8, 2024. It is now read-only.
Currently VGM creates tokens by making requests to Vault at auth/token/create. This means the VGM token needs to have a policy that gives it access to auth/token/create, and with that it can create tokens for any subset of policies that it has.
This has two issues:
The VGM token has a lot of power: It can create another token allowing the creation of tokens.
Depending on how secrets are organized in Vault, when a new application/service is added, VGM may need to be restarted with a new token that lets it create tokens having access to the new secrets.
This could be more locked down if VGM requested tokens from Vault at auth/token/create/<role_id>. Its token could then have a policy giving it access to auth/token/create/*. This means that the VGM token could create tokens only for named roles (but for any named role).
When new applications were added, a role would be created to allow access to their secrets. Because of the way Vault handles creating tokens with roles, the VGM token would automatically be able to create tokens for the new role; there would be no need to generate a new token for VGM.
The text was updated successfully, but these errors were encountered:
Currently VGM creates tokens by making requests to Vault at
auth/token/create
. This means the VGM token needs to have a policy that gives it access toauth/token/create
, and with that it can create tokens for any subset of policies that it has.This has two issues:
This could be more locked down if VGM requested tokens from Vault at
auth/token/create/<role_id>
. Its token could then have a policy giving it access toauth/token/create/*
. This means that the VGM token could create tokens only for named roles (but for any named role).When new applications were added, a role would be created to allow access to their secrets. Because of the way Vault handles creating tokens with roles, the VGM token would automatically be able to create tokens for the new role; there would be no need to generate a new token for VGM.
The text was updated successfully, but these errors were encountered: