mirror of
https://github.com/pomerium/pomerium.git
synced 2025-07-05 19:08:03 +02:00
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:
parent
6a65c52a6c
commit
ac76aeb279
10 changed files with 409 additions and 11 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue