mirror of
https://github.com/pomerium/pomerium.git
synced 2025-07-17 08:38:15 +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
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue