Skip to content
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: support HTTPS passthrough ingress in the presence of redirects #3521

Merged
merged 1 commit into from
Jul 19, 2023

Conversation

jsenko
Copy link
Member

@jsenko jsenko commented Jul 19, 2023

No description provided.

@jsenko jsenko force-pushed the support-https-passthrough branch from da29c71 to 69ad770 Compare July 19, 2023 09:33
Copy link
Member

@andreaTP andreaTP left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should we have a basic test for this functionality?

@jsenko
Copy link
Member Author

jsenko commented Jul 19, 2023

Should we have a basic test for this functionality?

Not sure how to set it up easily, we would need the new system tests. But I've tested it manually, if that counts.
I'm preparing some example templates that could be used in the testing later.

@Info(category = "redirects", description = "Override the port used for generating externally-accessible URLs.", availableSince = "2.5.0.Final")
Optional<Integer> urlOverridePort;

@ConfigProperty(name = "registry.url.override.port.remove")
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Do we lose any semantics by removing this property and relying on the presence/absence of registry.url.override.port ?
Feels strange to have to set something, and have to set something more to remove it 😆

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You can have a k8s Service exposing HTTP on port 8123 for some reason. Then with default configuration we would remove the port and cause issues. The registry.url.override.port.remove property is basically a convenience to avoid setting registry.url.override.port to 443 or 80.

But I can remove the registry.url.override.port.remove functionality completely if it's confusing.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'll remove the property to make it less confusing

@jsenko jsenko force-pushed the support-https-passthrough branch from 69ad770 to 97c400f Compare July 19, 2023 10:22
@jsenko jsenko merged commit 59f9d38 into Apicurio:main Jul 19, 2023
@jsenko jsenko deleted the support-https-passthrough branch July 19, 2023 11:26
@andreaTP
Copy link
Member

@carlesarnal FYI:

Should we have a basic test for this functionality?

Not sure how to set it up easily, we would need the new system tests. But I've tested it manually, if that counts.
I'm preparing some example templates that could be used in the testing later.

do you think that is possible to merge an initial bulk of your effort and iterate over it?

@carlesarnal
Copy link
Member

@carlesarnal FYI:

Should we have a basic test for this functionality?

Not sure how to set it up easily, we would need the new system tests. But I've tested it manually, if that counts.
I'm preparing some example templates that could be used in the testing later.

do you think that is possible to merge an initial bulk of your effort and iterate over it?

actually, I would like to merge the whole chunk of work during next week, all the tests are finally working, I need to port the native image workflows and we should be good to go and we can add this test as the first new one to the testsuite

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants