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

leverage Vault token helpers approach while obtaining Vault token #104

Merged
merged 1 commit into from
Jul 29, 2021

Conversation

developer-guy
Copy link
Member

There is a concept called Token Helpers in Vault. By default, the Vault CLI will store the generated token on disk in the ~/.vault-token file. So, I realized that even though we could not set the VAULT_TOKEN env variable, we can still obtain the Vault token from the file with the help of this feature. So, this PR will add that support to the Vault client initialization process.

Btw, this is just an idea, so please feel free to comment it out.

Screen Shot 2021-07-25 at 11 58 14

Screen Shot 2021-07-25 at 11 58 29

@cpanato cpanato added this to the 0.1.0 milestone Jul 26, 2021
Signed-off-by: Batuhan Apaydın <batuhan.apaydin@trendyol.com>
Copy link
Member

@cpanato cpanato left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

looks great to me :)

@cpanato cpanato requested a review from dlorenc July 26, 2021 11:33
@dlorenc dlorenc merged commit e7a4e8b into sigstore:main Jul 29, 2021
mtrmac pushed a commit to mtrmac/sigstore that referenced this pull request Mar 10, 2023
* Add kms to sign-blob

Signed-off-by: Priya Wadhwa <priyawadhwa@google.com>

* Add documentation for KMS to README (sigstore#101)

Signed-off-by: Priya Wadhwa <priyawadhwa@google.com>

* Add the public key from KMS (sigstore#100)

Signed-off-by: Dan Lorenc <dlorenc@google.com>
Signed-off-by: Priya Wadhwa <priyawadhwa@google.com>

* remove unnecessary image input to sign function

Signed-off-by: Priya Wadhwa <priyawadhwa@google.com>

* Add kms support to verify-blob as well

Signed-off-by: Priya Wadhwa <priyawadhwa@google.com>

* Fix lint

Signed-off-by: Priya Wadhwa <priyawadhwa@google.com>

* fix test

Signed-off-by: Priya Wadhwa <priyawadhwa@google.com>

Co-authored-by: dlorenc <dlorenc@google.com>
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

Successfully merging this pull request may close these issues.

None yet

4 participants