Skip to content

Add known hosts handling#1958

Merged
eddymoulton merged 68 commits into
mainfrom
em/add-known-hosts-handling
May 27, 2026
Merged

Add known hosts handling#1958
eddymoulton merged 68 commits into
mainfrom
em/add-known-hosts-handling

Conversation

@eddymoulton
Copy link
Copy Markdown
Contributor

@eddymoulton eddymoulton commented May 21, 2026

Adds checking of known hosts when using git ssh authentication

Relates to MD-1831

eddymoulton and others added 16 commits May 13, 2026 14:36
# Conflicts:
#	source/Calamari.Contracts/ArgoCD/ArgoCDCustomPropertiesDto.cs
#	source/Calamari.Tests/ArgoCD/Contracts/ArgoCDCustomPropertiesDtoSerializationTests.cs
#	source/Calamari.Tests/ArgoCD/Git/AuthenticatingRepositoryFactoryTests.cs
#	source/Calamari/ArgoCD/Git/AuthenticatingRepositoryFactory.cs
#	source/Calamari/ArgoCD/Git/GitConnection.cs
#	source/Calamari/ArgoCD/Git/IGitCredentialDtoJsonConverter.cs
#	source/Calamari/ArgoCD/Git/PullRequests/GitVendorPullRequestClientResolver.cs
#	source/Calamari/ArgoCD/Git/PullRequests/StringExtensionMethods.cs
#	source/Calamari/ArgoCD/Git/RepositoryFactory.cs
#	source/Calamari/ArgoCD/Git/RepositoryWrapper.cs
# Conflicts:
#	source/Calamari.Contracts/ArgoCD/ArgoCDCustomPropertiesDto.cs
#	source/Calamari.Contracts/Git/GitCredentials.cs
Base automatically changed from em/openssl1.1-handling to main May 22, 2026 02:33
# Conflicts:
#	source/Calamari.Tests/ArgoCD/Git/AuthenticatingRepositoryFactoryTests.cs
#	source/Calamari.Tests/ArgoCD/Git/RepositoryFactoryTests.cs
#	source/Calamari/ArgoCD/Git/AuthenticatingRepositoryFactory.cs
#	source/Calamari/ArgoCD/Git/GitConnection.cs
#	source/Calamari/ArgoCD/Git/LibGit2SharpCredentialsHandlerExtensionMethods.cs
#	source/Calamari/ArgoCD/Git/RepositoryFactory.cs
#	source/Calamari/ArgoCD/Git/RepositoryWrapper.cs
#	source/Calamari/CommitToGit/CommitToGitConfigFactory.cs
@eddymoulton eddymoulton marked this pull request as ready for review May 22, 2026 03:33
Copy link
Copy Markdown
Contributor

@APErebus APErebus left a comment

Choose a reason for hiding this comment

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

LGTM! Just 1 query for my own knowledge

string hostname,
byte[] presentedSha256)
{
var lookupHost = StripPort(hostname);
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Are we not given the port in the hostname to validate?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Very good point, I was under the impression that we needed this - but your work on known hosts has disproven that.

I'll remove this.

@eddymoulton eddymoulton merged commit a9456ad into main May 27, 2026
33 checks passed
@eddymoulton eddymoulton deleted the em/add-known-hosts-handling branch May 27, 2026 04:30
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