ssh: add envoy configuration (#5659)

## Summary

Adds the envoy listener config logic for ssh.

## Related issues

<!-- For example...
- #159
-->

## User Explanation

<!-- How would you explain this change to the user? If this
change doesn't create any user-facing changes, you can leave
this blank. If filled out, add the `docs` label -->

## Checklist

- [ ] reference any related issues
- [ ] updated unit tests
- [ ] add appropriate label (`enhancement`, `bug`, `breaking`,
`dependencies`, `ci`)
- [ ] ready for review
This commit is contained in:
Joe Kralicky 2025-06-30 15:15:05 -04:00 committed by GitHub
parent 6a65c52a6c
commit ac76aeb279
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
10 changed files with 409 additions and 11 deletions

View file

@ -460,6 +460,14 @@ func TestPolicy_IsTCPUpstream(t *testing.T) {
assert.False(t, p3.IsTCPUpstream())
}
func TestPolicy_IsSSH(t *testing.T) {
p1 := Policy{From: "https://example.com"}
assert.False(t, p1.IsSSH())
p2 := Policy{From: "ssh://example.com"}
assert.True(t, p2.IsSSH())
}
func mustParseWeightedURLs(t testing.TB, urls ...string) WeightedURLs {
wu, err := ParseWeightedUrls(urls...)
require.NoError(t, err)