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

[Merged by Bors] - Allow any scheme for http poet client and default to http #4116

Closed
wants to merge 12 commits into from

Conversation

fasmat
Copy link
Member

@fasmat fasmat commented Mar 1, 2023

Motivation

Closes #4102

Changes

This changes HTTPPoetClient to only default to http as scheme if it isn't set in the address configuration. This allows to the node to connect to poet via https if it is set as part of the address.

Test Plan

  • Existing tests pass
  • Added test to check if client defaults to http if not set

TODO

  • Explain motivation or link existing issue(s)
  • Test changes and document test plan
  • Update documentation as needed

DevOps Notes

  • This PR does not require configuration changes (e.g., environment variables, GitHub secrets, VM resources)
  • This PR does not affect public APIs
  • This PR does not rely on a new version of external services (PoET, elasticsearch, etc.)
  • This PR does not make changes to log messages (which monitoring infrastructure may rely on)

@fasmat fasmat requested a review from countvonzero as a code owner March 1, 2023 17:10
@fasmat fasmat self-assigned this Mar 1, 2023
@fasmat fasmat requested review from dshulyak and poszu as code owners March 1, 2023 17:10
activation/activation.go Outdated Show resolved Hide resolved
activation/poet.go Outdated Show resolved Hide resolved
@fasmat
Copy link
Member Author

fasmat commented Mar 1, 2023

bors try

bors bot added a commit that referenced this pull request Mar 1, 2023
@bors
Copy link

bors bot commented Mar 1, 2023

try

Build failed:

@fasmat
Copy link
Member Author

fasmat commented Mar 2, 2023

bors merge

bors bot pushed a commit that referenced this pull request Mar 2, 2023
## Motivation
Closes #4102

## Changes
This changes HTTPPoetClient to only default to http as scheme if it isn't set in the address configuration. This allows to the node to connect to poet via https if it is set as part of the address.

## Test Plan
- Existing tests pass
- Added test to check if client defaults to http if not set

## TODO
<!-- This section should be removed when all items are complete -->
- [x] Explain motivation or link existing issue(s)
- [x] Test changes and document test plan
- [x] Update documentation as needed

## DevOps Notes
<!-- Please uncheck these items as applicable to make DevOps aware of changes that may affect releases -->
- [x] This PR does not require configuration changes (e.g., environment variables, GitHub secrets, VM resources)
- [x] This PR does not affect public APIs
- [x] This PR does not rely on a new version of external services (PoET, elasticsearch, etc.)
- [x] This PR does not make changes to log messages (which monitoring infrastructure may rely on)
@bors
Copy link

bors bot commented Mar 2, 2023

Build failed:

@fasmat
Copy link
Member Author

fasmat commented Mar 2, 2023

bors merge

bors bot pushed a commit that referenced this pull request Mar 2, 2023
## Motivation
Closes #4102

## Changes
This changes HTTPPoetClient to only default to http as scheme if it isn't set in the address configuration. This allows to the node to connect to poet via https if it is set as part of the address.

## Test Plan
- Existing tests pass
- Added test to check if client defaults to http if not set

## TODO
<!-- This section should be removed when all items are complete -->
- [x] Explain motivation or link existing issue(s)
- [x] Test changes and document test plan
- [x] Update documentation as needed

## DevOps Notes
<!-- Please uncheck these items as applicable to make DevOps aware of changes that may affect releases -->
- [x] This PR does not require configuration changes (e.g., environment variables, GitHub secrets, VM resources)
- [x] This PR does not affect public APIs
- [x] This PR does not rely on a new version of external services (PoET, elasticsearch, etc.)
- [x] This PR does not make changes to log messages (which monitoring infrastructure may rely on)
@bors
Copy link

bors bot commented Mar 2, 2023

Build failed:

@fasmat
Copy link
Member Author

fasmat commented Mar 3, 2023

bors merge

bors bot pushed a commit that referenced this pull request Mar 3, 2023
## Motivation
Closes #4102

## Changes
This changes HTTPPoetClient to only default to http as scheme if it isn't set in the address configuration. This allows to the node to connect to poet via https if it is set as part of the address.

## Test Plan
- Existing tests pass
- Added test to check if client defaults to http if not set

## TODO
<!-- This section should be removed when all items are complete -->
- [x] Explain motivation or link existing issue(s)
- [x] Test changes and document test plan
- [x] Update documentation as needed

## DevOps Notes
<!-- Please uncheck these items as applicable to make DevOps aware of changes that may affect releases -->
- [x] This PR does not require configuration changes (e.g., environment variables, GitHub secrets, VM resources)
- [x] This PR does not affect public APIs
- [x] This PR does not rely on a new version of external services (PoET, elasticsearch, etc.)
- [x] This PR does not make changes to log messages (which monitoring infrastructure may rely on)
@bors
Copy link

bors bot commented Mar 3, 2023

Pull request successfully merged into develop.

Build succeeded:

@bors bors bot changed the title Allow any scheme for http poet client and default to http [Merged by Bors] - Allow any scheme for http poet client and default to http Mar 3, 2023
@bors bors bot closed this Mar 3, 2023
@bors bors bot deleted the 4102-https-in-poet-client branch March 3, 2023 14:48
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.

Poet URL have to accept https endpoints too
4 participants