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

adding reading agent ssh key from file #412

Merged
merged 1 commit into from
Jan 16, 2025
Merged

Conversation

beny2000
Copy link

This PR adds support for reading the agent SSH key from a file. This allows storing the agent key as a docker secret.

I'm not a Go dev so let me know if there's a better way to do this but it's pretty straightforward

log.Fatalf("Failed to read key from file '%s': %v", keyFile, err)
}
} else {
log.Fatal("KEY environment variable is not set, and KEY_FILE environment variable is not set")

Choose a reason for hiding this comment

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

I think should be changed to : KEY environment variable is not set or KEY_FILE environment variable is not set

Copy link
Owner

Choose a reason for hiding this comment

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

I changed it to "Must set KEY or KEY_FILE environment variable." Slightly more concise.

@henrygd henrygd merged commit 1c4533f into henrygd:main Jan 16, 2025
@henrygd
Copy link
Owner

henrygd commented Jan 16, 2025

Merged, thanks 👍

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