Skip to content

adding reading agent ssh key from file#412

Merged
henrygd merged 1 commit intohenrygd:mainfrom
beny2000:main
Jan 16, 2025
Merged

adding reading agent ssh key from file#412
henrygd merged 1 commit intohenrygd:mainfrom
beny2000:main

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

@beny2000 beny2000 mentioned this pull request Jan 15, 2025
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