-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
Support TLS edge termination to expose http endpoints. #23061
Comments
I was able to reproduce this issue with the following devfile: schemaVersion: 2.2.2
metadata:
name: python
displayName: Python
provider: Red Hat
version: 3.1.0
projects:
- name: flask-example
git:
remotes:
origin: https://github.com/devfile-samples/python-ex
components:
- name: py
container:
image: registry.access.redhat.com/ubi9/python-39:1-192
args: ['tail', '-f', '/dev/null']
mountSources: true
endpoints:
- name: https-python
targetPort: 8080
protocol: http
secure: true
attributes:
discoverable: true
- exposure: none
name: debug
targetPort: 5858
env:
- name: DEBUG_PORT
value: '5858'
commands:
- id: pip-install-requirements
exec:
commandLine: pip install -r requirements.txt
workingDir: ${PROJECT_SOURCE}
group:
kind: build
isDefault: true
component: py
- id: run-app
exec:
commandLine: 'python app.py'
workingDir: ${PROJECT_SOURCE}
component: py
group:
kind: run
isDefault: true
- id: debug-py
exec:
commandLine: 'pip install debugpy && python -m debugpy --listen 0.0.0.0:${DEBUG_PORT} app.py'
workingDir: ${PROJECT_SOURCE}
component: py
group:
kind: debug To encounter the bug, run the devfile commands You'll be redirected to a page with If you get the devworkspace id I suspect this is a Che-Router issue but it might be a DevWorkspaceRouting issue. @tolusha let me know if you have any immediate thoughts that come to mind. |
I think I've finally found the source for the bug. I made a draft patch and tested this, and am able to confirm that the issue no longer occurs with my reproducer. I'll be working on a PR to fix this. |
Fix eclipse-che/che#23061 Signed-off-by: Andrew Obuchowicz <[email protected]>
Fix eclipse-che/che#23061 Signed-off-by: Andrew Obuchowicz <[email protected]>
Describe the bug
When setting up an endpoint for a HTTP service with specific attributes, the correct edge route URL is generated without the urlRewriteSupported: 'true' attribute.
However, accessing this endpoint through the VSCode UI Endpoint section results in a 404 error.
Additionally, attempting to use the urlRewriteSupported: 'true' attribute prevents the route from being created, I assume as expected.
Che version
7.89@latest
Steps to reproduce
When setting up the following endpoint:
the correct route URL is generated without the
urlRewriteSupported: 'true'
attribute. However, accessing the endpoint through the UI Endpoint section results in a 404 error.when using
urlRewriteSupported: 'true'
attribute the route is not created.Steps to Reproduce:
https://<devspace-url>/<devspace-userid>/<devfile-name>/5050/
Expected Result:
The service should be accessible via the UI Endpoint without any errors.
Actual Result:
Accessing the endpoint through the UI Endpoint section results in a 404 error.
Notes:
Expected behavior
The service should be accessible via the UI Endpoint without any errors.
Runtime
OpenShift
Screenshots
Installation method
OperatorHub
Environment
other (please specify in additional context)
Eclipse Che Logs
No response
Additional context
On-premise installation
The text was updated successfully, but these errors were encountered: