Repository navigation
Store with flags - #85
Merged
Merged
Conversation
Needed in cases where the application is running as a windows service with no or least privileges, and still needs to be able read certificate and key from the certificate store
|
Thanks for your pull request! It looks like this may be your first contribution to a Google open source project. Before we can look at your pull request, you'll need to sign a Contributor License Agreement (CLA). View this failed invocation of the CLA check for more information. For the most up to date status, view the checks section at the bottom of the pull request. |
Contributor
Author
|
Hi folks, Can you please review my changes? 🙏 |
alexherrero
self-requested a review
June 12, 2025 21:41
alexherrero
approved these changes
Jun 12, 2025
alexherrero
left a comment
Collaborator
There was a problem hiding this comment.
LGTM, sensibly done.
Contributor
Author
|
Thank you folks!
Appreciate it!
…On Fri, 13 Jun 2025 at 01:05, Alex Herrero ***@***.***> wrote:
Merged #85 <#85> into master.
—
Reply to this email directly, view it on GitHub
<#85 (comment)>, or
unsubscribe
<https://github.com/notifications/unsubscribe-auth/ANYTZ256PKPVKGRYPUYXQUT3DH2R3AVCNFSM6AAAAAB63POQNWVHI2DSMVQWIX3LMV45UABCJFZXG5LFIV3GK3TUJZXXI2LGNFRWC5DJN5XDWMJYGEZDGNBXGIZDQOI>
.
You are receiving this because you modified the open/close state.Message
ID: ***@***.***>
--
Kind regards,
*Yuval Lombard*
*Staff Software Engineer*
+972.50.548.0111
***@***.***
[image: logo_black.png]
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
I created this pull request for cases where the application using the certificate store is running with least privileges, and needs to be able read certificate and key from the certificate store.
For example in my use case I needed to run as a windows service under network service account.
The best practice I found was to import the certificate into LocalMachine/MY store, and grant read permissions to my service.
The current code does not support this scenario as it tries to open the store with the FullAccess permissions which my service does not have, resulting in access denied error when it tries to execute the windows.CertOpenStore method (newStoreHandle in certtostore_windows.go file)