-
Notifications
You must be signed in to change notification settings - Fork 4.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat(core) make service on routes optional (transparent proxying) #4286
Conversation
bbbc13e
to
7f044bd
Compare
@james-callahan can you do a small feasability check on this? Am I on a right page, or do you see some problems? If everything is fine, I think I can move to adding tests. |
3d2d9f6
to
f1f80f8
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't see any major issues; looks fine to me (though I haven't done a full review, just glanced)
f1f80f8
to
236bae7
Compare
d14dd46
to
7bb0a18
Compare
e854fc7
to
9aa28fb
Compare
0b9dfc9
to
72ba79e
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The code looks good; a few nits in tests, but they don't cause failures for now.
f833f45
to
7dc18a5
Compare
7dc18a5
to
61d2f14
Compare
61d2f14
to
af0775f
Compare
service_scheme = uri_scheme | ||
service_host = lower(matches[2]) | ||
end | ||
--[[ TODO: check if these make sense here? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
left over comment?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I wanted to leave them here, maybe we return back to that later. I believe we need Connect
for that to work, but I am not 100% sure.
c3fb21b
to
11e7453
Compare
Make route.service optional, and when not set, route transparently on such route.
11e7453
to
6df1e40
Compare
Summary
This is first implementation of so called
allow_by_default
routing. E.g. routes that act as a transparent routes. Which means you don't need to create service entity, but instead you can use HTTP proxying oriptables
transparent proxying rules.