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

Self-signed cert for re-encrypt termination route #71

Merged
merged 2 commits into from
Jul 1, 2024

Conversation

rsevilla87
Copy link
Member

@rsevilla87 rsevilla87 commented Jul 1, 2024

Type of change

  • Refactor
  • New feature
  • Bug fix
  • Optimization
  • Documentation Update

Description

Re-encrypt routes need to expose a certificate different than default to work with HTTP2.
Reference https://docs.openshift.com/container-platform/4.16/networking/ingress-operator.html#nw-http2-haproxy_configuring-ingress

To enable the use of HTTP/2 for the connection from the client to HAProxy, a route must specify a custom certificate. A route that uses the default certificate cannot use HTTP/2. This restriction is necessary to avoid problems from connection coalescing, where the client re-uses a connection for different routes that use the same certificate.

Related Tickets & Documents

  • Related Issue #
  • Closes #

Testing

Successfully tested:

$ curl -ik  --http1.1 https://nginx-reencrypt-ingress-perf.apps.blablabla.perfscale.devcluster.openshift.com
HTTP/1.1 200 
server: nginx/1.20.1
date: Mon, 01 Jul 2024 12:25:31 GMT
content-type: text/html
content-length: 128
last-modified: Tue, 25 Jun 2024 17:57:24 GMT
etag: "667b0504-80"
accept-ranges: bytes
set-cookie: 2e901bb5a53d7e744a20c22f4e7d8928=8b9523fc6de155cf1fd7c285d97f3a90; path=/; HttpOnly; Secure; SameSite=None
cache-control: private


$ curl -ik  https://nginx-reencrypt-ingress-perf.apps.blablabla.openshift.com
HTTP/2 200 
server: nginx/1.20.1
date: Mon, 01 Jul 2024 12:24:30 GMT
content-type: text/html
content-length: 128
last-modified: Tue, 25 Jun 2024 17:57:24 GMT
etag: "667b0504-80"
accept-ranges: bytes
set-cookie: 2e901bb5a53d7e744a20c22f4e7d8928=af70d63b2f19e91804f402b7c4ab0564; path=/; HttpOnly; Secure; SameSite=None
cache-control: private

<!DOCTYPE html>
<html>
<head>
<title>Welcome 0128B</title>
</head>
<body>
<h1>Welcome 0128B</h1>

<pre>
</pre>

</body>
</html>

@rsevilla87 rsevilla87 requested a review from krishvoor July 1, 2024 12:24
@rsevilla87 rsevilla87 added the bug Something isn't working label Jul 1, 2024
Signed-off-by: Raul Sevilla <[email protected]>
@rsevilla87 rsevilla87 merged commit 7859a24 into cloud-bulldozer:main Jul 1, 2024
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant