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

[release/2.8] feat: Add HTTP2 for unencrypted HTTP (v2) #4246

Closed
wants to merge 3 commits into from

Conversation

erezrokah
Copy link
Contributor

Replaces #4242

Also adds this feature behind an opt-in option to make it non breaking (I don't think it should break things but could be considered a breaking change in the default behavior)

Fixes #4241

You can test via:

docker build . -t registry:v2-h2c
docker run -e REGISTRY_HTTP_H2C_ENABLED='true' -p 5000:5000 registry:v2-h2c

Then on a separate shell:

curl -i --http2-prior-knowledge http://localhost:5000 
HTTP/2 200 
cache-control: no-cache
content-length: 0
date: Fri, 05 Jan 2024 15:40:04 GMT

curl -i http://localhost:5000
HTTP/1.1 200 OK
Cache-Control: no-cache
Date: Fri, 05 Jan 2024 15:40:31 GMT
Content-Length: 0

Signed-off-by: erezrokah <erezrokah@users.noreply.github.com>
@erezrokah erezrokah changed the title Feat/allow h2c feat: Add HTTP2 for unencrypted HTTP (opt-in config) Jan 9, 2024
Signed-off-by: erezrokah <erezrokah@users.noreply.github.com>
@erezrokah
Copy link
Contributor Author

If you're OK with this change for v2 I can port it to v3 as well

@milosgajdos
Copy link
Member

I think adding this to v3 would be nice 🤔

Copy link
Member

@milosgajdos milosgajdos left a comment

Choose a reason for hiding this comment

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

@thaJeztah there is something sad happening and I have a feeling it might have to do with the old vendorinig

@erezrokah
Copy link
Contributor Author

I think adding this to v3 would be nice 🤔

PR for v3 #4248. I used the existing option since v3 is already a major version bump so this way the defaults for TLS and non TLS will be the same

Signed-off-by: Erez Rokah <erezrokah@users.noreply.github.com>
@erezrokah erezrokah changed the title feat: Add HTTP2 for unencrypted HTTP (opt-in config) feat: Add HTTP2 for unencrypted HTTP (v2) Jan 11, 2024
Copy link
Member

@thaJeztah thaJeztah left a comment

Choose a reason for hiding this comment

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

I don't think we should add new features to v2. It's in maintenance mode, so only bug-fixes and security-fixes should go in; other changes should go into v3

@thaJeztah thaJeztah changed the title feat: Add HTTP2 for unencrypted HTTP (v2) [release/2.8] feat: Add HTTP2 for unencrypted HTTP (v2) Jan 11, 2024
@milosgajdos
Copy link
Member

I don't think we should add new features to v2. It's in maintenance mode, so only bug-fixes and security-fixes should go in

Yeah, we shouldn't be accepting this to v2

@wy65701436
Copy link
Collaborator

I am against and we should consider adding this into main.

@erezrokah
Copy link
Contributor Author

I don't think we should add new features to v2. It's in maintenance mode, so only bug-fixes and security-fixes should go in; other changes should go into v3

👍 I wasn't sure what's the timeline for the v3 release. I'll go ahead and close this PR

@erezrokah erezrokah closed this Jan 12, 2024
@erezrokah erezrokah deleted the feat/allow_h2c branch January 12, 2024 10:38
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.

None yet

4 participants