Skip to content

🐛 Fix oauth to work with external access networkpolicy #418

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

Merged
merged 1 commit into from
Mar 19, 2025

Conversation

jmontleon
Copy link
Member

No description provided.

@rayfordj
Copy link

/lgtm

Copy link
Member

@djzager djzager left a comment

Choose a reason for hiding this comment

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

visack

@@ -152,7 +152,7 @@ oauth_provider: openshift
oauth_default_openshift_sar: --openshift-sar={"namespace":"{{ app_namespace }}","resource":"services","resourceName":"{{ ui_service_name }}","verb":"get"}
oauth_access_rule: "{{ oauth_default_openshift_sar if oauth_provider == 'openshift' }}"
oauth_image_fqin: "{{ lookup('env', 'RELATED_IMAGE_OAUTH_PROXY') }}"
oauth_ssl_port: 9443
oauth_ssl_port: 8443
Copy link
Member

Choose a reason for hiding this comment

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

This is it? Why?

Copy link
Member Author

@jmontleon jmontleon Mar 19, 2025

Choose a reason for hiding this comment

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

I added a comment on the PR for main, apologies, I did not include it on this one:
The external access network policy allows 8080 and 8443. So using 8443 instead of 9443 allows everything to work.

I think my PR to add the oauth proxy predated the networkpolicy, so the auth proxy listening on 9443 at the time worked. That is no longer true as the traffic gets blocked. Alternatively I could have added port 9443 to the networkpolicy, but I went with this route.

Copy link
Member

Choose a reason for hiding this comment

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

heh. I saw it and didn't connect them.

@jmontleon jmontleon merged commit 6ff3756 into konveyor:release-0.6 Mar 19, 2025
10 checks passed
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