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

@ -930,6 +930,11 @@ func (p *Policy) IsUDPUpstream() bool {
return len(p.To) > 0 && p.To[0].URL.Scheme == "udp"
}
// IsSSH returns true if the route is for SSH.
func (p *Policy) IsSSH() bool {
return len(p.From) > 0 && strings.HasPrefix(p.From, "ssh://")
}
// AllAllowedDomains returns all the allowed domains.
func (p *Policy) AllAllowedDomains() []string {
var ads []string