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
I agree to follow the Code of Conduct that this project adheres to.
I have searched the issue tracker for an issue that matches the one I want to file, without success.
Problem Description
@leighmcculloch pointed out in sigstore/gitsign#65 that when using the github connector, if a user does not have a public email associated to their account, Dex will query for the user's primary email and use that in the returned token.
This could be used in place of querying for a private email to uniquely identify a user, since Dex already has this information with the initial user fetch:
This looks like a fairly straightforward change - happy to handle it if this is something we want to move forward with. Let me know if there's anything else to consider!
The text was updated successfully, but these errors were encountered:
At the very least, this behavior should be configurable, because email address might be used for matching various login methods in existing systems.
While I understand the reasoning, Dex uses the email address for account mgmt, not for notifications and that's what setting an email to private means in GitHub.
That being said, I see no harm in making this configurabl (keeping the current behavior as the default setting)
Preflight Checklist
Problem Description
@leighmcculloch pointed out in sigstore/gitsign#65 that when using the github connector, if a user does not have a public email associated to their account, Dex will query for the user's primary email and use that in the returned token.
dex/connector/github/github.go
Lines 556 to 561 in 4bcdcf8
If the user selected their email to be private on GitHub, this might be unexpected for their email to be present in the token that Dex returns back.
Proposed Solution
GitHub has a feature for commit emails that allows users to set a noreply email that uniquely identifies them in commit messages:
https://docs.github.com/en/account-and-profile/setting-up-and-managing-your-personal-account-on-github/managing-email-preferences/setting-your-commit-email-address#about-commit-email-addresses
This could be used in place of querying for a private email to uniquely identify a user, since Dex already has this information with the initial user fetch:
dex/connector/github/github.go
Lines 536 to 541 in 4bcdcf8
Alternatives Considered
No response
Additional Information
This looks like a fairly straightforward change - happy to handle it if this is something we want to move forward with. Let me know if there's anything else to consider!
The text was updated successfully, but these errors were encountered: