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

fix(service): set appProtocol to https if TLS enabled #1034

Merged
merged 1 commit into from
Jan 29, 2025

Conversation

andrewazores
Copy link
Member

@andrewazores andrewazores commented Jan 29, 2025

Welcome to Cryostat! 👋

Before contributing, make sure you have:

  • Read the contributing guidelines
  • Linked a relevant issue which this PR resolves
  • Linked any other relevant issues, PR's, or documentation, if any
  • Resolved all conflicts, if any
  • Rebased your branch PR on top of the latest upstream main branch
  • Attached at least one of the following labels to the PR: [chore, ci, docs, feat, fix, test]
  • Signed all commits: git commit -S -m "YOUR_COMMIT_MESSAGE"

Fixes: #1033
Related to cryostatio/cryostat-openshift-console-plugin#3

Description of the change:

Sets the appProtocol of the Cryostat service port to https if TLS is enabled, otherwise leaves it as http.

Motivation for the change:

This is used as a marker for other components to know whether the exposed service port is using HTTPS or HTTP. The console plugin backend uses the appProtocol first to determine whether it should send HTTPS or HTTP requests to the Cryostat instance. If it does not find an appProtocol on the port then it falls back to trying to use the port name. If it still cannot determine what the port is, then it bails out.

How to manually test:

  1. Insert steps here...
  2. ...

@andrewazores
Copy link
Member Author

/build_test

Copy link

/build_test completed successfully ✅.
View Actions Run.

@andrewazores andrewazores requested a review from ebaron January 29, 2025 17:25
@andrewazores andrewazores merged commit 2884ad3 into cryostatio:main Jan 29, 2025
5 checks passed
@andrewazores andrewazores deleted the appprotocol-https branch January 29, 2025 20:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Bug] Core service uses 'http' port name and appProtocol when it's really https
2 participants