Skip to content
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

Support for passing a grant token #307

Open
weaversam8 opened this issue May 25, 2022 · 0 comments
Open

Support for passing a grant token #307

weaversam8 opened this issue May 25, 2022 · 0 comments

Comments

@weaversam8
Copy link

When using AWS KMS, Credstash advocates for using Key Policies and Grants to control access to the KMS Master Key used to encrypt your data. This enables permissions to be granted on a per-secret basis (when enforced by the Key Policy or Grant.)

Grants in KMS (like several other KMS features) are eventually-consistent. This means that there may be a period after creating a grant where credstash will be unable to access the KMS key, despite permissions being provided by the grant.

To mitigate this, KMS allows users to provide a Grant token in their request to the KMS API, which ensures the request will succeed on the first attempt. Credstash should surface a method to provide grant tokens (perhaps through a CLI flag or environment variable) to ensure users don't have to wait / retry credstash operations after receiving a grant.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant