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

workers: don't fail on ssh_private_key missing or empty in env (bug 1944728) #212

Merged
merged 2 commits into from
Jan 30, 2025

Conversation

shtrom
Copy link
Member

@shtrom shtrom commented Jan 30, 2025

No description provided.

This commit makes ssh_private_key a proper attribute of the base Worker,
so we can simplify the emptiness checks without having to rely on the
presence of the attribute itself.
@shtrom shtrom requested review from zzzeid and cgsheeh and removed request for zzzeid January 30, 2025 04:06
Copy link
Collaborator

@zzzeid zzzeid left a comment

Choose a reason for hiding this comment

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

This is good, wonder if in the case of the git workers on remote environments, also set use_ssh to False since this will not be configured anyway.

@zzzeid zzzeid changed the title worker: don't fail on ssh_private_key missing or empty in env (bug 1944728) workers: don't fail on ssh_private_key missing or empty in env (bug 1944728) Jan 30, 2025
@shtrom
Copy link
Member Author

shtrom commented Jan 30, 2025

This is good, wonder if in the case of the git workers on remote environments, also set use_ssh to False since this will not be configured anyway.

We could, though at least in suite, we still use the SSH key to authenticate to git.test. It's a corner case, but using SSH for git is legitimate, so I think this is probably OK like this.

@shtrom shtrom merged commit 30ff1bc into main Jan 30, 2025
3 checks passed
@shtrom shtrom deleted the bug1944728/empty-SSH_PRIVATE_KEY branch January 30, 2025 19:17
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.

3 participants