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

Create a separate credential helper trampoline #36

Merged
merged 14 commits into from
Jun 3, 2024

Conversation

niik
Copy link
Member

@niik niik commented Jun 3, 2024

When we're being invoked as an askpass handler we can't read from stdin or we'll be blocked forever. But when we're invoked as a credential helper we need to read stdin. So we're creating two binaries here that essentially only differ in whether or not they read stdin.

We're also no longer forwarding the DESKTOP_IDENTIFIER environment variable, that is instead hardcoded at compile time in the two binaries.

niik and others added 5 commits June 3, 2024 11:20
Co-Authored-By: Sergio Padrino <[email protected]>
Co-Authored-By: Sergio Padrino <[email protected]>
Co-Authored-By: Sergio Padrino <[email protected]>
@niik niik force-pushed the separate-helper-trampoline branch from 085728e to 4d5efaf Compare June 3, 2024 09:21
@niik niik marked this pull request as ready for review June 3, 2024 10:20
@niik niik requested a review from tidy-dev June 3, 2024 10:20
Copy link
Contributor

@tidy-dev tidy-dev left a comment

Choose a reason for hiding this comment

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

✨ Oh Hai!

@niik niik merged commit 03004d0 into main Jun 3, 2024
5 checks passed
@niik niik deleted the separate-helper-trampoline branch June 3, 2024 15:18
This was referenced Jun 3, 2024
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.

2 participants