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

Hashicorp connection, override http protocol version #817

Merged
merged 4 commits into from
Jun 27, 2023

Conversation

usmansaleem
Copy link
Collaborator

PR Description

Hashicorp connection, override http protocol version. Hashicorp Signing Metadata file can now optionally take httpProtocolVersion with possible values of HTTP_1_1 and HTTP_2. It defaults to HTTP_2. This should help in situations where vault is behind load balancer/vault agent and unable to handle Http 2 connections over h2c.

Fixed Issue(s)

fixes #811

Documentation

  • I thought about documentation and added the doc-change-required label to this PR if updates are required.

Changelog

  • I thought about adding a changelog entry, and added one if I deemed necessary.

Testing

  • I thought about testing these changes in a realistic/non-local environment.

@usmansaleem usmansaleem added the doc-change-required Indicates an issue or PR that requires doc to be updated label Jun 22, 2023
@usmansaleem usmansaleem marked this pull request as ready for review June 22, 2023 07:15
return httpProtocolVersion;
}

public static final class Builder {
Copy link
Contributor

Choose a reason for hiding this comment

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

nice improvement 👍

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Yes, I realised that this class is used in our tests as well and we were forced to set values that were not required by the specific tests. Builder patterns neatly allows the defaults to be set.

@usmansaleem usmansaleem merged commit 6933b30 into Consensys:master Jun 27, 2023
@usmansaleem usmansaleem deleted the hashicorp_httpversion branch June 27, 2023 02:50
@alexandratran alexandratran removed the doc-change-required Indicates an issue or PR that requires doc to be updated label Jul 18, 2023
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.

[23.6.0] vault-agent - http2: invalid Upgrade request header: ["h2c"]
3 participants